/* ============================================================
   PetCare Planner - Sistema de diseno v2
   Identidad: "ficha veterinaria moderna". Petroleo profundo,
   verde salvia, ambar calido. Mobile-first, touch >= 44px.
   ============================================================ */

:root {
    --ink: #16232a;
    --ink-soft: #3d4f58;
    --muted: #5b6c75;
    --line: #dbe6e6;
    --line-soft: #e8f0ef;
    --paper: #ffffff;
    --bg: #f2f7f6;
    --bg-deep: #e6efed;

    --brand: #0f4c5c;
    --brand-strong: #0b3745;
    --brand-2: #2d7d6f;
    --brand-2-soft: #e2f1ec;
    --accent: #c7772f;
    --accent-soft: #fbeedd;
    --danger: #b23b3b;
    --danger-soft: #fdecec;
    --ok: #27714b;
    --ok-soft: #e7f6ee;
    --warn: #8a6410;
    --warn-soft: #fdf4de;

    --grad-brand: linear-gradient(135deg, #11576a 0%, #0b3745 100%);
    --grad-sage: linear-gradient(135deg, #2d7d6f 0%, #1d5a50 100%);

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-1: 0 1px 2px rgba(15, 60, 74, .06), 0 4px 14px rgba(15, 60, 74, .07);
    --shadow-2: 0 2px 6px rgba(15, 60, 74, .08), 0 14px 34px rgba(15, 60, 74, .12);
    --ring: 0 0 0 3px rgba(45, 125, 111, .35);

    /* Huellas sutiles como marca de agua (SVG inline, sin peticiones) */
    --paw-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%230f4c5c' fill-opacity='0.045'%3E%3Cellipse cx='28' cy='26' rx='5' ry='7' transform='rotate(-18 28 26)'/%3E%3Cellipse cx='48' cy='26' rx='5' ry='7' transform='rotate(18 48 26)'/%3E%3Cpath d='M38 34c7 0 13 6 15 13 1.5 6-2 10-7.5 10-3 0-4.5-1.5-7.5-1.5S33.5 57 30.5 57C25 57 21.5 53 23 47c2-7 8-13 15-13z'/%3E%3Cellipse cx='98' cy='96' rx='5' ry='7' transform='rotate(-18 98 96)'/%3E%3Cellipse cx='118' cy='96' rx='5' ry='7' transform='rotate(18 118 96)'/%3E%3Cpath d='M108 104c7 0 13 6 15 13 1.5 6-2 10-7.5 10-3 0-4.5-1.5-7.5-1.5s-4.5 1.5-7.5 1.5c-5.5 0-9-4-7.5-10 2-7 8-13 15-13z'/%3E%3C/g%3E%3C/svg%3E");

    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html {
    color: var(--ink);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(45, 125, 111, .25); }

/* Cifras alineadas en tablas, contadores y precios */
.stats-grid strong, .usage-item header strong, .price, .hero-proof strong,
.due-tag, .total-row strong, td { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
.section-block, .steps-band { scroll-margin-top: 84px; }

/* Entrada suave sin ocultar contenido aún no intersectado. */
.reveal-in {
    animation: reveal-card .55s cubic-bezier(.2, .7, .25, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-card {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal-in { animation: none; }
}

.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;
}
.skip-link {
    position: fixed;
    z-index: 10000;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--brand-strong);
    font-weight: 800;
    box-shadow: var(--shadow-2);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:where(a, button, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid #d9913b;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    a, .button, .panel, .pet-card, .row-card, .nav-list a, input, select, textarea, .stats-grid article {
        transition: background-color .18s ease, border-color .18s ease, color .18s ease,
                    box-shadow .18s ease, transform .18s ease, filter .18s ease;
    }
}

/* ---------- Formularios ---------- */
input, select, textarea, button { font: inherit; }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    background: var(--paper);
    color: var(--ink);
}
input:hover, select:hover, textarea:hover { border-color: #bfd2d0; }
input:focus, select:focus, textarea:focus,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: var(--ring);
}
textarea { min-height: 96px; resize: vertical; }
label { display: grid; gap: .38rem; font-weight: 650; font-size: .92rem; color: var(--ink-soft); }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin: 0; }
legend { padding: 0 .45rem; font-weight: 800; color: var(--ink); }

/* ---------- Estructura ---------- */
.app-shell { display: grid; min-height: 100vh; min-height: 100dvh; grid-template-columns: 264px minmax(0, 1fr); }

.mobile-topbar, .sidebar-close, .nav-backdrop { display: none; }

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.3rem 1.1rem;
    padding-top: calc(1.3rem + env(safe-area-inset-top, 0px));
    background: var(--grad-brand);
    color: #d9e8e6;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sidebar-mobile-head { display: contents; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 900;
    font-size: 1.12rem;
    letter-spacing: -.01em;
    color: #ffffff;
}
.brand::before {
    content: "";
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: url("/assets/img/logo.svg") center/cover no-repeat;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.brand:hover { text-decoration: none; }
.brand-center { justify-content: center; width: 100%; margin-bottom: 1rem; color: var(--brand); }
.brand-center::before { box-shadow: var(--shadow-1); }

.nav-list { display: grid; gap: .18rem; }
.nav-list a {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    padding: .6rem .8rem;
    border-radius: var(--radius-sm);
    color: #bcd4d0;
    font-weight: 650;
}
.nav-list a svg { flex: 0 0 auto; opacity: .75; }
.nav-list a:hover { background: rgba(255, 255, 255, .08); color: #ffffff; text-decoration: none; }
.nav-list a.is-active {
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--accent);
}
.nav-list a.is-active svg { opacity: 1; }

.account-switch label { color: #9fc0bb; font-size: .78rem; }
.account-switch select {
    min-height: 40px;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .18);
    color: #ffffff;
    font-size: .9rem;
}
.account-switch option { color: var(--ink); }

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: .7rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #9fc0bb;
    font-size: .92rem;
}
.sidebar-footer .button-ghost { border-color: rgba(255, 255, 255, .28); color: #ffffff; }
.sidebar-footer .button-ghost:hover { background: rgba(255, 255, 255, .1); }

.main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 2.2rem);
}

