﻿/* ===================================================================
   SECCIÓN GLOBAL 80% (ESTILO CLARO Y FLOTANTE)
   =================================================================== */
.brasil-80-section {
    background: #FAFCFC; /* Fondo principal blanco roto */
    padding: 100px 0;
    font-family: inherit;
}

.container-80 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pill-kicker-brasil {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(199, 149, 50, 0.15);
    color: #C79532;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vision-header {
    margin-bottom: 30px;
}

.hero-title-massive {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 15px;
    color: var(--brandDark);
    font-weight: 900;
}

.hero-description-large {
    max-width: 850px;
    margin: 0 auto;
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
}

/* --- Banderas Circulares --- */
.flags-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.flag-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid #fff;
    transition: transform 0.3s ease;
}

    .flag-circle:hover {
        transform: translateY(-3px) scale(1.1);
    }

/* --- Tarjetas Base Suaves --- */
.card-soft-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #eef6fa 100%);
    border: 1px solid rgba(56, 161, 219, 0.1);
    border-radius: 24px;
    padding: 35px; /* Reducido de 40px */
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-soft-gradient:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(56, 161, 219, 0.08);
    }

/* --- Grilla Superior (2 Columnas) --- */
.bento-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.card-kicker {
    font-size: 13px;
    font-weight: 800;
    color: #3A989A;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-title-premium {
    font-size: 28px;
    font-weight: 850;
    margin-bottom: 15px;
    color: var(--brandDark);
}

.card-soft-gradient p {
    font-size: 15px; /* Reducido de 16px */
    color: var(--muted);
    line-height: 1.5;
}

/* Layout Tarjeta Brasil */
.layout-brasil {
    display: flex;
    align-items: center;
    gap: 30px;
}

.brasil-info {
    flex: 1;
}

.brasil-flyer {
    flex: 0 0 180px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.flyer-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.ciic-badge-light {
    display: inline-block;
    background: #ffffff;
    border: 1px solid rgba(199, 149, 50, 0.3);
    color: #C79532;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mision-date-float {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.destaque-gold {
    color: #C79532;
    font-weight: 850;
}

.ciic-tags-light {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .ciic-tags-light span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 700;
        color: var(--brandDark);
    }

    .ciic-tags-light svg {
        width: 16px;
        height: 16px;
        color: #3A989A;
    }


/* ===================================================================
   GRILLA INFERIOR (Números a lo ancho + Abanico Glassmorphism)
   TAMAÑOS REDUCIDOS
   =================================================================== */
.bento-grid-bottom-rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.width-100 {
    width: 100%;
}

.panel-title {
    font-size: 18px; /* Reducido de 20px */
    font-weight: 850;
    color: var(--brandDark);
    margin-bottom: 25px; /* Reducido de 35px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- FILA 1: Contadores Horizontales --- */
.floating-row-4 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px; /* Reducido de 15px */
    flex-wrap: wrap;
    padding: 5px 0; /* Reducido de 10px */
}

.float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px; /* Reducido de 150px */
    padding: 10px; /* Reducido de 15px */
    border-radius: 12px; /* Reducido de 16px */
    transition: transform 0.3s ease;
}

    .float-item:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.4);
    }

.float-icon {
    margin-bottom: 8px; /* Reducido de 12px */
}

    .float-icon svg {
        width: 22px; /* Reducido de 28px */
        height: 22px;
    }

.float-number {
    font-size: 32px; /* Reducido de 38px */
    font-weight: 900;
    color: var(--brandDark);
    line-height: 1;
    margin-bottom: 4px; /* Reducido de 6px */
}

