@import "style.css";

/* ==========================================================================
   Hero (Optimizada para imágenes grandes e impactantes en Celulares)
   ========================================================================== */

.hero-section {
    min-height: auto;
    padding-top: 80px; /* Evita que el header fijo tape el inicio del banner */
    width: 100%;
    overflow: hidden;
}

.hero {
    display: flex;
    flex-direction: row;  
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: auto;    
}

.hero img {
    width: 100%;
    height: auto;
    display: block; 
    object-fit: cover;
}

/* Ajustes críticos para el Celular */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px; 
    }

    /* Forzamos a que el contenedor tenga una altura mínima atractiva en vertical */
    .hero {
        height: 55vh; /* Ocupa el 55% del alto de la pantalla del celular */
        min-height: 360px;
    }

    /* Hacemos que la imagen llene el contenedor para verse mucho más grande sin deformarse */
    .hero img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center; /* Mantiene el centro del banner siempre visible */
    }
}


/* ==========================================================================
   Contador
   ========================================================================== */

.contador-section {
    display: flex;
    width: 100%;
    height: 600px;
    min-height: 400px;
    justify-content: center;
    align-items: center;
    background-image: url("/images/cacao.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative; 
    flex-direction: column;
    gap: 40px;
}

.contador-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contador {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-inline: 20px;
}

.contador-title {
    color: #00d112;
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 12px 35px;
    background-color: rgba(0, 209, 18, 0.1);    
    border: 1px solid rgba(0, 166, 41, 0.35);
    border-radius: 12px;
    text-transform: uppercase;
    text-align: center;
}

.contador-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.contador-content div {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.contador-content span {
    font-family: var(--font-family-heading);
    font-size: 5.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
}

.contador-content p {
    font-family: var(--font-family-base);
    font-size: 1.2rem;
    font-weight: 500;
    color: #f5efe0;
    margin: 0;
}

.contador-content div:not(:last-child)::after {
    content: ":";
    position: absolute;
    right: -10px;
    top: 15%;
    font-size: 4rem;
    color: #ffffff;
    font-weight: 300;
    opacity: 0.8;
}

/* Ajustes Responsivos del Contador en Celulares */
@media (max-width: 768px) {
    .contador-section {
        height: auto;
        padding-block: 80px; 
    }

    .contador-title {
        font-size: 1.3rem;
        padding: 10px 20px;
        width: 100%;
        max-width: 280px;
    }

    .contador-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .contador-content span {
        font-size: 3.8rem; 
        margin-bottom: 6px;
    }

    .contador-content p {
        font-size: 1rem;
    }

    .contador-content div:not(:last-child)::after {
        display: none;
    }
}

/* ==========================================================================
   Menu - Café en Profundidad
   ========================================================================== */

.menu-section {
    position: relative;
    overflow: hidden;  
    
    background-image: url("/images/Texturelabs_Grunge_265L.jpg");
    background-color: #65e083; 
    background-blend-mode: multiply;
    background-size: 300px auto; 
    background-repeat: repeat;  
    
    width: 100%; 
    display: flex;
    justify-content: center;
    padding: 80px 24px;
}

.menu-container {
    position: relative;
    z-index: 2; 
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.menu-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
}

.menu-header {
    text-align: center;
    max-width: 850px;
}

.menu-title {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.menu-title .txt-dark {
    color: #000000;
}

.menu-title .txt-accent {
    color: #ffffff;
}

.icon-cafestival {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-62%, -50%) scale(1.4);    
    width: 100%;
    max-width: 1500px;    
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;          
    pointer-events: none; 
    opacity: 0.6;       
}

.icon-cafestival img {
    width: 100%;
    height: auto;
    max-width: 1400px;    
    display: block;
    position: relative;
    left: -3000px; 
    filter: drop-shadow(3000px 0 0 #7ce385); 
}

.menu-description {
    font-family: var(--font-family-base);
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.58;
    font-weight: 500;
}   

/* Grilla del Menú */
.menu-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ==========================================================================
   Tarjetas Estándar (Locación y Programa)
   ========================================================================== */

.card-standard {
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%; 
}

.card-dark {
    background-color: rgba(33, 17, 11, 0.85); 
}

.card-light {
    background-color: rgba(250, 246, 238, 0.9);
}

.card-standard .card-title {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.card-dark .card-title {
    color: #F5EFE0;
}

.card-light .card-title {
    color: #21110B;
}

.card-standard .card-text {
    font-family: var(--font-family-base);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.card-dark .card-text {
    color: #f5efe0;
}

.card-light .card-text {
    color: #4A3E3D;
}

/* ==========================================================================
   Tarjeta Especial - Speakers Wide
   ========================================================================== */

.card-speakers-wide {
    grid-column: span 2;
    background-color: rgba(33, 17, 11, 0.85);
    border-radius: 24px;
    padding: 45px 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-speakers-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    max-width: 53%; 
}

.card-speakers-right {
    display: flex;
    flex-direction: row-reverse; 
    align-items: center;
    padding-left: 20px;
}

.card-speakers-wide .card-title {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    color: #ffffff;
}

.card-speakers-wide .card-text {
    font-family: var(--font-family-base);
    font-size: 1.1rem;
    color: #f5efe0;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.speaker-avatar {
    width: 110px; 
    height: 110px;
    border-radius: 50%; 
    object-fit: cover;
    border: 4px solid #F5EFE0; 
    margin-left: -32px; 
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, z-index 0.2s ease;
    position: relative;
    z-index: 1;
}

.speaker-avatar:hover {
    transform: translateY(-5px) scale(1.05);
    z-index: 10;
}

.speaker-more-badge {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #4bbd54; 
    color: #21110B; 
    font-family: var(--font-family-heading, sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #F5EFE0;
    margin-left: -32px;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 0; 
}

/* ==========================================================================
   Marcas
   ========================================================================== */

.marcas-section {
    position: relative;
    overflow: hidden;  
    background-image: 
        linear-gradient(rgba(250, 244, 248, 0.85), rgba(249, 222, 240, 0.85)), 
        url("/images/Texturelabs_Grunge_265L.jpg");
    background-size: cover, 300px auto; 
    background-repeat: no-repeat, repeat;  
    width: 100%; 
    display: flex;
    justify-content: center;
    padding: 100px 24px;
}

.marcas-container {
    position: relative;
    z-index: 2; 
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.marcas-top-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 80px;
}

.col-organiza {
    flex: 1;
}

.col-educativos {
    flex: 2;
}

.marcas-bottom-row {
    width: 100%;
    margin-top: 50px; 
}

.marcas-grupo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.marcas-categoria-title {
    font-family: var(--font-family-heading, sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    align-self: flex-start;
    text-align: left;
    margin-left: 55px;
}

.marcas-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; 
    gap: 0px 55px;
    width: 100%;
}

.marcas-grid img {
    height: 55px; 
    width: auto;
    object-fit: contain;
    opacity: 1; 
    transition: transform 0.2s ease;
}

.marcas-grid img.logo-revolucion { height: 130px; }
.marcas-grid img.logo-cacaotal { height: 100px; }
.marcas-grid img.logo-geko { height: 85px; }
.marcas-grid img.logo-twobroders { height: 100px; }
.marcas-grid img.logo-awa { height: 38px; }

.marcas-grid img[alt="Awicha"] { height: 30px; }
.marcas-grid img.logo-rdp { height: 38px; }
.marcas-grid img[alt="RDP"] { height: 38px; }

.marcas-grid img[alt="Ciclos Cafe"] { height: 80px; }
.marcas-grid img[alt="Muni Barranco"] { height: 100px; }
.marcas-grid img[alt="PUCP CI"] { height: 80px; }
.marcas-grid img[alt="PUCP GHOT"] { height: 100px; }
.marcas-grid img[alt="Lady Bee"] { height: 160px; }
.marcas-grid img[alt="Cebichela"] { height: 110px; }
.marcas-grid img[alt="Masi"] { height: 120px; }
.marcas-grid img[alt="Andean"] { height: 120px; }
.marcas-grid img[alt="Hotel B"] { height:120px; }
.marcas-grid img[alt="Ananay"] { height: 80px; }
.marcas-grid img[alt="LVMR"] { height: 120px; }
.marcas-grid img[alt="MovilBus"] { height: 120px; }

.marcas-grid img[alt="La Revolución"],
.marcas-grid img[alt="PUCP CI"],
.marcas-grid img[alt="MovilBus"],
.marcas-grid img[alt="AWA"],
.marcas-grid img[alt="Lady Bee"],
.marcas-grid img[alt="Awicha"],
.marcas-grid img[alt="Mariposa"],
.marcas-grid img[alt="Cebichela"],
.marcas-grid img[alt="Blast Burguers"],
.marcas-grid img[alt="Kaffe Service"],
.marcas-grid img[alt="Andean"],
.marcas-grid img[alt="LVMR"],
.marcas-grid img[alt="Ananay"] {
    filter: brightness(0); 
}

.marcas-grid img:hover {
    transform: scale(1.05);
}

.icon-cafestival-marcas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-62%, -50%) scale(1.4);    
    width: 100%;
    max-width: 1500px;    
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;        
    pointer-events: none; 
    opacity: 0.45;       
}

.icon-cafestival-marcas img {
    width: 100%;
    height: auto;
    max-width: 1400px;    
    display: block;
    position: relative;
    left: -3000px; 
    filter: drop-shadow(3000px 0 0 #97CDD6); 
}

@media (max-width: 768px) {
    .marcas-top-row {
        flex-direction: column;
        gap: 50px;
    }
}

/* ==========================================================================
   Componentes Comunes (Iconos, Grillas Generales y Botones)
   ========================================================================== */

.card-icon {
    width: 60px;
    height: 60px;
    background-color: transparent; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.card-icon i,
.card-light .card-icon i,
.card-dark .card-icon i,
.card-speakers-wide .card-icon i {
    color: #4bbd54 !important; 
    font-size: 2.2rem;
}

.card-btn {
    font-family: var(--font-family-heading);
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.card-btn:hover {
    transform: translateY(-2px);
}

.btn-outline-orange {
    border: 2px solid #4bbd54;
    color: #4bbd54;
    background-color: transparent;
}

.btn-solid-orange {
    background-color: #4bbd54 !important;
    color: #ffffff !important;
    border: 2px solid #4bbd54 !important;
}

/* ==========================================================================
   SECCIÓN CRÍTICA DE CORRECCIONES EN MÓVILES (MENÚ Y RE ESTRUCTURACIÓN)
   ========================================================================== */
@media (max-width: 768px) {
    .container, .main-content {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .flex-container {
        flex-direction: column;
    }

    .menu-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        width: 100%;
    }

    .card-speakers-wide {
        grid-column: span 1 !important; 
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 30px 20px;
    }

    .card-speakers-left {
        max-width: 100%;
    }

    .card-speakers-right {
        padding-left: 0;
        align-self: center;
        justify-content: center;
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        margin-left: 14px; 
    }

    .speaker-avatar {
        width: 65px !important;
        height: 65px !important;
        border-width: 3px !important;
        margin-left: -18px !important; 
    }

    .speaker-more-badge {
        width: 65px !important;
        height: 65px !important;
        font-size: 0.85rem !important;
        border-width: 3px !important;
        margin-left: -18px !important;
    }

    .card-speakers-wide .card-title {
        font-size: 1.8rem;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    h1 {
        font-size: 24px;
    }
}