/* ==========================================================================
   STYLES.CSS - ESTÉTICA INMERSIVA Y CINÉTICA (ESTILO TRYHOLO.AI)
   - Tipografía SaaS con tracking comprimido y pesos fuertes (700-800)
   - Títulos con movimiento flotante y efecto dinámico
   - Videos e imágenes 100% responsivos, fluidos y sin bordes/marcos
   - Cabecera flotante en cápsula (Floating Pill Navbar) y Dock interactivo
   ========================================================================== */

:root {
    --bg-body: #ffffff;       
    --color-accent: #000000;  
    --color-btn: #000000;
    --color-btn-text: #ffffff;
    --color-text: #333333;
    --color-titulos: #000000; 
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    --bg-header: transparent;
    --blur-header: blur(16px);
    --border-header: 1px solid rgba(255, 255, 255, 0.14);
    --espaciado-seccion: 5.5rem 4%;
    --gap-grid: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, html {
    background-color: var(--bg-body);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   SISTEMA TIPOGRÁFICO Y MOVIMIENTO EN TÍTULOS (KINETIC TYPOGRAPHY)
   ========================================================================== */
h1, h2, h3, h4, .section-title {
    color: var(--color-titulos) !important;
    letter-spacing: -0.035em;
    font-weight: 800;
    line-height: 1.08;
}

@keyframes holoTitleFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.01); }
}

@keyframes holoLinePulse {
    0%, 100% { width: 48px; opacity: 0.65; }
    50% { width: 92px; opacity: 1; }
}

@keyframes holoHeroGlow {
    0%, 100% { text-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 255, 255, 0.12); }
    50% { text-shadow: 0 12px 38px rgba(0, 0, 0, 0.85), 0 0 38px rgba(255, 255, 255, 0.28); }
}

/* Título Principal del Hero con levitación y brillo dinámico */
.hero-content h1,
#titulo-hero {
    color: #ffffff !important;
    font-size: clamp(2.5rem, 6.2vw, 4.8rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.042em !important;
    line-height: 1.03 !important;
    margin-bottom: 1.1rem !important;
    animation: holoTitleFloat 5.5s ease-in-out infinite, holoHeroGlow 4s ease-in-out infinite;
    will-change: transform;
}

/* Subtítulo del Hero */
.hero-content p,
#subtitulo-hero {
    font-size: clamp(1.05rem, 1.8vw, 1.32rem) !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    max-width: 680px;
    margin: 0 auto 2.2rem auto !important;
    opacity: 0.92;
}

/* Títulos de Sección con animación flotante y línea decorativa viva */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4.2vw, 3.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.038em !important;
    line-height: 1.08 !important;
    margin-bottom: 3.2rem !important;
    position: relative;
    display: block;
    animation: holoTitleFloat 6s ease-in-out infinite;
}

.section-title::after {
    content: '';
    display: block;
    height: 4px;
    width: 64px;
    margin: 14px auto 0 auto;
    border-radius: 999px;
    background: var(--color-btn, var(--color-accent));
    animation: holoLinePulse 3.8s ease-in-out infinite;
}

