/**
 * Estilos Oportunidades Destacadas - Mockup Match
 */

.featured-opportunities-section {
    padding: 40px 0;
    scroll-margin-top: 96px;
    position: relative;
    z-index: 10;
}

.partners-dual-section {
    position: relative;
    z-index: 10;
}

.bg-waves-pattern {
    position: relative;
    background-color: #ffffff;
    /* Patrón SVG de cintas onduladas entrelazadas con colores más vivos */
    background-image: url("data:image/svg+xml,%3Csvg width='1440' height='1000' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%236ee7b7' fill-opacity='0.5' d='M0,100 C400,300 800,50 1440,200 L1440,400 C800,250 400,500 0,300 Z'/%3E%3Cpath fill='%237dd3fc' fill-opacity='0.5' d='M0,350 C400,150 900,550 1440,250 L1440,450 C900,750 400,350 0,550 Z'/%3E%3Cpath fill='%23a7f3d0' fill-opacity='0.4' d='M0,650 C400,850 800,550 1440,800 L1440,1000 L0,1000 Z'/%3E%3Cpath fill='%23bae6fd' fill-opacity='0.4' d='M0,850 C500,700 1000,950 1440,850 L1440,1000 L0,1000 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
}

.opportunities-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.opp-title-with-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opp-accent-pill {
    width: 24px;
    height: 4px;
    background: #0fc97e;
    border-radius: var(--radius-pill);
    display: inline-block;
}

.opp-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.3px;
}

.opp-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-navy);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.opp-view-all-link i {
    font-size: 0.72rem;
    transition: transform var(--transition-fast);
}

.opp-view-all-link:hover {
    color: var(--color-primary-dark);
}

.opp-view-all-link:hover i {
    transform: translateX(3px);
}

/* ===== CAROUSEL NUEVO ESTILO (TEXTO CENTRADO Y LÍNEA VERDE) ===== */

/* Fila completa: flecha + viewport + flecha */
.opp-carousel-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Botones de navegación — flechas negras */
.opp-nav-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #000;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opp-nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

.opp-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Viewport y track */
.opp-carousel-viewport {
    overflow: hidden;
    flex: 1;
}

.opp-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ===== TARJETA (Con contenedor de color) ===== */
.opp-card {
    flex: 0 0 calc((100% - 20px * 3) / 4);
    min-width: 0;
    background: #ffffff; /* Contenedor blanco */
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 24px 20px 20px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Cuerpo de la tarjeta */
.opp-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    width: 100%;
}

.opp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f; /* Azul oscuro */
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.opp-card-source {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    display: block;
    margin-bottom: 8px;
}

.opp-card-desc {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 auto 0;
    padding-bottom: 20px;
}

/* Línea separadora verde */
.opp-card-divider {
    width: 100%;
    height: 1px;
    background-color: #00B074;
    margin: 10px 0;
}

/* Botón tipo enlace de texto */
.opp-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px 0;
    color: #00B074;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: gap 0.2s ease, color 0.2s ease;
    width: 100%;
}

.opp-card-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.opp-card-link:hover {
    color: #007a52;
    gap: 10px;
}

.opp-card-link:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .opp-card { flex: 0 0 calc((100% - 20px * 2) / 3); }
}

@media (max-width: 700px) {
    .opp-card { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 420px) {
    .opp-card { flex: 0 0 100%; }
}



/* Modal Estilos Generales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 30, 58, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #FFFFFF;
    width: 90%;
    max-width: 680px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #64748B;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #0F172A;
}

.modal-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.opportunity-badge.badge-green {
    background: #D1FAE5;
    color: #065F46;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.modal-title {
    font-size: 1.5rem;
    color: #0F172A;
    margin-bottom: 6px;
    line-height: 1.3;
}

.modal-entity {
    color: #008f5d;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.modal-grid-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #F8FAFC;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.modal-tag-box strong {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.modal-tag-box span {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
}

.modal-section-block {
    margin-bottom: 20px;
}

.modal-section-block h4 {
    font-size: 1.05rem;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.modal-section-block h4 i {
    color: #00B074;
}

.modal-section-block p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
}

.btn-secondary:hover {
    background: #E2E8F0;
}

.btn-primary {
    background: #00B074;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #008f5d;
}

/* Skeleton Loading */
.skeleton-line {
    background: #E2E8F0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-line.title { height: 28px; width: 80%; }
.skeleton-line.medium { height: 16px; width: 60%; }
.skeleton-line.short { height: 16px; width: 40%; }

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@media (max-width: 640px) {
    .modal-grid-tags {
        grid-template-columns: 1fr;
    }
}