:root {
    --navy: #002554;
    --blue: #0077B6;
    --sky: #0096C7;
    --cyan: #48CAE4;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --muted: #64748B;
    --dark: #0D1B2E;
    --border: #E2EAF4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
}


main {
    padding-top: 0;
}

.hero {
    min-height: 100vh;
    background: var(--navy);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
}

/* ---- Video de fondo a pantalla completa ---- */
.hero-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -28%;
    height: 156%;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
}

/* El video ocupa la mitad derecha del hero y se funde con el navy
   por la izquierda, arriba y abajo (bordes suaves, sin cortes duros) */
.hero-video {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 52%;
    object-fit: cover;
    object-position: center;
    /* sharpen (SVG) + ligero ajuste de color para ganar definición */
    filter: url(#hero-sharpen) brightness(0.97) saturate(1.18) contrast(1.07);
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 14%, #000 34%),
        linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
        linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 14%, #000 34%),
        linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-composite: intersect;
}

/* leve oscurecido para integrar el video con el hero y dar contraste al texto */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--navy) 0%, rgba(0, 18, 42, 0.55) 38%, transparent 62%),
        linear-gradient(0deg, rgba(0, 18, 42, 0.45) 0%, transparent 32%, transparent 80%, rgba(0, 18, 42, 0.3) 100%);
}

/* el texto y decoraciones quedan por encima del video */
.hero-left { z-index: 2; }
.hero-lines,
.hero-glow { z-index: 1; }

.hero-lines {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background: repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(72,202,228,0.06) 59px, rgba(72,202,228,0.06) 60px);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -100px;
    right: 300px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,150,199,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw 0 5vw;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.eyebrow-line {
    width: 32px;
    height: 2px;
    background: var(--cyan);
}

.eyebrow-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
}

.hero-h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(58px, 7vw, 92px);
    font-weight: 900;
    line-height: .95;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 28px;
}

.hero-h1 .line-alt {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--cyan);
    display: block;
}

.hero-sub {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    max-width: 460px;
    margin-bottom: 48px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 56px;
}

.btn-fill {
    background: var(--sky);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
}

.btn-fill:hover {
    background: #007daa;
}

.btn-ghost {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-ghost:hover {
    color: #fff;
}

.hero-trust {
    display: flex;
    gap: 32px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
}

.trust-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: .5px;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-panel {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    width: 100%;
    box-shadow: 0 0 0 1px rgba(0,37,84,0.12), 0 24px 64px rgba(0,37,84,0.2);
}

.panel-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 16px;
    display: block;
}

.panel-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.1;
    text-transform: uppercase;
}

.panel-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.5;
}

.form-field {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    width: 100%;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
}

.form-field:focus {
    border-color: var(--sky);
    outline: none;
}

.send-btn {
    width: 100%;
    background: var(--sky);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

.send-btn:hover {
    background: #007daa;
}

.panel-note {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
}

.services {
    padding: 96px 5vw;
    background: var(--white);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
}

.section-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 10px;
}

.section-h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 900;
    color: var(--dark);
    line-height: .95;
    text-transform: uppercase;
}

.section-aside {
    font-size: 14px;
    color: var(--muted);
    max-width: 260px;
    text-align: right;
    line-height: 1.6;
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.service-item:hover .si-num {
    color: var(--sky);
}

.service-item:nth-child(odd) {
    padding-right: 40px;
    border-right: 1px solid var(--border);
}

.service-item:nth-child(even) {
    padding-left: 40px;
}

.service-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.si-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: var(--border);
    flex-shrink: 0;
    margin-top: 3px;
    transition: color .2s;
}

.si-body {
    flex: 1;
}

.si-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.si-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.si-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--sky);
    margin-top: 8px;
}