.holo-subsection-title {
    text-align: center;
    font-size: clamp(1.4rem, 2.6vw, 1.95rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    margin-top: 3.2rem;
    margin-bottom: 1.4rem;
    animation: holoTitleFloat 6.5s ease-in-out infinite;
}

/* Efecto Scroll-Reveal (aparecen suavemente al hacer scroll) */
.holo-reveal-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.holo-reveal-ready.holo-visible {
    opacity: 1;
    transform: translateY(0);
}

#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

section, footer {
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   BOTONES PÍLDORA (PILL BUTTONS)
   ========================================================================== */
.btn-main {
    background-color: var(--color-btn, var(--color-accent)) !important;
    color: var(--color-btn-text, var(--bg-body)) !important;
    padding: 0.78rem 1.75rem !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 999px !important;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    width: fit-content;
    margin: 0 auto;
    z-index: 10;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    filter: brightness(1.06);
}

.btn-outline-holo {
    background: transparent !important;
    color: var(--color-titulos) !important;
    border: 1.5px solid var(--color-accent) !important;
    box-shadow: none !important;
}

.btn-outline-holo:hover {
    background: var(--color-btn, var(--color-accent)) !important;
    color: var(--color-btn-text, var(--bg-body)) !important;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.input-error {
    border: 2px solid #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
    transition: 0.3s ease;
}

.success-mark {
    display: none;
    color: #10b981;
    font-size: 3rem;
    text-align: center;
    margin-top: 15px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    z-index: 20;
}

.success-mark.show {
    display: block;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   LOADER Y BANNER SUPERIOR
   ========================================================================== */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 4px solid rgba(128, 128, 128, 0.15);
    border-top: 4px solid var(--color-btn, var(--color-accent));
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-btn, var(--color-accent));
    color: var(--color-btn-text, var(--bg-body));
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    padding: 7px 14px;
    z-index: 10001;
    display: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: top 0.3s ease;
}

.banner-close {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 12px;
    opacity: 0.85;
    transition: 0.2s;
}

.banner-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ==========================================================================
   MURO DE BIENVENIDA FLOTANTE (LEAD GATE)
   ========================================================================== */
#lead-gate {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: auto;
    height: auto;
    background: transparent;
    z-index: 9999990;
    display: flex;
    pointer-events: none;
}

.gate-content {
    background: var(--bg-body);
    color: var(--color-text);
    padding: 1.5rem;
    border-radius: 24px;
    width: 315px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    position: relative;
    pointer-events: auto;
    border: 1px solid rgba(128, 128, 128, 0.2);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(80px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.gate-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: var(--color-titulos);
}

.gate-content p {
    font-size: 0.88rem;
    margin-bottom: 14px;
    line-height: 1.4;
    opacity: 0.85;
}

.gate-content input {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    background: var(--bg-body);
    color: var(--color-text);
    font-size: 0.92rem;
    outline: none;
}

.gate-content input:focus {
    border-color: var(--color-btn, var(--color-accent));
}

.close-gate {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
}

.close-gate:hover {
    opacity: 1;
}

.link-close {
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.65;
    margin-top: 10px;
    display: block;
}

#gate-nombre, #gate-email {
    display: none !important;
}

/* ==========================================================================
   CABECERA FLOTANTE EN CÁPSULA (FLOATING PILL NAVBAR)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.6rem;
    background: var(--bg-header);
    backdrop-filter: var(--blur-header);
    -webkit-backdrop-filter: var(--blur-header);
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1220px;
    border-radius: 999px;
    z-index: 1000;
    border: var(--border-header);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#logo-img {
    max-height: 36px;
    display: none;
}

.header-nombre-derecha {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-accent);
    margin-right: 14px;
}

.icon-nav {
    font-size: 1.35rem;
    cursor: pointer;
    margin-left: 14px;
    position: relative;
    transition: transform 0.2s ease, opacity 0.3s ease;
    color: var(--color-text);
    user-select: none;
}

.icon-nav:hover {
    transform: scale(1.12);
}

.badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 999px;
    display: none;
    font-weight: 800;
}

.menu-container {
    position: relative;
    display: inline-block;
}

.dots-menu-btn {
    font-weight: bold;
    padding: 0 8px;
    font-size: 1.6rem !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 46px;
    background-color: var(--bg-body);
    min-width: 230px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    z-index: 1001;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.18);
    padding: 6px;
}

.dropdown-content.show {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 0.94rem;
    letter-spacing: -0.01em;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--color-btn, var(--color-accent));
    color: var(--color-btn-text, var(--bg-body));
}

/* ==========================================================================
   SECCIÓN HERO Y DOCK INTERACTIVO
   ========================================================================== */
.hero {
    position: relative;
    background-color: #050811;
    text-align: center;
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5% 4.5rem;
    overflow: hidden;
}

#video-hero-bg,
#img-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
    transition: opacity 0.5s ease;
}

#img-hero-bg {
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, rgba(4, 7, 17, 0.92) 0%, rgba(4, 7, 17, 0.4) 55%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    color: #ffffff;
}

