/*! Grupo Musical Célula - Clean Stylesheet */

* {
    margin: 0;
    box-sizing: border-box
}

html,
body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background: url('../assets/gallery/background.webp') center/cover no-repeat fixed, #000000;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;

}

a {
    color: white;
    text-decoration: none;
}

.review-now {
    background: linear-gradient(135deg, #8ab5d1 0%, rgba(245, 87, 108, 0.2) 100%);
    color: white;
    display: flex;
    justify-self: center;
    align-self: center;
    padding: 14px 22px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse-widget 4s ease-in-out infinite;
    font-size: 16px;
    text-decoration: none;
    max-width: fit-content;
}

/* ===== SECCIONES PRINCIPALES ===== */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.content-section {
    position: relative;
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== VARIABLES CSS ===== */
:root {
    /* Layout */
    --site-width: 980px;
    --header-height: 55px;
    --mobile-breakpoint: 768px;

    /* Colores */
    --primary-bg: #000000;
    --primary-text: #ffffff;
    --secondary-text: #e0e0e0;
    --content-text: #ffffff;
    --accent-yellow: #FFE100;
    --button-blue: #3d9be9;
    --button-blue-hover: #2b689c;
    --card-bg: rgba(0, 0, 0, 0.8);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --footer-bg: rgba(0, 0, 0, 0.8);

    /* Tipografía */
    --font-header: normal normal normal 50px/1.4em 'Lobster', cursive;
    --font-nav: normal normal bold 15px/1.4em 'Open Sans', Arial, sans-serif;
    --font-body: normal normal normal 20px/1.4em 'Open Sans', Arial, sans-serif;
    --font-title: normal normal normal 25px/1.4em 'Lobster', cursive;
    --font-large: normal normal normal 35px/1.4em 'Open Sans', Arial, sans-serif;
    --font-medium: normal normal normal 27px/1.4em 'Open Sans', Arial, sans-serif;

    /* Espaciado */
    --section-padding: 80px 20px;
    --card-margin: 15px;
    --border-radius: 5px;
    --button-radius: 20px;

    /* Sombras */
    --card-shadow: 6px 13px 7px 5px rgba(0, 0, 0, 0.14);
    --button-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    --image-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== LAYOUT PRINCIPAL ===== */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    position: relative;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--overlay-bg);
    backdrop-filter: blur(10px);
    z-index: 10000;
    /* Higher z-index to ensure it's always on top */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: var(--site-width);
    padding: 0 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--primary-text);
    text-decoration: none;
    font: var(--font-nav);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-text);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--header-height) 20px 40px;
    position: relative;
    overflow: hidden;
    background: url('../assets/gallery/background.webp') center/cover no-repeat, var(--primary-bg);
    background-attachment: fixed;
}

/* Hero Section Background Video */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.hero-video-container .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay to make text more readable */
    z-index: 2;
    /* Above the video but below content */
    pointer-events: none;
    /* Allow clicks to pass through */
}

/* Additional video styling for better cross-browser compatibility */
.hero-background-video {
    /* Better compatibility with various browsers */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;

    /* Optimize rendering */
    -webkit-will-change: transform;
    -moz-will-change: transform;
    -ms-will-change: transform;
    will-change: transform;
}

/* Video responsiveness for different devices */
@media (max-width: 768px) {
    .hero-background-video {
        /* Slightly reduce quality on mobile to preserve performance */
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* On very small devices, consider hiding the video for performance */
    .hero-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        overflow: hidden;
    }

    /* Additional mobile optimizations for performance */
    .persistent-video-container {
        display: block !important;
        /* Mostrar contenedor en móviles */
        background-attachment: scroll !important;
        /* Mejor rendimiento */
    }

    .persistent-video-mobile-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -2;
    }
}


/* Additional mobile video optimizations */
@media (max-width: 480px) {
    .hero-section {
        min-height: 80vh;
        /* Adjust height for smaller screens */
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-logo {
        width: 200px;
        height: 112px;
        margin: 0 auto 20px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}


/* For browsers that don't support the video element */
.no-video-support .hero-video-container {
    display: none;
}



.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 800px;
    max-height: auto;
    text-align: center;
}

.hero-logo {
    width: 390px;
    height: 220px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: contain;
}

.hero-title {
    font: var(--font-title);
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-text);
}

