/* OneBowl — paneles (protectoras, tiendas, administración) y acceso. */

.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-danger { background: #B42318; color: #ffffff; }
.btn-danger:hover { color: #ffffff; }
.btn-link {
    background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 600;
    color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* Acceso */
.auth-body { background: var(--tint); }
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 20px; gap: 24px; }
.auth-brand { align-self: center; }
.auth-card {
    width: 100%; max-width: 520px; background: #ffffff; border: 1px solid var(--line);
    border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 20px;
}
.auth-card--wide { max-width: 720px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.5px; }
.auth-langs { display: flex; gap: 12px; font-size: 14px; }
.auth-langs a { text-decoration: none; padding: 10px 4px; }
.auth-langs a[aria-current="page"] { font-weight: 700; }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
    font: inherit; font-size: 16px; color: var(--ink); background: #ffffff;
    border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; min-height: 44px; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(194, 65, 12, 0.35); outline-offset: 1px; border-color: var(--accent); }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.field--check label { font-weight: 500; flex: 1 1 200px; line-height: 1.45; }
.field__help { font-size: 13px; color: var(--muted); width: 100%; }
.field__error { font-size: 13px; color: #B42318; font-weight: 600; width: 100%; }
.has-error input, .has-error select, .has-error textarea { border-color: #B42318; }
.req { color: #B42318; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
legend { font-weight: 700; padding: 0 6px; }

.flash { background: var(--green-soft); color: var(--green-ink); border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.flash--error { background: #FDECEC; color: #8A1C12; }
.flash--secret { background: #FFF6E5; color: #5C3B00; display: flex; flex-direction: column; gap: 10px; }
.secret { font-size: 15px; word-break: break-all; background: #ffffff; padding: 10px 12px; border-radius: 8px; border: 1px solid #F0D9A8; }

/* Paneles */
.panel-body { background: var(--tint); }
.panel-top {
    background: #ffffff; border-bottom: 1px solid var(--line); padding: 14px 24px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
.panel-top__right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.panel-top__who { font-size: 14px; color: var(--muted); }
.panel-shell { max-width: 1280px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.panel-nav { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.panel-nav a {
    text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500;
    min-height: 44px; display: flex; align-items: center;
}
.panel-nav a:hover { background: #ffffff; }
.panel-nav a[aria-current="page"] { background: var(--ink); color: #ffffff; }
.panel-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 760px) {
    .panel-nav { max-width: none; flex-direction: row; flex-wrap: wrap; }
}

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.5px; }
.page-head p { color: var(--muted); }
.card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card h2 { font-size: 20px; font-weight: 700; }
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi__value { font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.kpi__label { font-size: 14px; color: var(--muted); }
.notice { border-left: 0; background: #FFF6E5; color: #5C3B00; border-radius: 14px; padding: 16px 18px; line-height: 1.5; }
.notice--info { background: #E7F1FB; color: #123A5C; }
.notice--error { background: #FDECEC; color: #7A1C1C; }

.table-wrap { position: relative; overflow-x: auto; background: #ffffff; border: 1px solid var(--line); border-radius: 18px; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table th[scope="row"] { font-size: 15px; color: var(--ink); white-space: normal; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table .empty { color: var(--muted); text-align: center; padding: 32px 16px; }

.status { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status--neutral { background: #EEF1F0; color: #34474D; }
.status--good { background: var(--green-soft); color: var(--green); }
.status--warn { background: #FFF1D6; color: #7A4B00; }
.status--bad { background: #FDECEC; color: #8A1C12; }

.animal-row { display: flex; align-items: center; gap: 12px; }
.thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--photo); flex: 0 0 auto; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.photo-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #ffffff; display: flex; flex-direction: column; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-item__body { padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.inline-form { display: inline; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions > a.btn-link { display: inline-flex; align-items: center; }
.table td.row-actions { display: table-cell; white-space: nowrap; }
.table td.row-actions > * + * { margin-left: 12px; }
.targets-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; align-items: end; }

/* Pagos */
.help { font-size: 14px; color: var(--muted); }
/* La ayuda pública usa .help como rejilla (onebowl.css): en un párrafo, texto normal. */
p.help { display: block; }
.payments-pending { margin-top: 12px; }
.pending-payments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pending-payment { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.pending-payment__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 260px; }
.pending-payment__info p { margin: 0; }
.nowrap { white-space: nowrap; }
.notice--good { background: var(--green-soft); color: var(--green-ink); }
.field__label { font-size: 14px; font-weight: 600; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }

/* Resumen anual imprimible */
.statement { background: var(--tint); }
.statement__page { max-width: 900px; margin: 32px auto; background: #ffffff; border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.statement__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.statement__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.statement__notes { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.statement tfoot th, .statement tfoot td { border-top: 2px solid var(--line-strong); }
@media print {
    .statement { background: #ffffff; }
    .statement__page { margin: 0; padding: 0; border-radius: 0; }
    .statement__actions { display: none; }
    .table-wrap { border: 0; }
}
.statement__brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); }
.cover-preview { border-radius: 12px; object-fit: cover; max-width: 100%; height: auto; }

/* Kit de comunicación y puesta en marcha */
.h4 { font-size: 16px; font-weight: 700; margin: 0; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy-row input { flex: 1 1 280px; min-height: 44px; }
.kit-seal { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.kit-seal__img { max-width: 100%; height: auto; }
.kit-code, textarea[readonly] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--tint); }
.setup-list { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }
.setup-list li { line-height: 1.5; }
.setup-list .small { display: block; }
.qr-box { width: 220px; height: 220px; background: #ffffff; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.qr-box svg { width: 100%; height: 100%; display: block; }


/* Documentos de verificación */
.doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.doc-row:first-of-type { border-top: 0; }
.doc-row input[type="text"] { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.certificate__body p { line-height: 1.6; }

/* Comunicación: sellos, banners y widgets */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 24px; }
.kit-seal__preview { background: var(--tint); border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; overflow-x: auto; }
.kit-widget { border: 0; max-width: 100%; background: transparent; }
.panel-nav__help { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

/* Contrato */
.agreement-text { max-height: 520px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; background: #ffffff; }
.agreement-text:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.agreement-text h2 { font-size: 18px; margin: 24px 0 8px; }
.agreement-text h3 { font-size: 16px; margin: 16px 0 6px; }
.agreement-text p, .agreement-text li { line-height: 1.6; }
.agreement-text p, .agreement-copy__text p { margin: 0 0 12px; }
.agreement-text ul, .agreement-text ol, .agreement-copy__text ul, .agreement-copy__text ol { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.agreement-pending { border-color: var(--accent); }
.agreement-admin { border-top: 1px solid var(--line); padding-top: 8px; }
.agreement-admin > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; color: var(--accent); }
.agreement-facts dd { margin: 4px 0 0; }
.agreement-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.agreement-copy__head svg { display: block; margin-bottom: 12px; }
.agreement-copy__record { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 6px 16px; margin: 0; }
.agreement-copy__record dt { font-weight: 600; }
.agreement-copy__record dd { margin: 0; overflow-wrap: anywhere; }
.agreement-copy__hash { font-size: 12px; overflow-wrap: anywhere; }
.agreement-copy__text { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.agreement-copy__text h2 { font-size: 18px; margin: 22px 0 8px; }
@media print { .agreement-copy__text h2 { break-after: avoid; } }

/* Administrative overview — compact, editorial and screen-reader friendly. */
.admin-overview { display: flex; flex-direction: column; gap: 27px; margin: 8px 0 15px; }
.admin-overview__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.admin-overview__head .h2 { font-size: clamp(27px,3vw,34px); margin-top: 8px; }
.admin-overview__cards { margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.admin-overview__metric { display: flex; flex-direction: column; gap: 11px; min-width: 0; padding: clamp(20px,2.5vw,32px); background: #fff; border: 1px solid #dbe3dc; border-radius: 13px; }
.admin-overview__metric dt { color: #52685e; font-size: 13px; line-height: 1.45; font-weight: 650; }
.admin-overview__metric dd { margin: 0; font-family: var(--font-display); font-size: clamp(23px,3vw,37px); letter-spacing: -.045em; font-weight: 780; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.admin-overview__metric--dark { background: #17382f; border-color: #17382f; color: #fff; }
.admin-overview__metric--dark dt { color: #cbded0; }
.admin-overview__metric-note { color: #d9e4dd; font-size: 12px; line-height: 1.55; }
.admin-overview__alerts { background: #fff; border: 1px solid #dbe3dc; border-radius: 14px; padding: clamp(22px,3vw,32px); display: flex; flex-direction: column; gap: 19px; }
.admin-overview__tasks { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.admin-overview__task { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; min-height: 115px; border: 1px solid #dce5dc; border-radius: 10px; text-decoration: none; padding: 17px; transition: background .15s ease, border-color .15s ease; }
.admin-overview__task strong { font-family: var(--font-display); color: #204b3a; font-size: 27px; font-variant-numeric: tabular-nums; }
.admin-overview__task span { color: #52685e; font-size: 13px; line-height: 1.5; }
.admin-overview__task:hover { background: #f1f6ef; border-color: #a4c4a9; }
.admin-overview__task--alert { border-color: #d0a57f; background: #fff7ef; }
.admin-overview__task--alert strong { color: #8f452b; }
@media (max-width:1050px) {
    .admin-overview__cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-overview__tasks { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:610px) {
    .admin-overview__cards { gap: 10px; }
    .admin-overview__metric { padding: 17px; }
    .admin-overview__metric dd { font-size: 25px; }
    .admin-overview__tasks { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:360px) {
    .admin-overview__cards { grid-template-columns: 1fr; }
    .admin-overview__tasks { grid-template-columns: 1fr; }
}


/* 360-degree entity dossier: chronological activity, no raw secrets. */
.admin-entity-history { gap: 24px; }
.admin-entity-history__timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.admin-entity-history__timeline li {
    display: grid;
    grid-template-columns: minmax(120px,175px) minmax(0,1fr);
    gap: 5px 18px;
    border-left: 2px solid #b2cbb9;
    padding: 4px 0 25px 25px;
    position: relative;
    line-height: 1.6;
}
.admin-entity-history__timeline li::before {
    content: ''; position: absolute; top: 10px; left: -7px;
    width: 12px; height: 12px; background: #2e7653; border: 3px solid #fff; border-radius: 50%;
}
.admin-entity-history__timeline time { color: #60746a; font-size: 12px; }
.admin-entity-history__timeline strong { color: #243e34; font-size: 14px; }
.admin-entity-history__timeline .small { grid-column: 2; overflow-wrap: anywhere; }
@media (max-width: 540px) {
    .admin-entity-history__timeline li { grid-template-columns: 1fr; gap: 6px; }
    .admin-entity-history__timeline .small { grid-column: 1; }
}

/* Administrator permissions editor */
.admin-role-select{min-height:44px;padding:10px 13px;border-radius:8px;border:1px solid var(--line-strong);color:var(--ink);background:#fff;font:inherit;min-width:min(240px,100%)}
.admin-role-select:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* Logotipo de la protectora y QR de cada animal */
.logo-card{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:start}
.logo-card__preview{display:grid;place-items:center;width:160px;height:160px;border-radius:16px;background:#f4f6f2;border:1px solid var(--line);overflow:hidden}
.logo-card__preview img{width:100%;height:100%;object-fit:contain;background:#fff;padding:10px}
.shelter-monogram{display:grid;place-items:center;width:100%;height:100%;font-weight:800;font-size:48px;color:#133A33;background:linear-gradient(140deg,#EAF0EA,#EEF2EC)}
.qr-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px}
.qr-card__text{display:flex;flex-direction:column;gap:8px}
.qr-card__text p{margin:0}
.qr-card .row-actions{gap:8px 20px;margin-top:4px}
.qr-card .btn-link{display:inline-flex;align-items:center;min-height:44px}
.qr-card__code{padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff}
.qr-card__code svg{width:160px;height:160px;display:block}
@media (max-width:640px){.logo-card{grid-template-columns:1fr}.logo-card__preview{width:128px;height:128px}.qr-card{grid-template-columns:1fr}.qr-card__code{justify-self:start}}
/* Ficha completa del animal en el panel: secciones, rasgos y salud */
.form-section{border:0;border-top:1px solid var(--line);margin:8px 0 0;padding:20px 0 0;display:flex;flex-direction:column;gap:14px;min-width:0}
.form-section>legend{padding:0;margin-bottom:4px;font-size:18px;font-weight:700}
.check-group{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.check-group>legend{padding:0;font-weight:600;font-size:14px}
.check-group__grid{display:flex;flex-wrap:wrap;gap:8px 16px}
.check-pill{position:relative;display:inline-flex}
.check-pill input{position:absolute;opacity:0;width:1px;height:1px}
.check-pill span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:14px;font-weight:600;cursor:pointer}
.check-pill input:checked+span{background:#133A33;border-color:#133A33;color:#fff}
.check-pill input:focus-visible+span{outline:3px solid #B4512D;outline-offset:2px}
/* Mi web (creador de webs) */
.site-status{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;align-items:flex-start}
.site-status p{margin:0 0 8px}
.site-status__publish{display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:320px}
.site-inline{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:18px}
.site-inline .btn{flex:0 0 auto}
.field input[type=color]{width:96px;height:48px;padding:4px;cursor:pointer}
.site-inline .field{flex:1 1 260px;margin:0}
.site-version{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.site-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.site-image{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:14px}
.site-image img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}
.site-blocks-title{margin:28px 0 12px;font-size:22px}
.site-block__head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center}
.site-block__head h3{margin:0;font-size:18px}
.site-block>details>summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer}
.site-block__form{margin-top:12px}
.site-image-field__preview{display:block;width:180px;aspect-ratio:4/3;object-fit:cover;border-radius:10px;margin-top:8px}
.site-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.site-pick__item{position:relative;display:flex;flex-direction:column;gap:4px;padding:6px;border:2px solid var(--line);border-radius:12px;cursor:pointer;font-size:13px}
.site-pick__item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.site-pick__item input{position:absolute;top:10px;left:10px;width:22px;height:22px}
.site-pick__item:has(input:checked){border-color:#133A33}
.site-items{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.site-items>legend{font-weight:700;padding:0}
.site-items__row{border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}
.site-items__row>legend{font-weight:600;font-size:14px;padding:0 6px}
.btn-link--danger{color:#A12A1C}
/* Tienda de la protectora */
.store-status .stack-sm>p{margin:0}
.store-steps{display:flex;flex-direction:column;gap:14px;margin:16px 0 0}
.store-steps-card>p{margin:8px 0 0}
.store-steps-card__summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none}
.store-steps-card__summary::-webkit-details-marker{display:none}
.store-steps-card__summary h2{margin:0}
.store-steps-card__summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:6px;transition:transform .2s ease}
.store-steps-card[open]>.store-steps-card__summary::after{transform:rotate(-135deg)}
.btn-link:disabled{color:var(--muted);text-decoration:none;cursor:default;opacity:.55}
.store-step{border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.store-step--done{background:#F6FAF8}
.store-step__head{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.store-step__head h3{margin:0;font-size:17px}
.store-step p{margin:0}
.store-seller{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px 18px;margin:0}
.store-seller dt{font-weight:600;font-size:13px;color:#4A5A57}
.store-seller dd{margin:0;overflow-wrap:anywhere}
.store-contract>summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer}
.store-contract .legal-text{max-height:420px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:16px 20px;margin-top:8px;background:#fff}
.store-section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.store-section-head h2{margin:0}
.store-thumb{display:block;width:56px;height:56px;border-radius:10px;object-fit:cover;background:#EEF1F0}
.store-thumb--empty{display:flex;align-items:center;justify-content:center;color:#7C8E89}
.store-order-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:start}
@media (max-width:900px){.store-order-grid{grid-template-columns:minmax(0,1fr)}}
.store-totals{margin:16px 0 8px;display:flex;flex-direction:column;gap:6px}
.store-totals>div{display:flex;justify-content:space-between;gap:16px}
.store-totals dt{margin:0}
.store-totals dd{margin:0;font-variant-numeric:tabular-nums}
.store-totals__total{font-weight:700;border-top:1px solid var(--line);padding-top:6px}
.store-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-top:16px}
.store-photo{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:14px}
.store-photo img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}
.store-inline{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:12px}
.store-inline .field{flex:1 1 260px;margin:0}
.filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.filter-tabs a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);text-decoration:none;font-weight:600;color:inherit;background:#fff}
.filter-tabs a[aria-current="page"]{background:#133A33;border-color:#133A33;color:#fff}
@media (prefers-reduced-motion:reduce){.store-steps-card__summary::after{transition:none}}

/* Pestañas de una sección (Tienda OneBowl) */
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.tabs a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;color:var(--ink);text-decoration:none;font-weight:600;border-bottom:3px solid transparent;margin-bottom:-1px}
.tabs a:hover{border-bottom-color:var(--line-strong)}
.tabs a[aria-current]{border-bottom-color:var(--accent);color:var(--ink)}
.tabs a:focus-visible{outline:3px solid #133A33;outline-offset:2px}
.input-wide{width:100%;min-width:260px}
.merch-admin-thumb{width:56px;height:70px;object-fit:cover;border-radius:8px;background:#F3EDE4;display:block}
.merch-admin-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;margin:0}
.merch-admin-files li{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}
.merch-admin-files img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:8px;background:#F3EDE4}
.merch-admin-print{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;border-radius:8px;background:repeating-conic-gradient(#EEE 0 25%,#FFF 0 50%) 50%/20px 20px;font-weight:700;color:var(--muted)}

/* CRM de la protectora: adopciones, acogidas e historial veterinario */
.crm-section{display:flex;flex-direction:column;gap:16px;margin-top:36px}
.crm-section>h2{margin:0}
.crm-detail{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:start;margin-top:20px}
@media (max-width:960px){.crm-detail{grid-template-columns:minmax(0,1fr)}}
.crm-qa{padding:10px 0;border-bottom:1px solid var(--line)}
.crm-qa:last-child{border-bottom:0}
.crm-qa__q{margin:0 0 4px;font-weight:600}
.crm-qa__a{margin:0;white-space:normal}
.crm-timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.crm-timeline li{display:flex;flex-direction:column;gap:2px;padding-left:14px;border-left:3px solid var(--line)}
.crm-card__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.crm-card__head h2{margin:0}
.crm-card--off{opacity:.8;background:#FAFAF8}
.crm-placement{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.crm-placement>span{flex:1 1 160px}
.crm-placement input[type="date"]{min-height:44px;padding:6px 10px;border:1px solid var(--line-strong);border-radius:10px;font:inherit}
.crm-placeholders{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px 20px;margin:12px 0 0}
.crm-placeholders div{display:flex;gap:10px;align-items:baseline}
.crm-placeholders dt{margin:0;flex:0 0 auto}
.crm-placeholders dd{margin:0;font-size:14px;color:var(--muted)}
.crm-summary,.crm-due{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.crm-due{margin-left:20px;padding-left:20px;font-size:15px}
.crm-due .status{margin-left:6px}
.crm-filters{margin:16px 0}
.btn:disabled{opacity:.4;cursor:default}
.crm-col{display:flex;flex-direction:column;gap:20px;min-width:0}
.crm-tabs{margin-top:20px}
.crm-tabs a{font-size:14px}
.crm-due-toggle{display:block}
.crm-fold>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;cursor:pointer;list-style:none;min-height:44px}
.crm-fold>summary::-webkit-details-marker{display:none}
.crm-fold>summary .h3{margin:0}
.crm-fold>summary .btn-link{margin-left:auto;min-height:0}
.crm-fold:not([open])>summary .btn-link::after{content:" +"}
.crm-clauses{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
.crm-clause{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;padding:2px 0;border-bottom:1px solid var(--line)}
.crm-clause:last-child{border-bottom:0}
.crm-clause>.field{margin:0;flex:1 1 220px}
.crm-clause>details{flex:0 0 auto}
.crm-clause>details[open]{flex-basis:100%;padding:0 0 12px 32px}
.crm-clause__edit{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:14px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.crm-clause__edit:hover{color:var(--ink)}
.crm-library{margin-top:8px}
.crm-clause-extra{margin-top:8px}
.crm-fold:not([open]){gap:0;padding-top:14px;padding-bottom:14px}
/* Equipo de la protectora: personas, permisos y actividad */
.team-list{display:flex;flex-direction:column;gap:16px;margin:0 0 12px}
.team-card{gap:12px}
.team-card__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px 24px}
.team-card__head h2{margin:0}
.team-card__head p{margin:2px 0 0}
.team-card__role{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.team-card__role label{font-size:14px;font-weight:600}
.team-card__role select{min-height:44px;border:1px solid var(--line-strong);border-radius:10px;padding:0 10px;font:inherit;background:#fff}
.team-card__can{margin:0}
.team-card__perms{border-top:1px solid var(--line);padding-top:4px}
.team-card__perms>summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;cursor:pointer;list-style:none;min-height:44px}
.team-card__perms>summary::-webkit-details-marker{display:none}
.team-card__perms>summary .btn-link{margin-left:auto;min-height:0}
.team-card__perms:not([open])>summary .btn-link::after{content:" +"}
.team-card__perms>.form{padding-top:8px}
.team-card .row-actions{align-items:center}
.perm-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px 16px;margin:0;padding:0;border:0}
.perm{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
.perm:has(input:checked){border-color:#133A33;background:#F1F6F4}
.perm input{flex:0 0 auto;width:20px;height:20px;margin:2px 0 0;accent-color:#133A33}
.perm input:focus-visible{outline:3px solid #B4512D;outline-offset:2px}
.perm__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.perm__text strong{font-size:15px}
.perm__tag{align-self:flex-start;font-size:12px;font-weight:600;color:#5C3B00;background:#FFF6E5;border-radius:999px;padding:1px 8px}
.perm__help{line-height:1.4}
.last-change{margin:0;font-size:14px;color:var(--muted)}
.last-change a{color:inherit;text-underline-offset:3px}
/* En el móvil, cada cambio es una ficha en lugar de una fila */
@media (max-width: 640px) {
    .activity-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .activity-table, .activity-table tbody, .activity-table tr, .activity-table td { display: block; width: 100%; }
    .activity-table tr { padding: 12px 16px; border-top: 1px solid var(--line); }
    .activity-table tr:first-child { border-top: 0; }
    .activity-table td { padding: 2px 0; border: 0; white-space: normal; }
    .activity-table td[data-label]::before { content: attr(data-label) ": "; font-size: 13px; font-weight: 600; color: var(--muted); }
}
/* Mi web: estilo (diseños y paletas) */
.theme-group { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.theme-group legend { margin-bottom: 8px; font-weight: 700; }
.theme-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.theme-design, .theme-palette { position: relative; display: block; cursor: pointer; }
.theme-design input, .theme-palette input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-design__card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px; border: 2px solid var(--line, #E3E8E6); border-radius: 14px; background: #fff; }
.theme-design__text { color: var(--muted, #4E5E59); font-size: 14px; line-height: 1.4; }
.theme-design input:checked + .theme-design__card, .theme-palette input:checked + .theme-palette__chip { border-color: var(--ink, #14231F); box-shadow: 0 0 0 1px var(--ink, #14231F); }
.theme-design input:focus-visible + .theme-design__card, .theme-palette input:focus-visible + .theme-palette__chip { outline: 3px solid var(--accent, #C2410C); outline-offset: 2px; }
.theme-thumb { display: grid; grid-template-rows: 10px 34px 1fr 10px; gap: 5px; height: 104px; padding: 6px; border-radius: 8px; background: #FBFAF7; border: 1px solid #E3E8E6; overflow: hidden; }
.theme-thumb span { display: block; }
.theme-thumb__bar { border-radius: 3px; background: #E3E8E6; }
.theme-thumb__hero { border-radius: 6px; background: color-mix(in srgb, var(--t-accent) 14%, #FFFFFF); }
.theme-thumb__cards { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.theme-thumb__cards span { border-radius: 5px; background: #fff; border: 1px solid #E3E8E6; }
.theme-thumb__foot { border-radius: 3px; background: #14231F; }
.theme-thumb--soft .theme-thumb__hero { border-radius: 14px; }
.theme-thumb--soft .theme-thumb__cards span { border: 0; border-radius: 10px; box-shadow: 0 3px 8px color-mix(in srgb, var(--t-accent) 22%, transparent); }
.theme-thumb--soft .theme-thumb__foot { background: color-mix(in srgb, var(--t-accent) 30%, #0E1714); border-radius: 8px 8px 0 0; }
.theme-thumb--bold .theme-thumb__bar, .theme-thumb--bold .theme-thumb__foot, .theme-thumb--bold .theme-thumb__hero { background: var(--t-accent); border-radius: 1px; }
.theme-thumb--bold .theme-thumb__cards span { border: 2px solid #14231F; border-radius: 1px; }
.theme-thumb--minimal { background: #fff; }
.theme-thumb--minimal .theme-thumb__hero { background: transparent; border-bottom: 1px solid #E3E8E6; border-radius: 0; }
.theme-thumb--minimal .theme-thumb__foot { background: #fff; border-top: 1px solid #E3E8E6; border-radius: 0; }
.theme-thumb--editorial .theme-thumb__hero { background: transparent; border-top: 3px solid #14231F; border-radius: 0; }
.theme-thumb--editorial .theme-thumb__cards span { border: 0; border-top: 2px solid #14231F; border-radius: 0; background: transparent; }
.theme-palettes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-palette__chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px 6px 8px; border: 2px solid var(--line, #E3E8E6); border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; }
.theme-swatch { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--t-accent) 0 58%, var(--t-paper) 58% 100%); border: 1px solid rgba(20, 35, 31, .18); }
.theme-swatch--custom { background: conic-gradient(var(--t-accent), #D9A441, #2F7FB6, #B0365A, var(--t-accent)); }
/* Vías para recibir donaciones (red OneBowl y directas) */
.donation-channels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.donation-channel{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}
.donation-channel__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.donation-channel__head h3{margin:0}
.donation-channel p{margin:0}
.donation-channel__checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:15px}
.donation-channel__checks li{position:relative;padding-left:28px}
.donation-channel__checks li::before{content:"";position:absolute;left:0;top:1px;width:20px;height:20px;border-radius:50%;box-sizing:border-box}
.donation-channel__checks li.is-ok::before{background:var(--green-soft)}
.donation-channel__checks li.is-ok::after{content:"";position:absolute;left:7px;top:5px;width:5px;height:10px;border:solid var(--green-ink);border-width:0 2px 2px 0;transform:rotate(45deg)}
.donation-channel__checks li.is-missing::before{border:2px solid var(--line-strong);background:#fff}
/* Campañas, transferencia y Bizum */
.input-with-button{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.input-with-button input{flex:1 1 260px;min-width:0}
.donation-channel__data{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:0;font-size:15px}
.donation-channel__data dt{font-weight:600}
.donation-channel__data dd{margin:0;overflow-wrap:anywhere}
.video-field{display:flex;flex-direction:column;gap:6px}
.video-field p{margin:0}
/* Emails de Administración */
.mailing-form{gap:20px}
[data-show-when][hidden]{display:none!important}

/* Nivel del sello (Comunicación): mismos colores que los sellos (App\Support\ShopSeal::LEVELS) */
.level-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.level-list li { display: flex; align-items: center; gap: 8px; }
.level-list li[aria-current] .level-chip { box-shadow: 0 0 0 2px currentColor; }
.kit-video { display: block; max-width: 100%; height: auto; border-radius: 8px; background: #000; }
.kit-video--9x16 { max-height: 420px; width: auto; aspect-ratio: 9 / 16; }
.kit-video--4x5 { max-height: 420px; width: auto; aspect-ratio: 4 / 5; }
.kit-video--16x9 { width: 100%; aspect-ratio: 16 / 9; }
.admin-profile__clear { border-top: 1px solid var(--line); padding-top: 16px; }
.admin-search__help { flex-basis: 100%; margin: -4px 0 0; }
.admin-search__clear { display: inline-flex; align-items: center; min-height: 44px; }
.admin-shop-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.admin-shop-status h2 { margin: 0 0 6px; }
.admin-shop-status p { margin: 0 0 4px; }

/* Importar desde la web: casillas de la tabla y categorías (objetivos táctiles de 44 px). */
.check-cell { width: 56px; }
.check-cell label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.check-cell label[hidden] { display: none; }
.check-cell input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-list label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.cat-list input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.cat-list input:focus-visible, .check-cell input:focus-visible { outline: 3px solid #B4512D; outline-offset: 2px; }

/* Compartir un animal en redes: opciones, imágenes en tres formatos y el texto. */
.notice--warn { background: #FFF1E6; color: #7A2E08; }
.share-studio { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.share-studio__options { position: sticky; top: 16px; grid-column: 1; grid-row: 1 / span 2; }
.share-studio__images, .share-studio__videos, .share-studio__text { grid-column: 2; }
.share-studio__images h2, .share-studio__videos h2, .share-studio__options h2 { margin-top: 0; }
.share-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 0; align-items: start; }
.share-format { display: flex; flex-direction: column; gap: 10px; }
.share-format--link { grid-column: 1 / -1; max-width: 560px; }
.share-format__figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.share-format__figure figcaption { display: flex; flex-direction: column; gap: 2px; }
.share-format__image { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--tint); }
.share-format--story .share-format__figure { max-width: 248px; }
.share-format--story .share-format__image { aspect-ratio: 9 / 16; }
.share-format--post .share-format__image { aspect-ratio: 4 / 5; }
.share-format--link .share-format__image { aspect-ratio: 1200 / 630; }
.share-format__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.share-format__actions [hidden] { display: none; }
/* Vídeos: mismo tamaño que las imágenes; mientras se preparan, un recuadro con su estado. */
.share-studio__videos { display: flex; flex-direction: column; gap: 14px; }
.share-studio__videos > p, .share-studio__videos form { margin: 0; }
video.share-format__image { background: var(--ink); object-fit: cover; }
.share-format--video-story .share-format__figure { max-width: 248px; }
.share-format--video-story .share-format__image { aspect-ratio: 9 / 16; }
.share-format--video-post .share-format__image { aspect-ratio: 4 / 5; }
.share-format--video-landscape { grid-column: 1 / -1; max-width: 560px; }
.share-format--video-landscape .share-format__image { aspect-ratio: 16 / 9; }
.share-format__placeholder { display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Donaciones: tiendas a las que dar las gracias en redes */
.thanks-shops { display: grid; gap: 8px; }
.thanks-shop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.thanks-shop:first-child { border-top: 0; padding-top: 0; }
.thanks-shop__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Administración: vídeos para las redes de OneBowl */
.social-video { margin-top: 20px; }
.social-video h2 { margin-top: 0; }
.share-caption { width: 100%; min-height: 320px; font: inherit; font-size: 15px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; }
.share-photos { border: 0; padding: 0; margin: 0 0 16px; }
.share-photos__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 0; }
.share-photos__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.share-photos__label { display: block; min-height: 44px; border-radius: 8px; border: 3px solid transparent; overflow: hidden; cursor: pointer; }
.share-photos__label img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.share-photos__input:checked + .share-photos__label { border-color: var(--accent); }
.share-photos__input:focus-visible + .share-photos__label { outline: 3px solid #B4512D; outline-offset: 2px; }
.share-today { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.share-today__item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.share-today__item img, .share-today__item .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.share-today__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.share-today__body strong { overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .share-studio { grid-template-columns: 1fr; }
    .share-studio__options { position: static; grid-column: auto; grid-row: auto; }
    .share-studio__images, .share-studio__videos, .share-studio__text { grid-column: auto; }
}
.share-urgent { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.share-urgent:not(.notice) { padding: 0; }
