/* -------------------- */
/* RESET Y VARIABLES */
/* -------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy-base: #0a1424;
    --navy-elevated: #111c2e;
    --steel: #1e3a5f;
    --blue-accent: #2c7be5;
    --sky-light: #63b3ed;
    --accent-soft: #90cdf4;
    --silver-text: #cbd5e1;
    --silver-muted: #94a3b8;
    --white-pure: #ffffff;
    --glass-border: rgba(44, 123, 229, 0.25);
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--navy-base);
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--silver-text);
}

:focus-visible {
    outline: 3px solid var(--sky-light);
    outline-offset: 3px;
    border-radius: 4px;
}

.page {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--navy-base);
}

/* -------------------- */
/* HEADER / NAVEGACIÓN */
/* -------------------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 20, 36, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
}

/* -------------------- */
/* HERO */
/* -------------------- */
.hero {
    padding: 60px 32px 80px;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(44, 123, 229, 0.08), transparent 60%);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--sky-light);
    background: rgba(44, 123, 229, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 6px 16px;
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky-light);
    animation: blink 1.8s infinite;
    display: inline-block;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--white-pure);
    line-height: 1.2;
    max-width: 700px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: normal;
    color: var(--sky-light);
    border-bottom: 2px solid var(--blue-accent);
}

