/* OneBowl — estilos de la web pública. Sin paso de compilación: se sirve tal cual. */

:root {
    --ink: #17262B;
    --muted: #4A5A60;
    --line: #E3E8E6;
    --line-strong: #CBD4D1;
    --tint: #F2F6F4;
    --photo: #E7EEEA;
    --accent: #C2410C;
    --accent-soft: #FDECE3;
    --accent-on-dark: #F4A57F;
    --green: #1F6F55;
    --green-soft: #E3F1EA;
    --green-ink: #2E4A42;
    --on-dark: #DCE4E1;
    --on-dark-muted: #C9D4D0;
    --font-display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
    --font-body: Inter, system-ui, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
p, h1, h2, h3, ul, ol { margin: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.plain-list { list-style: none; padding: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 44px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }

/* Texto */
.display {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -2px;
}
.h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -1px;
}
.h2--panel { font-size: 36px; line-height: 1.1; letter-spacing: -0.5px; }
.h2--sm { font-size: 30px; letter-spacing: -0.5px; }
.integrations .h2--sm { flex: 1 1 320px; }
.h2--cta { font-size: clamp(32px, 4vw, 50px); line-height: 1.05; }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.h3--lg { font-size: 22px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); }
.lead--xl { font-size: 20px; max-width: 560px; }
.muted { color: var(--muted); font-size: 16px; line-height: 1.55; }
.small { font-size: 13px; }
p.muted.small, .small.muted { font-size: 13px; }
.fw-600 { font-weight: 600; }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.eyebrow {
    font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--accent);
}
.eyebrow--light { color: var(--accent-on-dark); }
.eyebrow--green { color: var(--green); }

