/* ==========================================================================
   VeloRayo - velorayo.co
   Built to match drafts/borradorpc.png (desktop) and
   drafts/borradorcelular.png (mobile). Palette sampled directly from those
   files rather than estimated by eye.
   ========================================================================== */

/* Source Sans 3, self-hosted. Chosen by matching letterforms in the mockup
   headline - double-storey 'a', high x-height, horizontally cut terminals.
   Self-hosted rather than linked so there is no render-blocking third-party
   request on a mobile-heavy Colombian audience. */
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/source-sans-3-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/source-sans-3-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/source-sans-3-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/source-sans-3-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/source-sans-3-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/source-sans-3-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}

:root {
    /* Sampled from borradorpc.png */
    --navy-deep:   #041A24;
    --navy:        #00293B;
    --navy-mid:    #032B3D;
    --navy-lift:   #043043;

    --orange:      #F98F03;
    --orange-hi:   #FFA524;

    --green:       #1FB84C;
    --green-hi:    #2ECC5E;

    --text:        #F6F8F9;
    --text-dim:    rgba(246, 248, 249, 0.99);
    --text-faint:  rgba(234, 237, 238, 0.6);

    --card-bg:     rgba(255, 255, 255, 0.035);
    --card-line:   rgba(255, 255, 255, 0.09);
    --ring:        rgba(255, 255, 255, 0.14);

    --radius:      18px;
    --shell:       1321px;

    --font: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: linear-gradient(180deg, #00293B 0%, #032230 42%, #041A24 100%) no-repeat;
    background-color: var(--navy-deep);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 24px;
}

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

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

/* --- buttons ------------------------------------------------------------ */

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, var(--green-hi), var(--green));
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 14px 26px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(31, 184, 76, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(31, 184, 76, 0.38);
}

.btn-wa svg { width: 22px; height: 22px; flex: none; fill: currentColor; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--orange);
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9375rem;
    padding: 13px 30px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover { background: var(--orange); color: var(--navy-deep); }

/* --- header ------------------------------------------------------------- */

.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 30;
    padding-block: 14px;
}

.site-header .shell {
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand { flex: none; }
.brand img { width: 152px; height: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 44px;
    margin-inline: auto;
}

.nav a {
    font-size: 1rem;
    color: var(--text);
    padding-bottom: 6px;
    border-bottom: 2.5px solid transparent;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.nav a:hover { color: var(--orange-hi); }

.nav a[aria-current] {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: var(--orange);
}

.nav-toggle svg { width: 30px; height: 30px; stroke: currentColor; }

/* --- hero --------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    padding-top: 140px;
    padding-bottom: 104px;
    background-color: var(--navy);
    overflow: hidden;
}

/* Photograph sits on the right and dissolves into the flat navy on the left,
   which is how the mockup blends it behind the headline. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(66%, 990px);
    background-image: url('../img/hero.jpg');
    background-image: image-set(url('../img/hero.webp') type('image/webp'),
                                url('../img/hero.jpg') type('image/jpeg'));
    background-image: -webkit-image-set(url('../img/hero.webp') type('image/webp'),
                                        url('../img/hero.jpg') type('image/jpeg'));
    background-size: cover;
    /* "right center", not "center right" - the keyword pair is order-sensitive
       and the wrong one centred the crop, pulling the rider too far left. */
    background-position: right 68%;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--navy) 0%, var(--navy) 24%,
                        rgba(0, 41, 59, 0.72) 44%, rgba(0, 41, 59, 0) 68%),
        linear-gradient(180deg, rgba(1, 23, 34, 0.55) 0%,
                        rgba(1, 23, 34, 0) 22%, rgba(1, 23, 34, 0.75) 100%);
    z-index: -1;
}

.hero-copy { max-width: 620px; }

.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 22px;
}

/* Own line, as in the mockup, on every breakpoint. */
.hero h1 .accent { color: var(--orange); display: block; }

.hero-sub {
    font-size: clamp(1rem, 1.35vw, 1.1875rem);
    color: var(--text-dim);
    max-width: 44ch;
    margin-bottom: 6px;
}

.hero-kicker {
    font-size: clamp(1rem, 1.35vw, 1.1875rem);
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 30px;
}

/* --- benefits strip ----------------------------------------------------- */

.benefits {
    position: relative;
    z-index: 5;
    margin-top: -60px;
}

.benefits-card {
    background: #00121B;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 22px 14px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-inline: 26px;
}

.benefit + .benefit { border-left: 1px solid var(--card-line); }

.benefit-icon {
    flex: none;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--ring);
}

