/* ==========================================================================
   CSS PRINCIPAL - LA DINASTÍA VALLENATA YR
   ========================================================================== */

/* 1. CONFIGURACIÓN DE VARIABLES GLOBALES Y COLORES (Diseño Premium) */
:root {
    /* Paleta de Colores Oficial (Noche de Parranda) */
    --color-bg: #151d30;          /* Fondo oscuro profundo */
    --color-bg-card: #151d30;     /* Fondo de tarjetas */
    --color-primary: #00F0FF;     /* Cian eléctrico */
    --color-secondary: #FF6B00;   /* Naranja fuego */
    --color-accent: #FFAE00;      /* Amarillo dorado (folclórico) */
    --color-text: #FFFFFF;        /* Texto principal blanco */
    --color-text-muted: #94A3B8;  /* Texto secundario gris suave */
    --color-border: #223150;      /* Bordes sutiles */
    
    /* Degradados Oficiales */
    --grad-parranda: linear-gradient(135deg, #00F0FF 0%, #FF6B00 100%);
    --grad-folclore: linear-gradient(90deg, #FF6B00 0%, #FFAE00 50%, #00F0FF 100%);
    --grad-overlay: linear-gradient(180deg, rgba(11, 15, 25, 0.4) 0%, rgba(11, 15, 25, 0.85) 100%);
    
    /* Tipografías con Fallbacks Modernos */
    --font-titles: "THE HIDDEN", "Impact", "Arial Black", sans-serif;
    --font-subtitles: "The Blast", "Trebuchet MS", sans-serif;
    --font-body: "Inter", "Montserrat", sans-serif;
    
    /* Transiciones y Sombras */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glow-cian: 0 0 20px rgba(0, 240, 255, 0.35);
    --glow-naranja: 0 0 20px rgba(255, 107, 0, 0.35);
}

/* 2. FUENTES LOCALES REGISTRADAS */
@font-face {
    font-family: 'THE HIDDEN';
    src: url('../fonts/THE_HIDDEN.woff2') format('woff2'),
         url('../fonts/THE_HIDDEN.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Blast';
    src: url('../fonts/The_Blast.woff2') format('woff2'),
         url('../fonts/The_Blast.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 3. RESET Y ESTILOS BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 45%), 
        radial-gradient(circle at 90% 80%, rgba(255, 107, 0, 0.08) 0%, transparent 45%), 
        radial-gradient(circle at 50% 50%, rgba(255, 174, 0, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Auroras de fondo folclóricas */
body::before {
    content: '';
    position: fixed;
    top: 15%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(90px);
}

body::after {
    content: '';
    position: fixed;
    bottom: 10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(90px);
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/* Enlaces de Accesibilidad (Ocultos pero enfocables) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: var(--color-secondary);
    color: #fff;
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    padding: 15px 25px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Contenedores globales */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezados de sección universales */
.section-header {
    margin-bottom: 50px;
}

.section-tagline {
    font-family: var(--font-subtitles);
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    font-weight: normal;
    background: linear-gradient(90deg, #00F0FF, #FFAE00, #FF6B00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: 1px;
    text-shadow: 0 0 35px rgba(0, 240, 255, 0.05);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--grad-folclore);
    margin: 15px auto 0;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-subtitles);
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-parranda);
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
    color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: var(--glow-cian), 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: var(--glow-naranja);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. CABECERA (Header Navigation)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logotipo */
.site-branding .site-title a {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-branding .site-logo,
.site-branding .custom-logo-link {
    max-height: 60px;
    width: auto;
    display: block;
    animation: logo-zoom-bounce 1s ease-out forwards;
}

@keyframes logo-zoom-bounce {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    60% {
        transform: scale(1.12);
        opacity: 1;
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.logo-text-dinastia {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    color: var(--color-text);
    letter-spacing: 1px;
}

.logo-text-vallenata {
    font-family: var(--font-subtitles);
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Menú de navegación (Desktop) */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-family: var(--font-subtitles);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
    color: var(--color-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Botón menú móvil (Oculto en desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.menu-toggle .icon-bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Botón de WhatsApp Header */
.header-cta .btn-cta-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.header-cta .btn-cta-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   5. HERO BANNER (Sección con video de fondo)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Evita que el header fijo pise el contenido */
    /* Fallback estático cuando el video no carga (optimizar ruta según deployment) */
    background-image: url('../images/1.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-text-area {
    max-width: 800px;
    margin: 0 auto;
}

.hero-decorations {
    margin-bottom: 20px;
    font-size: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 480px;
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    position: relative;
    z-index: 4;
    pointer-events: none;
    animation: logo-zoom-bounce 1s ease-out forwards;
    transition: transform 0.25s ease-out;
}

.hero-logo-wrapper {
    display: inline-block;
}

.site-branding .site-logo {
    transition: transform 0.25s ease-out;
}

/* Contenedor del logo que aloja la capa de confeti */
.hero-logo-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.confetti-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 6; /* traer confeti delante del logo */
}

.confetti {
    position: absolute;
    will-change: transform, opacity;
    border-radius: 2px;
    transform-origin: center;
    animation-name: confetti-fall;
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

@keyframes confetti-fall {
    0% { transform: translateY(-10%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(120%) rotate(720deg); opacity: 0; }
}

/* Ajustes de accesibilidad: reducir movimiento si el usuario prefiere menos animación */
@media (prefers-reduced-motion: reduce) {
    .confetti { animation-duration: 0.001s !important; opacity: 0.8; }
}

.decor-confetti {
    margin-right: 15px;
    animation: bounce 2s infinite;
    display: inline-block;
}

.decor-note {
    color: var(--color-primary);
    text-shadow: var(--glow-cian);
    animation: pulse 1.5s infinite alternate;
    display: inline-block;
}

.hero-title {
    margin-bottom: 20px;
}

.title-pre {
    display: block;
    font-family: var(--font-subtitles);
    color: var(--color-secondary);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: var(--glow-naranja);
}

.title-main {
    display: block;
    font-family: var(--font-titles);
    font-size: 4rem;
    font-weight: normal;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px; /* espacio para separar botones del siguiente bloque */
}

/* Icono pequeño usado dentro del botón WhatsApp en el hero */
.whatsapp-icon-btn {
    display: inline-block;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M12.012 2c-5.506 0-9.989 4.478-9.99 9.984a9.96 9.96 0 0 0 1.333 4.982L2 22l5.202-1.364a9.98 9.98 0 0 0 4.804 1.231h.004c5.507 0 9.99-4.477 9.99-9.986 0-2.67-1.037-5.178-2.924-7.067C17.19 3.027 14.685 2 12.012 2zm5.72 14.195c-.247.695-1.236 1.3-1.696 1.385-.436.082-.977.142-2.955-.678-2.529-1.042-4.148-3.623-4.274-3.791-.127-.167-.93-1.235-.93-2.355 0-1.121.587-1.672.796-1.898.21-.226.457-.283.61-.283h.437c.143 0 .33.054.498.463.168.41.576 1.41.626 1.513.05.103.084.223.017.358-.068.134-.102.223-.202.339-.102.116-.211.26-.302.352-.102.103-.207.216-.09.418.117.202.52 1.86 1.116 2.392.77.688 1.42.902 1.622.998.203.096.321.08.439-.057.118-.137.514-.6.652-.806.137-.206.275-.172.463-.103.187.069 1.187.56 1.389.663.202.103.336.154.387.24.05.086.05.498-.198 1.193z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ==========================================================================
   6. INSTRUMENTOS (El Alma de la Parranda)
   ========================================================================== */
.instruments-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(21, 29, 48, 0.4) 100%);
    border-bottom: 1px solid var(--color-border);
}

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.instrument-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Efecto de borde dinámico en hover */
.instrument-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.accordion-card:hover::before { background: var(--color-primary); }
.caja-card:hover::before { background: var(--color-secondary); }
.guacharaca-card:hover::before { background: var(--color-accent); }

.instrument-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
}

.accordion-card:hover { box-shadow: var(--glow-cian); }
.caja-card:hover { box-shadow: var(--glow-naranja); }
.guacharaca-card:hover { box-shadow: 0 0 20px rgba(255, 174, 0, 0.25); }

.instrument-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(255,255,255,0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    transition: var(--transition);
}

.instrument-card:hover .instrument-icon-wrapper {
    transform: scale(1.1);
    background-color: rgba(255,255,255,0.08);
}

.instrument-name {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--color-text);
    margin-bottom: 15px;
}

.instrument-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   7. TARIFAS Y SERVICIOS
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.service-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 25px;
}

.service-name {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    font-weight: normal;
    color: #fff;
    margin-bottom: 15px;
}

.service-price {
    font-family: var(--font-subtitles);
    color: var(--color-primary);
}

.service-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.service-price .amount {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.service-price .period {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.service-features ul {
    list-style: none;
    margin-bottom: 35px;
}

.service-features li {
    padding: 10px 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.service-features li strong {
    color: #fff;
}

.service-features li::before {
    content: '✓';
    color: var(--color-primary);
    margin-right: 10px;
    font-weight: bold;
}

.service-footer {
    text-align: center;
}

.service-footer .btn {
    width: 100%;
}

/* Tarjeta destacada (Show Dinastía Completa) */
.popular-plan {
    border-color: var(--color-secondary);
    box-shadow: var(--glow-naranja);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: #fff;
    font-family: var(--font-subtitles);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    padding: 6px 20px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* ==========================================================================
   8. GALERÍA MULTIMEDIA
   ========================================================================== */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(21, 29, 48, 0.3) 100%);
    border-top: 1px solid var(--color-border);
}

.gallery-slider-wrapper {
    position: relative;
    margin-top: 30px;
    width: 100%;
}

.gallery-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 50px 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255,255,255,0.18);
    background: rgba(11, 15, 25, 0.85);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.gallery-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 50px 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .gallery-slider {
        padding: 20px 30px 40px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        border-width: 1px;
        background: rgba(11, 15, 25, 0.75);
    }

    .gallery-arrow::before {
        width: 10px;
        height: 10px;
    }
}

.gallery-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.15);
}

.gallery-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    display: inline-block;
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.prev::before {
    transform: rotate(-135deg);
}

.gallery-arrow.next {
    right: 10px;
}

.gallery-arrow.next::before {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .gallery-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Estilización de la barra de desplazamiento del carrusel */
.gallery-slider::-webkit-scrollbar {
    height: 8px;
}

.gallery-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.gallery-slider::-webkit-scrollbar-thumb {
    background: var(--grad-parranda);
    border-radius: 10px;
}

.gallery-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-card);
    transition: var(--transition);
    margin: 0;
}

.gallery-slide img,
.gallery-slide video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
    cursor: default; /* Quita el cursor de puntero/click */
}

.gallery-slide video {
    display: block;
    background: #000;
}

.gallery-slide--video .video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.16);
}

.gallery-slide--video .video-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(11, 15, 25, 0) 38%, rgba(11, 15, 25, 0.32) 68%, rgba(11, 15, 25, 0.68) 100%);
    background-size: 12px 12px, 12px 12px, auto;
    opacity: 0.18;
    pointer-events: none;
    z-index: 2;
}

.gallery-slide--video .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    outline: none;
    z-index: 3;
}

.gallery-slide--video .video-play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
}

