:root{
    /* Brandbook colors */
    --night: #141640;     /* Digital Night */ /* :contentReference[oaicite:2]{index=2} */
    --blue:  #0477BF;     /* Base Blue Biletec */ /* :contentReference[oaicite:3]{index=3} */
    --sky:   #5AA7DA;     /* Light Red Blue */ /* :contentReference[oaicite:4]{index=4} */
    --fog:   #F0F0F2;     /* Neutral Fog */ /* :contentReference[oaicite:5]{index=5} */
    --gray:  #7A7A8C;     /* Functional Gray */ /* :contentReference[oaicite:6]{index=6} */
    --char:  #262626;     /* Charcoal Gray */ /* :contentReference[oaicite:7]{index=7} */
    --light: #D7D8DE;     /* Light Gray */ /* :contentReference[oaicite:8]{index=8} */
    --deep:  #025187;     /* Deep Blue */ /* :contentReference[oaicite:9]{index=9} */
    --white: #FFFFFF;

    /* Type (Brandbook: Urbanist + Inter) */
    --font-head: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; /* :contentReference[oaicite:10]{index=10} */
    --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 10px 30px rgba(20,22,64,.18);
    --shadow-soft: 0 8px 24px rgba(20,22,64,.12);

    --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
    margin:0;
    font-family: var(--font-body);
    color: var(--night);
    background: #fff;
    line-height: 1.5;
}

img{ max-width: 100%; display: block; }

.container{
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.skip-link{
    position:absolute;
    left:-9999px;
    top: 12px;
    background: var(--blue);
    color: var(--white);
    padding: 10px 12px;
    border-radius: 10px;
    z-index: 9999;
}
.skip-link:focus{ left: 16px; }

.sr-only{
    position:absolute;
    width:1px;height:1px;
    padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);
    border:0;
}

/* Header */
.header{
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.76);
    border-bottom: 1px solid rgba(20,22,64,.08);
}

.header__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 0;
    gap: 18px;
}

.brand{
    display:flex;
    align-items:center;
    gap: 12px;
    text-decoration:none;
    color: inherit;
}
.brand__mark{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__name{
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.brand__tag{
    font-size: 12px;
    color: rgba(20,22,64,.65);
}

/* Nav */
.nav{ position: relative; }
.nav__toggle{
    display:none;
    width:44px;height:44px;
    border-radius: 14px;
    border: 1px solid rgba(20,22,64,.12);
    background: rgba(255,255,255,.85);
    cursor:pointer;
    align-items:center;
    justify-content:center;
    gap:5px;
}
.nav__toggle span{
    display:block;
    width:18px;
    height:2px;
    background: var(--night);
    border-radius: 2px;
}
.nav__panel{
    display:flex;
    align-items:center;
    gap: 16px;
}
.nav__links{
    list-style:none;
    display:flex;
    gap: 16px;
    margin:0;
    padding:0;
}
.nav__link{
    text-decoration:none;
    color: rgba(20,22,64,.76);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 10px;
    border-radius: 12px;
}
.nav__link:hover{
    background: rgba(4,119,191,.08);
    color: var(--night);
}
.nav__link.is-active{
    background: rgba(4,119,191,.12);
    color: var(--night);
}

/* Buttons */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    border-radius: 14px;
    padding: 12px 16px;
    text-decoration:none;
    font-weight: 700;
    border: 1px solid transparent;
    cursor:pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
    user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
    background: linear-gradient(135deg, var(--blue), var(--deep));
    color: var(--white);
    box-shadow: 0 10px 22px rgba(4,119,191,.25);
}
.btn--primary:hover{ box-shadow: 0 14px 30px rgba(4,119,191,.32); }

.btn--ghost{
    background: rgba(255,255,255,.15);
    color: var(--white);
    border-color: rgba(255,255,255,.35);
}
.btn--ghost:hover{
    background: rgba(255,255,255,.22);
}

.btn--sm{
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
}

/* Hero */
.hero{
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 72px 0 48px;
}
.hero__bg{
    position:absolute;
    inset:0;
    background: url("images/fondo.jpg") center/cover no-repeat;
}
.hero__inner{
    position: relative;
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items:center;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(255,255,255,.82);
    margin: 0 0 12px;
}

.h1{
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 52px);
}
.lead{
    margin: 0 0 22px;
    font-size: 18px;
    color: rgba(255,255,255,.86);
    max-width: 52ch;
}

