/* ==============================================================
   SHOWCASE DUAL DE PABELLONES Y STANDS - ASIA CONNECT LATAM 2027
   ============================================================== */

.ecosistemas-showcase {
    position: relative;
    padding-top: 20px;
    padding-bottom: 50px;
}

/* Masterplan Aéreo */
.masterplan-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 45px;
    background: #0f1821;
    border: 1px solid rgba(206, 153, 34, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.masterplan-img-wrap {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.masterplan-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.masterplan-banner:hover .masterplan-img-wrap img {
    transform: scale(1.02);
}

.masterplan-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(0deg, rgba(8, 14, 20, 0.95) 0%, rgba(8, 14, 20, 0.7) 60%, rgba(8, 14, 20, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.masterplan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(206, 153, 34, 0.2);
    border: 1px solid #ce9922;
    color: #e5af3a;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.masterplan-overlay h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.masterplan-overlay p {
    color: #b0c0c8;
    font-size: 15px;
    margin: 0;
    max-width: 650px;
    line-height: 1.5;
}

.masterplan-stats {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 20px;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    font-size: 22px;
    font-weight: 800;
    color: #e5af3a;
    display: block;
    line-height: 1.1;
}

.stat-item .lbl {
    font-size: 12px;
    color: #9cb0bc;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Selector de Pestañas (Tabs) */
.pavilions-tab-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: #ce9922 rgba(255, 255, 255, 0.05);
}

.pavilions-tab-nav::-webkit-scrollbar {
    height: 6px;
}

.pavilions-tab-nav::-webkit-scrollbar-thumb {
    background: #ce9922;
    border-radius: 4px;
}

.pav-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(19, 31, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cad8e0;
    padding: 14px 22px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
}

.pav-tab-btn .tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 12px;
    color: #e5af3a;
}

.pav-tab-btn:hover {
    background: rgba(30, 48, 62, 0.95);
    border-color: rgba(206, 153, 34, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

.pav-tab-btn.active {
    background: linear-gradient(135deg, #ce9922 0%, #a47313 100%);
    border-color: #f1bf4d;
    color: #0b1218;
    box-shadow: 0 8px 24px rgba(206, 153, 34, 0.35);
    transform: translateY(-2px);
}

.pav-tab-btn.active .tab-num {
    background: rgba(0, 0, 0, 0.2);
    color: #0b1218;
    font-weight: 800;
}

/* Panel Dual (Contenido de cada Pabellón) */
.pav-panel {
    scroll-margin-top: 100px;
    display: none;
    animation: fadeInPav 0.45s ease forwards;
}

.pav-panel.active {
    display: block;
}

@keyframes fadeInPav {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.pav-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Columna Izquierda: Render 3D & Ficha */
.pav-visual-col {
    background: #111a24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pav-render-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #090e13;
}

.pav-render-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.pav-visual-col:hover .pav-render-wrap img {
    transform: scale(1.03);
}

.pav-tag-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(9, 15, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid #ce9922;
    color: #e5af3a;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pav-info-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pav-info-body h4 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.pav-info-body p.pav-desc {
    color: #9cb0bc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pav-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pav-features-list li {
    font-size: 13px;
    color: #cfdbe2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pav-features-list li i {
    color: #ce9922;
    font-size: 14px;
}

/* Columna Derecha: Plano de Stands & CTA */
.pav-stands-col {
    background: #111a24;
    border: 1px solid rgba(206, 153, 34, 0.2);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.stands-header h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stands-legend-mini {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
}

.leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.leg-disp { background: #3f7a7a; }
.leg-vend { background: #9c5a34; }

.stands-svg-preview-wrap {
    position: relative;
    width: 100%;
    flex-grow: 1;
    min-height: 280px;
    max-height: 380px;
    background: #f4f7f6;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.stands-svg-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.stands-badge-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(16, 23, 26, 0.85);
    color: #ffffff;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 11px;
    padding: 4px 10px;
    font-family: 'IBM Plex Mono', monospace;
}

.stands-cta-wrap {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stands-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ce9922 0%, #b88214 100%);
    color: #0d151c;
    font-size: 16px;
    font-weight: 800;
    padding: 16px 24px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(206, 153, 34, 0.3);
}

.stands-cta-btn:hover {
    background: linear-gradient(135deg, #e5af3a 0%, #ce9922 100%);
    color: #080d11;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(206, 153, 34, 0.45);
    text-decoration: none;
}

.stands-cta-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.stands-cta-btn:hover i {
    transform: translateX(4px);
}

.stands-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #8da2ae;
    padding: 0 4px;
}

/* Responsividad */
@media (max-width: 991px) {
    .pav-dual-grid {
        grid-template-columns: 1fr;
    }
    
    .masterplan-overlay {
        position: relative;
        background: #0f1821;
        padding: 20px;
    }
    
    .masterplan-overlay h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .pavilions-tab-nav {
        gap: 8px;
    }
    
    .pav-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .pav-features-list {
        grid-template-columns: 1fr;
    }
    
    .stands-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