/* ---------- Encabezados ---------- */
.page-header, .section-title, .button-row, .hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header { margin-bottom: 1.4rem; }
.page-header h1, h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.015em; }
.page-header h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 850; }
h1 { font-size: 1.85rem; font-weight: 850; }
h2 { font-size: 1.18rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 750; }
.eyebrow {
    margin: 0 0 .4rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--brand-2);
    font-weight: 850;
    font-size: .72rem;
}
.muted { color: var(--muted); }
.muted-links { color: var(--muted); text-align: center; }

/* ---------- Botones ---------- */
.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: .68rem 1.15rem;
    background: var(--grad-sage);
    color: #ffffff;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(29, 90, 80, .28);
}
/* Destello sutil al pasar el cursor (solo botones solidos, sin reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
    .button:not(.button-ghost)::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .28) 50%, transparent 58%);
        transform: translateX(-130%);
        pointer-events: none;
    }
    .button:not(.button-ghost):hover::after {
        transform: translateX(130%);
        transition: transform .65s ease;
    }
}
.button:hover { filter: brightness(1.06); text-decoration: none; box-shadow: 0 4px 14px rgba(29, 90, 80, .34); }
.button:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(29, 90, 80, .3); }
.button:disabled { cursor: default; opacity: .68; filter: grayscale(.15); box-shadow: none; }
.button:focus-visible { outline: none; box-shadow: var(--ring); }
.button-ghost {
    background: transparent;
    color: var(--brand);
    border-color: var(--line);
    box-shadow: none;
}
.button-ghost:hover { background: var(--brand-2-soft); border-color: var(--brand-2); filter: none; box-shadow: none; }
.button-small { min-height: 36px; padding: .4rem .75rem; font-size: .88rem; border-radius: 9px; }
.button-full { width: 100%; }

/* ---------- Superficies ---------- */
.panel, .pet-card, .row-card, .stats-grid article, .empty-state, .emergency-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}
.panel { padding: 1.35rem; }
.panel > h2:first-child { margin-bottom: .9rem; }

.stats-grid, .card-grid, .content-grid, .feature-band { display: grid; gap: 1rem; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.stats-grid article {
    position: relative;
    padding: 1.05rem 1.1rem;
    overflow: hidden;
}
.stats-grid article::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad-sage);
    opacity: .85;
}
.stats-grid span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
    font-weight: 750;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.stats-grid span svg { color: var(--brand-2); }
.stats-grid strong { display: block; margin-top: .3rem; font-size: 2rem; font-weight: 900; color: var(--brand); }

.card-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.content-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); align-items: start; }
.list-stack, .form-stack { display: grid; gap: .85rem; }
.compact-form { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; }
.check-row { display: flex; align-items: center; gap: .6rem; font-weight: 650; }
.check-row input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--brand-2); }
.check-grid { display: grid; gap: .55rem; }