.hero__ctas{ display:flex; gap: 12px; flex-wrap: wrap; }

.quick-bullets{
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display:grid;
    gap: 10px;
    max-width: 420px;
}
.quick-bullets li{
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    padding: 10px 12px;
    border-radius: 14px;
}

/* Hero visual */
.hero__visual{ position:relative; }
.phone{
    position: relative;
    width: min(360px, 100%);
    margin-left: auto;
}
.phone__glow{
    position:absolute;
    inset:-80px -40px;
    background: url("images/celular.jpeg") center/cover no-repeat;
}
.phone__card{
    position: relative;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.phone__top{
    display:flex;
    gap: 6px;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}
.dot{
    width:10px;height:10px;border-radius:99px;
    background: rgba(255,255,255,.25);
}
.phone__body{ padding: 16px; }

.skeleton{
    background: rgba(255,255,255,.16);
    border-radius: 10px;
    margin-bottom: 10px;
}
.skeleton--title{ height: 16px; width: 60%; }
.skeleton--row{ height: 12px; width: 85%; opacity: .9; }

.chip{
    margin: 16px 0 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
}
.chip__label{ display:block; font-size: 12px; color: rgba(255,255,255,.75); }
.chip__value{
    display:block;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 24px;
    margin-top: 4px;
}

.actions{ display:flex; gap: 10px; margin-bottom: 14px; }
.pill{
    flex:1;
    padding: 10px 12px;
    border-radius: 999px;
    text-align:center;
    font-weight: 800;
    background: rgba(4,119,191,.55);
    border: 1px solid rgba(255,255,255,.18);
}
.pill--muted{
    background: rgba(255,255,255,.10);
    font-weight: 700;
}

.list{
    display:grid;
    gap: 10px;
}
.list__item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    font-size: 14px;
    color: rgba(255,255,255,.88);
}

.floating{
    position:absolute;
    border-radius: 999px;
    filter: blur(.2px);
    opacity: .85;
}
.floating--a{
    width: 140px; height: 140px;
    background: radial-gradient(circle at 30% 30%, rgba(90,167,218,.8), rgba(90,167,218,.0) 60%);
    top: -10px; right: 240px;
}
.floating--b{
    width: 220px; height: 220px;
    background: radial-gradient(circle at 30% 30%, rgba(4,119,191,.55), rgba(4,119,191,.0) 60%);
    bottom: -40px; right: -50px;
}

/* Sections */
.section{
    padding: 72px 0;
}
.section--tint{
    background: linear-gradient(180deg, var(--fog), #fff);
}
.section__head{
    max-width: 720px;
    margin-bottom: 28px;
}
.h2{
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 34px);
}
.h3{
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    font-size: 18px;
}
.muted{ color: rgba(20,22,64,.70); margin: 0; }

/* Cards */
.grid3{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.card{
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid rgba(20,22,64,.10);
    box-shadow: var(--shadow-soft);
}
.icon{
    width: 44px; height: 44px;
    border-radius: 14px;
    display:grid;
    place-items:center;
    background: rgba(4,119,191,.10);
    border: 1px solid rgba(4,119,191,.18);
    margin-bottom: 12px;
}
.icon svg{ width: 22px; height: 22px; fill: var(--blue); }

/* Steps */
.steps{
    list-style: none;
    padding:0;
    margin: 0;
    display:grid;
    gap: 12px;
}
.step{
    display:flex;
    gap: 14px;
    align-items:flex-start;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid rgba(20,22,64,.10);
    box-shadow: var(--shadow-soft);
}
.step__num{
    width: 40px; height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(4,119,191,.16), rgba(2,81,135,.10));
    border: 1px solid rgba(4,119,191,.20);
    display:grid;
    place-items:center;
    font-family: var(--font-head);
    font-weight: 900;
    color: var(--night);
}