.hero-menu-botones {
    display: inline-flex !important;
    justify-content: center;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    position: relative;
    margin: 0 auto 10px auto;
    width: auto;
    max-width: 92vw;
    z-index: 15;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hero-menu-botones::-webkit-scrollbar {
    display: none;
}

.btn-hero-opcion {
    flex: 0 0 auto !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    height: 40px !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    border: none !important;
    border-radius: 999px !important;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap !important;
    scroll-snap-align: center;
}

.btn-hero-opcion:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.btn-hero-opcion.activo {
    background: var(--color-btn, #ffffff) !important;
    color: var(--color-btn-text, #0f172a) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-weight: 700 !important;
}

.btn-sonido {
    position: absolute;
    top: 90px;
    right: 30px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 7px 15px;
    border-radius: 999px;
    cursor: pointer;
    display: none;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================================================
   SECCIONES GENERALES Y ACERCA DE NOSOTROS
   ========================================================================== */
section {
    padding: var(--espaciado-seccion);
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.about-text-content {
    flex: 1 1 340px;
    min-width: 280px;
    font-size: clamp(1.04rem, 1.5vw, 1.2rem);
    line-height: 1.68;
}

.about-media-content {
    flex: 1 1 440px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.about-video {
    width: 100%;
    border-radius: 24px;
    display: none;
    max-height: 460px;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BENTO GRID DE PRODUCTOS, CATEGORÍAS, PORTAFOLIO Y NOTICIAS
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-grid);
    align-items: stretch;
    max-width: 1320px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-body);
    color: var(--color-text);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(128, 128, 128, 0.16);
    height: 100%;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.14);
    border-color: var(--color-accent);
    z-index: 10;
}

.product-img, .product-card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

.btn-fav {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.btn-fav:hover {
    transform: scale(1.12);
}

.btn-fav.active {
    color: #ef4444;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
}

.product-card h3 {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.product-desc {
    font-size: 0.96rem;
    opacity: 0.82;
    margin-top: 8px;
    line-height: 1.55;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    margin: 10px 0 4px 0;
}

/* Tamaños dinámicos de tarjeta */
.product-card.tamano-pequeno { grid-column: span 2 !important; border-radius: 18px; }
.product-card.tamano-pequeno .product-img, .product-card.tamano-pequeno img { height: 90px !important; }
.product-card.tamano-pequeno h3 { font-size: 0.92rem; }
.product-card.tamano-pequeno .product-price { font-size: 1rem; margin: 4px 0; }
.product-card.tamano-pequeno .product-info { padding: 0.8rem; }

.product-card.tamano-estandar { grid-column: span 4 !important; }
.product-card.tamano-estandar .product-img, .product-card.tamano-estandar img { height: 210px !important; }

.product-card.tamano-destacado { grid-column: span 6 !important; border: 2px solid var(--color-accent); }
.product-card.tamano-destacado .product-img, .product-card.tamano-destacado img { height: 290px !important; }
.product-card.tamano-destacado h3 { font-size: 1.65rem; }

.product-card.tamano-hero {
    grid-column: span 12 !important;
    border: 2.5px solid var(--color-accent);
    background: linear-gradient(135deg, var(--bg-body), rgba(128, 128, 128, 0.08));
    flex-direction: row;
    align-items: center;
}
.product-card.tamano-hero .product-img, .product-card.tamano-hero img {
    width: 50% !important;
    height: 100% !important;
    min-height: 360px !important;
    border-right: 1px solid rgba(128, 128, 128, 0.16);
}
.product-card.tamano-hero .product-info { width: 50%; padding: 3rem; justify-content: center; }
.product-card.tamano-hero h3 { font-size: 2.25rem; }

.product-card.tamano-compacto { grid-column: span 3; }
.product-card.tamano-compacto .product-img, .product-card.tamano-compacto img { height: 130px; }

.product-card.tamano-expandido { grid-column: span 6; border: 2px dashed var(--color-accent); }
.product-card.tamano-expandido .product-img, .product-card.tamano-expandido img { height: 240px; }

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-body);
    color: var(--color-text);
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.faq-pregunta {
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
    color: var(--color-titulos);
    margin-bottom: 8px;
}

.faq-respuesta {
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.6;
}

.variante-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid rgba(128, 128, 128, 0.22);
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(128, 128, 128, 0.03);
    font-size: 0.94rem;
}

.variante-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--color-btn, var(--color-accent));
    transform: scale(1.15);
}

/* ==========================================================================
   MODALES Y CARRITO LATERAL
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 17, 0.78);
    z-index: 10005;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
}

.modal-content {
    background: var(--bg-body);
    color: var(--color-text);
    padding: 2rem;
    border-radius: 28px;
    width: 95%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.modal-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.75;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.1);
}

.modal-close:hover {
    opacity: 1;
}

#modal-video {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 14px;
    display: none;
    background: #000;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-body);
    color: var(--color-text);
    z-index: 10010;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

.cart-header, .cart-footer {
    padding: 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-footer {
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    border-bottom: none;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   RESEÑAS Y FORMULARIOS
   ========================================================================== */
.glass-form {
    max-width: 740px;
    margin: 0 auto;
    background: rgba(128, 128, 128, 0.04);
    padding: 2.2rem;
    border-radius: 24px;
    border: 1px solid rgba(128, 128, 128, 0.16);
    position: relative;
}

.glass-form input, .glass-form textarea, .glass-form select {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    background: var(--bg-body);
    color: var(--color-text);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.glass-form input:focus, .glass-form textarea:focus, .glass-form select:focus {
    border-color: var(--color-btn, var(--color-accent));
}

.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    max-width: 1240px;
    margin: 0 auto 2.5rem auto;
}

.resena-card {
    background: var(--bg-body);
    color: var(--color-text);
    padding: 1.6rem;
    border-radius: 22px;
    border: 1px solid rgba(128, 128, 128, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resena-card:hover {
    transform: translateY(-4px);
}

footer {
    text-align: center;
    padding: 4rem 5% 3rem;
    background: rgba(128, 128, 128, 0.04);
    border-top: 1px solid rgba(128, 128, 128, 0.12);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 1.4rem 0;
    flex-wrap: wrap;
}

.social-links a {
    background-color: var(--color-btn, var(--color-accent)) !important;
    color: var(--color-btn-text, var(--bg-body)) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   CHATBOT ASISTENTE VIRTUAL ARIA IA
   ========================================================================== */
#bot-widget {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 99999;
    display: none;
}

#bot-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-btn, var(--color-accent));
    color: var(--color-btn-text, var(--bg-body));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#bot-window {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 84px;
    right: 18px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 110px);
    border-radius: 20px;
    background: var(--bg-body);
    color: var(--color-text);
    border: 1px solid rgba(128, 128, 128, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

#bot-header {
    background: var(--color-btn, var(--color-accent));
    color: var(--color-btn-text, var(--bg-body));
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.bot-close-btn {
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    opacity: 0.85;
}

#bot-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.chat-bot {
    align-self: flex-start;
    background: rgba(128, 128, 128, 0.12);
    color: var(--color-text);
    border-bottom-left-radius: 4px;
}

.chat-user {
    align-self: flex-end;
    background: var(--color-btn, var(--color-accent));
    color: var(--color-btn-text, var(--bg-body));
    border-bottom-right-radius: 4px;
}

#bot-input-area button {
    background: var(--color-btn, var(--color-accent)) !important;
    color: var(--color-btn-text, var(--bg-body)) !important;
}

.bot-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    align-self: flex-start;
    max-width: 95%;
}