/* ---------- Tarjetas de mascota y filas ---------- */
.pet-card, .row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.05rem;
}
.pet-card:hover, .row-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); border-color: var(--line); }
.pet-avatar {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: var(--grad-sage);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.15rem;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(29, 90, 80, .25);
}
.pet-avatar-photo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--paper);
    padding: 0;
    box-shadow: 0 3px 8px rgba(15, 60, 74, .2);
}
.pet-photo {
    width: 136px;
    height: 136px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 3px solid var(--paper);
    box-shadow: var(--shadow-2);
    margin-bottom: 1rem;
}
.row-card span, .pet-card p { display: block; margin: .22rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Pills por tipo de cuidado ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: .18rem .7rem;
    background: var(--brand-2-soft);
    color: var(--brand-2);
    font-weight: 750;
    font-size: .8rem;
    letter-spacing: .01em;
    white-space: nowrap;
}
.pill[data-type="vaccine"], .pill.pill-vaccine { background: var(--ok-soft); color: var(--ok); }
.pill[data-type="deworming"] { background: var(--accent-soft); color: #8a5417; }
.pill[data-type="medication"] { background: var(--danger-soft); color: var(--danger); }
.pill[data-type="vet_visit"] { background: #e5ecfa; color: #2f4d8f; }
.pill[data-type="grooming"] { background: #f4e9f7; color: #7c3f8f; }
.pill[data-type="food"] { background: var(--warn-soft); color: var(--warn); }

/* ---------- Listas de definicion / codigo / QR ---------- */
.definition-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: .6rem 1rem; margin: 0; }
.definition-list dt { color: var(--muted); font-weight: 700; font-size: .9rem; }
.definition-list dd { margin: 0; font-weight: 550; }
.code-block {
    display: block;
    overflow-wrap: anywhere;
    padding: .85rem .95rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--line);
    background: var(--bg);
    color: var(--brand);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
}
.qr-code {
    display: grid;
    place-items: center;
    padding: .9rem;
    margin-bottom: .85rem;
    background: #ffffff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 6px #ffffff, var(--shadow-1);
}
.qr-code svg { width: 190px; height: 190px; }
.card-qr { display: grid; place-items: center; gap: .5rem; margin-top: 1.25rem; text-align: center; }

/* ---------- Alertas ---------- */
.alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-left-width: 4px;
    background: var(--paper);
    font-weight: 650;
    box-shadow: var(--shadow-1);
}
.alert-success { border-color: #9bd2b2; border-left-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.alert-error { border-color: #e2a4a4; border-left-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.alert-warning { border-color: #e8c891; border-left-color: var(--warn); background: var(--warn-soft); color: var(--warn); }

.empty-state {
    padding: 1.6rem 1.3rem 1.8rem;
    color: var(--muted);
    text-align: center;
    border-style: dashed;
    border-color: var(--line);
    background:
        var(--paw-pattern),
        var(--paper);
}
/* Gato durmiendo (ilustracion propia) en todos los estados vacios */
.empty-state::before {
    content: "";
    display: block;
    width: 104px;
    height: 64px;
    margin: 0 auto .5rem;
    background: url("/assets/img/illustrations/cat-sleep.svg") center / contain no-repeat;
}
.total-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}
.total-row strong { color: var(--brand); font-size: 1.1rem; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.table-section-spacing { margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem .9rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg); }
th {
    background: var(--bg);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
}