/* Split */
.split{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items:center;
}
.bullets{
    margin: 18px 0 0;
    padding-left: 18px;
    color: rgba(20,22,64,.80);
}
.bullets li{ margin: 8px 0; }

.panel{
    background: linear-gradient(135deg, rgba(4,119,191,.08), rgba(90,167,218,.10));
    border: 1px solid rgba(20,22,64,.10);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}
.panel__badge{
    display:inline-flex;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(4,119,191,.10);
    border: 1px solid rgba(4,119,191,.18);
    margin-bottom: 14px;
}
.panel__row{
    display:flex;
    justify-content:space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(20,22,64,.12);
}
.panel__row:last-of-type{ border-bottom: none; }
.panel__chart{
    display:flex;
    align-items:flex-end;
    gap: 8px;
    height: 120px;
    margin-top: 16px;
}
.bar{
    flex:1;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(4,119,191,.9), rgba(90,167,218,.7));
    box-shadow: 0 8px 16px rgba(4,119,191,.12);
}
.panel__hint{
    margin-top: 14px;
    color: rgba(20,22,64,.70);
    font-weight: 600;
}

/* Table card */
.table-card{
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(20,22,64,.10);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}
.table{
    display:grid;
    gap: 10px;
}
.table__row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(240,240,242,.8);
    border: 1px solid rgba(20,22,64,.08);
}
.fineprint{
    margin: 12px 2px 0;
    font-size: 12px;
    color: rgba(20,22,64,.65);
}

/* CTA */
.cta{
    padding: 72px 0;
    background: url("images/fondo.jpg") center/cover no-repeat;
    color: var(--white);
}
.cta__inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 18px;
    border-radius: calc(var(--radius-lg) + 8px);
    padding: 24px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    box-shadow: var(--shadow);
}
.cta__copy .muted{ color: rgba(255,255,255,.80); }

.cta__form{
    display:flex;
    gap: 10px;
    align-items:center;
    flex-wrap: wrap;
    justify-content:flex-end;
}
.input{
    height: 46px;
    min-width: 260px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.10);
    color: var(--white);
    padding: 0 14px;
    outline: none;
}
.input::placeholder{ color: rgba(255,255,255,.65); }
.input:focus{
    border-color: rgba(90,167,218,.7);
    box-shadow: 0 0 0 4px rgba(90,167,218,.18);
}
.form-msg{
    width:100%;
    margin: 6px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.82);
}

/* FAQ */
.faq{
    display:grid;
    gap: 10px;
    max-width: 860px;
}
.faq__item{
    border-radius: var(--radius-lg);
    border: 1px solid rgba(20,22,64,.10);
    background: #fff;
    box-shadow: var(--shadow-soft);
    padding: 14px 16px;
}
.faq__item summary{
    cursor:pointer;
    font-weight: 800;
    color: rgba(20,22,64,.90);
    list-style:none;
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item p{
    margin: 10px 0 0;
    color: rgba(20,22,64,.72);
}

/* Footer */
.footer{
    padding: 40px 0 22px;
    background: #fff;
    border-top: 1px solid rgba(20,22,64,.08);
}
.footer__inner{
    display:flex;
    justify-content:space-between;
    gap: 22px;
    flex-wrap: wrap;
}
.footer__brand{ max-width: 420px; }
.footer__logo{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 900;
    font-family: var(--font-head);
}
.footer__logo img{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    object-fit: cover;
}
.footer__links{
    display:grid;
    gap: 10px;
}
.footer__links a{
    color: rgba(20,22,64,.70);
    text-decoration:none;
    font-weight: 700;
}
.footer__links a:hover{ color: var(--night); }

.footer__bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(20,22,64,.08);
}
.backtop{
    text-decoration:none;
    font-weight: 800;
    color: var(--blue);
}