.benefit-icon svg { width: 62px; height: 62px; fill: var(--orange); }

.benefit h3 {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    margin-bottom: 4px;
}

/* max-width holds each line to roughly the mockup's two-line wrap. */
.benefit p { color: var(--text-dim); font-size: 1rem; line-height: 1.45; max-width: 17ch; }

/* --- section furniture -------------------------------------------------- */

.section { padding-block: 48px; }

@media (min-width: 1180px) {
    .steps { padding-inline: 88px; }
}

.section-head { text-align: center; margin-bottom: 18px; }

.section-head h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* --- how it works ------------------------------------------------------- */

/* Top-aligned so the three rings sit on one line regardless of how much text
   sits beneath them; the connectors are nudged down to meet the ring centres. */
.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0 20px;
}

.step { display: flex; align-items: flex-start; gap: 22px; }

.step-badge { position: relative; flex: none; }

.step-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1.5px solid var(--ring);
    display: grid;
    place-items: center;
}

.step-ring svg { width: 58px; height: 58px; stroke: var(--orange); fill: none; stroke-width: 1.9; }
.step-ring svg.is-solid { fill: var(--orange); stroke: none; }

.step-num {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 1.0625rem;
    display: grid;
    place-items: center;
}

.step h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    margin-bottom: 6px;
    margin-top: 22px;
}

.step p { color: var(--text-dim); font-size: 1rem; line-height: 1.5; }

.step-link {
    width: 100%;
    min-width: 56px;
    margin-top: 48px;          /* half the 96px ring */
    border-top: 2px dashed var(--orange);
    opacity: 0.85;
}

/* --- business banner ---------------------------------------------------- */

.b2b { padding-bottom: 44px; }

.b2b-card {
    background: #00151E;
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    padding: 26px 34px 26px 72px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.b2b-icon {
    flex: none;
    width: 82px;
    height: 82px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--orange-hi), var(--orange));
    display: grid;
    place-items: center;
}

.b2b-icon svg { width: 42px; height: 42px; fill: var(--navy-deep); }

.b2b-text { flex: 1 1 auto; }

.b2b-text h3 {
    color: var(--orange);
    font-size: 1.0625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.b2b-text p { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.45; }

/* --- practical details -------------------------------------------------- */

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.fact {
    background: var(--card-bg);
    border: 1px solid var(--card-line);
    border-top: 3px solid var(--orange);
    border-radius: 14px;
    padding: 28px 26px;
}

.fact h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fact h3 svg { width: 22px; height: 22px; fill: var(--orange); flex: none; }
.fact p { color: var(--text-dim); }
.fact strong { color: var(--text); }

/* --- footer ------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--card-line);
    background: var(--navy-deep);
    padding-block: 40px 30px;
    text-align: center;
}

.site-footer img { width: 130px; height: auto; margin: 0 auto 16px; }
.site-footer p { color: var(--text-faint); font-size: 0.9375rem; margin-bottom: 6px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--orange); }
.site-footer .copy { margin-top: 16px; font-size: 0.8125rem; }

/* --- floating action (mobile) ------------------------------------------- */

.fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--green-hi), var(--green));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    place-items: center;
}

.fab svg { width: 26px; height: 26px; fill: var(--navy-deep); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .nav { gap: 24px; }
    .nav a { font-size: 1rem; }
    .site-header .btn-wa { font-size: 0.9375rem; padding: 12px 20px; }
    .benefit { padding-inline: 16px; gap: 14px; }
    .benefit-icon { width: 62px; height: 62px; }
    .benefit-icon svg { width: 28px; height: 28px; }
    .benefit h3 { font-size: 1.0625rem; }
    .benefit p { font-size: 0.9375rem; }
}