.gallery-slide--video .video-play-icon:hover {
    background: rgba(0, 0, 0, 0.55);
}

.gallery-slide--video .video-volume-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    outline: none;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 12px 28px rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
}

.gallery-slide--video .video-volume-icon::before {
    content: '🔊';
    font-size: 20px;
    color: #fff;
    line-height: 1;
    display: block;
}

.gallery-slide--video .video-volume-icon.muted::before {
    content: '🔇';
}

.gallery-slide--video .video-volume-icon::after {
    display: none;
}

.gallery-slide--video video {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.gallery-slide--video .video-wrapper:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.05);
}


.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.9);
    color: var(--color-text);
    padding: 15px 20px;
    font-family: var(--font-subtitles);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
    transition: var(--transition);
}

.gallery-slide--video .gallery-caption {
    position: relative;
    width: 100%;
    background: rgba(11, 15, 25, 0.92);
    color: var(--color-text);
    padding: 10px;
    font-family: var(--font-subtitles);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.gallery-slide--video .gallery-caption::before {
    content: '';
    display: block;
    height: 1px;
    width: 40px;
    margin: 0 auto 12px;
    background: linear-gradient(90deg, #00F0FF, #FFAE00, #FF6B00);
}

.gallery-slide:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--glow-cian);
}

.gallery-slide:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   9. SECCIÓN DE CONTACTO
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-text h2 {
    font-family: var(--font-titles);
    font-size: 2.8rem;
    font-weight: normal;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.contact-text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-urgency {
    background-color: rgba(255, 107, 0, 0.08);
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 12px 12px 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.urgency-icon {
    font-size: 1.8rem;
    animation: pulse 1s infinite alternate;
}

.contact-urgency p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Formulario */
.contact-form-wrapper {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.contact-map-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(6, 12, 28, 0.98) 0%, rgba(11, 15, 25, 1) 100%);
}

.contact-map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-map-frame,
.contact-map-info {
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 15, 25, 0.92);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-map-frame {
    min-height: 520px;
}

.contact-map-info {
    padding: 30px;
    text-align: center;
}

.contact-map-info .section-title {
    color: #fff;
}

.contact-map-info p {
    margin: 0 auto 28px;
    max-width: 560px;
    color: var(--color-text-muted);
}

.contact-map-cards {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.contact-map-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    text-align: center;
}

.contact-map-card h3 {
    font-family: var(--font-subtitles);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.contact-map-card p,
.contact-map-card a {
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-map-info p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.contact-map-cards {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.contact-map-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 24px;
}

.contact-map-card h3 {
    font-family: var(--font-subtitles);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--color-secondary);
}

.contact-map-card p,
.contact-map-card a {
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-map-card a:hover {
    color: var(--color-primary);
}

.contact-map-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.contact-map-frame iframe {
    min-height: 420px;
    width: 100%;
    display: block;
    flex: 1;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.58);
    padding: 14px 18px;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-subtitles);
    font-size: 0.92rem;
    backdrop-filter: blur(4px);
}

@media (max-width: 1024px) {
    .contact-map-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-map-info,
    .contact-map-frame {
        padding: 30px 20px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--color-text);
    font-family: var(--font-subtitles);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--glow-cian);
}