/* ---------- Landing publica ---------- */
.public-navbar {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: .8rem 1.25rem;
    padding-top: calc(.8rem + env(safe-area-inset-top, 0px));
    background: #f8fbfa;
    transition: background-color .25s ease, box-shadow .25s ease;
}
.public-navbar.is-scrolled {
    background: rgba(248, 251, 250, .78);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(15, 76, 92, .08), 0 8px 24px rgba(15, 76, 92, .08);
}
.public-hero {
    position: relative;
    overflow: hidden;
    min-height: 74vh;
    padding: 1.4rem 1.25rem 4.5rem;
    background:
        var(--paw-pattern),
        radial-gradient(60rem 30rem at 110% -10%, rgba(45, 125, 111, .16), transparent),
        radial-gradient(50rem 26rem at -20% 110%, rgba(199, 119, 47, .1), transparent),
        linear-gradient(160deg, #f8fbfa 0%, #e4f0ec 100%);
}
/* Aurora: dos halos suaves en movimiento lento detras del contenido */
.hero-glow {
    position: absolute;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
    will-change: transform;
}
.hero-glow-a { top: -18rem; right: -12rem; background: radial-gradient(circle, rgba(45, 125, 111, .35), transparent 65%); }
.hero-glow-b { bottom: -20rem; left: -14rem; background: radial-gradient(circle, rgba(199, 119, 47, .22), transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
    .hero-glow-a { animation: glow-drift 16s ease-in-out infinite alternate; }
    .hero-glow-b { animation: glow-drift 20s ease-in-out infinite alternate-reverse; }
    @keyframes glow-drift {
        from { transform: translate3d(0, 0, 0) scale(1); }
        to { transform: translate3d(-4rem, 3rem, 0) scale(1.12); }
    }
}
.hero-grid > div:first-child, .phone-preview { position: relative; z-index: 1; }
.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    width: min(1120px, 100%);
}
.public-nav > strong {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--brand);
}
.public-nav > .public-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--brand);
}
.public-nav > .public-brand::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: url("/assets/img/logo.svg") center/cover no-repeat;
    box-shadow: var(--shadow-1);
}
.public-nav > .public-brand:hover { text-decoration: none; }
.public-nav > strong::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: url("/assets/img/logo.svg") center/cover no-repeat;
    box-shadow: var(--shadow-1);
}
.public-nav div { display: flex; align-items: center; gap: .85rem; }
.public-nav a { font-weight: 700; color: var(--brand); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: center;
    width: min(1120px, 100%);
    margin: 7vh auto 0;
}
.hero-grid h1 {
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    max-width: 760px;
    font-weight: 900;
    letter-spacing: -.025em;
    color: var(--brand-strong);
}
.hero-grid p { max-width: 640px; color: var(--ink-soft); font-size: 1.12rem; }
.hero-actions { justify-content: flex-start; margin-top: 1.4rem; }

.phone-preview {
    min-height: 500px;
    border-radius: 38px;
    border: 10px solid #14242b;
    background: linear-gradient(170deg, #fbfdfc 0%, #eef5f2 100%);
    padding: 1.6rem 1.15rem 1.15rem;
    display: grid;
    align-content: start;
    gap: .9rem;
    box-shadow: 0 24px 60px rgba(11, 55, 69, .28), inset 0 1px 0 rgba(255, 255, 255, .8);
    position: relative;
}
@media (prefers-reduced-motion: no-preference) {
    .phone-preview { animation: phone-float 7s ease-in-out infinite alternate; }
    @keyframes phone-float {
        from { transform: translateY(0); }
        to { transform: translateY(-10px); }
    }
}
/* Duo asomandose sobre el borde del telefono (flota junto a el) */
.phone-peek {
    position: absolute;
    top: -46px;
    right: 14px;
    width: 132px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(11, 55, 69, .25));
    pointer-events: none;
}

/* Huellas que caminan bajo el titulo de seccion */
.trail-row { display: flex; align-items: flex-end; gap: .7rem; margin-top: 1rem; }
.paw-trail { display: block; width: 250px; max-width: 55vw; height: 44px; overflow: visible; }
.paw-trail .paso { fill: var(--brand-2); opacity: .16; }
@media (prefers-reduced-motion: no-preference) {
    .paw-trail .paso { animation: pisada 3.6s ease-in-out infinite; }
    .paw-trail .paso:nth-child(2) { animation-delay: .45s; }
    .paw-trail .paso:nth-child(3) { animation-delay: .9s; }
    .paw-trail .paso:nth-child(4) { animation-delay: 1.35s; }
    .paw-trail .paso:nth-child(5) { animation-delay: 1.8s; }
    @keyframes pisada {
        0%, 40%, 100% { opacity: .16; }
        14% { opacity: .85; }
    }
}

