/* ============================================
   Variables locales del módulo Hero
   ============================================ */
:root {
    --accent: #651fff;
    --accent-hover: #5311e0;
    --accent-light: rgba(101, 31, 255, 0.12);
    --text-sm: 0.875rem;
    --text-xs: 0.75rem;
    --text-lg: 1.125rem;
    --text-base: 1rem;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --radius-lg: 12px;
    --transition-base: all 0.25s ease-in-out;
    --font-mono: monospace;
}

/* ── Section wrapper ── */
section.hero {
    position: relative !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    width: 100% !important;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    background: transparent !important;
    margin: 0;
    padding: 100px 0 0 0;
}

/* ── Video ── */
section.hero > video.hero__video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    z-index: 0;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

/* ── Gradient overlay ── */
.hero__overlay {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.0) 35%,
        rgba(0, 0, 0, 0.0) 100%
    );
}

/* ── Content block ── */
.hero__content {
    position: relative !important;
    padding: 0 clamp(24px, 4vw, 64px) clamp(32px, 5vh, 72px);
    z-index: 2;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.15);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.02em;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: heroBadgePulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: var(--weight-extrabold);
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 14px 0;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 850px;
}

.hero__title-accent {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
}

.hero__desc {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 650px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Ajustes de botones dentro de Hero (para resetear Materialize) */
.hero .hero__actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    height: 52px !important;
    padding: 0 32px !important;
    font-size: 15px !important;
    transition: var(--transition-base) !important;
    text-transform: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    border: none !important;
    letter-spacing: 0.02em !important;
}

.hero .hero__actions .btn-primary {
    background-color: var(--accent) !important;
    color: #fff !important;
}

.hero .hero__actions .btn-primary:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-2px);
}

.hero .hero__actions .btn-outline {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.hero .hero__actions .btn-outline:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

.hero__trust {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ── Tarjetas de módulos rápidos (glass) ── */
.hero__stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-width: 100px;
    transition: var(--transition-base);
    text-shadow: none;
}

.hero__stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero__stat-code {
    font-size: var(--text-lg);
    font-weight: var(--weight-extrabold);
    color: #ffffff;
    margin-bottom: 2px;
}

.hero__stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

/* ── Controles de Video (abajo-derecha) ── */
.hero__control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition-base);
}

.hero__control-btn:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.40) !important;
    transform: scale(1.08);
}

.hero__snd {
    width: 20px;
    height: 20px;
    display: none;
    max-width: none;
    max-height: none;
}

/* ── Transparent navbar integration ── */
.header--hero-mode {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

.header--hero-mode .main-menu li a.btn-flat {
    color: rgba(255, 255, 255, 0.75) !important;
}

.header--hero-mode .main-menu li a.btn-flat:hover,
.header--hero-mode .main-menu li a.btn-flat.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.header--hero-mode .btn-acceder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header--hero-mode .btn-acceder:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.header--hero-mode .menu-setting button {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header--hero-mode .menu-setting button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.header--hero-mode .hamburger-inner,
.header--hero-mode .hamburger-inner::before,
.header--hero-mode .hamburger-inner::after {
    background-color: #fff !important;
}

/* Scrolled headers */
.header--hero-mode.scrolled {
    background: #121212 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.header--hero-mode.scrolled .main-menu li a.btn-flat {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .hero__content {
        padding: 0 20px 32px 20px;
    }

    .hero__badge {
        display: none !important;
    }

    .hero__title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .hero__desc {
        font-size: 0.9rem;
        max-width: none;
        margin-bottom: 20px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero .hero__actions .btn {
        width: 100% !important;
        text-align: center !important;
    }

    .hero__stats {
        gap: 8px;
    }

    .hero__stat-card {
        min-width: 80px;
        padding: 8px 12px;
    }

    .hero__stat-code {
        font-size: var(--text-base);
    }

    .hero__controls {
        bottom: 20px !important;
        right: 20px !important;
    }

    .hero__control-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .hero__trust {
        flex-direction: column;
        gap: 4px;
    }

    .hero__dot {
        display: none;
    }
}

/* Evitar que los títulos decorativos absolutos floten al header */
.parallax-title {
    position: relative !important;
}

/* Centrado vertical y horizontal robusto, diseño de vidrio premium y resplandor neón para la tarjeta de video */
#ai-about .video {
    margin: 32px auto !important;
    max-width: 480px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    float: none !important;
    
    /* Degradado de cristal y desenfoque (Glassmorphic) */
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.15) 0%, rgba(3, 169, 244, 0.1) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    
    /* Resplandor (Glow) morado/azul de acento */
    box-shadow: 0 20px 40px rgba(101, 31, 255, 0.25), 0 0 100px rgba(3, 169, 244, 0.15) !important;
    transition: all 0.4s ease-in-out !important;
}

/* Hover de la tarjeta */
#ai-about .video:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 25px 50px rgba(101, 31, 255, 0.35), 0 0 120px rgba(3, 169, 244, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Transparencia para el contenedor de la imagen */
#ai-about .video figure {
    background: transparent !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Mayor nitidez y presentación de la imagen */
#ai-about .video figure img {
    opacity: 0.85 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Rediseño premium del botón de play */