.hero-subtitle {
    font: sans-serif;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.social-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-icon:hover {
    transform: scale(1.1);
}

/* ===== SECCIONES DE CONTENIDO ===== */
.content-section {
    padding: var(--section-padding);
    background: transparent;
    color: var(--content-text);
    position: relative;
    z-index: 1;
}

/* Content sections with white text */
.videos-section,
.hero-section {
    background: transparent;
    color: var(--primary-text);
    position: relative;
    z-index: 1;
}

.section-title {
    font: var(--font-large);
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.section-subtitle {
    font: var(--font-title);
    text-align: center;
    margin-bottom: 40px;
    color: var(--content-text);
}

.section-description {
    font: var(--font-body);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #f0f0f0;
}

/* ===== TARJETAS DE SERVICIOS CON FLIP EFFECT ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-card {
    perspective: 1000px;
    height: 650px;
    position: relative;
    transition: transform 0.3s ease;
    display: block;
    visibility: visible;
    opacity: 1;
    min-width: 380px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: var(--card-bg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-back {
    transform: rotateY(180deg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #000000;
    overflow-y: auto;
}

.service-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: none;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: 30px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-title {
    font-size: 28px;
    color: #2c3e50;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-description {
    font-size: 16px;
    color: var(--content-text);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

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

.service-features li {
    font: var(--font-body);
    color: var(--content-text);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
}

/* ===== ESTILOS PARA CARD BACK (INFORMACIÓN DETALLADA) ===== */


.card-back-subtitle {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
}

.detailed-features {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1;
}

.detailed-features li {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
    transition: color 0.3s ease;
}



.package-highlight {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #f0d000 100%);
    color: var(--primary-bg);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(251, 230, 73, 0.3);
}

.card-back-description {
    font-size: 15px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    text-align: center;
    padding: 15px;
    background: rgba(61, 155, 233, 0.2);
    border-radius: 10px;
    border-left: 4px solid var(--button-blue);
}

.service-card:hover .flip-indicator {
    opacity: 1;
    transform: rotate(180deg);
    background: var(--accent-yellow);
    color: var(--primary-bg);
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--button-radius);
    text-decoration: none;
    font: normal normal normal 14px/1.4em 'Raleway', Arial, sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: var(--button-shadow);
    font-weight: 600;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-yellow);
    color: var(--primary-bg);
    box-shadow: var(--button-shadow);
}

.btn-secondary:hover {
    background: #ffdb3d;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--content-text);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-social .social-icon {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-social .social-icon:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.1);
}