/* Perro trotando al final del rastro de huellas (ilustracion propia inline) */
.walking-dog { width: 92px; height: 56px; flex: 0 0 auto; overflow: visible; }
.walking-dog .cuerpo { fill: var(--brand); }
.walking-dog .detalle { fill: #e2f1ec; }
.walking-dog .nariz { fill: var(--brand-strong); }
.walking-dog .cola { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
    .walking-dog .trote { animation: dog-bob .7s ease-in-out infinite alternate; }
    @keyframes dog-bob { to { transform: translateY(-1.6px); } }
    .walking-dog .pata {
        transform-box: fill-box;
        transform-origin: 50% 8%;
        animation: paso-pata .7s ease-in-out infinite alternate;
    }
    .walking-dog .pata.alt { animation-delay: -.35s; }
    @keyframes paso-pata {
        from { transform: rotate(13deg); }
        to { transform: rotate(-13deg); }
    }
    .walking-dog .cola {
        transform-box: fill-box;
        transform-origin: 90% 95%;
        animation: meneo 1.1s ease-in-out infinite alternate;
    }
    @keyframes meneo {
        from { transform: rotate(-10deg); }
        to { transform: rotate(14deg); }
    }
    .feature-card:hover .feature-icon svg { animation: wiggle .55s ease; }
    @keyframes wiggle {
        30% { transform: rotate(-9deg); }
        70% { transform: rotate(9deg); }
    }
}

/* Duo asomandose por el borde inferior del CTA final */
.cta-peek {
    position: absolute;
    bottom: -6px;
    left: 2rem;
    width: 108px;
    height: auto;
    z-index: 0;
    opacity: .95;
    pointer-events: none;
}

/* Duo (variante oscura) asomandose sobre el panel de uso del plan */
.panel-with-peek { position: relative; margin-top: 26px; }
.panel-peek {
    position: absolute;
    top: -29px;
    right: 1.1rem;
    width: 92px;
    height: auto;
    pointer-events: none;
}

/* Gato durmiendo al pie de la barra lateral (solo escritorio) */
.sidebar-cat { width: 94px; margin: auto auto 0; opacity: .8; pointer-events: none; }
.sidebar-cat + .sidebar-footer { margin-top: .6rem; }
.phone-preview::before {
    content: "";
    position: absolute;
    top: .55rem;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 7px;
    border-radius: 999px;
    background: #14242b;
}
.mini-card {
    background: #ffffff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: .85rem .95rem;
    box-shadow: var(--shadow-1);
}
.mini-card span, .mini-card small { display: block; color: var(--muted); font-size: .8rem; }
.mini-card strong { display: block; margin: .3rem 0; color: var(--brand-strong); }
.qr-mock {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: .7rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-1);
    color: var(--muted);
    font-weight: 800;
}
.qr-mock svg { width: 132px; height: 132px; }
.qr-mock .qr-code { border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }
.qr-mock .qr-caption { font-size: .74rem; color: var(--muted); font-weight: 650; margin-top: .35rem; }

.feature-band {
    grid-template-columns: repeat(3, 1fr);
    width: min(1120px, calc(100% - 2rem));
    margin: -3.2rem auto 2.4rem;
    position: relative;
}
.feature-band article {
    background: #ffffff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow-2);
}
.feature-band strong, .feature-band span { display: block; }
.feature-band strong { color: var(--brand); font-size: 1.02rem; }
.feature-band span { color: var(--muted); margin-top: .3rem; font-size: .94rem; }

.brand-story {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(1.4rem, 4vw, 3.2rem);
    align-items: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--line-soft);
    border-radius: calc(var(--radius) + 8px);
    background: linear-gradient(135deg, #ffffff 0%, #edf6f3 100%);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
.brand-story-media { position: relative; min-width: 0; }
.brand-story-media::after {
    content: "Cuidado para cada especie";
    position: absolute;
    left: .85rem;
    bottom: .85rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(11, 55, 69, .88);
    color: #ffffff;
    font-size: .78rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}
.brand-story img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}
.brand-story-copy { display: grid; gap: .85rem; }
.brand-story-copy p { margin: 0; color: var(--muted); }
.brand-story-points { display: grid; gap: .55rem; margin: .3rem 0 0; padding: 0; list-style: none; }
.brand-story-points li { display: flex; align-items: flex-start; gap: .55rem; color: var(--ink-soft); font-weight: 650; }
.brand-story-points li::before { content: "•"; color: var(--brand-2); font-size: 1.35rem; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
    .brand-story img { transition: transform .7s cubic-bezier(.2, .7, .25, 1); }
    .brand-story:hover img { transform: scale(1.018); }
}

/* ---------- Paginas publicas (QR / carnet / errores) ---------- */
.error-card {
    width: min(560px, 100%);
    padding: 2.2rem 1.6rem;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
}
.error-card h1 { font-size: 1.3rem; margin: .4rem 0 1.2rem; color: var(--ink-soft); }
.error-pet { width: 130px; height: auto; margin-bottom: .4rem; }

