/* ============================================
   HERO SECTION PROFESIONAL - RESPONSIVE
   Diseñado para adaptarse a títulos de cualquier longitud
============================================ */

:root {
    --hero-height-desktop: 70vh;
    --hero-height-tablet: 60vh;
    --hero-height-mobile: 55vh;

/* Colores de overlay sutiles 
--overlay-color: rgba(0, 120, 0, 0.2);
*/
   --overlay-color: rgba(8, 8, 8, 0.3);
    --accent-gold: #F4B942;
    --accent-green: #7DDFAC;
}

/* Contenedor principal del hero */
.hero-section {
    position: relative;
    height: var(--hero-height-desktop);
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* Imagen de fondo */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 1;
}

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

/* Overlay con gradiente sutil */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(244, 185, 66, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(125, 223, 172, 0.06) 0%, transparent 60%);
    z-index: 2;
}

/* Contenedor de partículas */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(250, 180, 40, 0.5);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Contenedor del contenido */
.hero-container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 0 2rem;
}

/* ============================================
   SISTEMA DE TIPOGRAFÍA ADAPTATIVO
============================================ */

.hero-title {
    /* Tipografía Impact para un estilo audaz y llamativo */
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4),
                 0 2px 8px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
}


/* --- TRANSICIÓN MODERNA DEL TEXTO --- */
.hero-title {
    opacity: 0;
    transform: translateY(45px);
    letter-spacing: -1px;
    transition: 
        opacity 1.2s ease-out,
        transform 1.2s ease-out,
        letter-spacing 1.2s ease-out;
}

/* Cuando termine la animación de escritura */
.hero-title.typing-complete {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0;
}














/* Títulos cortos (hasta 15 caracteres) */
.hero-title.title-short {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Títulos medianos (16-25 caracteres) */
.hero-title.title-medium {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Títulos largos (26-35 caracteres) */
.hero-title.title-long {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Títulos extra largos (más de 35 caracteres) */
.hero-title.title-extra-long {
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    line-height: 1.25;
    letter-spacing: -0.005em;
}

/* ============================================
   INDICADOR DE SCROLL
============================================ */

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: scrollBounce 2s infinite ease-in-out;
    z-index: 10;
}


@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* ============================================
   RESPONSIVE - TABLET
============================================ */

@media (max-width: 992px) {
    .hero-section {
        height: var(--hero-height-tablet);
        min-height: 450px;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title.title-short {
        font-size: clamp(3rem, 9vw, 6rem);
    }
    
    .hero-title.title-medium {
        font-size: clamp(2.5rem, 7vw, 5rem);
    }
    
    .hero-title.title-long {
        font-size: clamp(2.2rem, 6vw, 4.2rem);
    }
    
    .hero-title.title-extra-long {
        font-size: clamp(1.8rem, 5vw, 3.5rem);
        line-height: 1.3;
    }
    
    .hero-scroll-indicator {
        bottom: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL
============================================ */

@media (max-width: 768px) {
    .hero-section {
        height: var(--hero-height-mobile);
        min-height: 400px;
    }
    
    .hero-content {
        padding: 0 1.25rem;
    }
    
    .hero-title {
        white-space: normal; /* Permitir saltos de línea en móvil */
        border-right: none; /* Sin cursor en móvil */
        animation: mobileEntrance 1s ease-out 0.3s both;
    }
    
    @keyframes mobileEntrance {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hero-title.title-short {
        font-size: clamp(2.5rem, 8.5vw, 4.5rem);
        line-height: 1.15;
    }
    
    .hero-title.title-medium {
        font-size: clamp(2.2rem, 7vw, 3.8rem);
        line-height: 1.2;
    }
    
    .hero-title.title-long {
        font-size: clamp(1.9rem, 6vw, 3.2rem);
        line-height: 1.25;
    }
    
    .hero-title.title-extra-long {
        font-size: clamp(1.6rem, 5.5vw, 2.8rem);
        line-height: 1.35;
    }
    
    .hero-scroll-indicator {
        bottom: 1.25rem;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL PEQUEÑO
============================================ */

@media (max-width: 480px) {
    .hero-section {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title.title-short {
        font-size: clamp(2.2rem, 9vw, 4rem);
        line-height: 1.2;
    }
    
    .hero-title.title-medium {
        font-size: clamp(1.9rem, 7.5vw, 3.3rem);
        line-height: 1.25;
    }
    
    .hero-title.title-long {
        font-size: clamp(1.7rem, 6.5vw, 2.8rem);
        line-height: 1.3;
    }
    
    .hero-title.title-extra-long {
        font-size: clamp(1.5rem, 6vw, 2.4rem);
        line-height: 1.4;
    }
    
    .hero-scroll-indicator {
        bottom: 1rem;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .particle {
        width: 2px;
        height: 2px;
    }
}

/* ============================================
   OPTIMIZACIONES DE RENDIMIENTO
============================================ */

@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .particle,
    .hero-scroll-indicator {
        animation: none !important;
    }
    
    .hero-scroll-indicator {
        transform: translateX(-50%);
    }
    
    .hero-title {
        opacity: 1;
        transform: none;
        border-right: none;
        width: auto;
        white-space: normal;
    }
}

/* Prevenir el flash sin estilo */
.hero-title:not([class*="title-"]) {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
}