.hero-desc {
    font-size: 16px;
    color: var(--silver-text);
    max-width: 580px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-p {
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 40px;
    background: var(--blue-accent);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-p:hover,
.btn-p:focus {
    background: #1a68d1;
    transform: scale(0.98);
}

.btn-s {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 40px;
    background: transparent;
    color: var(--silver-text);
    border: 1px solid var(--silver-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-s:hover,
.btn-s:focus {
    border-color: var(--sky-light);
    color: var(--sky-light);
    background: rgba(99, 179, 237, 0.05);
}

/* -------------------- */
/* BANNER ROTATIVO (CARRUSEL DE STATS) */
/* -------------------- */
.stats-carousel {
    background: var(--navy-elevated);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 40px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(44, 123, 229, 0.15);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--white-pure);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.stat-number b {
    color: var(--sky-light);
    font-size: 32px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--silver-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-description {
    font-size: 12px;
    color: var(--silver-text);
    margin-top: 8px;
    opacity: 0.8;
}

/* Controles del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 123, 229, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sky-light);
    font-size: 20px;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--blue-accent);
    color: white;
    border-color: var(--blue-accent);
}

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

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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--silver-muted);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.dot.active {
    background: var(--sky-light);
    width: 28px;
    border-radius: 10px;
}

.dot:hover {
    background: var(--blue-accent);
}

/* -------------------- */
/* SECCIÓN DE VIDEOS PROMOCIONALES */
/* -------------------- */
.videos-section {
    padding: 56px 32px;
    background: linear-gradient(180deg, var(--navy-base) 0%, var(--navy-elevated) 100%);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.video-card {
    background: rgba(17, 28, 46, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-accent);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--steel), var(--navy-base));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-placeholder i {
    font-size: 64px;
    color: var(--sky-light);
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.video-placeholder:hover i {
    transform: scale(1.1);
    color: var(--blue-accent);
}

.video-placeholder span {
    font-size: 14px;
    color: var(--silver-text);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 14px;
    color: var(--silver-text);
    line-height: 1.5;
}

.video-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(44, 123, 229, 0.2);
    color: var(--sky-light);
}

/* -------------------- */
/* CARDS Y OTRAS SECCIONES */
/* -------------------- */
.section,
.how,
.testi,
.cta-sec {
    padding: 56px 32px;
}

.how {
    background: rgba(17, 28, 46, 0.6);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.sec-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--sky-light);
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sec-h {
    font-size: 28px;
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.sec-sub {
    font-size: 16px;
    color: var(--silver-muted);
    margin-bottom: 40px;
    max-width: 650px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(17, 28, 46, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    border-color: var(--blue-accent);
    transform: translateY(-4px);
}

.cicon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.cicon.b {
    background: rgba(44, 123, 229, 0.2);
    color: var(--sky-light);
}

.cicon.s {
    background: rgba(99, 179, 237, 0.12);
    color: var(--accent-soft);
}

.cicon.t {
    background: rgba(37, 99, 168, 0.3);
    color: var(--sky-light);
}

.ctag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.ctag.iot {
    background: rgba(44, 123, 229, 0.2);
    color: var(--sky-light);
    border: 0.5px solid var(--blue-accent);
}

.ctag.alarm {
    background: rgba(99, 179, 237, 0.1);
    color: var(--silver-text);
    border: 0.5px solid var(--silver-muted);
}

.ctag.gps {
    background: rgba(44, 123, 229, 0.15);
    color: var(--accent-soft);
    border: 0.5px solid var(--glass-border);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white-pure);
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: var(--silver-text);
    line-height: 1.5;
}

.card-bar {
    height: 3px;
    width: 40px;
    margin-top: 20px;
    border-radius: 2px;
}

.card-bar.b {
    background: var(--blue-accent);
}

.card-bar.s {
    background: var(--silver-muted);
}

.card-bar.t {
    background: var(--sky-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.step {
    text-align: center;
    background: rgba(10, 20, 36, 0.5);
    padding: 20px 12px;
    border-radius: 24px;
}

.snum {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--sky-light);
    margin: 0 auto 16px;
}

.step h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white-pure);
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--silver-muted);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tcard {
    background: rgba(17, 28, 46, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
}

.stars {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    color: #fbbf24;
}

.stars i {
    font-size: 14px;
}

.tcard blockquote {
    font-size: 14px;
    color: var(--silver-text);
    line-height: 1.55;
    margin-bottom: 20px;
    font-style: italic;
    border-left: 3px solid var(--blue-accent);
    padding-left: 16px;
}

.tauthor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tavatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--steel);
    border: 1px solid var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--sky-light);
}

.tname {
    font-size: 14px;
    font-weight: 600;
    color: var(--white-pure);
}

.trole {
    font-size: 11px;
    color: var(--silver-muted);
}

.cta-box {
    background: linear-gradient(135deg, rgba(17, 28, 46, 0.9), rgba(10, 20, 36, 0.95));
    border: 1px solid var(--blue-accent);
    border-radius: 32px;
    padding: 48px 32px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 16px;
    color: var(--silver-text);
    margin-bottom: 32px;
}

.cta-row {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-in {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--white-pure);
    outline: none;
}

.cta-in::placeholder {
    color: var(--silver-muted);
}

.cta-in:focus {
    border-color: var(--sky-light);
}

.footer {
    padding: 24px 32px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.foot-l {
    font-size: 12px;
    color: var(--silver-muted);
}

.foot-links {
    display: flex;
    gap: 24px;
}

.foot-links a {
    font-size: 12px;
    color: var(--silver-muted);
    text-decoration: none;
}

.foot-links a:hover {
    color: var(--sky-light);
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-item {
        border-right: none;
    }

    .hero,
    .section,
    .how,
    .testi,
    .cta-sec,
    .videos-section {
        padding: 40px 20px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* =========================
   NAVBAR M_BIONIX
========================= */

/* =========================
   NAVBAR M_BIONIX
========================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 20, 36, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 123, 229, 0.2);
}

/* NAVBAR */

.navbar {
    background: transparent !important;
}

/* LOGO */

.navbar-brand {
    text-decoration: none;
}

.nav-shield {
    width: 44px;
    height: 44px;
    background: #1e3a5f;
    border: 1px solid #2c7be5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #63b3ed;
    font-size: 20px;
    flex-shrink: 0;
}

.brand-text {
    line-height: 1.1;
}

.nav-name {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.nav-name span {
    color: #63b3ed;
}

.nav-sub {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 0.08em;
}

/* LINKS */

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #63b3ed !important;
}

/* DROPDOWN */

.dropdown-menu {
    background: #111c2e !important;
    border: 1px solid rgba(44, 123, 229, 0.2) !important;
}

.dropdown-item {
    color: #cbd5e1;
    transition: 0.3s;
    border-radius: 12px;
}

.dropdown-item:hover {
    background: rgba(44, 123, 229, 0.15);
    color: #63b3ed;
}

/* BOTÓN HAMBURGUESA */

.navbar-toggler {
    border: none !important;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* BOTÓN CTA */

.btn-primary {
    background: #2c7be5;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1d68cc;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 991px) {

    .navbar {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .navbar-collapse {
        background: #111c2e;
        margin-top: 18px;
        padding: 24px;
        border-radius: 24px;
        border: 1px solid rgba(44, 123, 229, 0.15);
    }

    .navbar-nav {
        gap: 10px;
    }

    .navbar .nav-link {
        padding: 14px 16px !important;
        border-radius: 14px;
    }

    .navbar .nav-link:hover {
        background: rgba(44, 123, 229, 0.12);
    }

    .dropdown-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 10px;
        margin-top: 5px;
    }

    .dropdown-item {
        padding: 12px 16px;
    }

    .btn-primary {
        width: 100%;
        margin-top: 10px;
    }

    .nav-sub {
        font-size: 9px;
    }

    .nav-name {
        font-size: 18px;
    }
}

/* =========================
   CORRECCIONES PARA EL MENÚ HAMBURGUESA
   Agrega esto al final de tu style.css
========================= */

/* Asegurar que el navbar-toggler sea visible */
.navbar-toggler {
    border: 1px solid rgba(99, 179, 237, 0.3) !important;
    background: transparent;
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(99, 179, 237, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Para pantallas grandes, asegurar que el menú se vea horizontal */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

/* Para pantallas pequeñas, el collapse funciona correctamente */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111c2e;
        z-index: 1050;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 20px;
        margin: 0 16px;
        border-radius: 20px;
        border: 1px solid rgba(44, 123, 229, 0.2);
        box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.4);
    }
    
    .navbar-collapse.show {
        display: block;
    }
    
    /* Mejorar el dropdown en móvil */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        background: rgba(17, 28, 46, 0.95) !important;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .dropdown-toggle::after {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Animación suave para el menú */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

/* Mejorar el dropdown-toggle */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}