.public-card, .center-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        var(--paw-pattern),
        linear-gradient(160deg, #f6faf9 0%, #e7f1ee 100%);
}
.emergency-card, .print-card { width: min(680px, 100%); padding: 1.7rem; }
.emergency-card { border-top: 5px solid var(--accent); }
.emergency-message { font-size: 1.05rem; color: var(--ink-soft); }
.emergency-call { margin: 1rem 0 1.25rem; font-size: 1.02rem; }
.print-card {
    margin: 2rem auto;
    background: #ffffff;
    border: 1px solid var(--line-soft);
    border-top: 5px solid var(--brand-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 1.2rem;
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- Landing v3 ---------- */
.public-nav .nav-links { display: flex; gap: 1.4rem; }
.public-nav .nav-links a { color: var(--ink-soft); font-weight: 650; font-size: .95rem; }
.public-nav .nav-links a:hover { color: var(--brand); text-decoration: none; }

h1 em, h2 em { font-style: normal; position: relative; color: var(--brand-2); isolation: isolate; }
h1 em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .06em;
    height: .3em;
    background: var(--accent-soft);
    z-index: -1;
    border-radius: 4px;
}

.hero-proof { display: flex; gap: 2.2rem; list-style: none; padding: 0; margin: 2rem 0 0; flex-wrap: wrap; }
.hero-proof li { display: grid; gap: .1rem; }
.hero-proof strong { font-size: 1.4rem; font-weight: 900; color: var(--brand-strong); }
.hero-proof span { color: var(--muted); font-size: .86rem; }

.section-block { width: min(1120px, 100%); margin: 0 auto; padding: 3.4rem 1.25rem 3.6rem; }
.section-head { max-width: 660px; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head .eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    margin-right: .55rem;
    vertical-align: middle;
    border-radius: 2px;
    background: currentColor;
    opacity: .75;
}
.section-note { margin-top: 1.2rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.35rem 1.3rem;
    box-shadow: var(--shadow-1);
}
.feature-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--brand-2-soft);
    color: var(--brand-2);
    margin-bottom: .85rem;
}
.feature-card h3 { margin-bottom: .4rem; font-size: 1.03rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps-band { background: var(--paper); border-block: 1px solid var(--line-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.step-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--grad-brand);
    color: #ffffff;
    font-weight: 900;
    margin-bottom: .75rem;
    box-shadow: 0 4px 10px rgba(11, 55, 69, .3);
}
.step-card h3 { margin-bottom: .35rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.price-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: .75rem;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.6rem 1.45rem;
    box-shadow: var(--shadow-1);
}
.price-card.is-featured { border-color: var(--brand-2); box-shadow: 0 0 0 2px var(--brand-2), var(--shadow-2); }
@media (min-width: 961px) {
    .price-card.is-featured { transform: scale(1.035); }
    .price-card.is-featured:hover { transform: scale(1.045); }
}
.price-badge {
    position: absolute;
    top: -0.75rem;
    left: 1.3rem;
    background: var(--grad-sage);
    color: #ffffff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .28rem .7rem;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(29, 90, 80, .3);
}
.price { font-size: 2rem; font-weight: 900; color: var(--brand-strong); letter-spacing: -.02em; }
.price small { font-size: .95rem; font-weight: 650; color: var(--muted); }
.price-card ul { list-style: none; margin: .2rem 0 .6rem; padding: 0; display: grid; gap: .5rem; color: var(--ink-soft); font-size: .95rem; }
.price-card li { padding-left: 1.4rem; position: relative; }
.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-2);
    font-weight: 900;
}