#ai-about .play-btn {
    position: absolute !important;
    width: 80px !important;
    height: 80px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(101, 31, 255, 0.85) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 30px rgba(101, 31, 255, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#ai-about .play-btn:hover {
    background: rgba(101, 31, 255, 1) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 0 45px rgba(101, 31, 255, 0.9) !important;
    border-color: #ffffff !important;
}

#ai-about .play-btn i:before {
    color: #ffffff !important;
    font-size: 48px !important;
}

/* Adaptación del vidrio y sombra en tema claro */
.theme--light #ai-about .video {
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.08) 0%, rgba(255, 255, 255, 0.75) 100%) !important;
    border: 1px solid rgba(101, 31, 255, 0.12) !important;
    box-shadow: 0 15px 35px rgba(101, 31, 255, 0.1), 0 0 60px rgba(101, 31, 255, 0.05) !important;
}

.theme--light #ai-about .video:hover {
    box-shadow: 0 20px 45px rgba(101, 31, 255, 0.15), 0 0 80px rgba(101, 31, 255, 0.08) !important;
}


/* ── Estilos de Tema Claro (Theme Light) ── */

/* Tarjetas de estadísticas rápidas (glass claro) */
.theme--light .hero__stat-card {
    border-color: rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.theme--light .hero__stat-card:hover {
    border-color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

.theme--light .hero__stat-code {
    color: #121212 !important;
}

.theme--light .hero__stat-label {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Integración de barra de navegación transparente en tema claro */
.theme--light .header--hero-mode .main-menu li a.btn-flat {
    color: rgba(0, 0, 0, 0.7) !important;
}

.theme--light .header--hero-mode .main-menu li a.btn-flat:hover,
.theme--light .header--hero-mode .main-menu li a.btn-flat.active {
    color: #000 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.theme--light .header--hero-mode .btn-acceder {
    color: rgba(0, 0, 0, 0.7) !important;
}

.theme--light .header--hero-mode .btn-acceder:hover {
    color: #000 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.theme--light .header--hero-mode .menu-setting button {
    color: rgba(0, 0, 0, 0.7) !important;
}

.theme--light .header--hero-mode .menu-setting button:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

.theme--light .header--hero-mode .hamburger-inner,
.theme--light .header--hero-mode .hamburger-inner::before,
.theme--light .header--hero-mode .hamburger-inner::after {
    background-color: #000 !important;
}

/* ── Trust Bar (prueba social bajo el hero) ── */
.trust-bar {
    padding: 64px 0 56px;
    background: linear-gradient(180deg, transparent 0%, rgba(101, 31, 255, 0.04) 50%, transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.theme--light .trust-bar {
    background: linear-gradient(180deg, transparent 0%, rgba(101, 31, 255, 0.02) 50%, transparent 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-bar__head {
    text-align: center;
    margin-bottom: 32px;
}

.trust-bar__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.55;
    margin: 0;
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.trust-bar__item:hover {
    transform: translateY(-4px);
    color: inherit;
}
.theme--dark .trust-bar__item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.theme--dark .trust-bar__item:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.theme--light .trust-bar__item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.theme--light .trust-bar__item:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.trust-bar__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    color: #fff;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    background-image: linear-gradient(135deg, #651fff 0%, #7c4dff 100%);
}

.trust-bar__icon--tiendas      { background-image: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important; }
.trust-bar__icon--restaurantes { background-image: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%) !important; }
.trust-bar__icon--droguerias   { background-image: linear-gradient(135deg, #2196F3 0%, #1565C0 100%) !important; }
.trust-bar__icon--talleres     { background-image: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%) !important; }
.trust-bar__icon--salones      { background-image: linear-gradient(135deg, #E91E63 0%, #AD1457 100%) !important; }
.trust-bar__icon--ferreterias  { background-image: linear-gradient(135deg, #FF9800 0%, #E65100 100%) !important; }

.trust-bar__icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #fff;
    fill: none;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
    max-width: 24px;
    max-height: 24px;
    position: relative;
}

.trust-bar__text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.trust-bar__item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
}
.theme--dark .trust-bar__item strong { color: #fff; }
.theme--light .trust-bar__item strong { color: #1a1a1a; }

.trust-bar__item span {
    display: block;
    font-size: 0.82rem;
    opacity: 0.65;
    line-height: 1.3;
}

.trust-bar__cta {
    text-align: center;
    padding-top: 24px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}
.theme--light .trust-bar__cta {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.trust-bar__cta p {
    font-size: 1rem;
    margin: 0 0 18px;
    opacity: 0.85;
    line-height: 1.5;
}
.trust-bar__cta strong {
    color: #651fff;
    font-weight: 700;
}

.trust-bar__btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-bar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    color: #fff;
}

/* ── Responsive: 2 columnas en tablet, 1 en mobile ── */
@media (max-width: 899px) {
    .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
    .trust-bar { padding: 48px 0 44px; }
    .trust-bar__head { margin-bottom: 24px; }
    .trust-bar__grid { grid-template-columns: 1fr; gap: 12px; }
    .trust-bar__item { padding: 16px 18px; }
    .trust-bar__icon {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        max-width: 42px;
        max-height: 42px;
    }
    .trust-bar__icon svg {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px;
        max-height: 22px;
    }
}

