/* ==========================================================================
   Barrio Digital — landing V1
   Sin dependencias: HTML + CSS + un poco de JS (js/landing.js).
   ========================================================================== */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat/montserrat-bold-webfont.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Verde de la marca (el mismo de la app) y naranja como acento. */
    --brand: #067a57;
    --brand-strong: #05623f;
    --brand-soft: #e7f3ee;
    --accent: #ff7b29;
    --accent-strong: #e5621a;
    --accent-ink: #b4470e;
    --accent-soft: #fff1e7;
    --ink: #1d2127;
    --ink-soft: #4a525e;
    --ink-muted: #6b7380;
    --line: #e6e3df;
    --paper: #ffffff;
    --paper-warm: #faf7f3;
    --night: #14181e;
    --night-soft: #252b33;
    --forest: #0b3326;
    --forest-soft: #12463a;

    --font-display: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(20, 24, 30, .10);
    --wrap: 1120px;
    --gutter: 16px;
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand-strong); }
a:hover { color: var(--accent-strong); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Botones
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }

.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: inherit; }

.btn-light { background: #fff; color: var(--brand-strong); }
.btn-light:hover { background: var(--accent-soft); color: var(--brand-strong); }

.btn-block { width: 100%; }

/* Encabezado
   ========================================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    color: #fff;
    transition: background-color .2s, box-shadow .2s;
}
.site-header.is-solid,
.site-header.is-open {
    background: var(--night);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform .2s, background-color .2s;
}
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }
.is-open .nav-toggle-bar { background: transparent; }
.is-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--night);
    padding: 8px var(--gutter) 20px;
}
.is-open .main-nav { display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a {
    display: block;
    padding: 12px 0;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-weight: 600;
}
.main-nav li a:hover { color: #fff; }
.main-nav .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .main-nav {
        display: flex;
        align-items: center;
        gap: 28px;
        position: static;
        background: transparent;
        padding: 0;
    }
    .main-nav ul { display: flex; gap: 22px; }
    .main-nav li a { padding: 6px 0; font-size: .95rem; }
    .main-nav .nav-actions { flex-direction: row; align-items: center; margin: 0; gap: 14px; }
    .main-nav .nav-actions .btn { min-height: 42px; padding: 8px 18px; }
}

.link-quiet {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    text-decoration: none;
}
.link-quiet:hover { color: #fff; text-decoration: underline; }

/* Hero
   ========================================================================== */

.hero {
    position: relative;
    color: #fff;
    background: var(--night);
    padding: 112px 0 64px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 122, 87, .42) 0%, rgba(20, 24, 30, .88) 100%);
}
.hero .wrap {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    align-items: center;
}
@media (min-width: 960px) {
    .hero { padding: 140px 0 96px; }
    .hero .wrap { grid-template-columns: 1.15fr .85fr; }
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}
.hero .eyebrow,
.section-dark .eyebrow { color: var(--accent); }

/* Palabras clave resaltadas, como en la landing original. */
.hl { color: var(--brand-strong); font-weight: 700; }
.hero .hl { color: #fff; box-shadow: inset 0 -.35em 0 rgba(255, 123, 41, .55); }

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .88);
    max-width: 36em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 18px;
}

.hero-note {
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
    margin: 0;
}

/* Maqueta del teléfono (ilustración de la pantalla de Pedidos) */

.phone {
    width: min(320px, 100%);
    margin: 0 auto;
    border-radius: 36px;
    padding: 12px;
    background: #0b0d10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px #2c323a;
}
.phone-screen {
    border-radius: 26px;
    overflow: hidden;
    background: #f4f5f7;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
}
.phone-bar {
    background: var(--brand);
    color: #fff;
    padding: 16px 16px 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}