.bot-chip {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-btn, var(--color-accent));
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bot-chip:hover {
    background: var(--color-btn, var(--color-accent));
    color: var(--color-btn-text, var(--bg-body));
}

.bot-inline-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--color-btn, var(--color-accent));
    color: var(--color-btn-text, var(--bg-body));
    font-size: 0.76rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.bot-typing {
    font-size: 0.78rem;
    opacity: 0.65;
    font-style: italic;
    align-self: flex-start;
    padding: 4px 10px;
}

/* ==========================================================================
   MODO INMERSIVO SIN MARCOS (ACERCA DE, PORTAFOLIO Y NOTICIAS)
   + DENSIDAD DE INTERFAZ: ESPACIOSO VS COMPACTO
   ========================================================================== */
.about-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.about-video,
#acerca-video,
#acerca-img {
    border: none !important;
    box-shadow: none !important;
    border-radius: 24px !important;
    width: 100% !important;
    object-fit: cover !important;
}

#portafolio-container .showcase-card,
#noticias-container .showcase-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

#portafolio-container .showcase-card:hover,
#noticias-container .showcase-card:hover {
    border: none !important;
    box-shadow: none !important;
    transform: translateY(-5px);
}

.showcase-media-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: none !important;
    background: transparent;
}

.showcase-media {
    width: 100% !important;
    display: block;
    object-fit: cover !important;
    border: none !important;
    border-radius: 24px !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-media {
    transform: scale(1.02);
}

.showcase-info {
    padding: 1.2rem 0.25rem !important;
    background: transparent !important;
}

.showcase-info h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}