/* Botones y enlaces */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 13px 20px; border-radius: 12px;
    font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer; transition: filter .15s ease;
}
.btn:hover { filter: brightness(0.94); }
.btn-lg { font-size: 17px; padding: 16px 26px; border-radius: 14px; }
.btn-block { width: 100%; margin-top: auto; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { color: #ffffff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-green { background: var(--green); color: #ffffff; align-self: flex-start; }
.btn-green:hover { color: #ffffff; }
.btn-light { background: #ffffff; color: var(--ink); font-weight: 700; }
.btn-ghost-light { border: 2px solid #ffffff; color: #ffffff; font-weight: 700; }
.btn-ghost-light:hover { color: #ffffff; }
.panel .btn-primary { align-self: flex-start; }
.link-plain {
    text-decoration: none; font-weight: 600; font-size: 15px;
    min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
}
.link-accent {
    text-decoration: none; font-weight: 600; font-size: 16px; color: var(--accent);
    min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--line); background: #ffffff; }
.site-header__inner {
    padding-block: 18px; display: flex; flex-wrap: wrap;
    align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    color: var(--ink); font-family: var(--font-display); font-weight: 800;
    font-size: 24px; letter-spacing: -0.5px;
}
.brand:hover { color: var(--ink); }
.logo-mark { color: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; }
.site-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lang-select {
    font: inherit; font-size: 14px; padding: 10px 12px; min-height: 44px;
    border: 1px solid var(--line-strong); border-radius: 10px; background: #ffffff; color: var(--ink);
}
.lang-links { display: inline-flex; gap: 8px; font-size: 14px; }

/* Secciones */
.section { padding-block: 96px; }
.section--tint { background: var(--tint); }
.section--compact { padding-block: 72px; }
.section--flush-top { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-head--wide { max-width: 760px; }
.section-head--split {
    display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;
    align-items: flex-end; gap: 20px; max-width: none;
}
.section-head--split > .section-head { max-width: 700px; }

/* Portada */
.hero { padding-block: 88px 72px; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.badge {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--green); background: var(--green-soft);
    padding: 8px 14px; border-radius: 999px;
}
.inline-points {
    list-style: none; padding: 0; display: flex; flex-wrap: wrap;
    gap: 10px 24px; font-size: 15px; color: var(--muted);
}

/* Tarjeta de pedido */
.order-card {
    width: 100%; max-width: 440px; background: #ffffff; border: 1px solid var(--line);
    border-radius: 24px; box-shadow: 0 24px 60px rgba(23, 38, 43, 0.12); overflow: hidden;
}
.order-card__top {
    padding: 16px 20px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--muted);
}
.order-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.order-card__body .muted { font-size: 15px; line-height: 1.5; }
.order-card__body .muted.small { font-size: 14px; }
.order-card__body strong { color: var(--ink); }
.order-card__name {
    font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.5px;
}

/* Huecos de foto */
.photo-ph {
    height: 220px; background: var(--photo); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px;
}
.photo-ph--lg { height: 240px; }
.photo-ph--sm { height: 180px; border-radius: 18px; }

/* Progreso */
.progress-block { display: flex; flex-direction: column; gap: 8px; }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.animal-card .progress { height: 8px; }
.progress__bar { height: 100%; background: var(--green); border-radius: 999px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* Contadores */
.stats { background: var(--ink); color: #ffffff; }
.stats__grid {
    padding-block: 40px; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: 36px; }
.stat__label { font-size: 15px; color: var(--on-dark-muted); }

/* Rejillas */
.card-grid { display: grid; gap: 20px; }
.card-grid--190 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.card-grid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card-grid--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

/* Pasos */
.step {
    border: 1px solid var(--line); border-radius: 20px; padding: 28px;
    display: flex; flex-direction: column; gap: 12px;
}
.step__num {
    width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft);
    color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Animales */
.animal-card {
    background: #ffffff; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--line); display: flex; flex-direction: column;
}
.animal-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.animal-card__body .muted { font-size: 15px; line-height: 1.5; }
.animal-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Paneles tiendas / protectoras */
.panel { border-radius: 28px; padding: 44px; display: flex; flex-direction: column; gap: 20px; }
.panel--dark { background: var(--ink); color: #ffffff; }
.panel--green { background: var(--green-soft); color: var(--ink); }
.panel__list { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.5; }
.panel--dark .panel__list { color: var(--on-dark); }
.panel--green .panel__list { color: var(--green-ink); }

/* Flujo del euro */
.flow-step {
    background: #ffffff; border-radius: 18px; padding: 22px;
    display: flex; flex-direction: column; gap: 8px;
}
.flow-step strong { font-size: 18px; }
.flow-step .muted { font-size: 15px; line-height: 1.5; }
.flow-step__num { font-size: 13px; font-weight: 700; }

/* Integraciones */
.integrations { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; flex: 2 1 520px; }
.chip { border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 22px; font-weight: 600; font-size: 16px; }

/* Precios */
.toggle {
    display: inline-flex; background: #ffffff; border: 1px solid var(--line-strong);
    border-radius: 14px; padding: 4px; gap: 4px;
}
.toggle__btn {
    font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; min-height: 44px;
    border-radius: 10px; border: 0; cursor: pointer; background: transparent; color: var(--ink);
}
.toggle__btn.is-active { background: var(--ink); color: #ffffff; }
.plan {
    background: #ffffff; border-radius: 22px; padding: 28px; border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 16px;
}
.plan--featured { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--font-display); font-weight: 800; font-size: 44px; }
.plan__period { font-size: 15px; color: var(--muted); }
.plan--featured .plan__period { color: var(--on-dark-muted); }
.plan__features {
    padding-left: 18px; display: flex; flex-direction: column; gap: 8px;
    font-size: 15px; line-height: 1.45; color: var(--muted);
}
.plan--featured .plan__features { color: var(--on-dark); }
.plan .btn { font-size: 15px; padding: 13px 18px; }
.pill {
    font-size: 12px; font-weight: 700; background: var(--accent); color: #ffffff;
    padding: 5px 10px; border-radius: 999px;
}

/* Blog */
.post-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.post-card__img { height: 180px; width: 100%; object-fit: cover; border-radius: 18px; }

/* Llamada final */
.cta-band {
    background: var(--accent); color: #ffffff; border-radius: 32px; padding: 64px 48px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-band__lead { font-size: 19px; line-height: 1.5; color: #FFE7DC; }

/* Pie */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer__inner { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-grid strong { color: #ffffff; }
.footer-grid a, .footer-bottom a { color: var(--on-dark); text-decoration: none; }
.footer-grid a:hover, .footer-bottom a:hover { color: #ffffff; text-decoration: underline; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #ffffff; }
.footer-bottom {
    border-top: 1px solid #34474D; padding-top: 24px; display: flex; flex-wrap: wrap;
    justify-content: space-between; gap: 16px; font-size: 14px; color: #B5C2BD;
}
.footer-bottom a[aria-current="page"] { color: #ffffff; font-weight: 600; }

/* Móvil */
@media (max-width: 640px) {
    .section { padding-block: 64px; }
    .hero { padding-block: 48px; }
    .panel { padding: 28px; }
    .cta-band { padding: 40px 24px; border-radius: 24px; }
    .main-nav { gap: 16px; }
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Páginas públicas de animales y protectoras */
.plain-link { text-decoration: none; color: inherit; }
.plain-link:hover { color: var(--accent); }
.animal-card__link { display: block; }
.animal-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.filters .field { min-width: 200px; }
.animal-detail { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.animal-detail__media { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.animal-detail__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.animal-detail__cover { width: 100%; border-radius: 24px; object-fit: cover; max-height: 640px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.display--md { font-size: clamp(38px, 5vw, 60px); }
/* Portada: el H1 lleva la frase completa para buscadores, así que va algo más pequeño. */
.display--hero { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -1.5px; hyphens: manual; }
.prose { font-size: 17px; line-height: 1.65; color: var(--ink); }
.need-box { background: var(--tint); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.section--tint .need-box { background: #ffffff; }
.timeline { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.timeline li { border-left: 3px solid var(--line-strong); padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.adopt-form { max-width: 760px; background: #ffffff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.badge { align-self: flex-start; }

/* Páginas legales */
.legal { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 760px); gap: 48px; align-items: start; }
.legal__nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 24px; }
.legal__nav a { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.legal__nav a:hover { background: var(--tint); }
.legal__nav a[aria-current="page"] { background: var(--ink); color: #ffffff; }
.legal__body { display: flex; flex-direction: column; gap: 14px; }
.legal__body h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-top: 18px; }
.legal__body h3 { font-size: 18px; font-weight: 700; margin-top: 8px; }
.legal__body ul, .legal__body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body a { color: var(--accent); text-decoration: underline; }
.legal__body { min-width: 0; }
.legal__body table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.legal__body th, .legal__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 150px; }
.legal-missing { background: #FFF6E5; color: #5C3B00; padding: 0 4px; border-radius: 4px; }
.notice-inline { background: var(--tint); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
@media (max-width: 860px) {
    .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .legal__nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* Campañas y tiendas */
.info-card { background: #ffffff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.info-card--accent { background: var(--tint); border-color: transparent; }
.info-card__link { color: var(--ink); text-decoration: none; }
.info-card__link:hover, .info-card__link:focus-visible { text-decoration: underline; }

/* Blog */
.article { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.article__cover { width: 100%; height: auto; border-radius: 24px; object-fit: cover; max-height: 460px; }
.article__body { display: flex; flex-direction: column; gap: 14px; }
.article__body h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 12px; }
.article__body h3 { font-size: 20px; font-weight: 700; margin-top: 8px; }
.article__body ul, .article__body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body a { color: var(--accent); text-decoration: underline; }
.article__body blockquote { border-left: 4px solid var(--line-strong); padding-left: 16px; color: var(--muted); }
.article__body img { max-width: 100%; height: auto; border-radius: 16px; }
.article__related { max-width: 1200px; margin: 64px auto 0; }
.machine-note { display: inline-block; font-size: 13px; color: var(--muted); font-style: italic; }

/* Páginas de error */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--tint); padding: 24px; }
.error-page__box { max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.error-page__code { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.error-page__message { font-size: 18px; line-height: 1.55; color: var(--muted); }

/* El cuenco de cada tienda */
.bowl-units { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.bowl-chart { margin: 0; background: #ffffff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.bowl-chart__bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 200px; }
.bowl-chart__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bowl-chart__bar { width: 100%; max-width: 40px; background: var(--green); border-radius: 8px 8px 0 0; }
.bowl-chart__col span { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) {
    .bowl-chart__bars { gap: 4px; }
    .bowl-chart__col:nth-child(even) span { visibility: hidden; }
}

/* Sigue tu donación */
.track-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; counter-reset: step; max-width: 640px; }
.track-steps__item { position: relative; padding: 0 0 22px 48px; display: flex; flex-direction: column; gap: 4px; counter-increment: step; }
.track-steps__item::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); background: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.track-steps__item::after { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.track-steps__item:last-child::after { display: none; }
.track-steps__item.is-done::before { content: '✓'; background: var(--green); border-color: var(--green); color: #ffffff; }
.track-steps__item.is-current::before { border-color: var(--accent); color: var(--accent); }
.track-steps__title { font-weight: 700; font-size: 17px; }

/* Calculadora de precios */
.calc { background: #ffffff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.calc__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.calc .field { display: flex; flex-direction: column; gap: 6px; }
.calc input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; }
.calc__result { font-size: 18px; line-height: 1.6; }

.card-grid--fill { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.env-banner { background: #5C3B00; color: #ffffff; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }


/* Justificantes de necesidades cubiertas ("Así se ha usado") */
.proof-card { margin: 0; background: #ffffff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.proof-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.proof-card figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; line-height: 1.4; }
.section--tint .proof-card { border-color: transparent; }
.offline { max-width: 560px; text-align: center; align-items: center; padding-block: 64px; }

/* Campañas de emergencia */
.badge-emergency { display: inline-block; background: #FDECEC; color: #7A1C1C; border-radius: 999px; padding: 2px 10px; font-weight: 700; letter-spacing: 0.04em; }
.info-card--emergency { border-color: #E9B4B4; }
.progress--lg { height: 16px; }

/* Donaciones individuales */
.narrow { max-width: 640px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-choice { position: relative; display: inline-flex; }
.chip-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-choice span { display: inline-flex; align-items: center; min-height: 44px; min-width: 72px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 18px; font-weight: 600; background: #ffffff; }
.chip-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.chip-choice input:focus-visible + span { outline: 3px solid var(--accent, #C2410C); outline-offset: 2px; }

/* Centro de ayuda */
.help { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 780px); gap: 48px; align-items: start; margin-top: 16px; }
.help__nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.help__nav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.help__nav a:hover { background: var(--tint); }
.help__nav a[aria-current="page"] { background: var(--ink); color: #ffffff; }
.help__toc a { font-weight: 400; font-size: 15px; min-height: 36px; }
.help__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.help__body h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 24px; scroll-margin-top: 24px; }
.help__body h3 { font-size: 19px; font-weight: 700; margin-top: 10px; scroll-margin-top: 24px; }
.help__body ul, .help__body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.help__body ul { list-style: disc; }
.help__body ol { list-style: decimal; }
.help__body a { color: var(--accent); text-decoration: underline; }
.help__body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--tint); padding: 1px 5px; border-radius: 5px; }
.help__body pre { background: var(--ink); color: #F2F6F4; padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.help__body pre code { background: none; padding: 0; color: inherit; }
.help__body table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.help__body th, .help__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 120px; }
.help-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; color: var(--ink); text-decoration: none; }
.help-card:hover { border-color: var(--ink); }
.help-contact { margin-top: 24px; padding: 22px; border-radius: 18px; background: var(--tint); display: flex; flex-direction: column; gap: 8px; }
.help-contact a { color: var(--accent); }
.breadcrumbs a { color: var(--muted, #4A5A60); }
@media (max-width: 900px) {
    .help { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .help__nav { position: static; }
    .help__toc { display: none; }
}

/* ¿Qué es OneBowl? */
.trust { display: flex; flex-direction: column; gap: 12px; }
.trust__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust__head svg { flex: none; }
.trust__head .h3 { margin: 0; }
.trust__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.trust .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 0; }
.trust .row-actions a { display: inline-flex; align-items: center; min-height: 44px; }

/* Portada: lo que incluyen todos los planes, integraciones en preparación y preguntas frecuentes */
.plans-all { font-size: 16px; color: var(--ink); max-width: 860px; }
.chip--soon { background: transparent; border-style: dashed; color: var(--muted, #4A5A60); }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq__item { border: 1px solid var(--line, #E3E8E6); border-radius: 14px; background: #ffffff; }
.faq__item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 14px 18px; font-weight: 700; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); flex: none; }
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 14px; }
.faq__item p { margin: 0; padding: 0 18px 16px; color: var(--muted, #4A5A60); line-height: 1.6; }

/* Cuestionario de preadopción (ficha del animal y panel de la protectora) */
.adopt-questions{border:0;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:16px;min-width:0}
.adopt-questions>legend{padding:0;margin-bottom:12px}
.adopt-questions fieldset.field{border:0;padding:0;margin:0;min-width:0}
.adopt-questions fieldset.field>legend{padding:0;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--ink)}
.adopt-questions .chip-choice span{min-height:44px}

/* Campañas de las protectoras: página de cada campaña, tarjetas y página «Crea una campaña». */
.progress--split { display: flex; }
.progress--split .progress__bar { border-radius: 0; flex: none; }
.progress--split .progress__bar:first-child { border-radius: 999px 0 0 999px; }
.progress--split .progress__bar:last-child { border-radius: 0 999px 999px 0; }
.progress--split .progress__bar:only-child { border-radius: 999px; }
/* Lo que está en camino, rayado: no se confunde con lo recibido ni sin color. */
.progress .progress__bar--way, .legend-dot--way { background: repeating-linear-gradient(135deg, var(--green) 0 3px, #BFDCCF 3px 7px); }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }

.campaign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.campaign__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.campaign__aside > * { margin: 0; }
.campaign__photo { margin: 0; }
.campaign__photo img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 20px; background: var(--photo); }
.campaign-progress__amount { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.campaign-progress__received { font-family: var(--font-display); font-size: clamp(30px, 3vw, 38px); font-weight: 650; line-height: 1.1; color: var(--ink); }
.campaign__animal { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; background: #fff; }
.campaign__animal:hover, .campaign__animal:focus-visible { border-color: var(--line-strong); text-decoration: none; }
.campaign__animal img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--photo); }
.campaign__animal > span { display: flex; flex-direction: column; gap: 2px; }
.campaign__updates { display: flex; flex-direction: column; gap: 14px; }
.campaign__updates li { padding-left: 16px; border-left: 3px solid var(--green-soft); }
.campaign__updates p { margin: 0; }
.campaign-cta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.campaign-cta > div { flex: 1 1 320px; }
.campaign-cta p { margin: 4px 0 0; }
@media (max-width: 900px) {
    /* En el móvil, el progreso y las formas de ayudar van justo después del título y la foto o el vídeo. */
    .campaign { display: flex; flex-direction: column; }
    .campaign__main { display: contents; }
    .campaign__main > * { order: 3; }
    .campaign__main > header, .campaign__main > .video-card, .campaign__main > .campaign__photo { order: 1; }
    .campaign__aside { order: 2; position: static; }
}

.need-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.need-card:hover, .need-card:focus-within { border-color: var(--line-strong); }
.need-card__media { position: relative; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: var(--green-soft); }
.need-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.need-card__media img.need-card__placeholder { inset: 20% 30%; width: 40%; height: 60%; object-fit: contain; }
.need-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.need-card__body p { margin: 0; }
.need-card__link { color: var(--ink); text-decoration: none; }
.need-card__link::after { content: ""; position: absolute; inset: 0; }
.need-card__link:hover, .need-card__link:focus-visible { text-decoration: underline; }
.need-card__link:focus-visible { outline: none; }
.need-card:has(.need-card__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.video-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.video-card__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0E1A1D; }
.video-card__thumb, .video-card__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-card__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; padding: 0; cursor: pointer; color: #fff; background: linear-gradient(180deg, rgba(14, 26, 29, 0) 40%, rgba(14, 26, 29, .55)); font: inherit; }
.video-card__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); position: relative; }
.video-card__icon::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-card__label { font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: rgba(14, 26, 29, .72); }
.video-card__play:hover .video-card__icon { transform: scale(1.05); }
.video-card__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video-card figcaption { margin: 0; }

.offline-methods__list { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.offline-methods__item { padding-top: 14px; border-top: 1px solid var(--line); }
.offline-methods__item dt { font-weight: 600; }
.offline-methods__item dd { margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.offline-methods__item p { margin: 0; }
.offline-methods__value { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.offline-methods__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .02em; overflow-wrap: anywhere; }

.start-campaign__trust { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.start-campaign__needs { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
@media (max-width: 900px) {
    .start-campaign__trust { grid-template-columns: 1fr; }
}
.actions--center-y { align-items: center; }
.actions--center-y .link-accent { display: inline-flex; align-items: center; min-height: 44px; }
.need-card__body p.small .muted { font-size: inherit; }

/* Etiqueta del nivel del sello de una tienda (ShopLevel): panel y web pública. Contraste AA sobre su fondo. */
.level-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 1px solid currentColor; vertical-align: 1px; }
.level-chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.level-chip--bronze { color: #6E3F1F; background: #F7ECE3; }
.level-chip--silver { color: #3C4A50; background: #EEF2F4; }
.level-chip--gold { color: #5E4708; background: #FBF3DA; }
.level-chip--platinum { color: #2A3557; background: #EEF0F8; }

/* Tiendas solidarias (CommunityController::shops) y su vista previa en el panel (Comunicación) */
.shop-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg, 20px); background: #fff; border: 1px solid var(--line); }
.shop-card__top { display: flex; align-items: center; gap: 16px; padding: 20px 20px 0; }
.shop-card__logo { display: grid; place-items: center; flex: none; width: 88px; height: 88px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.shop-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.shop-card__monogram { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #133A33; background: linear-gradient(140deg, #EAF0EA, var(--tint)); }
.shop-card__name { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.shop-card__name .h3, .shop-card__name .h4 { font-size: 20px; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.shop-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 20px 20px; }
.shop-card__text { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.shop-card__figure { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--green); font-size: 14.5px; }
.shop-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-card__actions .btn { min-height: 44px; padding: 10px 16px; font-size: 14.5px; }
.shop-profile__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.shop-profile__logo { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 8px; flex: none; }
.profile-editor { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.profile-editor__preview { position: sticky; top: 16px; }
@media (max-width: 900px) { .profile-editor { grid-template-columns: 1fr; } .profile-editor__preview { position: static; } }

/* Aviso y configuración de cookies (partials/cookie-consent). Rechazar y aceptar con el mismo peso. */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #ffffff; border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 30px rgba(23, 38, 43, .12); padding: 18px 0; max-height: 80vh; overflow-y: auto; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.cookie-banner__text { flex: 1 1 420px; }
.cookie-banner__text h2 { margin: 0 0 6px; }
.cookie-banner__text p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.cookie-banner__actions, .cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn, .cookie-dialog__actions .btn { flex: 1 1 auto; }
.cookie-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 20px; padding: 24px; color: var(--ink); box-shadow: 0 20px 60px rgba(23, 38, 43, .3); }
.cookie-dialog::backdrop { background: rgba(14, 26, 29, .55); }
.cookie-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cookie-dialog__head h2 { margin: 0; }
.cookie-dialog__close { min-width: 44px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: #ffffff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.cookie-option { border-top: 1px solid var(--line); padding-top: 14px; }
.cookie-option__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cookie-option__head h3 { margin: 0; }
.cookie-option p { margin: 6px 0 0; }
.cookie-option__state { font-weight: 600; color: var(--green); }
.cookie-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer; }
.cookie-switch input { width: 22px; height: 22px; accent-color: var(--accent); }
.video-card__consent { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; color: #ffffff; background: rgba(14, 26, 29, .92); }
.video-card__consent p { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.5; }
.video-card__consent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 640px) {
    .cookie-banner { padding: 14px 0; }
    .cookie-banner__actions .btn { flex: 1 1 100%; }
}
@media print { .cookie-banner, .cookie-dialog { display: none; } }
