/*
 * OneBowl — sistema de diseño de la web pública (2026).
 * Se carga el último y solo en las páginas públicas (layouts app y auth, errores,
 * sin conexión); los paneles no lo usan. Sin compilación: se sirve tal cual.
 *
 * Dirección: fondo claro y cálido, fotografía protagonista, bloques verde bosque
 * y terracota como acento. Contraste AA comprobado, objetivos táctiles de 44 px.
 * Las fotos de marca son ilustrativas (App\Support\BrandPhotos); los animales
 * reales de las protectoras siempre tienen prioridad.
 */

:root {
    --paper: #F6F4EE;
    --mint: #EAF0EA;
    --sand: #F1ECE2;
    --card: #FFFFFF;
    --forest: #133A33;
    --forest-deep: #0D2925;
    --ink: #14231F;
    --muted: #56635E;
    --line: #E2E1D8;
    --line-strong: #CDD3CB;
    --accent: #B4512D;
    --accent-ink: #A9472A;
    --accent-soft: #F6E3D8;
    --leaf: #B9D7A8;
    --on-dark: #DCE6E1;
    --on-dark-muted: #B4C6BE;
    --tint: #EEF2EC;
    --green: #2C6B57;
    --green-soft: #E3EEE6;

    --font-display: 'Instrument Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-xl: 36px;
    --shadow-sm: 0 1px 2px rgba(20, 35, 31, .06), 0 4px 14px rgba(20, 35, 31, .05);
    --shadow-md: 0 18px 50px rgba(20, 45, 39, .12);
    --shadow-lg: 0 30px 80px rgba(13, 41, 37, .18);
    --container: 1280px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container { max-width: var(--container); padding-inline: clamp(20px, 4vw, 48px); }
.section { padding-block: clamp(76px, 9vw, 136px); }
.section--compact { padding-block: clamp(48px, 6vw, 76px); }
.section--tint { background: var(--tint); }
.section--sand { background: var(--sand); }
.stack-lg { gap: clamp(32px, 4vw, 56px); }

/* Enlace para saltar al contenido: invisible hasta que recibe el foco */
.skip-link {
    position: fixed; z-index: 9999; left: 16px; top: 8px;
    padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--ink);
    font-weight: 600; text-decoration: none;
    transform: translateY(-200%);
    transition: transform .2s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); box-shadow: var(--shadow-md); }
#main-content:focus { outline: none; }

/* Tipografía */
.display, .h2, .h3, .brand, .plan__amount, .step__num, .money-flow__num {
    font-family: var(--font-display);
}
.display {
    font-weight: 620;
    font-size: clamp(42px, 6.2vw, 88px);
    line-height: 1.0;
    letter-spacing: -.034em;
    text-wrap: balance;
}
.h2 {
    font-weight: 620;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.06;
    letter-spacing: -.028em;
    max-width: 22ch;
    text-wrap: balance;
}
.h2--panel { font-size: clamp(28px, 3vw, 40px); max-width: none; }
.h2--sm { font-size: clamp(26px, 2.6vw, 34px); }
.h2--cta { font-size: clamp(36px, 5vw, 68px); max-width: 16ch; }
.h3 {
    font-weight: 620;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.012em;
}
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--muted); max-width: 62ch; }
.lead--xl { font-size: clamp(18px, 1.6vw, 21px); max-width: 640px; }
.muted { color: var(--muted); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-ink);
}
.eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; flex: none;
}
.eyebrow--light { color: var(--leaf); }
.eyebrow--green { color: var(--green); }
.text-accent { color: var(--accent-ink); }

.badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--forest);
}
.badge::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 11h12c0 3.3-2.7 5.5-6 5.5S5 14.3 5 11Z' fill='%23fff'/%3E%3Ccircle cx='8' cy='7.5' r='1.3' fill='%23fff'/%3E%3Ccircle cx='11' cy='6' r='1.3' fill='%23fff'/%3E%3Ccircle cx='14' cy='7.5' r='1.3' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Botones: píldoras, 48 px de alto mínimo */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(20, 35, 31, .18); }
.btn-primary:hover { background: var(--forest); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(180, 81, 45, .25); }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-soft { background: rgba(20, 35, 31, .07); color: var(--ink); }
.btn-soft:hover { background: rgba(20, 35, 31, .12); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-green { background: var(--forest); color: #fff; }
.btn-green:hover { background: var(--forest-deep); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }
.link-accent {
    color: var(--accent-ink); font-weight: 600; text-decoration: none;
    border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
    display: inline-flex; align-items: center; min-height: 44px; width: fit-content;
}
.link-accent:hover { color: var(--ink); }
.link-accent::after { content: "→"; margin-left: 8px; transition: transform .2s var(--ease); }
.link-accent:hover::after { transform: translateX(3px); }

.inline-points {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
    list-style: none; padding: 0; margin: 0;
    font-size: 14px; font-weight: 500; color: var(--muted);
}
.inline-points li { display: inline-flex; align-items: center; gap: 8px; }
.inline-points li::before {
    content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.6 12 13 6.5' fill='none' stroke='%232C6B57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Cabecera */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(246, 244, 238, .86);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(20, 35, 31, .07);
}
/* La cabecera es algo más ancha que el contenido para que el menú completo quepa en una línea
   (por debajo de 1360 px se usa el botón «Menú»; en francés, cuyos textos son más largos, hasta 1520 px). */
.site-header > .container { max-width: 1440px; }
.site-header__inner { min-height: 76px; padding-block: 12px; gap: clamp(12px, 1.6vw, 20px); }
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 650; font-size: 24px; letter-spacing: -.03em; text-decoration: none; color: var(--ink);
}
.brand .logo-mark { color: var(--accent); }
.main-nav { gap: clamp(14px, 1.6vw, 24px); font-size: 14px; font-weight: 500; }
.main-nav a { color: var(--ink); opacity: .8; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover { color: var(--ink); opacity: 1; }
.site-header__actions { gap: 10px; }
.site-header__actions .btn-primary { min-height: 44px; padding: 11px 20px; font-size: 14px; box-shadow: none; }
.link-plain { font-weight: 600; font-size: 15px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding-inline: 6px; }
.lang-select {
    min-height: 44px; padding: 8px 30px 8px 14px; border-radius: 999px;
    border: 1px solid var(--line-strong); background-color: transparent;
    font: 600 13px var(--font-body); color: var(--ink);
}
.mobile-menu > summary {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600;
}
.mobile-menu > summary::before {
    content: ""; width: 16px; height: 10px;
    background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
                linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
                linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}
.mobile-menu[open] > summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.mobile-menu__list {
    margin-top: 10px; padding: 8px 16px; border-radius: var(--r-md);
    background: var(--card); box-shadow: var(--shadow-md);
}
.mobile-menu__list a { border-bottom: 1px solid var(--line); font-size: 16px; }
.mobile-menu__list a:last-child { border-bottom: 0; color: var(--accent-ink); }
/* Abierto, el menú es un panel bajo la cabecera: el botón no se mueve y el panel no empuja la página.
   onebowl.js lo cierra al elegir una opción, con Escape o al tocar fuera. */
@media (max-width: 1359px) {
    .mobile-menu[open] { flex-basis: auto; }
    .mobile-menu__list {
        position: absolute; top: calc(100% + 8px); right: clamp(20px, 4vw, 48px);
        width: min(420px, calc(100% - 2 * clamp(20px, 4vw, 48px)));
        max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain;
        margin-top: 0;
    }
}
/* Francés: sus textos son más largos y el menú completo solo cabe desde 1440 px y sin el enlace
   de la tienda de merchandising (clases site-header--long y --longer, en partials/header).
   Mismas reglas que el menú plegado de arriba. */
@media (max-width: 1439px) {
    .site-header--long .main-nav { display: none; }
    .site-header--long .mobile-menu { display: block; order: 2; }
    .site-header--long .site-header__actions { margin-left: auto; order: 1; }
    .site-header--long .site-header__inner > .brand { order: 0; }
    .site-header--long .mobile-menu[open] { flex-basis: auto; }
    .site-header--long .mobile-menu__list {
        position: absolute; top: calc(100% + 8px); right: clamp(20px, 4vw, 48px);
        width: min(420px, calc(100% - 2 * clamp(20px, 4vw, 48px)));
        max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain;
        margin-top: 0;
    }
}
.site-header--longer .main-nav { display: none; }
.site-header--longer .mobile-menu { display: block; order: 2; }
.site-header--longer .site-header__actions { margin-left: auto; order: 1; }
.site-header--longer .site-header__inner > .brand { order: 0; }
.site-header--longer .mobile-menu[open] { flex-basis: auto; }
.site-header--longer .mobile-menu__list {
    position: absolute; top: calc(100% + 8px); right: clamp(20px, 4vw, 48px);
    width: min(420px, calc(100% - 2 * clamp(20px, 4vw, 48px)));
    max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain;
    margin-top: 0;
}
/* Las anclas (#precios, #protectoras…) no quedan debajo de la cabecera fija */
html { scroll-padding-top: 84px; }
/* Con el pie a la vista, el fondo del documento toma su verde: en Safari iOS
   el hueco bajo el pie (barra inferior y rebote) ya no queda en color claro. */
html.footer-in-view { background-color: var(--forest-deep); }

/* Portada — panel verde con cuadrícula escalonada de animales (referencia: Happy Tails) */
.home-hero { background: var(--paper); padding-block: clamp(10px, 1.6vw, 20px) clamp(40px, 5vw, 72px); }
.hero-panel {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: clamp(24px, 3vw, 40px);
    padding: clamp(56px, 7vw, 100px) clamp(16px, 4vw, 64px) clamp(28px, 4vw, 64px);
    background:
        radial-gradient(60% 45% at 50% 0%, rgba(185, 215, 168, .13), transparent 70%),
        var(--forest-deep);
    color: #fff;
}
.home-hero__intro {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
    max-width: 920px; margin-inline: auto;
}
.home-hero .badge { align-self: center; }
.home-hero .display--hero { max-width: 16ch; margin-top: 4px; font-size: clamp(40px, 5.4vw, 76px); color: #fff; }
.home-hero .lead--xl { margin-inline: auto; color: var(--on-dark); }
.home-hero .actions { margin-top: 4px; }
.home-hero .inline-points { color: var(--on-dark-muted); }
.badge--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); box-shadow: none; color: var(--leaf); }

/* Trazos a mano, solo decorativos */
.hero-doodle {
    position: absolute; z-index: 0; pointer-events: none;
    fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55;
}
.hero-doodle--swirl { width: 130px; top: clamp(48px, 7vw, 100px); left: clamp(24px, 4vw, 64px); }
/* La flecha, junto a los botones, los señala */
.home-hero .actions { position: relative; }
.hero-doodle--arrow { width: 110px; left: calc(100% + 14px); top: -38px; }

.hero-grid {
    --hero-gap: clamp(10px, 1.3vw, 18px);
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--hero-gap); align-items: start;
    max-width: 1100px; margin: clamp(44px, 6vw, 80px) auto 0;
}
.hero-grid__col { display: flex; flex-direction: column; gap: var(--hero-gap); }
.hero-grid__col:nth-child(2), .hero-grid__col:nth-child(4) { margin-top: clamp(20px, 3.4vw, 48px); }
.hero-grid__col:nth-child(3) { margin-top: clamp(40px, 6.8vw, 96px); }
.hero-tile {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 4 / 5; border-radius: clamp(12px, 1.4vw, 18px);
    background: rgba(255, 255, 255, .06);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
a.hero-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.hero-tile__tag {
    position: absolute; left: 8px; bottom: 8px; right: 8px;
    display: flex; flex-direction: column; gap: 1px;
    padding: 7px 10px; border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink); font-size: 12px; line-height: 1.3; text-decoration: none;
}
.hero-tile__tag strong { font-size: 14px; }
.hero-tile__tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Impacto — bloque claro tras el panel oscuro, con mosaico (referencia: Happy Tails) */
.home-impact { background: var(--mint); color: var(--ink); padding-block: clamp(76px, 9vw, 128px); }
.home-impact__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(40px, 6vw, 96px); align-items: center;
}
.home-impact__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.home-impact .lead { color: var(--muted); }
.home-impact .actions { margin-top: 8px; }
.home-impact__footer {
    margin-top: 10px; padding-top: 20px; width: 100%;
    border-top: 1px solid var(--line-strong);
    font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted);
}
.impact-stats {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    width: 100%; margin: 10px 0 0;
}
.impact-stats > div {
    padding: 20px 22px; border-radius: var(--r-md);
    background: var(--forest); border: 0;
}
.impact-stats dt { font-size: 13px; color: var(--on-dark-muted); }
.impact-stats dd { margin: 6px 0 0; font-family: var(--font-display); font-weight: 620; font-size: 38px; letter-spacing: -.02em; color: #fff; }
.mosaic {
    display: grid; gap: 14px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 210px 210px;
    grid-template-areas: "a a" "b c" "b d";
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.mosaic__a { grid-area: a; }
.mosaic__b { grid-area: b; }
.mosaic__c { grid-area: c; }
.mosaic__d { grid-area: d; }

/* Cómo funciona */
.how {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 96px); align-items: center;
}
.how__photo { margin: 0; }
.how__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.how__body { display: flex; flex-direction: column; gap: 36px; }
.steps { display: flex; flex-direction: column; }
.step {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px;
    padding: 24px 0; border-top: 1px solid var(--line);
    background: none; border-radius: 0; box-shadow: none; min-height: 0;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
    font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--accent-ink);
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--accent-soft);
    display: inline-flex; align-items: center; justify-content: center; background: #fff;
}
.step .h3 { margin-bottom: 6px; }