/* MODO ESPACIOSO (Videos e imágenes fluidas casi a pantalla completa) */
body.densidad-espacioso #acerca {
    padding-left: 2% !important;
    padding-right: 2% !important;
}

body.densidad-espacioso .about-container {
    flex-direction: column;
    gap: 2.2rem;
}

body.densidad-espacioso .about-text-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    flex: 1 1 auto;
}

body.densidad-espacioso .about-media-content {
    width: 100%;
    flex: 1 1 100%;
}

body.densidad-espacioso .about-video,
body.densidad-espacioso #acerca-video,
body.densidad-espacioso #acerca-img {
    width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    min-height: 320px !important;
}

body.densidad-espacioso #portafolio-container .showcase-card,
body.densidad-espacioso #noticias-container .showcase-card {
    grid-column: span 12 !important;
    margin-bottom: 2.2rem;
}

body.densidad-espacioso #portafolio-container .showcase-media,
body.densidad-espacioso #noticias-container .showcase-media {
    width: 100% !important;
    height: auto !important;
    max-height: 78vh !important;
    min-height: 300px !important;
}

/* MODO COMPACTO */
body.densidad-compacto .about-container {
    flex-direction: row;
    gap: 2rem;
}

body.densidad-compacto .about-video,
body.densidad-compacto #acerca-video,
body.densidad-compacto #acerca-img {
    height: 290px !important;
    max-height: 310px !important;
}

body.densidad-compacto #portafolio-container .showcase-card,
body.densidad-compacto #noticias-container .showcase-card {
    grid-column: span 4 !important;
}

body.densidad-compacto #portafolio-container .showcase-media,
body.densidad-compacto #noticias-container .showcase-media {
    height: 220px !important;
    max-height: 240px !important;
}

/* ==========================================================================
   EMBUDO DE VENTAS DINÁMICO A ANCHO COMPLETO (CONTENIDOS 1, 2 Y 3)
   - Videos tipo background (loop, sin controles, 100vw, object-fit: cover)
   ========================================================================== */
#embudo-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
}

.funnel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.funnel-step,
.funnel-step.funnel-reverse {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    width: 100%;
}

.funnel-text-col {
    width: 100%;
    max-width: 960px;
    padding: 0 5%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.funnel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-btn, var(--color-accent));
    color: var(--color-btn-text, var(--bg-body));
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
}