.float-label {
    font-size: 11px; /* Reducido de 13px */
    font-weight: 700;
    color: var(--muted);
    line-height: 1.2; /* Reducido de 1.3 */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- FILA 2: Abanico Sectores (Diseño Glassmorphism) --- */
.sect-abanico-wrap {
    padding-bottom: 20px; /* Reducido de 30px */
    overflow: hidden;
    position: relative;
}

.sect-abanico-container {
    position: relative;
    height: 160px; /* Reducido de 200px */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1.5rem; /* Reducido de 2rem */
    perspective: 800px; /* Reducido de 1000px */
}

.sect-card {
    position: absolute;
    width: 120px; /* Reducido de 150px */
    height: 140px; /* Reducido de 170px */
    border-radius: 16px; /* Reducido de 20px */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(16, 24, 40, 0.08); /* Reducido de 10px 30px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem; /* Reducido de 1rem */
    text-align: center;
    transform-origin: bottom center;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.sect-emoji {
    font-size: 32px; /* Reducido de 42px */
    margin-bottom: 8px; /* Reducido de 12px */
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}

.sect-card:hover .sect-emoji {
    transform: scale(1.15) translateY(-4px); /* Reducido scale 1.2 a 1.15 */
}

.sect-name {
    font-size: 12px; /* Reducido de 14px */
    font-weight: 800;
    color: #0d3a5c;
    line-height: 1.1; /* Reducido de 1.2 */
}

/* Posiciones de Rotación (Ajustadas para tarjetas más pequeñas) */
.sect-pos--2 {
    transform: translateX(-160px) rotate(-20deg) scale(0.85); /* Reducido de -200px */
    z-index: 1;
    opacity: 0.3;
}

.sect-pos--1 {
    transform: translateX(-90px) rotate(-10deg) scale(0.95); /* Reducido de -110px */
    z-index: 2;
    opacity: 0.8;
}

.sect-pos-0 {
    transform: translateX(0) rotate(0deg) scale(1.1) translateY(-8px); /* Reducido translateY de -10px */
    z-index: 3;
    opacity: 1;
    box-shadow: 0 15px 30px rgba(56, 161, 219, 0.15); /* Reducido de 20px 40px */
    border-color: rgba(56, 161, 219, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

.sect-pos-1 {
    transform: translateX(90px) rotate(10deg) scale(0.95); /* Reducido de 110px */
    z-index: 2;
    opacity: 0.8;
}

.sect-pos-2 {
    transform: translateX(160px) rotate(20deg) scale(0.85); /* Reducido de 200px */
    z-index: 1;
    opacity: 0.3;
}

.sect-pos-hidden {
    transform: translateX(0) rotate(0deg) scale(0.6) translateY(40px); /* Reducido de 50px */
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.sect-abanico-controls {
    display: flex;
    justify-content: center;
    gap: 15px; /* Reducido de 20px */
}

.sect-btn {
    width: 38px; /* Reducido de 44px */
    height: 38px; /* Reducido de 44px */
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(56, 161, 219, 0.2);
    color: #1e8fc8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(16,24,40,0.05); /* Reducido de 15px */
}

    .sect-btn svg {
        width: 18px; /* Reducido de 20px */
        height: 18px;
    }

    .sect-btn:hover {
        background: #1e8fc8;
        color: #fff;
        border-color: #1e8fc8;
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(30,143,200,0.3); /* Reducido de 8px 20px */
    }


/* ===================================================================
   MODAL Y BOTONES DE IMAGEN
   =================================================================== */
.btn-ampliar-flyer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

    .btn-ampliar-flyer:hover {
        background: rgba(255, 215, 0, 0.95);
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }

.modal-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

    .modal-lightbox.show {
        display: flex;
    }

.imagen-ampliada {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    cursor: default;
}

.btn-cerrar-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .btn-cerrar-lightbox:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 992px) {
    .bento-grid-main {
        grid-template-columns: 1fr;
    }

    .layout-brasil {
        flex-direction: column;
    }

    .brasil-flyer {
        flex: none;
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .imagen-ampliada {
        max-width: 95%;
        max-height: 85vh;
    }

    .btn-cerrar-lightbox {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    /* Reducción de textos cabecera Brasil */
    .brasil-80-section .pill-kicker-brasil {
        font-size: 11px;
        padding: 6px 14px;
    }

    .brasil-80-section .hero-title-massive {
        font-size: 26px; /* Reducido de 28px */
        margin-bottom: 10px;
    }

    .brasil-80-section .hero-description-large {
        font-size: 13px; /* Reducido de 14px */
        line-height: 1.5;
        padding: 0 10px;
    }

    /* Banderas en 1 sola línea */
    .flags-row {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .flag-circle {
        width: 32px;
        height: 32px;
        border-width: 1px;
    }

    /* Contadores en Mobile: 2x2 MAS CHICOS */
    .floating-row-4 {
        gap: 10px; /* Reducido de 15px */
        padding: 0;
    }

    .float-item {
        min-width: 45%; /* Aumentado a 45% para asegurar el 2x2 con el nuevo width */
        margin-bottom: 5px;
        padding: 8px; /* Reducido de 10px */
    }

    .float-number {
        font-size: 24px; /* Reducido de 28px */
    }

    .float-label {
        font-size: 10px; /* Reducido de 11px */
    }

    /* Abanico en Mobile MAS CHICO */
    .sect-abanico-container {
        height: 120px; /* Reducido de 160px */
    }

    .sect-card {
        width: 100px; /* Reducido de 120px */
        height: 120px; /* Reducido de 140px */
        padding: 8px; /* Reducido de 10px */
        border-radius: 12px; /* Reducido de 16px */
    }

    .sect-emoji {
        font-size: 26px; /* Reducido de 32px */
    }

    .sect-name {
        font-size: 10px; /* Reducido de 12px */
    }

    /* Posiciones Abanico Mobile Ajustadas */
    .sect-pos--2 {
        transform: translateX(-80px) rotate(-18deg) scale(0.8); /* Ajustado de -100px */
        opacity: 0.2;
    }

    .sect-pos--1 {
        transform: translateX(-45px) rotate(-9deg) scale(0.9); /* Ajustado de -55px */
        opacity: 0.7;
    }

    .sect-pos-0 {
        transform: translateX(0) rotate(0deg) scale(1.05) translateY(-4px); /* Ajustado translateY */
    }

    .sect-pos-1 {
        transform: translateX(45px) rotate(9deg) scale(0.9); /* Ajustado de 55px */
        opacity: 0.7;
    }

    .sect-pos-2 {
        transform: translateX(80px) rotate(18deg) scale(0.8); /* Ajustado de 100px */
        opacity: 0.2;
    }
}