.si-badge {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.badge-pop {
    background: #EBF7FC;
    color: var(--sky);
}

.badge-urg {
    background: #0D1B2E;
    color: var(--cyan);
}

.how {
    padding: 96px 5vw;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.how::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,119,182,0.2), transparent), radial-gradient(ellipse 40% 40% at 80% 100%, rgba(72,202,228,0.08), transparent);
    pointer-events: none;
}

.how .section-h2 {
    color: #fff;
}

.how .section-kicker {
    color: var(--cyan);
}

.steps-scroller {
    display: flex;
    gap: 0;
    margin-top: 56px;
    position: relative;
}

.steps-scroller::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(72,202,228,0.3) 15%, rgba(72,202,228,0.3) 85%, transparent);
}

.step-card {
    flex: 1;
    padding: 0 32px 0 24px;
    position: relative;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--cyan);
    border: 3px solid var(--navy);
    box-shadow: 0 0 0 2px var(--cyan);
    margin-bottom: 28px;
}

.step-n {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

.step-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.step-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
}

.how-cta-row {
    margin-top: 56px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.how-cta-note {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.store {
    padding: 96px 5vw;
    background: var(--bg);
}

.store-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.pill {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.pill:hover,
.pill.on {
    background: var(--sky);
    color: #fff;
    border-color: var(--sky);
}

.products-track-wrap {
    overflow: hidden;
}

.products-track {
    display: flex;
    gap: 20px;
    transition: transform .4s ease;
}

.product-card {
    flex-shrink: 0;
    width: calc((100% - 60px)/4);
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.pc-img {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: #dde8f0;
}

.pc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc-sticker {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}

.s-hot {
    background: var(--sky);
    color: #fff;
}

.s-sale {
    background: #0D9488;
    color: #fff;
}

.s-new {
    background: var(--cyan);
    color: var(--navy);
}

.s-pop {
    background: var(--dark);
    color: #fff;
}

.pc-body {
    padding: 16px;
}

.pc-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--sky);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pc-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.pc-stars {
    color: #F59E0B;
    font-size: 12px;
    margin-bottom: 12px;
}

.pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.add-btn {
    background: var(--sky);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.add-btn:hover {
    background: #007daa;
}

.track-nav {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: flex-end;
}

.track-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 18px;
}

.track-btn:hover {
    border-color: var(--sky);
    color: var(--sky);
}

.reviews {
    padding: 96px 5vw;
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.review-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--border);
}

.review-card:first-child {
    grid-row: span 2;
    background: var(--navy);
    border-color: transparent;
}

.review-card:first-child .rv-text {
    color: rgba(255,255,255,0.8);
}

.review-card:first-child .rv-name {
    color: #fff;
}

.review-card:first-child .rv-meta {
    color: rgba(255,255,255,0.45);
}

.rv-stars {
    color: #F59E0B;
    font-size: 14px;
    margin-bottom: 16px;
}

.rv-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 22px;
}

.rv-foot {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.rv-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.rv-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.stats {
    padding: 60px 5vw;
    background: linear-gradient(90deg, var(--navy), #004080);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    text-align: center;
    border-right: 1px solid rgba(72,202,228,0.12);
}

.stat-box:last-child {
    border-right: none;
}

.stat-big {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    /* en móvil el video vertical llena toda la pantalla */
    .hero-video {
        top: 50%;
        left: 50%;
        right: auto;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        object-position: center 32%;
        -webkit-mask-image: none;
                mask-image: none;
    }

    .hero-bg-overlay {
        background:
            linear-gradient(0deg, rgba(0, 18, 42, 0.82) 0%, rgba(0, 18, 42, 0.25) 45%, rgba(0, 18, 42, 0.55) 100%);
    }
    
    .services .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-aside {
        text-align: left;
        max-width: 100%;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .service-item:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }
    
    .service-item:nth-child(even) {
        padding-left: 0;
    }
    
    .steps-scroller {
        flex-direction: column;
    }
    
    .steps-scroller::before {
        display: none;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card:first-child {
        grid-row: span 1;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-track .product-card {
        width: calc((100% - 20px)/2);
    }
}