.funnel-title {
    font-size: clamp(2rem, 4.4vw, 3.4rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.038em !important;
    line-height: 1.06 !important;
    margin-bottom: 1.1rem !important;
    animation: holoTitleFloat 5.5s ease-in-out infinite;
}

.funnel-text {
    font-size: clamp(1.05rem, 1.5vw, 1.24rem);
    line-height: 1.65;
    opacity: 0.88;
    margin-bottom: 1.6rem;
    white-space: pre-line;
    max-width: 780px;
}

.funnel-cta {
    margin: 0 auto !important;
}

/* Contenedor de video de borde a borde (100% ancho de pantalla) */
.funnel-media-col {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.funnel-media {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 78vh !important;
    min-height: 440px !important;
    max-height: 860px !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
    pointer-events: none !important;
    user-select: none !important;
}

/* Ocultar cualquier control nativo en Chrome, Safari, Edge e iOS */
.funnel-media::-webkit-media-controls,
.funnel-media::-webkit-media-controls-enclosure,
.funnel-media::-webkit-media-controls-panel,
.funnel-media::-webkit-media-controls-play-button,
.funnel-media::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ajuste cuando en Configuración se elige densidad "compacto" */
body.densidad-compacto .funnel-wrapper {
    gap: 3.5rem;
}

body.densidad-compacto .funnel-media {
    height: 48vh !important;
    min-height: 300px !important;
    max-height: 460px !important;
}

/* Adaptación en Celulares y Tablets */
@media (max-width: 768px) {
    .funnel-wrapper {
        gap: 3.5rem;
    }

    .funnel-media {
        height: 62vh !important;
        min-height: 320px !important;
        max-height: 540px !important;
    }

    body.densidad-compacto .funnel-media {
        height: 38vh !important;
        min-height: 230px !important;
        max-height: 320px !important;
    }
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    header {
        top: 10px;
        width: calc(100% - 20px);
        padding: 0.55rem 1.1rem;
    }

    .hero-content h1,
    #titulo-hero {
        font-size: clamp(2.1rem, 7.5vw, 2.8rem) !important;
    }

    .hero-content p,
    #subtitulo-hero {
        font-size: 0.96rem !important;
    }

    .section-title {
        font-size: clamp(1.75rem, 6.2vw, 2.25rem) !important;
        margin-bottom: 2.2rem !important;
    }

    .btn-main {
        padding: 0.65rem 1.35rem !important;
        font-size: 0.85rem !important;
    }

    .hero-menu-botones {
        max-width: 96vw !important;
        padding: 5px !important;
        gap: 6px !important;
    }

    .btn-hero-opcion {
        padding: 0 14px !important;
        height: 36px !important;
        font-size: 0.76rem !important;
    }

    .products-grid { gap: 12px !important; } 
    .product-card.tamano-estandar, .product-card.tamano-compacto { grid-column: span 6 !important; max-width: 100% !important; }
    .product-card.tamano-pequeno { grid-column: span 4 !important; max-width: 100% !important; }
    .product-card.tamano-destacado, .product-card.tamano-expandido { grid-column: span 12 !important; max-width: 100% !important; }
    .product-card.tamano-hero { flex-direction: column; }
    .product-card.tamano-hero .product-img, .product-card.tamano-hero img { width: 100% !important; min-height: 200px !important; border-right: none; }
    .product-card.tamano-hero .product-info { width: 100%; padding: 1.4rem !important; }
    .product-card img, .product-card .product-img { height: 135px !important; }
    .product-card.tamano-pequeno img, .product-card.tamano-pequeno .product-img { height: 85px !important; }
    .product-info { padding: 0.85rem !important; }
    .product-card h3 { font-size: 0.95rem !important; line-height: 1.22 !important; margin-bottom: 4px !important; }
    .product-price { font-size: 1rem !important; margin: 4px 0 !important; }
    
    section { padding: 3rem 4% !important; }
    
    .about-video,
    #acerca-video,
    #acerca-img {
        width: 100% !important;
        height: auto !important;
        max-height: 55vh !important;
        min-height: 240px !important;
    }

    .funnel-wrapper { gap: 3rem; }
    .funnel-step, .funnel-step.funnel-reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
    }
    .funnel-text-col { align-items: center; text-align: center; }
    .funnel-cta { margin: 0 auto !important; }

    .funnel-media {
        width: 100% !important;
        height: auto !important;
        max-height: 60vh !important;
        min-height: 240px !important;
    }
    
    #lead-gate { bottom: 15px; left: 50%; transform: translateX(-50%); width: 92%; justify-content: center; }
    .gate-content { width: 100%; max-width: 380px; }

    #bot-window {
        right: 10px;
        bottom: 78px;
        width: calc(100vw - 20px);
        height: 440px;
    }
}