.cta-final {
    position: relative;
    overflow: hidden;
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto 3rem;
    padding: 2.4rem 2.6rem;
    border-radius: var(--radius);
    background:
        radial-gradient(38rem 16rem at 85% -20%, rgba(45, 125, 111, .55), transparent),
        var(--grad-brand);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-2);
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--paw-pattern);
    opacity: .5;
    filter: invert(1);
    pointer-events: none;
}
.cta-final h2 { color: #ffffff; font-size: 1.5rem; max-width: 560px; }
.cta-final p { color: #bcd4d0; margin: .45rem 0 0; }
.cta-final .button { background: #ffffff; color: var(--brand); box-shadow: none; }
.cta-final .button:hover { filter: brightness(.96); }

/* ---------- Dashboard v3 ---------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.quick-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 48px;
    padding: .7rem .8rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font-weight: 650;
    font-size: .92rem;
}
.quick-link:hover { background: var(--brand-2-soft); border-color: var(--brand-2); text-decoration: none; }
.quick-link svg { color: var(--brand-2); flex: 0 0 auto; }

.usage-item { display: grid; gap: .32rem; margin-bottom: .95rem; }
.usage-item:last-of-type { margin-bottom: .4rem; }
.usage-item header { display: flex; justify-content: space-between; font-size: .87rem; color: var(--muted); font-weight: 650; }
.usage-item header strong { color: var(--ink); font-weight: 750; }
.usage-track { height: 8px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.usage-fill { height: 100%; border-radius: 999px; background: var(--grad-sage); min-width: 4px; }
.usage-fill.is-full { background: linear-gradient(90deg, #c7772f, #b23b3b); }

.due-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .1rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
    background: var(--bg-deep);
    color: var(--muted);
    white-space: nowrap;
}
.due-tag.is-overdue { background: var(--danger-soft); color: var(--danger); }
.due-tag.is-today { background: var(--accent-soft); color: #8a5417; }
.due-tag.is-soon { background: var(--ok-soft); color: var(--ok); }

/* ---------- Mapa de convenios ---------- */
.map-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.1rem; }
.map-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: .35rem .85rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-soft);
    font-weight: 650;
    font-size: .88rem;
    cursor: pointer;
}
.map-chip:hover { border-color: var(--brand-2); }
.map-chip.is-active { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.chip-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--muted); }
.dot-clinic { background: #2d7d6f; }
.dot-emergency { background: #b23b3b; }
.dot-grooming { background: #7c3f8f; }
.dot-petshop { background: #c7772f; }
.dot-hotel { background: #2f4d8f; }
.dot-other { background: #64757e; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.partner-map {
    height: 520px;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-1);
    z-index: 0;
}
.map-list h2 { margin-bottom: .6rem; }
.map-item {
    width: 100%;
    border-color: var(--line-soft);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.admin-map-picker {
    height: 300px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    margin-top: .5rem;
    z-index: 0;
}
.partner-pin-wrap { background: transparent; border: 0; }
.partner-pin {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 999px 999px 999px 4px;
    transform: rotate(-45deg);
    background: var(--pin, #2d7d6f);
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(15, 60, 74, .4);
}
.user-pin {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #2f6df6;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 5px rgba(47, 109, 246, .25);
}
.leaflet-popup-content { font: inherit; }

/* ---------- Búsqueda, cursores y acciones contextuales ---------- */
.filter-bar {
    display: flex;
    align-items: end;
    gap: .7rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
    padding: .85rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--paper) 94%, var(--brand-2-soft));
    box-shadow: var(--shadow-1);
}
.filter-bar label { display: grid; gap: .25rem; min-width: 145px; font-size: .78rem; font-weight: 750; color: var(--muted); }
.filter-bar .filter-search { flex: 1 1 230px; }
.filter-bar input, .filter-bar select { min-height: 44px; }
.cursor-nav { display: flex; justify-content: center; margin: 1.1rem 0; }
.push-control { display: grid; gap: .25rem; justify-items: end; max-width: 300px; }
.push-control small { text-align: right; }
.reminder-actions { position: relative; align-items: center; }
.snooze-menu { position: relative; }
.snooze-menu > summary { list-style: none; cursor: pointer; }
.snooze-menu > summary::-webkit-details-marker { display: none; }
.snooze-form {
    position: absolute;
    z-index: 20;
    top: calc(100% + .45rem);
    right: 0;
    width: min(310px, 86vw);
    display: grid;
    gap: .65rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: var(--shadow-2);
}
.snooze-options { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.snooze-options button { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-weight: 700; cursor: pointer; }
.form-narrow { width: min(760px, 100%); margin-inline: auto; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* ---------- Reencuentro por QR ---------- */
.found-pet-panel { margin-top: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); overflow: clip; }
.found-pet-panel summary { padding: 1rem; cursor: pointer; font-weight: 800; color: var(--brand); }
.found-pet-panel[open] summary { border-bottom: 1px solid var(--line-soft); background: var(--brand-2-soft); }
.found-pet-panel form { padding: 1rem; }
.location-status { min-height: 1.5rem; padding-left: 1.65rem; position: relative; }
.location-status::before { content: '⌖'; position: absolute; left: .2rem; color: var(--brand-2); font-size: 1.2rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.sightings-panel { margin-top: 1rem; }
.sighting-card { border-left: 4px solid var(--accent); }
.status-chip { display: inline-flex; padding: .3rem .65rem; border-radius: 999px; background: var(--accent-soft); color: #7b4c17; font-size: .8rem; font-weight: 800; }

/* ---------- Responsive ---------- */
/* Tablets horizontales y laptops compactas */
@media (max-width: 1100px) {
    .content-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
    .map-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .phone-preview { max-width: 340px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
    .app-shell { grid-template-columns: minmax(0, 1fr); }
    .mobile-topbar {
        position: sticky;
        z-index: 900;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: calc(64px + env(safe-area-inset-top, 0px));
        padding: calc(.65rem + env(safe-area-inset-top, 0px)) 1rem .65rem;
        background: rgba(11, 55, 69, .96);
        box-shadow: 0 4px 18px rgba(11, 55, 69, .18);
        backdrop-filter: blur(14px);
    }
    .mobile-topbar .brand { font-size: 1rem; }
    .mobile-topbar .brand::before { width: 32px; height: 32px; }
    .nav-toggle, .sidebar-close {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 12px;
        background: rgba(255, 255, 255, .08);
        color: #ffffff;
        cursor: pointer;
    }
    .sidebar {
        position: fixed;
        z-index: 1000;
        inset: 0 auto 0 0;
        width: min(330px, 88vw);
        height: 100vh;
        height: 100dvh;
        gap: 1rem;
        padding: calc(.8rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .24s cubic-bezier(.2, .7, .25, 1), visibility .24s;
        box-shadow: 16px 0 40px rgba(3, 28, 36, .28);
    }
    .nav-open .sidebar { transform: translateX(0); visibility: visible; }
    .sidebar-mobile-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
    .nav-list { grid-template-columns: 1fr; }
    .nav-list a { min-height: 48px; }
    .sidebar-footer { padding-top: .8rem; }
    .nav-backdrop {
        position: fixed;
        z-index: 950;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(3, 28, 36, .48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s;
    }
    .nav-open .nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-open { overflow: hidden; }
    .main { padding: 1.25rem 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
    .content-grid, .feature-band { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    /* iOS hace zoom en inputs con fuente < 16px: se fuerza el minimo */
    input, select, textarea { font-size: 16px; }
    .span-2 { grid-column: span 1; }
    .definition-list { grid-template-columns: 1fr; gap: .15rem .8rem; }
    .definition-list dd { margin-bottom: .55rem; }
    .feature-band { margin-top: -2.2rem; }
    .page-header .button, .page-header .button-ghost { flex: 1 1 auto; }
    .public-nav .nav-links { display: none; }
    .sidebar-cat { display: none; }
    .cta-peek { width: 84px; left: 1.1rem; }
    .features-grid, .steps-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .row-card { flex-wrap: wrap; }
    .map-layout { grid-template-columns: minmax(0, 1fr); }
    .partner-map { height: 380px; }
    .section-block { padding: 2.4rem 1.1rem 2.6rem; }
    .hero-proof { gap: 1.4rem; }
    .cta-final { padding: 1.8rem 1.4rem; }
    .cta-final .button { width: 100%; }
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .brand-story { grid-template-columns: minmax(0, 1fr); }
    .button-small { min-height: 44px; }
    .section-title > a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .4rem; }
    .filter-bar { align-items: stretch; }
    .filter-bar label { flex: 1 1 calc(50% - .7rem); }
    .filter-bar .button { flex: 1 1 auto; }
    .push-control { justify-items: stretch; max-width: none; width: 100%; }
    .push-control small { text-align: left; }
}

@media (max-width: 480px) {
    .public-navbar { padding-inline: .85rem; }
    .public-nav { gap: .6rem; }
    .public-nav > div:last-child .button { display: none; }
    .hero-grid h1 em { display: block; }
    .hero-actions .button { flex: 1 1 100%; width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .stats-grid strong { font-size: 1.55rem; }
    .button-row { width: 100%; }
    .button-row .button, .button-row form { flex: 1 1 auto; }
    .pet-card, .row-card { flex-wrap: wrap; }
    .brand-story { padding: .8rem; }
    .brand-story-media::after { left: .6rem; bottom: .6rem; }
    .filter-bar label, .filter-bar .filter-search { flex-basis: 100%; }
    .filter-bar .button { flex-basis: 100%; }
    .form-split { grid-template-columns: 1fr; }
    .snooze-form { position: fixed; inset: auto .75rem calc(.75rem + env(safe-area-inset-bottom, 0px)); width: auto; }
}
