/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    min-height: 600px; /* Altura mínima para móviles pequeños */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
    animation: kenburns 20s ease infinite;
}

@keyframes kenburns {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(22, 33, 62, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-title {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* TODOS LOS TITLE-LINE OCULTOS INICIALMENTE */
.title-line {
    display: block;
    opacity: 0;
}

.title-line:nth-child(1) {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--accent-color);
}

.title-main {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 10px;
    margin: 1rem 0;
    background: linear-gradient(45deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
}

.hero-description {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--accent-color);
    margin-top: 0.5rem;
    animation: scrollLine 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scrollLine {
    0%, 100% { height: 40px; }
    50% { height: 20px; }
}

.slider-controls {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

/* ===================================================================================== */
/*                          ESTILOS PARA EFECTO TYPING                                   */
/* ===================================================================================== */

/* Cursor parpadeante */
.typing-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 5px;
    animation: blink 0.7s infinite;
    color: #D4AF37;
    font-weight: 300;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Clase para mostrar elementos después del typing */
.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===================================================================================== */
/*                              RESPONSIVE DESIGN                                        */
/* ===================================================================================== */

/* Tablets grandes y laptops pequeñas (1024px - 1280px) */
@media (max-width: 1280px) {
    .title-main {
        font-size: 3.8rem;
        letter-spacing: 8px;
    }
    
    .title-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .title-line:nth-child(1) {
        font-size: 1rem;
        letter-spacing: 4px;
    }
    
    .title-main {
        font-size: 3rem;
        letter-spacing: 6px;
        margin: 0.8rem 0;
    }
    
    .title-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .slider-controls {
        bottom: 2rem;
        right: 2rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .hero-scroll {
        bottom: 2rem;
    }
}

/* Móviles en landscape y tablets pequeñas (600px - 768px) */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .title-line:nth-child(1) {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
    
    .title-main {
        font-size: 2.5rem;
        letter-spacing: 5px;
        margin: 0.7rem 0;
    }
    
    .title-subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }
    
    /* Ocultar controles en tablet */
    .slider-controls {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-scroll {
        bottom: 1.5rem;
        font-size: 0.8rem;
    }
    
    .scroll-line {
        height: 30px;
    }
}

/* Móviles grandes (480px - 600px) */
@media (max-width: 600px) {
    .hero {
        min-height: 550px;
    }
    
    .hero-content {
        padding: 0 1.25rem;
    }
    
    .title-line:nth-child(1) {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .title-main {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }
    
    .title-subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.8rem;
    }
    
    .typing-cursor::after {
        margin-left: 3px;
    }
}

/* Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
    .hero {
        min-height: 600px;
    }
    
    .hero-content {
        padding: 0 1rem;
        justify-content: center;
    }
    
    .title-line:nth-child(1) {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .title-main {
        font-size: 1.8rem;
        letter-spacing: 3px;
        margin: 0.5rem 0;
    }
    
    .title-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
        max-width: 280px;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    /* Simplificar controles en móviles pequeños */
    .slider-controls {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-scroll {
        display: none; /* Ocultar en móviles muy pequeños */
    }
    
    .typing-cursor::after {
        font-size: 0.9em;
        margin-left: 2px;
    }
}

/* Móviles muy pequeños (menos de 320px) */
@media (max-width: 375px) {
    .title-main {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    
    .title-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        max-width: 260px;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}

/* Landscape mode para móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .title-line:nth-child(1) {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .title-main {
        font-size: 1.8rem;
        letter-spacing: 3px;
        margin: 0.3rem 0;
    }
    
    .title-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .slider-controls {
        bottom: 0.75rem;
        right: 0.75rem;
    }
}

/* Pantallas ultra anchas (2K y 4K) */
@media (min-width: 1920px) {
    .title-line:nth-child(1) {
        font-size: 1.4rem;
        letter-spacing: 6px;
    }
    
    .title-main {
        font-size: 5.5rem;
        letter-spacing: 12px;
    }
    
    .title-subtitle {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
    
    .hero-description {
        font-size: 1.4rem;
        margin-bottom: 3.5rem;
    }
    
    .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}