.footer-text {
    font: var(--font-body);
    opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
        max-width: 900px;
        padding: 0 30px;
    }

    .service-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 550px;
        margin: 0 auto;
    }

    .service-card {
        height: 600px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    :root {
        --site-width: 100%;
        --section-padding: 60px 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        z-index: 9999;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .hero-logo {
        width: 280px;
        height: 158px;
        margin: 0 auto 20px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-title {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 30px;
        padding: 0 15px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        height: 550px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        display: block;
        visibility: visible;
        opacity: 1;
        cursor: pointer;
    }

    /* Mantener el efecto flip en móvil pero desactivar hover */
    .service-card:hover {
        transform: none;
    }

    .service-card:hover .card-inner {
        transform: none;
    }

    /* Agregar clase para flip activado por click */
    .service-card.flipped .card-inner {
        transform: rotateY(180deg);
    }

    .card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.8s;
        transform-style: preserve-3d;
    }

    .card-front,
    .card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
    }

    .card-back {
        transform: rotateY(180deg);
        padding: 30px 20px;
    }

    .service-image {
        height: 220px;
        width: 100%;
        display: block;
    }

    .service-content {
        padding: 25px 20px;
        display: block;
    }

    /* Ajuste: reducir tamaño de título en móvil para evitar corte de botones */
    .service-title {
        font-size: 14px;
        /* cambiado a 14px según solicitud */
        color: #ffffff;
        margin-bottom: 10px;
        /* pequeño ajuste de espacio */
        line-height: 1.3;
    }

    .detailed-features {
        display: block;
        visibility: visible;
    }

    .detailed-features li {
        font-size: 14px;
        margin-bottom: 12px;
        display: list-item;
    }

    .section-title {
        font-size: 28px;
    }

    /* Indicador visual de que la tarjeta es clickeable */
    .service-card::after {
        content: "👆 Toca para ver más";
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        z-index: 10;
        pointer-events: none;
        opacity: 0.8;
    }

    .service-card.flipped::after {
        content: "👆 Toca para volver";
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 240px;
        height: 135px;
        margin: 0 auto 20px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .section-title {
        font-size: 24px;
    }

    .service-card {
        height: 500px;
        width: 100%;
        max-width: 100%;
    }

    .service-image {
        height: 180px;
        width: 100%;
    }

    .service-content {
        padding: 20px 15px;
    }

    /* Ajuste adicional para pantallas muy pequeñas */
    .service-title {
        font-size: 14px;
        /* cambiado a 14px según solicitud */
        margin-bottom: 10px;
        color: #ffffff;
        line-height: 1.3;
    }

    .service-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .card-back {
        padding: 25px 15px;
    }

    .detailed-features li {
        font-size: 13px;
        margin-bottom: 10px;
        padding-left: 25px;
    }

    .social-bar {
        gap: 8px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .service-card::after {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ===== UTILIDADES ===== */
.text-center {
    text-align: center;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== SCROLL SUAVE ===== */
html {
    scroll-behavior: smooth;
}


/* ===== ESTADOS DE FOCUS ===== */
.nav-link:focus,
.btn:focus,
.social-icon:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* ===== MEJORAS DE RENDIMIENTO ===== */
.hero-video,
.service-image {
    will-change: transform;
}

.service-card {
    contain: layout style paint;
}

/* Lazy loading para imágenes */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded,
img.loaded {
    opacity: 1 !important;
}

/* Optimización de renderizado */
.gallery-item,
.service-card,
.blog-post-card {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

/* Reducir repaints */
.carousel-track,
.youtube-carousel {
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* ===== COMPATIBILIDAD CON WIX (TRANSICIÓN) ===== */
/* Manten la compatibilidad con IDs existentes durante la transición */
#SITE_HEADER {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--overlay-bg);
    z-index: 1000;
}



/* Imágenes */
.service-image,
.hero-logo {
    max-width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer */
#SITE_FOOTER {
    background: var(--footer-bg) !important;
    color: var(--content-text) !important;
    padding: 40px 20px !important;
    text-align: center;
}

/* ===== OPTIMIZACIONES DE CARGA ===== */
/* Lazy loading para imágenes */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Preload crítico */
.hero-logo,
.nav-menu {
    will-change: auto;
}

/* ===== MODO OSCURO (OPCIONAL) ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(0, 0, 0, 0.9);
        --content-text: #ffffff;
        --secondary-text: #e0e0e0;
        --footer-bg: rgba(0, 0, 0, 0.9);
    }
}

/* ===== SECCIÓN LA BANDA CON VIDEO Y GALERÍA ===== */
.banda-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

/* Video de fondo */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Galería de imágenes */
.gallery-container {
    margin: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    /* Aumentar espacio entre imágenes */
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    max-height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0 !important;
    /* Desactivar completamente el efecto hover en galería */
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 0 !important;
    /* Asegurar que no aparezca en hover */
}

.gallery-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Texto blanco para la sección */
.text-white {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Responsive para galería */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }

    .gallery-item {
        aspect-ratio: 3/2;
    }

    .banda-section .main-content {
        padding: 2rem 1rem;
    }

    .gallery-container {
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .video-background {
        display: none;
        /* Ocultar video en móviles muy pequeños para rendimiento */
    }

    .banda-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
}

/* Lightbox modal para galería (opcional) */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gallery-close:hover {
    color: var(--accent-yellow);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== FORMULARIOS ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font: var(--font-body);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--button-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.3);
}

.form-input:invalid,
.form-select:invalid {
    border-color: #e74c3c;
}

.form-input:valid,
.form-select:valid {
    border-color: #27ae60;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-textarea {
    resize: vertical;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-option {
    color: #333;
}

.form-submit-full {
    width: 100%;
    font-size: 16px;
    padding: 15px 30px;
}

.form-section-title {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===== BLOG Y ARTÍCULOS ===== */
.blog-featured-container {
    margin-bottom: 60px;
}

.post-meta-center {
    margin-bottom: 30px;
    text-align: center;
}

.post-image-container {
    margin-bottom: 30px;
}

.post-image-full {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.post-author-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.author-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-bold {
    font-weight: 600;
    color: #ffffff;
}

.post-stats-small {
    font-size: 13px;
    color: #e0e0e0;
}

.post-body-container {
    font: var(--font-body);
    color: #ffffff;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.post-tags-container {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.post-navigation-container {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.link-no-decoration {
    text-decoration: none;
}

/* ===== PAGINACIÓN ===== */
.pagination-container {
    margin-top: 60px;
    text-align: center;
}

.pagination-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    align-items: center;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.page-link-active {
    background: var(--button-blue);
}

.page-link-inactive {
    background: rgba(0, 0, 0, 0.3);
}

.page-link:hover {
    background: var(--button-blue-hover);
}

.page-link-next {
    margin-left: 10px;
}

/* ===== HERO PERSONALIZADO ===== */
.hero-cotizador {
    min-height: 60vh;
}

.hero-title-large {
    color: var(--primary-text);
    font-size: 48px;
}

/* ===== CONTACTO ===== */
.contact-info-container {
    margin-top: 40px;
    text-align: center;
}

.contact-title {
    font: var(--font-title);
    color: #ffffff;
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== UTILIDADES ===== */
.mt-2 {
    margin-top: 2rem;
}

.mb-20 {
    margin-bottom: 20px;
}

.max-w-600 {
    max-width: 600px;
    margin: 0 auto;
}

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

/* ===== MENÚ MÓVIL ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-text);
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        transform: translateY(0);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9999;
        max-height: 0;
        overflow: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
}

/* ===== LIGHTBOX FULLSCREEN ===== */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: lightboxZoom 0.3s ease;
    transition: opacity 0.15s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 40px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--accent-yellow);
    color: var(--primary-bg);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-yellow);
    color: var(--primary-bg);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
}

.lightbox-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 30px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        bottom: 50px;
        font-size: 16px;
        padding: 8px 20px;
        max-width: 80%;
    }

    .lightbox-counter {
        bottom: 15px;
        font-size: 12px;
        padding: 6px 15px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .site-header,
    .social-bar,
    .btn,
    .video-background,
    .gallery-container {
        display: none;
    }

    .content-section {
        background: white;
        color: black;
    }

    .hero-section {
        min-height: auto;
        padding: 20px;
    }

    .banda-section {
        background: white;
        color: black;
        min-height: auto;
    }
}

/* ===== SECCIÓN DE VIDEOS ===== */
.videos-section {
    padding: var(--section-padding);
    background: var(--primary-bg);
    color: var(--primary-text);
}

.videos-section .section-title {
    color: var(--primary-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.videos-section .section-description {
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Carrusel de videos de YouTube */
.youtube-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 40px;
    /* Espacio para los controles */
}

.youtube-carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.youtube-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%;
    /* 3 grupos = 300% */
}

.youtube-video-group {
    flex: 0 0 33.333%;
    /* Cada grupo ocupa 1/3 del carrusel */
    display: flex;
    gap: 10px;
    margin: 30 px;
}

.youtube-video {
    flex: 1;
    /* Cada video dentro de un grupo ocupa igual espacio */
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.youtube-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.youtube-carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    padding: 0 20px;
    /* Espacio para los controles */
}

.youtube-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Controles del carrusel de YouTube */
.youtube-carousel-container .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.7;
}

.youtube-carousel-container .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.youtube-carousel-container .carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.youtube-carousel-container .carousel-btn-prev {
    left: 10px;
}

.youtube-carousel-container .carousel-btn-next {
    right: 10px;
}

.youtube-carousel-container .carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-yellow);
}

/* Responsive para el carrusel de videos */
@media (max-width: 768px) {
    .youtube-carousel-container {
        padding: 0 20px;
    }

    .youtube-video {
        flex: 0 0 calc(100% - 20px);
        /* Un video a la vez en móviles */
        margin: 0 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-btn-prev {
        left: 5px;
    }

    .carousel-btn-next {
        right: 5px;
    }
}

/* ===== CAROUSEL DE GALERÍA ===== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
    padding: 0 80px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Estilos para el carrusel de galería */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 0 10px;
}

.carousel-track .gallery-item {
    flex: 0 0 auto;
    margin: 0;
}


.carousel-track .gallery-item .gallery-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* El hover específico para carrusel se mantiene ligeramente diferente para efectos de transición */
.carousel-track .gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Controles del carrusel de galería */
.gallery-container .carousel-btn,
.carousel-container .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-container .carousel-btn:hover,
.carousel-container .carousel-btn:hover {
    background: rgba(255, 225, 0, 0.9);
    color: #000;
    border-color: var(--accent-yellow);
    transform: translateY(-50%) scale(1.1);
}

.gallery-container .carousel-btn svg,
.carousel-container .carousel-btn svg {
    width: 24px;
    height: 24px;
}

.gallery-container .carousel-btn-prev,
.carousel-container .carousel-btn-prev {
    left: -60px;
}

.gallery-container .carousel-btn-next,
.carousel-container .carousel-btn-next {
    right: -60px;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-container {
        padding: 0 60px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-btn-prev {
        left: -50px;
    }

    .carousel-btn-next {
        right: -50px;
    }

    .gallery-item {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn-prev {
        left: -45px;
    }

    .carousel-btn-next {
        right: -45px;
    }

    .gallery-item {
        max-height: 200px;
    }
}

.blog-post-featured {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

.post-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-featured:hover .post-img {
    transform: scale(1.05);
}

.post-content {
    padding: 30px;
    color: white;
}

.post-content-card {
    padding: 20px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-category {
    background: var(--accent-yellow);
    color: var(--primary-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-date {
    color: var(--secondary-text);
    font-size: 13px;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--content-text);
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'Open Sans', Arial, sans-serif;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--content-text);
}

.post-stats {
    font-size: 12px;
    color: var(--secondary-text);
}

.post-excerpt {
    font: var(--font-body);
    color: var(--content-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background: transparent;
}

.blog-post-card {
    background: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-10px);
}

.blog-post-card .post-image {
    height: 200px;
}

.pagination {
    margin-top: 60px;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--button-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.page-link:hover {
    background: var(--button-blue-hover);
}

@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-post-featured {
        flex-direction: column;
    }

    .post-image {
        height: 220px;
    }

    .post-content {
        padding: 20px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 18px;
    }

    .post-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--button-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.1);
}

.form-group input:invalid,
.form-group select:invalid {
    border-color: #e74c3c;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #27ae60;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
    color: var(--content-text) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-text);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        transform: translateY(0);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9999;
        max-height: 0;
        overflow: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .cotizador-form {
        padding: 20px !important;
    }

    .celula-chatbot-container {
        --chatbot-primary: #000000;
        --chatbot-secondary: #3D9BE9;
        --chatbot-text: #f8f8f8;
        --chatbot-dark-bg: #333333;
        --chatbot-darker-bg: #222222;
        --chatbot-light-bg: #444444;
        --chatbot-border-radius: 15px;
        --chatbot-box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
        --chatbot-font: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 10000;
        font-family: var(--chatbot-font);
    }

    /* Botón flotante del chatbot */
    .chatbot-toggle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--chatbot-secondary);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: var(--chatbot-box-shadow);
        border: none;
        position: relative;
        transition: transform 0.3s ease;
    }

    .chatbot-toggle:hover {
        transform: scale(1.1);
    }

    .chatbot-icon {
        width: 30px;
        height: 30px;
        filter: brightness(0) invert(1);
    }

    .chatbot-tooltip {
        position: absolute;
        right: 70px;
        background: var(--chatbot-primary);
        color: white;
        padding: 10px 15px;
        border-radius: var(--chatbot-border-radius);
        font-size: 14px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .chatbot-tooltip:after {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        border-width: 8px 0 8px 8px;
        border-style: solid;
        border-color: transparent transparent transparent var(--chatbot-primary);
    }

    .chatbot-toggle:hover .chatbot-tooltip {
        opacity: 1;
    }

    /* Formulario de captura de datos */
    .lead-form {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 350px;
        background: var(--chatbot-darker-bg);
        color: var(--chatbot-text);
        border-radius: var(--chatbot-border-radius);
        box-shadow: var(--chatbot-box-shadow);
        overflow: hidden;
        display: none;
        flex-direction: column;
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        transition: all 0.3s ease;
    }

    .lead-form.active {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .lead-form-header {
        padding: 15px;
        background: var(--chatbot-primary);
        color: white;
        display: flex;
        align-items: center;
    }

    .chatbot-logo {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .lead-form-header h2 {
        flex: 1;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .lead-form-close {
        font-size: 24px;
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0 5px;
    }

    .lead-form-body {
        padding: 20px;
    }

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

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
        color: var(--chatbot-text);
        font-weight: 600;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #555;
        background-color: var(--chatbot-dark-bg);
        color: white;
        border-radius: 8px;
        font-size: 14px;
        font-family: var(--chatbot-font);
    }

    .form-group input::placeholder,
    .form-group select::placeholder {
        color: #aaa;
    }

    .lead-form-submit {
        width: 100%;
        padding: 12px;
        background: var(--chatbot-secondary);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 10px;
        transition: background-color 0.3s;
        font-family: var(--chatbot-font);
    }

    .lead-form-submit:hover {
        background-color: #3287d1;
    }

    .lead-form-privacy {
        font-size: 12px;
        color: #aaa;
        text-align: center;
        margin-top: 15px;
    }

    /* Ventana de chat */
    .chat-window-container {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 350px;
        height: 500px;
        background: var(--chatbot-darker-bg);
        color: var(--chatbot-text);
        border-radius: var(--chatbot-border-radius);
        box-shadow: var(--chatbot-box-shadow);
        overflow: hidden;
        display: none;
        flex-direction: column;
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        transition: all 0.3s ease;
    }

    .chat-window-container.active {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .chat-header {
        padding: 15px;
        background: var(--chatbot-primary);
        color: white;
        display: flex;
        align-items: center;
    }

    .chat-header h2 {
        flex: 1;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .chat-close {
        font-size: 24px;
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0 5px;
    }

    .chat-window {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: var(--chatbot-dark-bg);
    }

    .user-message,
    .bot-message {
        max-width: 80%;
        padding: 12px 15px;
        border-radius: var(--chatbot-border-radius);
        font-size: 14px;
        line-height: 1.5;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .user-message {
        background-color: var(--chatbot-secondary);
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 5px;
    }

    .bot-message {
        background-color: var(--chatbot-light-bg);
        color: white;
        align-self: flex-start;
        border-bottom-left-radius: 5px;
    }

    .bot-message a {
        color: #6dc0ff;
        text-decoration: underline;
    }

    .bot-message strong {
        font-weight: 700;
        color: #ffcc00;
    }

    .chat-input-area {
        display: none;
        padding: 15px;
        border-top: 1px solid #555;
        gap: 10px;
        background-color: var(--chatbot-darker-bg);
    }

    #user-input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #555;
        background-color: var(--chatbot-dark-bg);
        color: white;
        border-radius: 20px;
        font-size: 14px;
        resize: none;
        font-family: var(--chatbot-font);
        max-height: 120px;
        overflow-y: auto;
    }

    #user-input::placeholder {
        color: #aaa;
    }

    .send-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--chatbot-secondary);
        color: white;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .send-btn:hover {
        background-color: var(--chatbot-primary);
    }

    .typing-indicator {
        display: flex;
        align-items: center;
        background-color: var(--chatbot-light-bg);
        color: white;
        padding: 12px 15px;
        border-radius: var(--chatbot-border-radius);
        align-self: flex-start;
        border-bottom-left-radius: 5px;
        margin-bottom: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .typing-indicator span {
        height: 10px;
        width: 10px;
        float: left;
        margin: 0 1px;
        background-color: var(--chatbot-secondary);
        display: block;
        border-radius: 50%;
        opacity: 0.4;
        animation: typing 1s infinite;
    }

    .typing-indicator span:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-indicator span:nth-child(2) {
        animation-delay: 0.3s;
    }

    .typing-indicator span:nth-child(3) {
        animation-delay: 0.6s;
    }

    @keyframes typing {
        0% {
            transform: translateY(0px);
        }

        28% {
            transform: translateY(-5px);
        }

        44% {
            transform: translateY(0px);
        }
    }

    @media (max-width: 600px) {
        .celula-chatbot-container {
            bottom: 20px;
            right: 20px;
        }

        .lead-form,
        .chat-window-container {
            width: 90vw;
            right: -10px;
        }

        .chatbot-tooltip {
            display: none;
        }

        .chat-window-container {
            height: 70vh;
        }
    }


    .floating-event-widget {
        position: fixed;
        z-index: 9999;
        font-family: 'Open Sans', Arial, sans-serif;
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
    }

    .event-main-button {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 14px 22px;
        border-radius: 50px;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        font-weight: 600;
        transition: all 0.3s ease;
        animation: pulse-widget 2s ease-in-out infinite;
    }

    @keyframes pulse-widget {

        0%,
        100% {
            transform: scale(1);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        50% {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
        }
    }

    .floating-event-widget:hover .event-main-button {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
        animation: none;
    }

    .event-icon {
        font-size: 22px;
        animation: rotate-icon 3s ease-in-out infinite;
    }

    @keyframes rotate-icon {

        0%,
        100% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(-10deg);
        }

        75% {
            transform: rotate(10deg);
        }
    }

    .event-text {
        white-space: wrap;
        justify-content: space-evenly;
    }

    .event-options {
        position: relative;
        display: flex;
        flex-direction: column;
        margin-top: 10px;
        opacity: 0;
        gap: 7px;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        pointer-events: all;
        justify-content: space-evenly;
    }

    .floating-event-widget:hover .event-options {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    .event-option {
        background: linear-gradient(135deg, #8ab5d1 0%, rgba(245, 87, 108, 0.2) 100%);
        color: white;
        padding: 12px 20px;
        border-radius: 50px;
        text-decoration: none;
        display: flex;
        align-items: center;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s ease;
        transform: scale(0.95);
        justify-content: space-evenly;
    }

    .floating-event-widget:hover .event-option {
        transform: scale(1);
        opacity: 1;
    }

    .floating-event-widget:hover .event-option:nth-child(1) {
        transition-delay: 0.05s;
    }

    .floating-event-widget:hover .event-option:nth-child(2) {
        transition-delay: 0.1s;
    }

    .floating-event-widget:hover .event-option:nth-child(3) {
        transition-delay: 0.15s;
    }

    .event-option:hover {
        transform: translateX(5px) scale(1.05);
        box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
    }

    .event-option[data-event="xv"]:hover {
        background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    }

    .event-option[data-event="boda"]:hover {
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    }

    .event-option[data-event="privado"]:hover {
        background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    }

    .option-icon {
        font-size: 20px;
    }

    .option-text {
        font-size: 14px;
    }
}

/* ===== ESTILOS PARA ELEMENTOS INLINE EXTRAÍDOS ===== */

/* Hero subtitle con tamaño específico */
.hero-subtitle-small {
    font-size: 22px;
}

/* Testimonial rating bold */
.t-rating-bold {
    font-weight: bold;
    font-size: 1rem;
}

/* Google SVG icon size */
.google-icon-svg {
    height: 1.5rem;
    width: 1.5rem;
}

/* Testimonial footer */
.t-quote-footer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 600;
}

/* Arrow span in testimonial footer */
.t-footer-arrow {
    font-size: 1.2em;
}

/* Footer links container */
.footer-links {
    padding: 20px 0;
    text-align: center;
}

.footer-links p {
    margin-bottom: 10px;
    font-size: 11px;
    color: #ccc;
}

.footer-links a {
    color: #fff;
    text-decoration: underline;
    font-size: 10px;
}

/* GTM noscript iframe */
.gtm-noscript-iframe {
    display: none;
    visibility: hidden;
}