:root {
    /* Sistema de diseño */
    --primary-color: #ffae00;
    --primary-dark: #e69e00; /* Mejor contraste para accesibilidad */
    --secondary-color: #6c757d;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
    --overlay-opacity: 0.7;
    
    /* Espaciados */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem; /* Nuevo tamaño para mayor escalabilidad */
    
    /* Header */
    --header-height: 90px;
    
    /* Bordes */
    --border-radius: 8px;
    --border-radius-lg: 12px; /* Nueva variable para bordes más grandes */
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.15); /* Sombra para hover */
}

/* Reset y base mejorado */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base explícita para unidades rem */
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; /* Mejor stack de fuentes */
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased; /* Mejor renderizado en WebKit */
    text-rendering: optimizeLegibility; /* Optimización de texto */
}

/* Botón WhatsApp Flotante mejorado */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--box-shadow);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float img {
    width: 100%; /* Mejor proporción para el ícono */
    height: auto;
    transition: transform 0.3s ease;
}

.whatsapp-float i {
    display: block;
    font-size: 1.8rem; /* Usando rem para escalabilidad */
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: var(--box-shadow-hover);
    text-decoration: none;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

/* Header mejorado */
.main-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(0, 0, 0, 0.85);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Soporte para Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

/* Logo optimizado */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: var(--space-xs) 0; /* Espaciado consistente */
}

.logo img {
    height: auto;
    max-height: 70%; /* Más espacio para el header */
    width: auto;
    max-width: 180px; /* Control de ancho máximo */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navegación mejorada */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    margin: 0 var(--space-md);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón CTA mejorado */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem; /* Padding más equilibrado */
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent; /* Para hover states */
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Contenido principal optimizado */
main {
    min-height: calc(100vh - var(--header-height));
    position: relative;
    z-index: 1;
    overflow-x: hidden; /* Previene scroll horizontal */
}

/* Hero Section mejorada */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0; /* Modern replacement for top/right/bottom/left */
    background-color: rgba(0, 0, 0, var(--overlay-opacity));
}

.hero-content {
    position: relative;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    color: var(--text-light);
    padding: var(--space-lg);
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Rango más amplio */
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.75rem); /* Tamaño máximo aumentado */
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

/* Botones mejorados */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Sección "Quiénes Somos" mejorada */
.about {
    padding: var(--space-xl) 5%;
    background-color: var(--light-color);
    text-align: center;
    position: relative;
}

.about-content {
    max-width: 1000px; /* Ancho aumentado */
    margin: 0 auto;
    position: relative;
}

.studio-name {
    color: var(--text-dark);
    margin: var(--space-sm) 0;
    font-size: 2.5rem;
    line-height: 1.2;
}

.about-text {
    text-align: center; /* Centrado para mejor lectura */
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.about-text p {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.location {
    font-weight: 600;
    color: var(--secondary-color);
    font-style: italic;
    display: inline-block;
    margin-top: var(--space-sm);
}

/* Momentos Destacados mejorado */
.highlights-section {
    max-width: 1400px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Más flexible */
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.highlight-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.highlight-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.05);
}

.highlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 70%);
}

.highlight-content {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.highlight-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.highlight-content p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.highlight-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}
/* ===== ESTILOS DEL FOOTER ELEGANTE ===== */
.site-footer {
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 174, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.satellite-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.satellite-link:hover {
    color: white;
    transform: translateX(5px);
}

.satellite-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.satellite-link:hover::after {
    width: 100%;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.satellite-link:hover .arrow-icon {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-left p {
        font-size: 0.8rem;
    }
    
    .satellite-link {
        font-size: 0.9rem;
    }
}
/* Animaciones mejoradas */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive Design Mejorado */
@media (max-width: 992px) {
    :root {
        --header-height: 80px;
    }
    
    .nav-menu {
        gap: var(--space-sm);
    }
    
    .hero-content {
        padding: var(--space-md);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav-menu {
        display: none; /* Considerar menú hamburguesa */
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .highlight-image {
        height: 200px;
    }
    
    .btn {
        min-width: 160px;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: auto;
        min-height: calc(100vh - var(--header-height));
        padding: var(--space-xl) 0;
    }
    
    #hero-video {
        display: none; /* Considerar imagen de respaldo en móviles */
    }
    
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
    }
}

/* Header mejorado para móviles */
.main-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

/* Logo optimizado para móviles */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Menú hamburguesa */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Navegación principal */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    margin: 0 var(--space-md);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1rem;
}

/* CTA para desktop */
.header-cta {
    display: block;
}

/* CTA para móviles (oculto en desktop) */
.mobile-cta {
    display: none;
}

/* ===== ESTILOS RESPONSIVE ===== */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .logo img {
        max-width: 140px;
    }
    
    .nav-menu {
        gap: var(--space-sm);
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        padding-top: var(--header-height);
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        padding: var(--space-md);
        margin: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-sm);
        text-align: center;
        font-size: 1.1rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-cta {
        display: block;
        width: 80%;
        margin-top: var(--space-md);
        padding: 0 var(--space-md);
    }
    
    /* Animación del botón hamburguesa */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    .main-nav {
        width: 100%;
        max-width: none;
    }
}