.btn-submit {
    width: 100%;
}

/* ==========================================================================
   10. PIE DE PÁGINA (Footer)
   ========================================================================== */
.site-footer {
    background-color: #060910;
    border-top: 1px solid var(--color-border);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-text {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    font-weight: normal;
    color: #fff;
    margin-bottom: 15px;
}

.footer-slogan {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 30px;
}

/* Redes Sociales Footer */
.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.facebook:hover { background-color: #3b5998; border-color: #3b5998; box-shadow: 0 0 15px rgba(59, 89, 152, 0.4); }
.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); border-color: transparent; box-shadow: 0 0 15px rgba(214, 36, 159, 0.4); }
.youtube:hover { background-color: #ff0000; border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }

/* Iconos de Redes Sociales (Carácter temporal o CSS Icons) */
.social-icon::before {
    font-family: sans-serif;
    font-weight: bold;
}
.facebook-icon::before { content: 'f'; font-family: 'Trebuchet MS', sans-serif; }
.instagram-icon::before { content: '📸'; font-size: 0.95rem; }
.youtube-icon::before { content: '▶'; font-size: 0.85rem; }

/* Contacto Footer */
.footer-contact .footer-heading {
    font-family: var(--font-subtitles);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: #fff;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
}

.contact-link {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

.contact-link:hover {
    color: var(--color-primary);
}

/* Copyright Footer */
.footer-bottom {
    background-color: #04060b;
    border-top: 1px solid rgba(255,255,255,0.02);
    padding: 25px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}

/* ==========================================================================
   11. ANIMACIONES
   ========================================================================== */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

/* preloader visual */
.intro-loader {
    display: none; /* Por ahora oculto hasta programar el Javascript en la Fase 5 */
}

/* ==========================================================================
   12. DISEÑO RESPONSIVO (Media Queries)
   ========================================================================== */

/* Tablets y pantallas intermedias */
@media (max-width: 992px) {
    .site-header {
        padding: 10px 0;
    }

    .main-navigation {
        display: none; /* En la Fase 5 usaremos JS para el menú móvil */
    }

    .menu-toggle {
        display: flex;
    }

    .title-main {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Dispositivos Móviles (Mobile First) */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        max-width: 320px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .popular-plan {
        transform: scale(1);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==========================================================================
   13. BOTÓN FLOTANTE DE WHATSAPP PERMANENTE
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-floating::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-ping 2s infinite ease-in-out;
    opacity: 0.7;
}

.whatsapp-floating-icon {
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><path d='M12.012 2c-5.506 0-9.989 4.478-9.99 9.984a9.96 9.96 0 0 0 1.333 4.982L2 22l5.202-1.364a9.98 9.98 0 0 0 4.804 1.231h.004c5.507 0 9.99-4.477 9.99-9.986 0-2.67-1.037-5.178-2.924-7.067C17.19 3.027 14.685 2 12.012 2zm5.72 14.195c-.247.695-1.236 1.3-1.696 1.385-.436.082-.977.142-2.955-.678-2.529-1.042-4.148-3.623-4.274-3.791-.127-.167-.93-1.235-.93-2.355 0-1.121.587-1.672.796-1.898.21-.226.457-.283.61-.283h.437c.143 0 .33.054.498.463.168.41.576 1.41.626 1.513.05.103.084.223.017.358-.068.134-.102.223-.202.339-.102.116-.211.26-.302.352-.102.103-.207.216-.09.418.117.202.52 1.86 1.116 2.392.77.688 1.42.902 1.622.998.203.096.321.08.439-.057.118-.137.514-.6.652-.806.137-.206.275-.172.463-.103.187.069 1.187.56 1.389.663.202.103.336.154.387.24.05.086.05.498-.198 1.193z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes whatsapp-ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Ajustes responsivos para el carrusel en móviles */
@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 calc(50% - 12px);
    }
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-floating-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 576px) {
    .gallery-slide {
        flex: 0 0 90%;
    }
}