@media (max-width: 900px) {
    .nav, .site-header .btn-wa { display: none; }

    .brand img { width: 124px; }
    .nav-toggle { display: block; margin-left: auto; }

    .nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 14px 24px 20px;
        background: rgba(1, 23, 34, 0.97);
        border-top: 1px solid var(--card-line);
        border-bottom: 1px solid var(--card-line);
    }

    .nav.is-open a { padding-block: 10px; border-bottom: 0; width: 100%; }

    .fab { display: grid; }

    /* The mobile mockup keeps both strips as three columns rather than
       stacking them, so the layout stays recognisable at 390px. */
    .hero { padding-top: 112px; padding-bottom: 56px; }

    /* 561-900px keeps the desktop photo: the portrait crop rendered at a fixed
       272px and left a hard vertical seam through open background. */
    .hero::before { width: 78%; }
    .hero h1 { font-size: clamp(2rem, 5.2vw, 3rem); max-width: 16ch; line-height: 1.18; margin-bottom: 16px; }
    .steps { padding-inline: 0; }

    /* The mockup holds the headline to roughly the left half so the rider is
       unobstructed on the right, and runs a smaller type scale than desktop. */
    .hero-sub { font-size: 0.875rem; max-width: 100%; }
    .hero-kicker { font-size: 0.875rem; margin-bottom: 22px; }

    /* A separate portrait crop, taken from the mobile mockup. The desktop image
       is 1.75:1; in a portrait container `cover` zooms it so hard that only the
       delivery box remains. This one is framed for the phone from the start. */
    /* Heavy on the left where the headline sits, near-clear on the right so the
       rider reads through as it does in the mockup. */
    .hero::after {
        background:
            linear-gradient(90deg, rgba(0, 31, 46, 0.9) 0%, rgba(0, 31, 46, 0.6) 38%,
                            rgba(0, 31, 46, 0.14) 74%, rgba(0, 31, 46, 0.04) 100%),
            linear-gradient(180deg, rgba(1, 23, 34, 0.34) 0%,
                            rgba(1, 23, 34, 0.02) 36%, rgba(1, 23, 34, 0.86) 100%);
    }
    .hero-copy { max-width: 100%; }
    .hero-sub { max-width: 34ch; }
    .hero .btn-wa { width: 100%; justify-content: center; padding-block: 13px; font-size: 0.9375rem; }

    .benefits { margin-top: -54px; }
    .benefits-card { padding: 20px 2px; }

    /* Narrow padding keeps each column wide enough for the mockup's two-line
       wrap; at 12px they squeezed to three lines. */
    .benefit {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-inline: 5px;
    }

    .benefit h3 { font-size: 0.9375rem; line-height: 1.25; }
    .benefit p { font-size: 0.875rem; }

    .steps { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0 8px; }
    .step { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    .step h3 { margin-top: 0; font-size: 0.9375rem; }
    .step p { font-size: 0.875rem; }
    .step-ring { width: 76px; height: 76px; }
    .step-ring svg { width: 38px; height: 38px; }
    .step-num { width: 28px; height: 28px; font-size: 0.9375rem; left: -4px; bottom: 6px; }
    .step-link { min-width: 22px; margin-top: 38px; }   /* half the 76px ring */

    .b2b-card { flex-direction: column; text-align: center; gap: 18px; padding: 26px 22px; }
}

@media (max-width: 560px) {
    .shell { padding-inline: 19px; }
    .section { padding-block: 54px; }
    .benefit-icon { width: 52px; height: 52px; }
    .benefit-icon svg { width: 24px; height: 24px; }
    .benefit h3 { font-size: 0.8125rem; }
    .benefit p { font-size: 0.75rem; line-height: 1.35; max-width: none; }
    .step h3 { font-size: 0.8125rem; }
    .step p { font-size: 0.75rem; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Below ~360px the ring + the unbreakable word "ENTREGAMOS" + the connectors
   exceed the available grid tracks and the last column was clipped. */
@media (max-width: 359px) {
    .shell { padding-inline: 12px; }
    .steps { gap: 0 4px; }
    .step-ring { width: 58px; height: 58px; }
    .step-ring svg { width: 28px; height: 28px; }
    .step-link { min-width: 8px; margin-top: 29px; }
    .step-num { width: 24px; height: 24px; font-size: 0.8125rem; }
    .step h3 { font-size: 0.75rem; }
    .step p, .benefit p { font-size: 0.6875rem; }
    .benefit-icon { width: 44px; height: 44px; }
    .benefit-icon svg { width: 20px; height: 20px; }
}


/* Phones only: the portrait crop and the narrow headline measure, which the
   mockup uses to keep the rider clear of the copy. */
@media (max-width: 560px) {
    .hero::before {
        width: 100%;
        background-image: url('../img/hero-mobile.jpg');
        background-image: image-set(url('../img/hero-mobile.webp') type('image/webp'),
                                    url('../img/hero-mobile.jpg') type('image/jpeg'));
        background-image: -webkit-image-set(url('../img/hero-mobile.webp') type('image/webp'),
                                            url('../img/hero-mobile.jpg') type('image/jpeg'));
        background-size: auto 88%;
        background-position: right -18px top 5%;
        background-repeat: no-repeat;
    }

    .hero h1 { font-size: 2rem; max-width: 8.4ch; line-height: 1.18; margin-bottom: 16px; }
}