/* Reveal animations */
.reveal{
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 920px){
    .hero__inner{ grid-template-columns: 1fr; }
    .phone{ margin: 0; }
    .grid3{ grid-template-columns: 1fr; }
    .split{ grid-template-columns: 1fr; }
    .cta__inner{ flex-direction: column; align-items: flex-start; }
    .cta__form{ width: 100%; justify-content:flex-start; }
    .input{ width: 100%; min-width: 0; }
    .nav__toggle{ display:inline-flex; }
    .nav__panel{
        position: absolute;
        top: 56px;
        right: 0;
        width: min(92vw, 360px);
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap: 10px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(20,22,64,.10);
        border-radius: 18px;
        box-shadow: var(--shadow);
        padding: 12px;
    }
    .nav__panel.is-open{ display:flex; }
    .nav__links{ flex-direction:column; }
    .nav__link{ padding: 12px 12px; }
    .nav__cta{ width:100%; }
}

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    .reveal{ transition: none; }
    .btn{ transition: none; }
}


/* ===========================
   MOBILE PATCH (pegalo al final)
   =========================== */

/* 920px hacia abajo: tablet / mobile grande */
@media (max-width: 920px){

    /* Container un toque más respirable */
    .container{
        width: min(var(--container), calc(100% - 28px));
    }

    /* Header: mejor comportamiento del menú */
    .header__inner{
        padding: 12px 0;
    }

    /* Menú: que no se corte y se vea “app-like” */
    .nav__panel{
        position: fixed;              /* <- clave */
        top: 72px;
        right: 14px;
        left: 14px;                   /* ocupa ancho, no sólo derecha */
        width: auto;
        max-width: 520px;
        margin-left: auto;
    }

    /* Hero: menos padding y orden visual */
    .hero{
        padding: 54px 0 34px;
    }

    .hero__inner{
        gap: 22px;
    }

    .lead{
        font-size: 16px;
    }

    .hero__ctas{
        gap: 10px;
    }

    /* CTAs full width en mobile para que sea más claro */
    .hero__ctas .btn{
        width: 100%;
    }

    .quick-bullets{
        max-width: none;
        grid-template-columns: 1fr;
    }

    /* Phone mock: centrado y más compacto */
    .hero__visual{
        display: none;
    }

    .phone{
        width: min(420px, 100%);
        margin: 0 auto;
    }

    /* Tu glow es una imagen: le damos forma y suavidad */
    .phone__glow{
        inset: -40px -20px;
        border-radius: 28px;
        opacity: .55;
        filter: blur(2px);
    }

    /* Cards/Grids: más aire */
    .section{
        padding: 54px 0;
    }

    .grid3{
        gap: 14px;
    }

    .card{
        padding: 16px;
    }

    /* Split: mejor lectura */
    .split{
        gap: 16px;
    }

    /* CTA: stacking prolijo */
    .cta{
        padding: 54px 0;
    }

    .cta__inner{
        padding: 18px;
    }

    .cta__form{
        width: 100%;
        gap: 10px;
        justify-content: flex-start;
    }

    .cta__form .btn{
        width: 100%;
    }

    /* Footer: todo en columna */
    .footer__inner{
        gap: 18px;
    }

    .footer__bottom{
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 560px hacia abajo: mobile chico */
@media (max-width: 560px){

    /* Tipos: un toque más compactos */
    .h1{
        font-size: clamp(30px, 9vw, 40px);
    }

    .h2{
        font-size: clamp(22px, 6.5vw, 30px);
    }

    /* Botones y inputs: 100% */
    .btn{
        width: 100%;
    }

    .btn--sm{
        width: auto; /* el del header lo dejamos chico */
    }

    .input{
        width: 100%;
        min-width: 0;
    }

    /* Navbar CTA full width dentro del panel */
    .nav__cta{
        width: 100%;
    }

    /* Phone: evitar que se coma pantalla */
    .phone{
        width: 100%;
    }

    .phone__body{
        padding: 14px;
    }

    /* Tabla de tarifas: mejor wrap */
    .table__row{
        gap: 10px;
    }
    .table__row span{
        max-width: 65%;
    }
}
