/* ========================================
   COCÓ V2 - Solo Hero + Empatía
   ======================================== */

/* Variables */
:root {
    --amarillo: #E5B02E;
    --purpura: #7C5D7C;
    --blanco: #FFFFFF;
    --marron: #5C4033;
    --turquesa: #2D9CAB;
    --rosa: #E8B4B8;
    --verde: #B8D4A3;
    --azul: #8B9DC3;
    
    --font-titulo: 'Baloo 2', cursive;
    --font-manuscrito: 'Caveat', cursive;
    --font-cuerpo: 'Nunito', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--font-cuerpo);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
}

/* ========== TIPOGRAFÍA GLOBAL (fuera del hero) ========== */

/* H2 - Títulos principales de sección */
section:not(.hero) h2 {
    font-family: var(--font-titulo);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

/* H3 - Subtítulos */
section:not(.hero) h3 {
    font-family: var(--font-titulo);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Párrafos normales */
section:not(.hero) p {
    font-family: var(--font-cuerpo);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Strong dentro de párrafos */
section:not(.hero) p strong {
    font-weight: 700;
}

/* ========== CLASES DE COLOR GLOBAL ========== */
/* Usar estas clases para cambiar colores de TODO el contenido */

/* Texto blanco - para fondos oscuros */
.texto-blanco,
.texto-blanco h1, .texto-blanco h2, .texto-blanco h3, 
.texto-blanco h4, .texto-blanco h5, .texto-blanco h6,
.texto-blanco p, .texto-blanco span, .texto-blanco li,
.texto-blanco a:not(.btn) {
    color: #FFFFFF;
}

.texto-blanco p strong {
    color: #FFFFFF;
}

/* Texto negro/marrón - para fondos claros */
.texto-marron,
.texto-marron h1, .texto-marron h2, .texto-marron h3, 
.texto-marron h4, .texto-marron h5, .texto-marron h6,
.texto-marron p, .texto-marron span, .texto-marron li {
    color: var(--marron);
}

/* Texto morado - para acentos */
.texto-morado,
.texto-morado h1, .texto-morado h2, .texto-morado h3, 
.texto-morado h4, .texto-morado h5, .texto-morado h6,
.texto-morado p, .texto-morado span, .texto-morado li {
    color: #7C5D7C;
}

.texto-marron p strong,
.texto-morado p strong {
    color: #7C5D7C;
}

/* Párrafos estilo manuscrito - !important para override section:not(.hero) p */
.texto-manuscrito,
section:not(.hero) .texto-manuscrito,
section:not(.hero) p.texto-manuscrito {
    font-family: var(--font-manuscrito) !important;
    font-size: 1.5rem !important;
    line-height: 1.6 !important;
    margin-bottom: 15px;
}

/* Badge hero - tamaño especial para el hero */
.badge-hero {
    font-size: 2rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

.badge-hero strong {
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.6);
    text-decoration-thickness: 2px;
}

/* ========== CLASES DE LAYOUT GLOBAL ========== */

/* Contenedor centrado */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.contenedor--estrecho {
    max-width: 1000px;
}

/* Texto centrado */
.centrado {
    text-align: center;
}

/* Sección base */
.seccion {
    padding: 60px 0;
    position: relative;
}

/* ========== FONDOS HEREDABLES ========== */
/* Usar estas clases en secciones y wave-sections heredarán el color */

.fondo-crema {
    background-color: #fcf9f4;
}

.fondo-morado {
    background-color: #7C5D7C;
}

.fondo-amarillo {
    background-color: var(--amarillo);
}

.fondo-turquesa {
    background-color: #88d4f2;
}

.fondo-blanco {
    background-color: #FFFFFF;
}

.fondo-naranja {
    background-color: #e1985c;
}

.fondo-azul {
    background-color: #556fa0;
}

/* Layout imagen + contenido */
.layout-dos-columnas {
    display: flex;
    align-items: center;
    gap: 60px;
}

.layout-dos-columnas__imagen {
    flex: 0 0 45%;
    position: relative;
}

.layout-dos-columnas__contenido {
    flex: 1;
}

/* ========== RESPONSIVE GLOBAL ========== */
@media (max-width: 768px) {
    section:not(.hero) h2 {
        font-size: 2.2rem;
    }
    
    section:not(.hero) h3 {
        font-size: 1.4rem;
    }
    
    .texto-manuscrito {
        font-size: 1.1rem;
    }
    
    section:not(.hero) p {
        font-size: 1rem;
    }
    
    /* Layout responsive */
    .contenedor {
        padding: 0 20px;
    }
    
    .seccion {
        padding: 40px 20px;
    }
    
    .layout-dos-columnas {
        flex-direction: column;
        text-align: center;
    }
    
    .layout-dos-columnas__imagen {
        flex: none;
        width: 80%;
        margin: 30px auto 0;
        order: 2;
    }
    
    .layout-dos-columnas__contenido {
        width: 100%;
        text-align: center;
        order: 1;
    }
}

/* ========== BLOQUE 1: HERO ========== */
.hero {
    min-height: 100vh;
    background: var(--amarillo);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Contenido IZQUIERDA - 60% */
.hero-content {
    width: 60%;
    padding-left: 8%;
    padding-right: 40px;
    z-index: 2;
}

/* Imagen DERECHA - 40% */
.hero-image {
    position: absolute;
    right: -5%;
    bottom: -15px;
    width: 50%;
    max-width: 750px;
    height: 90%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    animation: flotar 6s ease-in-out infinite;
}

/* ========== BLOQUE 2: EMPATÍA ========== */
/* Estilos de ondas movidos a waves.css */

/* Sección principal empatía - fondo por defecto morado, se puede cambiar con .fondo-* */
.empatia-section {
    background-color: #7C5D7C;
    padding: 60px 0 40px;
    position: relative;
    overflow: visible;
}

/* Permite sobrescribir el fondo con clases .fondo-* */
.empatia-section.fondo-turquesa {
    background-color: #88d4f2;
}

.empatia-section.fondo-crema {
    background-color: #fcf9f4;
}

.empatia-section.fondo-naranja {
    background-color: #e1985c;
}

.empatia-section.fondo-azul {
    background-color: #556fa0;
}

/* Container principal */
.empatia-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Layout invertido: texto izquierda, imagen derecha */
.empatia-container--invertido {
    flex-direction: row-reverse;
}

/* Imagen con marco punteado */
.empatia-image-wrapper {
    flex: 0 0 45%;
    position: relative;
}

.empatia-image-frame {
    position: relative;
    border: 3px dashed #E8B4B8;
    border-radius: 20px;
    padding: 15px;
    background: var(--blanco);
}

.empatia-image-frame::before {
    content: '♪ ♫';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    color: #FFFFFF;
    background: #7C5D7C;
    padding: 8px 20px;
    border-radius: 50px 50px 50px 50px;
}

/* Badge de notas con color según sección */
.fondo-azul .empatia-image-frame::before {
    background: #556fa0;
}

.fondo-turquesa .empatia-image-frame::before {
    background: #88d4f2;
}

.fondo-naranja .empatia-image-frame::before {
    background: #e1985c;
}

.empatia-image-frame img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

/* Contenido derecha */
.empatia-content {
    flex: 1;
    z-index: 2;
}

/* Estilos de empatía movidos a clases globales:
   - Colores: .texto-blanco
   - Tipografía: estilos globales h2, h3, p
   - Manuscrito: .texto-manuscrito
*/

.empatia-btn {
    display: inline-block;
    background: #FFC85B;
    color: #12265a;
    font-family: var(--font-titulo);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 200, 91, 0.4);
}

.empatia-btn:hover {
    background: #FA9DB7;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(250, 157, 183, 0.4);
}

/* ========== COMPONENTES COMPARTIDOS ========== */

/* Intro con margen */
.historia-intro {
    margin-bottom: 40px;
}

/* Contenido centrado con max-width */
.historia-content {
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.historia-galeria {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.historia-img-wrapper {
    flex: 0 0 calc(33.333% - 20px);
    max-width: 300px;
    border-radius: 25px;
    overflow: hidden;
    border: 4px dashed #E8B4B8;
    padding: 10px;
    background: #FFFFFF;
    transition: transform 0.3s ease;
}

.historia-img-wrapper:hover {
    transform: translateY(-8px);
}

.historia-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}

/* Onda separadora */
.wave-separator {
    position: relative;
    margin-top: 60px;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* ========== ESTILOS COMPARTIDOS ========== */
/* Estilos de estadísticas y ondas movidos a waves.css */
/* Badge movido a clases globales: .texto-manuscrito + .texto-blanco + .badge-hero */

/* Título */
.title {
    font-family: var(--font-titulo);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--blanco);
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.12);
}

/* Subtítulo */
.subtitle {
    font-family: var(--font-titulo);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--blanco);
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Descripción */
.description {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--blanco);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 520px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.12);
}

/* Descripción en empatía - estilo manuscrito */
.empatia .description {
    font-family: var(--font-manuscrito);
    font-size: 1.5rem;
    font-style: italic;
}

/* Botón CTA, Decoraciones y Animaciones movidos a archivos separados:
   - button.css
   - decorations.css  
   - animations.css
*/

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .title {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
    
    .badge-hero {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        padding: 100px 20px 0px 20px;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 20px;
        text-align: center;
        margin: 0;
    }
    
    .hero-image {
        position: relative;
        width: 80%;
        height: auto;
        left: auto;
        right: auto;
        bottom: -29px;
        margin: 20px auto -20px;
    }
    
    /* Hero responsive */
    .title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .description {
        max-width: 100%;
    }
    
    /* Empatía responsive - layout específico */
    .empatia-section {
        padding: 40px 20px;
    }
    
    .empatia-container {
        padding: 0 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .empatia-image-wrapper {
        flex: none;
        width: 80%;
        margin: 30px auto 0;
        order: 2;
    }
    
    .empatia-content {
        width: 100%;
        order: 1;
    }
    
    /* Galería responsive */
    .historia-intro {
        margin-bottom: 30px;
    }
    
    .historia-img-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