.phone-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.phone-tabs span {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-weight: 600;
    color: var(--ink-muted);
}
.phone-tabs .is-active { color: var(--brand-strong); box-shadow: inset 0 -2px 0 var(--brand); }
.phone-body { padding: 12px; display: grid; gap: 10px; }
.phone-date { font-size: 11px; color: var(--ink-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.order-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.order-head { display: flex; justify-content: space-between; font-weight: 700; }
.order-meta { color: var(--ink-muted); font-size: 12px; margin: 2px 0 8px; }
.order-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.order-chip.is-ok { background: var(--brand-soft); color: var(--brand-strong); }
.order-progress { height: 6px; border-radius: 6px; background: #eceef1; margin: 10px 0; overflow: hidden; }
.order-progress span { display: block; height: 100%; background: var(--brand); }
.order-action {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}
.phone-caption {
    text-align: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    margin-top: 14px;
}

/* Secciones
   ========================================================================== */

.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }

.section-warm { background: var(--paper-warm); }
.section-dark { background: var(--forest); color: #fff; }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
    margin-top: 18px;
}
.section-head.is-center h2::after { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .78); }
.section-dark .hl { color: #fff; }

/* Para quién */

.audience {
    padding: 28px 0;
    background: var(--brand);
    color: #fff;
}
.audience .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 26px;
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
}
.audience p { margin: 0; color: #ffd2b5; }
.audience ul { display: contents; list-style: none; }
.audience li { white-space: nowrap; }

/* Negocio familiar */

.family {
    display: grid;
    gap: 40px;
    align-items: center;
}
@media (min-width: 900px) { .family { grid-template-columns: .9fr 1.1fr; gap: 64px; } }

.family-photo {
    position: relative;
    margin: 0;
}
.family-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 60%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
@media (min-width: 900px) { .family-photo img { aspect-ratio: 4 / 5; } }

.family-quote {
    position: relative;
    margin: -48px 16px 0;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    box-shadow: var(--shadow);
}
.family-quote::before {
    content: "“";
    display: block;
    font-size: 2.6rem;
    line-height: .6;
    color: var(--accent);
    margin-bottom: 6px;
}
@media (min-width: 900px) { .family-quote { margin: -72px -24px 0 32px; } }

.family-text .section-head { margin-bottom: 20px; }
.family-text > p { color: var(--ink-soft); font-size: 1.08rem; }

.values {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 18px;
}
.values li { display: flex; gap: 14px; }
.values svg {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}
.values h3 { margin-bottom: .2em; }
.values p { margin: 0; color: var(--ink-soft); }

/* Pasos */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
    counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li {
    counter-increment: step;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 14px;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Tarjetas de funciones */

.grid {
    display: grid;
    gap: 20px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.card p { color: var(--ink-soft); margin: 0; }
.card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-strong);
    margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card small { display: block; margin-top: 10px; color: var(--ink-muted); font-size: .85rem; }

/* Flujo del pedido */

.flow {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.flow li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: .92rem;
}
.flow li:not(:last-child)::after { content: "→"; color: var(--accent-strong); margin-left: 4px; }
.flow-note { color: var(--ink-muted); font-size: .92rem; margin-top: 14px; }

/* Requisitos */

.reqs { display: grid; gap: 16px; }
@media (min-width: 720px) { .reqs { grid-template-columns: repeat(2, 1fr); } }
.req {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--forest-soft);
}
.req svg { flex: none; width: 26px; height: 26px; color: var(--accent); }
.req h3 { margin-bottom: .25em; }
.req p { margin: 0; color: rgba(255, 255, 255, .78); }

/* En camino */

.badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    margin-bottom: 12px;
}
.card.is-soon { border-style: dashed; background: transparent; }

/* Precio */

.price {
    max-width: 520px;
    margin: 0 auto;
    background: var(--paper);
    border: 2px solid var(--brand);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}
.price-top {
    position: relative;
    background: var(--brand);
    color: #fff;
    padding: 32px 28px 24px;
}
.price-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
}
.price-body { padding: 28px; }
.price-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.4rem;
    line-height: 1;
    margin: 8px 0 4px;
}
.price-amount sup { font-size: 1rem; vertical-align: top; margin-right: 4px; color: rgba(255, 255, 255, .75); }
.price-sub { color: rgba(255, 255, 255, .85); margin: 0; }
.checks {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 10px;
}
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price-fine { font-size: .88rem; color: var(--ink-muted); margin: 18px 0 0; }

/* Preguntas frecuentes */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
    border-bottom: 1px solid var(--line);
}
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 40px 20px 0;
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-strong);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }

/* Llamado final */

.cta {
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 123, 41, .28), transparent 45%),
        var(--brand);
    color: #fff;
    text-align: center;
}
.cta p { font-size: 1.1rem; color: rgba(255, 255, 255, .92); max-width: 36em; margin: 0 auto 28px; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* Pie de página
   ========================================================================== */

.site-footer {
    background: var(--night);
    color: rgba(255, 255, 255, .75);
    padding: 56px 0 28px;
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    gap: 32px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 40px;
    padding-top: 20px;
    font-size: .85rem;
}

/* Páginas legales
   ========================================================================== */

.legal-hero {
    background: var(--night);
    color: #fff;
    padding: 112px 0 40px;
}
.legal-hero p { color: rgba(255, 255, 255, .75); margin: 0; }

.legal {
    max-width: 780px;
    padding-top: 48px;
    padding-bottom: 72px;
}
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--paper-warm); }
.legal .table-scroll { overflow-x: auto; }

/* Marcador de dato pendiente de completar antes de publicar. */
.todo {
    background: #fff3b0;
    color: #6b4e00;
    padding: 0 4px;
    border-radius: 3px;
}