/* Tiendas y protectoras */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.audience {
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--r-xl);
}
.audience--dark { background: var(--forest); color: #fff; }
.audience--light { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.audience__photo { margin: 0; }
.audience__photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.audience__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(28px, 3.4vw, 48px); flex: 1; }
.audience--dark .h2 { color: #fff; }
.audience .btn { margin-top: auto; }
.check-list { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.check-list li::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5 9.6 14.5 15.5 8' fill='none' stroke='%232C6B57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.audience--dark .check-list { color: var(--on-dark); }
.audience--dark .check-list li::before {
    background-color: rgba(185, 215, 168, .16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5 9.6 14.5 15.5 8' fill='none' stroke='%23B9D7A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Animales (vacío: foto de marca a sangre con texto) */
.animal-empty {
    position: relative; overflow: hidden; display: grid; align-items: end;
    min-height: clamp(420px, 46vw, 560px);
    border-radius: var(--r-xl); background: var(--forest); color: #fff;
    padding: 0;
}
.animal-empty__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.animal-empty::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13, 41, 37, .92) 0%, rgba(13, 41, 37, .72) 38%, rgba(13, 41, 37, 0) 70%);
}
.animal-empty__body {
    position: relative; z-index: 1; max-width: 520px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    padding: clamp(28px, 4.5vw, 64px);
}
.animal-empty__title { font-family: var(--font-display); font-weight: 620; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.025em; color: #fff; }
.animal-empty__note { color: var(--on-dark); font-size: 17px; }

/* Transparencia: línea temporal */
.transparency { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.transparency .section-head { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.money-flow { position: relative; display: flex; flex-direction: column; gap: 14px; }
.money-flow::before {
    content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px;
    background: linear-gradient(var(--accent-soft), var(--leaf));
}
.money-flow__step {
    position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px;
    padding: 22px 26px 22px 0; border-radius: var(--r-md);
    background: var(--card); box-shadow: var(--shadow-sm);
}
.money-flow__step > * { grid-column: 2; }
.money-flow__num {
    grid-column: 1 !important; grid-row: 1 / span 2; align-self: center; justify-self: center;
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-size: 14px;
    position: relative; z-index: 1;
}
.money-flow__step.is-final .money-flow__num { background: var(--forest); color: #fff; }
.money-flow__step strong { font-size: 17px; }
.money-flow__step .muted { font-size: 15px; }

/* Integraciones */
.integrations { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px;
    border-radius: 999px; background: var(--card); border: 1px solid var(--line);
    font-weight: 600; font-size: 15px; color: var(--ink);
}
.chip--soon { background: transparent; border-style: dashed; color: var(--muted); }

/* Encabezados de sección */
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--split { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--split > .section-head { max-width: 760px; }

/* Precios */
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.toggle__btn { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; font: 600 14px var(--font-body); color: var(--ink); cursor: pointer; }
.toggle__btn.is-active { background: var(--ink); color: #fff; }
.plan {
    display: flex; flex-direction: column; gap: 18px;
    padding: 30px 28px; border-radius: var(--r-lg);
    background: var(--card); border: 1px solid var(--line); box-shadow: none;
}
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan__amount { font-weight: 620; font-size: 46px; letter-spacing: -.03em; line-height: 1; }
.plan__period { color: var(--muted); font-size: 14px; }
.plan__features { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex: 1; }
.plan__features li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.plan__features li::before {
    content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.6 12 13 6.5' fill='none' stroke='%232C6B57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan--featured { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: var(--shadow-lg); }
.plan--featured .plan__period { color: var(--on-dark-muted); }
.plan--featured .plan__features { color: var(--on-dark); }
.plan--featured .plan__features li::before {
    background-color: rgba(185, 215, 168, .16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.6 12 13 6.5' fill='none' stroke='%23B9D7A8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pill {
    display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.plans-all { font-size: 15px; color: var(--muted); max-width: 80ch; }
.calc {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 40px;
    padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg);
    background: var(--card); border: 1px solid var(--line);
}
.calc__intro { display: flex; flex-direction: column; gap: 8px; grid-row: span 2; }
.calc__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calc__result { font-size: 17px; line-height: 1.7; }
.calc .small { grid-column: 2; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="tel"], select, textarea {
    min-height: 48px; padding: 11px 14px; border-radius: 14px;
    border: 1px solid var(--line-strong); background: #fff;
    font: 16px var(--font-body); color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field--check { flex-direction: row; align-items: center; gap: 12px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--forest); }
.field--check label { font-weight: 500; font-size: 15px; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(19, 58, 51, .1); outline: none; }

/* Preguntas frecuentes */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.faq__item > summary {
    list-style: none; cursor: pointer; min-height: 64px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; font-weight: 600; font-size: 16.5px;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
    content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%;
    background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9v12M9 15h12' stroke='%2314231F' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
    transition: transform .25s var(--ease);
}
.faq__item[open] > summary::after { transform: rotate(45deg); }
.faq__item > p { padding: 0 22px 22px; color: var(--muted); }

/* Llamada final con foto a sangre */
.final-cta { position: relative; overflow: hidden; color: #fff; background: var(--forest-deep); }
.final-cta__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.final-cta::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(270deg, rgba(13, 41, 37, .9) 0%, rgba(13, 41, 37, .7) 45%, rgba(13, 41, 37, .15) 100%);
}
.final-cta__inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 20px;
    padding-block: clamp(96px, 12vw, 176px);
}
.final-cta .h2 { color: #fff; }
.final-cta__lead { color: var(--on-dark); font-size: 19px; }

/* Tarjetas genéricas, blog y animales (auto-fill: una sola tarjeta no ocupa todo el ancho) */
.card-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.card-grid--280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid--320 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.post-card, .animal-card {
    display: flex; flex-direction: column; gap: 10px; overflow: hidden;
    border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
    text-decoration: none; color: var(--ink);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover, .animal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.post-card { padding-bottom: 22px; }
.post-card > :not(img):not(.photo-ph) { margin-inline: 22px; }
.post-card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Pie de página */
.site-footer { background: var(--forest-deep); color: var(--on-dark); border-top: 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__inner { padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer-grid { gap: clamp(28px, 4vw, 56px); }
.footer-grid strong { color: #fff; font-size: 14px; letter-spacing: .02em; }
.footer-grid nav { display: flex; flex-direction: column; gap: 6px; }
.footer-grid nav a { min-height: 32px; display: inline-flex; align-items: center; font-size: 15px; }
.footer-brand .brand-name {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 650; font-size: 26px; letter-spacing: -.03em; color: #fff;
}
.footer-brand .logo-mark { color: var(--accent); }
.footer-brand .logo-mark circle { fill: #fff; }
.footer-brand p { margin-top: 12px; max-width: 30ch; color: var(--on-dark-muted); }
.footer-note {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px; color: var(--on-dark-muted);
}
.footer-bottom { margin-top: 18px; padding-top: 0; border-top: 0; color: var(--on-dark-muted); font-size: 13.5px; }
.footer-bottom a { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 4px; }
.footer-bottom a[aria-current="page"] { color: #fff; font-weight: 700; }
/* En móvil: Plataforma y Comunidad en dos columnas, Legal debajo a todo el ancho; enlaces de 44 px */
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 32px; }
    .footer-brand, .footer-grid nav:last-child { grid-column: 1 / -1; }
    .footer-grid nav { gap: 0; }
    .footer-grid nav strong { margin-bottom: 4px; }
    .footer-grid nav a { min-height: 44px; }
    .footer-note { margin-top: 28px; }
    .site-footer__inner { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* Páginas legales */
.section--legal { padding-top: clamp(36px, 6vw, 88px); }
.legal__nav { top: 100px; }
@media (max-width: 860px) {
    .legal__nav { gap: 8px; }
    .legal__nav a {
        min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px;
        background: var(--card); font-size: 14px; font-weight: 600;
    }
    .legal__nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
}

/* Reveal suave al entrar en pantalla (solo si no se pide reducir movimiento) */
@media (prefers-reduced-motion: no-preference) {
    .hero-grid__col { animation: tile-in .9s var(--ease) both; }
    .hero-grid__col:nth-child(2) { animation-delay: .07s; }
    .hero-grid__col:nth-child(3) { animation-delay: .14s; }
    .hero-grid__col:nth-child(4) { animation-delay: .21s; }
    .hero-grid__col:nth-child(5) { animation-delay: .28s; }
    @keyframes tile-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
}

/* Responsive */
@media (max-width: 1100px) {
    .home-impact__grid, .how, .transparency, .faq-layout { grid-template-columns: 1fr; }
    .transparency .section-head { position: static; }
    .how__photo img { aspect-ratio: 16 / 10; }
    .mosaic { grid-template-rows: 260px 200px 200px; }
    .calc { grid-template-columns: 1fr; }
    .calc__intro { grid-row: auto; }
    .calc .small { grid-column: auto; }
}
@media (max-width: 900px) {
    .audiences { grid-template-columns: 1fr; }
    /* Tableta: cuatro columnas (0, +, +, 0) */
    .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-grid__col:nth-child(5) { display: none; }
    .hero-grid__col:nth-child(3) { margin-top: clamp(20px, 3.4vw, 48px); }
    .hero-grid__col:nth-child(4) { margin-top: 0; }
    .hero-doodle { display: none; }
    /* En vertical la foto va arriba, a la vista, y el texto debajo sobre el verde: sin capa que tape al perro */
    .final-cta { --cta-photo-h: clamp(260px, 62vw, 420px); }
    .final-cta__photo { position: relative; inset: auto; display: block; height: var(--cta-photo-h); object-position: 28% 42%; }
    .final-cta::after { inset: 0 0 auto 0; height: var(--cta-photo-h); background: linear-gradient(180deg, rgba(13, 41, 37, 0) 55%, var(--forest-deep) 100%); }
    .final-cta__inner { align-items: flex-start; text-align: left; padding-block: 8px clamp(64px, 12vw, 96px); }
}
@media (max-width: 700px) {
    .site-header__inner { min-height: 68px; }
    .home-hero__intro { gap: 20px; }
    .badge { font-size: 11px; letter-spacing: .06em; }
    .actions--center { width: 100%; }
    .actions--center .btn { width: 100%; }
    /* Móvil: tres columnas (0, +, 0) con las seis primeras fotos */
    .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
    .hero-grid__col:nth-child(4) { display: none; }
    .hero-grid__col:nth-child(3) { margin-top: 0; }
    .hero-grid__col:nth-child(2) { margin-top: 28px; }
    .hero-tile__tag { left: 6px; right: 6px; bottom: 6px; padding: 5px 8px; }
    .hero-tile__tag strong { font-size: 12.5px; }
    .hero-tile__tag span { display: none; }
    .mosaic { grid-template-rows: 200px 150px 150px; gap: 10px; }
    .mosaic img { border-radius: var(--r-md); }
    .step { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
    .calc__fields { grid-template-columns: 1fr; }
    .money-flow__step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; padding-right: 18px; }
    .money-flow::before { left: 27px; }
    .animal-empty::after { background: linear-gradient(0deg, rgba(13, 41, 37, .94) 0%, rgba(13, 41, 37, .7) 55%, rgba(13, 41, 37, .1) 100%); }
    .animal-empty { min-height: 520px; }
    .integrations { flex-direction: column; align-items: flex-start; }
    /* onebowl.css da a título y etiquetas una base de 320/520 px: en columna sería altura y estiraría las etiquetas */
    .integrations .h2--sm, .integrations .chips { flex: 0 1 auto; }
    .chips { align-items: flex-start; align-content: flex-start; }
    .filters .field { min-width: 0; flex: 1 1 100%; }
    .filters .btn { width: 100%; }
}

/* ===== Páginas interiores ===== */

/* Cabecera de listados con tres fotos */
.page-hero {
    padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px);
    background: linear-gradient(180deg, var(--mint) 0%, var(--paper) 100%);
    overflow: hidden;
}
.page-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 80px); align-items: center;
}
.page-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.display--page { font-size: clamp(40px, 5vw, 68px); max-width: 16ch; }
.page-hero__photos { position: relative; height: 340px; }
.page-hero__photo { position: absolute; object-fit: cover; box-shadow: var(--shadow-md); }
.page-hero__photo--1 { width: 210px; height: 290px; left: 0; top: 20px; border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.page-hero__photo--2 { width: 190px; height: 190px; left: 46%; top: 0; border-radius: 50%; }
.page-hero__photo--3 { width: 220px; height: 170px; right: 0; bottom: 0; border-radius: var(--r-lg); transform: rotate(3deg); }
.section--after-hero { padding-top: clamp(24px, 3vw, 40px); }

/* Estado vacío con foto */
.empty-state {
    display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: center;
    overflow: hidden; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line);
}
.empty-state__photo { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.empty-state__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(28px, 4vw, 56px); font-size: 17px; color: var(--muted); }
.empty-state__body .h3 { color: var(--ink); font-size: clamp(22px, 2.2vw, 30px); }

/* Filtros, tarjetas y tablas */
.filters {
    padding: 18px 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
    gap: 14px;
}
.filters .field { min-width: 210px; }
.animal-card { border-radius: var(--r-lg); border-color: var(--line); box-shadow: none; }
.animal-card:hover { box-shadow: var(--shadow-md); }
.animal-card__img { height: auto; aspect-ratio: 4 / 3; }
.animal-card__head .h3 { font-size: 24px; letter-spacing: -.02em; }
.progress { background: var(--tint); }
.progress__bar { background: var(--green); }
.info-card, .help-card { border-radius: var(--r-lg); border-color: var(--line); background: var(--card); }
.info-card--accent { background: var(--tint); }
.help-card { gap: 10px; padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); text-decoration: none; color: var(--ink); }
.help-card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.help-card p { color: var(--muted); }
.table-wrap { border-radius: var(--r-lg); }
.table th { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.breadcrumbs { font-size: 14px; }
.prose { font-size: 17.5px; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-weight: 620; letter-spacing: -.02em; }
.prose a { color: var(--accent-ink); }

/* Acceso, registro y recuperación: formulario y foto */
.auth-body { background: var(--paper); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-shell { min-height: 100vh; justify-content: center; padding: clamp(32px, 5vw, 64px) 20px; background: linear-gradient(180deg, var(--mint), var(--paper)); }
.auth-brand { font-size: 26px; }
.auth-card { width: 100%; max-width: 460px; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 44px); background: var(--card); }
.auth-card--wide { max-width: 720px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 620; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.025em; line-height: 1.1; }
.auth-card .btn { min-height: 48px; }
.auth-langs a { min-height: 44px; display: inline-flex; align-items: center; }
.auth-visual { position: relative; overflow: hidden; background: var(--forest); }
.auth-visual__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 41, 37, .78) 0%, rgba(13, 41, 37, 0) 45%); }
.auth-visual__points {
    position: absolute; z-index: 1; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(24px, 4vw, 56px);
    display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0;
}
.auth-visual__points li {
    padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink);
    font-size: 14px; font-weight: 600;
}

/* Páginas de error con foto */
.error-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; padding: 0; background: var(--paper); min-height: 100vh; }
.error-page__photo { width: 100%; height: 100%; object-fit: cover; order: 2; }
.error-page__box { order: 1; align-self: center; justify-self: center; padding: clamp(32px, 6vw, 80px); max-width: 620px; }
.error-page__code { color: var(--accent-ink); }

@media (max-width: 900px) {
    .page-hero__grid { grid-template-columns: 1fr; }
    .page-hero__photos { display: none; }
    .empty-state { grid-template-columns: 1fr; }
    .empty-state__photo { min-height: 0; aspect-ratio: 16 / 9; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .error-page { grid-template-columns: 1fr; }
    .error-page__photo { order: 0; height: 34vh; }
}

/* ===== Buscador de animales, directorio de protectoras y compartir (fase 1) ===== */

.card-grid--240 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-grid--260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Etiquetas de situación: color + texto (nunca solo color). Contraste AA sobre su fondo. */
.situation {
    display: inline-flex; align-items: center; min-height: 26px; padding: 3px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}
.situation--available { background: #E1F0E6; color: #1E5A3F; }
.situation--fostered { background: #EFE5F6; color: #5B3478; }
.situation--reserved { background: #FBEBD3; color: #7A4A0E; }
.situation--adopted { background: var(--forest); color: #fff; }
.situation--urgent { background: var(--accent); color: #fff; }

/* Tarjeta de animal */
.animal-card__link { position: relative; display: block; }
.animal-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.animal-card__badges .situation { box-shadow: 0 2px 8px rgba(13, 41, 37, .14); }
.animal-card__place, .animal-card__sex {
    position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 999px;
    background: rgba(13, 41, 37, .78); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3;
}
.animal-card__place { left: 12px; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.animal-card__sex { right: 12px; }
.animal-card__body { padding: 18px 20px 20px; gap: 12px; }
.animal-card__body .animal-card__head { flex-direction: column; align-items: flex-start; gap: 2px; }
.animal-card__breed { color: var(--accent-ink); font-size: 14.5px; font-weight: 600; margin: 0; }
.animal-card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0; }
.animal-card__facts > div { padding: 8px 12px; border-radius: var(--r-sm); background: var(--tint); }
.animal-card__facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.animal-card__facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
.animal-card__more { border-top: 1px solid var(--line); padding-top: 8px; }
.animal-card__more > summary {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; color: var(--ink); border-radius: var(--r-sm);
}
.animal-card__more > summary::-webkit-details-marker { display: none; }
.animal-card__more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.animal-card__more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.animal-card__more-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 2px; font-size: 14.5px; }
.animal-card--adopted .animal-card__img { filter: saturate(.85); }

/* Ficha del animal */
.animal-detail__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.animal-detail__facts { max-width: 560px; }
.animal-detail__facts > div { background: var(--card); border: 1px solid var(--line); }

/* Buscador: filtros a la izquierda, resultados a la derecha */
.finder { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.finder__filters { position: sticky; top: 96px; }
.finder__count { margin: 0 0 14px; font-weight: 600; color: var(--muted); }
.filter-panel { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.filter-panel__summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 20px;
    cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 650; font-size: 18px;
}
.filter-panel__summary::-webkit-details-marker { display: none; }
.filter-panel__summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.filter-panel[open] .filter-panel__summary::after { transform: rotate(-135deg); }
.filter-panel__form { display: flex; flex-direction: column; gap: 16px; padding: 4px 20px 20px; }
.filter-panel__group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.filter-panel__group legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filter-panel .chip-row { gap: 6px; }
.filter-panel .chip-choice span { min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; border-color: var(--line-strong); }
.filter-panel .chip-choice input:checked + span { background: var(--forest); border-color: var(--forest); }
.filter-panel__actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Directorio de protectoras */
.shelter-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg);
    background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shelter-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shelter-card__top { display: flex; align-items: center; gap: 14px; padding: 20px 20px 0; }
.shelter-card__logo {
    display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: var(--r-md);
    background: #fff; border: 1px solid var(--line); overflow: hidden; text-decoration: none;
}
.shelter-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.shelter-card__logo .shelter-monogram { min-height: 0; font-size: 26px; }
.shelter-card__top .h3 { font-size: 20px; line-height: 1.2; margin: 0; }
.shelter-card__place { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.shelter-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 20px 20px; }
.shelter-card__text { color: var(--muted); font-size: 14.5px; margin: 0; }
.shelter-card__count { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--green); font-size: 14.5px; }
.shelter-monogram {
    display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px;
    font-family: var(--font-display); font-weight: 650; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.02em;
    color: var(--forest); background: linear-gradient(140deg, var(--mint), var(--tint));
}

/* Página de la protectora: logotipo, contacto y tiendas que ayudan */
.shelter-profile__name { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.shelter-profile__logo { width: 76px; height: 76px; object-fit: contain; border-radius: var(--r-md); background: #fff; padding: 8px; box-shadow: var(--shadow-sm); flex: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.contact-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
    max-width: 100%; overflow-wrap: anywhere;
}
.contact-link:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.contact-link::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex: none; }
.contact-link--instagram::before { background: #E1306C; }
.contact-link--facebook::before { background: #4C8BF5; }
.contact-link--tiktok::before { background: #25F4EE; }
.contact-link--x::before { background: #fff; }
.contact-link--youtube::before { background: #FF4D4D; }
.helping-shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.helping-shop { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.info-card__logo { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); padding: 6px; }

/* Compartir */
.share { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--tint); border: 1px solid var(--line); }
.share__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.share__lead { margin: 0; color: var(--muted); font-size: 14.5px; }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); font: 600 14px/1.2 var(--font-body);
    text-decoration: none; cursor: pointer;
}
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__mark { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.share__btn--whatsapp .share__mark { background: #1FAF55; }
.share__btn--telegram .share__mark { background: #229ED9; }
.share__btn--facebook .share__mark { background: #1877F2; }
.share__btn--x .share__mark { background: #14171A; }
.share__btn--linkedin .share__mark { background: #0A66C2; }
.share__btn--email .share__mark { background: var(--accent); }
.share__btn--copy .share__mark, .share__btn--native .share__mark { background: var(--green); }
.share-images { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.share-images__title { margin: 0; font-size: 15px; font-weight: 650; }
.share-images__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Lista para imprimir con QR (panel de la protectora) */
.print-sheet { background: #fff; }
.print-sheet__page { max-width: 1040px; margin: 0 auto; padding: 28px 24px 48px; }
.print-sheet__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.print-sheet__actions .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.print-sheet__actions a, .print-sheet__actions .btn { text-decoration: none; }
.print-sheet__back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline !important; text-underline-offset: 3px; }
.print-sheet__head h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; margin: 0 0 6px; }
.chip--on { background: var(--forest); color: #fff; border-color: var(--forest); }
.print-sheet__head { display: flex; align-items: center; gap: 20px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 2px solid var(--ink); }
.print-sheet__logo { width: 88px; height: 88px; object-fit: contain; }
.print-sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.print-card {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) 118px; gap: 14px; align-items: center;
    padding: 12px; border: 1px solid var(--line-strong); border-radius: 16px; break-inside: avoid;
}
.print-card__photo { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.print-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.print-card__body .h3 { margin: 0; font-size: 20px; }
.print-card__body p { margin: 0; }
.print-card__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.print-card__qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 10.5px; color: var(--muted); }
.print-card__qr svg { width: 110px; height: 110px; display: block; }
@media (max-width: 760px) {
    .print-sheet__grid { grid-template-columns: 1fr; }
    .print-card { grid-template-columns: 88px minmax(0, 1fr) 96px; }
    .print-card__photo { width: 88px; height: 88px; }
    .print-card__qr svg { width: 92px; height: 92px; }
}
@media print {
    @page { size: A4; margin: 12mm; }
    .print-sheet__actions, .print-sheet__screen-only { display: none !important; }
    .print-sheet__page { padding: 0; max-width: none; }
    .print-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 900px) {
    .finder { grid-template-columns: 1fr; }
    .finder__filters { position: static; }
}
@media (max-width: 700px) {
    .shelter-profile__logo { width: 68px; height: 68px; }
    .share { padding: 18px; }
    .animal-card__body { padding: 16px 16px 18px; }
}

/* Ficha del animal: galería, datos, carácter, salud, adopción y protectora */
.pet__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 24px; }
.pet-gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pet-gallery__main { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); box-shadow: var(--shadow-md); }
.pet-gallery__image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; scroll-margin-top: 104px; }
.pet-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.pet-gallery__thumb { display: block; border-radius: var(--r-sm); overflow: hidden; border: 3px solid transparent; transition: border-color .2s var(--ease); }
.pet-gallery__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pet-gallery__thumb:hover { border-color: var(--line-strong); }
.pet-gallery__thumb[aria-current="true"] { border-color: var(--forest); }
.pet-gallery__thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pet-sensitive { display: flex; flex-direction: column; gap: 10px; }
.pet-sensitive summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; color: var(--ink); }
.pet-head { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pet-head__trust, .pet-head__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pet-head__name { margin: 0; overflow-wrap: anywhere; }
.pet-head__breed { margin: -6px 0 0; font-size: 17px; }
.pet-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pet-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.pet-facts > div { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.pet-facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pet-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15.5px; }
.pet__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; margin-top: 48px; }
.pet-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pet-block { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.pet-block > .h3, .pet-card > .h3 { margin: 0; }
.pet-block p { margin: 0; }
.pet-block--plain { padding: 8px 0 0; background: transparent; border: 0; border-radius: 0; }
.pet-block--note { background: #FBF4E6; border-color: #EAD9B6; }
.pet-block__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pet-compat__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pet-compat__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--tint); }
.pet-compat__subject { font-size: 13px; font-weight: 600; color: var(--muted); }
.pet-compat__value { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pet-compat__value::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.pet-compat__item--yes .pet-compat__value::before { background: #2E7D4F; }
.pet-compat__item--no .pet-compat__value::before { background: var(--accent); }
.pet-traits { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-traits li { padding: 8px 14px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 14px; font-weight: 600; }
.pet-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pet-checks, .pet-notes { display: flex; flex-direction: column; gap: 8px; }
.pet-checks li, .pet-notes li { position: relative; padding-left: 28px; font-weight: 600; }
.pet-checks li::before, .pet-notes li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #2E7D4F; }
.pet-checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pet-notes li::before { background: var(--accent); }
.pet-notes li::after { content: ""; position: absolute; left: 8.5px; top: 6px; width: 2px; height: 7px; border-radius: 1px; background: #fff; box-shadow: 0 9px 0 #fff; }
.pet-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; min-width: 0; }
.pet-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.pet-card p { margin: 0; }
.pet-shelter__head { display: flex; align-items: center; gap: 14px; }
.pet-shelter__head .h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.pet-shelter__logo { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.pet-shelter__logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.pet-shelter__logo .shelter-monogram { min-height: 0; font-size: 22px; }
.pet-adoption { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0; }
.pet-adoption > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pet-adoption dt { color: var(--muted); font-size: 14px; }
.pet-adoption dd { margin: 0; font-weight: 700; text-align: right; }
.pet-aside .share { width: 100%; }
.pet-report { margin: 0; }
.pet-report a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.pet-others__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
@media (max-width: 1080px) {
    .pet__body { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
}
@media (max-width: 900px) {
    .pet__top, .pet__body { grid-template-columns: 1fr; gap: 28px; }
    .pet__body { margin-top: 32px; }
    .pet-aside { position: static; }
}
@media (max-width: 640px) {
    .pet-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pet-compat__list, .pet-duo { grid-template-columns: 1fr; }
    .pet-compat__item { flex-direction: row; justify-content: space-between; align-items: center; }
    .pet-block { padding: 20px; }
}

/* Vídeo de la portada: horizontal en ordenador, vertical en el móvil. Solo se ve
   (y solo se descarga, porque van con preload="none") el que toca. */
.promo-video__head { align-items: center; text-align: center; }
.promo-video__head .lead { margin-inline: auto; }
.promo-video__frame { display: flex; justify-content: center; }
.promo-video__player { display: block; background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.promo-video__player--landscape { width: 100%; max-width: 1080px; aspect-ratio: 16 / 9; height: auto; }
.promo-video__player--portrait { display: none; aspect-ratio: 9 / 16; height: auto; width: min(100%, 420px, calc(80vh * 9 / 16)); }
.promo-video__transcript { max-width: 760px; margin-inline: auto; width: 100%; text-align: center; }
.promo-video__transcript summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--forest); }
.promo-video__transcript p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; text-align: left; }
@media (max-width: 700px) and (orientation: portrait) {
    .promo-video__player--landscape { display: none; }
    .promo-video__player--portrait { display: block; }
}

/* Documentos del CRM para imprimir (solicitud, contrato, cuestionario en blanco) */
.print-doc { max-width: 860px; }
.print-doc__section { margin: 0 0 24px; break-inside: auto; }
.print-doc__section h2 { margin: 0 0 10px; }
.print-doc__data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; }
.print-doc__data div { display: grid; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.print-doc__data dt { font-size: 13px; color: var(--muted); }
.print-doc__data dd { margin: 0; font-weight: 600; min-height: 22px; }
.print-doc__data--blank dd { min-height: 30px; }
.print-doc__qa { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.print-doc__q { margin: 0 0 4px; font-weight: 600; }
.print-doc__a, .print-doc__text { margin: 0; }
.print-doc__boxes { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 6px 0 0; }
.print-doc__box { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 1.5px solid var(--ink); border-radius: 2px; vertical-align: -2px; }
.print-doc__lines { height: 30px; border-bottom: 1px dotted var(--ink); }
.print-doc__lines--3 { height: 90px; background: repeating-linear-gradient(to bottom, transparent 0 29px, var(--ink) 29px 30px); border: 0; }
.print-doc__signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 28px 0 16px; }
.print-doc__signatures div { min-height: 110px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--ink); }
.print-doc__signatures span { font-size: 13px; line-height: 1.4; color: var(--muted); transform: translateY(calc(100% + 8px)); }
.print-doc__signatures { margin-bottom: 56px; }
.print-doc__sign { break-inside: avoid; }
.print-doc__contract h3 { margin: 18px 0 8px; font-size: 17px; }
.print-doc__contract p, .print-doc__contract li { font-size: 15px; line-height: 1.6; }
.print-doc__contract p, .print-doc__contract ul, .print-doc__contract ol { margin: 0 0 10px; }
.print-doc__contract ul, .print-doc__contract ol { padding-left: 24px; }
@media (max-width: 640px) { .print-doc__data, .print-doc__signatures { grid-template-columns: 1fr; } }
.adopt-questions fieldset.field>legend{font-size:13.5px}
.print-doc__parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin: 0 0 12px; }
.print-doc__parties h3 { margin: 0 0 6px; }
.print-doc__data--single { grid-template-columns: minmax(0, 1fr); }
.print-doc__clause { break-inside: avoid; margin: 0 0 6px; }
.print-doc__clause h3 { margin: 14px 0 4px; }
.crm-print-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.crm-print-actions .notice-inline { margin: 0; }
@media (max-width: 640px) { .print-doc__parties { grid-template-columns: 1fr; } }
/* Páginas por ciudad */
.city-chips { flex: none; margin: 0; padding: 0; list-style: none; }
.city-chips .chip { text-decoration: none; }
.city-chips .chip:hover { border-color: var(--ink); }
.city-chips .chip .muted { margin-left: 4px; font-weight: 500; }
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.city-list__item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-height: 64px;
    padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none;
}
.city-list__item:hover { border-color: var(--ink); }
.city-list__name { font-weight: 700; font-size: 17px; }
.city-list__region { grid-column: 1; color: var(--muted); font-size: 14px; }
.city-list__count { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 15px; white-space: nowrap; }
.city-how .steps { margin: 0; padding: 0; list-style: none; }
.city-how .step p { margin: 10px 0 0; }
.city-how { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .city-how { grid-template-columns: 1fr; } }

/* Página de un vídeo (protectoras, tiendas, presentación): siempre en horizontal */
.promo-video__player--single { width: 100%; max-width: 1080px; aspect-ratio: 16 / 9; height: auto; }
.promo-video__note { text-align: center; margin: 0; }

/* Página del vídeo de tiendas y empresas: el vídeo y, debajo, todo explicado */
.shop-guide__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.shop-guide__split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.shop-guide__text { max-width: 760px; }
.shop-guide__clip { margin: 0; }
.shop-guide__clip figcaption { display: flex; flex-direction: column; }
.shop-guide .check-list strong { color: var(--ink); }
@media (max-width: 900px) { .shop-guide__split { grid-template-columns: 1fr; gap: 24px; } }

/* Etiquetas como las de las imágenes para redes (ficha del animal). Texto blanco con contraste AA. */
.pill {
    display: inline-flex; align-items: center; min-height: 32px; padding: 6px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
    box-shadow: 0 2px 10px rgba(13, 41, 37, .18);
}
.pill--urgent { background: var(--accent); color: #fff; }
.pill--good { background: var(--green); color: #fff; }
.pill--neutral { background: var(--muted); color: #fff; }
.pill--light { background: #fff; color: var(--ink); }
.pet-gallery__main { position: relative; }
.pet-gallery__badges { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; pointer-events: none; }
.pet-head__headline { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 25px); font-weight: 650; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.pet-head__headline--urgent { color: var(--accent-ink); }

/* Su ficha en un código QR, con las imágenes para redes. */
.pet-qr__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.pet-qr__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pet-qr__text .h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.pet-qr__code { flex: none; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pet-qr__code svg { display: block; width: 120px; height: 120px; }
.pet-qr__downloads { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Ficha del animal: el espacio de arriba (la regla general de .section lo dejaba en unos 140 px),
   sus novedades junto a su historia y los formularios de adoptar y seguir. */
.section.animal-profile { padding-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(56px, 6vw, 88px); }
.section.animal-profile__adoption { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 5vw, 72px); }
.section.animal-profile__follow { padding-top: 0; }
.pet-updates { background: #EEF3EC; border-color: #DCE6DA; }
.pet-updates .timeline { max-width: none; gap: 0; }
.pet-updates .timeline li { position: relative; gap: 6px; padding: 0 0 22px 26px; border-left: 1px solid #94AF99; }
.pet-updates .timeline li:last-child { padding-bottom: 2px; }
.pet-updates .timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #EEF3EC; background: #317650; }
.pet-updates .timeline p { font-size: 16px; line-height: 1.7; color: var(--ink); }
.adopt-layout { display: flex; flex-direction: column; gap: 24px; }
.adopt-layout__intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.adopt-layout__intro .h2, .adopt-layout__intro p { margin: 0; }
.adopt-layout__photo, .adopt-layout__facts { display: none; }
.follow-card__text, .follow-card__fields { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.follow-card__text .h2, .follow-card__text p { margin: 0; }
.follow-card__text { gap: 12px; }

/* Ficha del animal en escritorio: foto más grande, miniaturas a lo ancho de la galería,
   formularios a todo lo ancho en dos columnas y la lateral que se ve entera. */
@media (min-width: 1100px) {
    .pet__top { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 56px; }
    .pet-head { padding-top: 6px; }
    .pet-gallery__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .pet__body { grid-template-columns: minmax(0, 1fr) 372px; gap: 48px; margin-top: 56px; }
    .adopt-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }
    .adopt-layout__intro { position: sticky; top: 96px; max-width: none; padding-top: 8px; }
    .adopt-layout__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin-bottom: 10px; }
    .adopt-layout__facts { display: flex; margin-top: 4px; }
    .animal-profile__adoption .adopt-form { max-width: none; }
    .adopt-layout .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .animal-profile__follow .adopt-form.follow-card { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 24px 56px; align-items: start; max-width: none; }
}

/* Cómo ayudar: solo las formas que existen de verdad (App\Support\HelpOptions). */
.help-options { display: flex; flex-direction: column; gap: 18px; }
.help-options__head .h2 { margin: 0; }
.help-options__head p { margin: 8px 0 0; }
.help-options__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; }
.help-options__grid > li { display: flex; }
.help-option {
    position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 44px; padding: 20px 44px 20px 22px;
    border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.help-option::after {
    content: ""; position: absolute; top: 24px; right: 22px; width: 9px; height: 9px;
    border: solid var(--muted); border-width: 2px 2px 0 0; transform: rotate(45deg);
}
.help-option:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.help-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.help-option__mark { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.help-option--urgent .help-option__mark, .help-option--adopt .help-option__mark { background: var(--accent); }
.help-option--donate .help-option__mark, .help-option--needs .help-option__mark, .help-option--campaigns .help-option__mark { background: #C9962E; }
.help-option--share .help-option__mark, .help-option--follow .help-option__mark { background: #2F6FB3; }
.help-option__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.25; }
.help-option__text { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Página de la protectora: llamadas del principio y casos urgentes. */
.shelter-profile__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
.urgent-cases { display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: var(--accent-soft); border: 1px solid #EBCDBB; }
.urgent-cases__head .h2 { margin: 0; }
.urgent-cases__head p { margin: 8px 0 0; color: #5E3524; }
.urgent-cases .animal-card__link { background: #fff; }
.shelter-profile__ctas .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.shelter-profile__ctas .btn-primary:hover { color: #fff; }

/* «Cuéntalo»: vídeo para compartir tras donar o comprar (App\Support\SupporterVideo) */
.supporter-video__body { display: grid; gap: 20px; align-items: start; }
.supporter-video__player { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: #0e1a17; }
.supporter-video__player--story { max-width: 280px; }
.supporter-video__player--post { max-width: 340px; }
.supporter-video__downloads { display: grid; gap: 8px; }
.supporter-video__downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.supporter-video__actions > * { margin: 0; }
@media (min-width: 760px) {
    .supporter-video__body { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); }
}
