/* Mejora de la versión publicada del 13/11. Mantiene su estructura, IBM Plex,
   bienvenida fotográfica, resumen y navegación. Esta capa reúne los refinamientos
   comunes sin cambiar el motor genético ni la versión conservada en /figma/. */
:root {
    --bg: #F7F4EE;
    --soft: #EFEBE3;
    --line: #DCD8CD;
    --ink: #203B40;
    --muted: #53696A;
    --green: #245B63;
    --green-d: #193F46;
    --green-s: #E5EEF0;
    --yellow: #D6A04A;
    --yellow-s: #FAEED8;
    --yellow-d: #785019;
    --violet: #245B63;
    --violet-d: #193F46;
    --violet-s: #E5EEF0;
    --r: 14px;
    --sh: 0 4px 16px #203B400a;
    --sh-h: 0 6px 18px #203B4010;
    --ease-ui: cubic-bezier(.23, 1, .32, 1);
    color-scheme: light;
    -webkit-tap-highlight-color: transparent;
}
html { scroll-padding-top: 104px; }
body { background: var(--bg); }
body::before { display: none; }
::selection { background: #D9E7E8; color: var(--green-d); }
input, textarea { caret-color: var(--green); }
input::placeholder { color: #5D6F70; opacity: 1; }
button, a, [role="button"], input, select { touch-action: manipulation; }
button, .btn, .chip, .tab-link { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px 18px; background: var(--green-d); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.main:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.main { max-width: 1440px; padding: 32px 40px 56px; gap: 28px; }
.layout { min-height: 100dvh; }
.topbar { min-height: 80px; padding: 0 32px; gap: 24px; background: #fff; box-shadow: none; backdrop-filter: none; }
.topbar .brand { font-size: 27px; gap: 8px; }
.brand-mark { width: 28px; height: 34px; }
.brand-mark .ic { width: 28px; height: 28px; }
.desktop-nav { gap: 2px; align-self: stretch; }
.desktop-nav .side-link { position: relative; padding: 0 13px; border-radius: 0; color: var(--muted); font-size: 15px; font-weight: 500; border-bottom: 3px solid transparent; }
.desktop-nav .side-link.on { color: var(--green-d); background: transparent; border-bottom-color: var(--green); box-shadow: none; font-weight: 600; }
.top-search { border-radius: 10px; background: #FAF9F6; min-height: 44px; max-width: 360px; }
.top-search .ic { width: 19px; height: 19px; color: var(--muted); }
.top-search input { font-size: 14px; }
.top-search:focus-within { outline: 2px solid var(--green); outline-offset: 2px; background: #fff; }
.profile-label { display: none; }
.profile-initials { background: var(--green-s); border: 0; width: 42px; height: 42px; }
.profile-btn { min-width: 44px; min-height: 44px; }
.top-btn, .top-back { border-radius: 10px; }
.page-head { padding-bottom: 24px; align-items: center; gap: 16px; }
.head-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--green-s); color: var(--green-d); }
.page-head h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.page-head p { font-size: 15px; line-height: 1.5; max-width: 65ch; }
.page-back { font-size: 14px; gap: 10px; }
.detail { scroll-margin-top: 100px; }
.btn { border-radius: 10px; min-height: 48px; font-weight: 600; padding-inline: 18px; transition: background 160ms var(--ease-ui), color 160ms var(--ease-ui), transform 120ms var(--ease-ui); }
.btn.big { min-height: 52px; }
.btn.sm { min-height: 44px; }
.btn-primary, .btn-violet { background: var(--green); color: #fff; box-shadow: none; }
.btn-soft { background: #fff; color: var(--green-d); border-color: #6F8990; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn:active { transform: scale(.98); }
.link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 14px; text-underline-offset: 4px; }
.link .ic { width: 16px; height: 16px; }
.block-head { gap: 12px; align-items: center; }
.block-head h2, .home-board h2 { font-size: 23px; letter-spacing: -.02em; line-height: 1.25; }
.section-count { font-size: 15px; color: var(--muted); font-weight: 400; padding-left: 4px; }
.card, .bird-card, .cross-card, .cage, .cparent, .res-col { border-radius: 14px; box-shadow: none; }
.card { padding: 24px; }
.card h3, .step h2 { font-size: 21px; line-height: 1.3; font-weight: 600; }
.card > p, .step > p { line-height: 1.55; }
.home-board { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: 'intro summary' 'crosses summary' 'chicks promo'; gap: 28px; align-items: start; }
.home-intro { gap: 16px; }
.home-summary { gap: 24px; align-self: start; }
.home-intro .hero { flex: none; }
.home-board h2 { margin-bottom: 18px; }
.home-board .block-head h2 { margin-bottom: 0; }
.hero { min-height: 292px; border-radius: 16px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 0; background: #EEE8DD; box-shadow: none; }
.hero-txt { padding: 30px; gap: 16px; }
.hero h1 { font-size: clamp(30px, 2.9vw, 40px); line-height: 1.12; font-weight: 600; max-width: none; }
.hero p { font-size: 16px; line-height: 1.55; max-width: 30ch; }
.hero-photo { background: url(assets/fotos/canario-inicio.jpg) 60% 42% / cover no-repeat; }
.hero-season { display: inline-flex; align-items: center; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.home-actions { grid-template-columns: 1fr 1fr; gap: 16px; }
.big-action { min-height: 104px; padding: 20px; gap: 14px; border: 1px solid; border-radius: 14px; box-shadow: none; }
.big-action.t-coral { background: var(--green); border: 1px solid var(--green) !important; color: #fff; }
.big-action.t-coral strong { color: #fff; }
.big-action.t-coral > span > span { color: #DCEBED; }
.big-action.t-yellow { background: #fff; border: 1px solid var(--line) !important; color: var(--green-d); }
.big-action strong { font-size: 19px; line-height: 1.25; }
.big-action > span > span { display: block; margin-top: 5px; font-size: 14px; line-height: 1.4; }
.big-action .a-ic { width: 34px; height: 40px; background: transparent; color: inherit; }
.big-action.t-coral .a-ic { color: #E8BD70; }
.big-action .a-ic .ic { width: 28px; height: 28px; }
.big-action > .chev { display: block; color: inherit; width: 18px; }
.home-stats { padding: 24px; }
.home-stats .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-stats .stat { position: relative; padding: 18px 14px 16px; min-height: 108px; gap: 8px; border-radius: 10px; border: 0; background: var(--soft); }
.home-stats .stat strong { font-size: 34px; line-height: 1; color: var(--green-d); font-weight: 600; font-variant-numeric: tabular-nums; }
.home-stats .stat > span:last-child { font-size: 14px; font-weight: 400; color: var(--ink); }
.home-stats .stat-ic { position: absolute; right: 13px; top: 15px; width: 20px; height: 20px; margin: 0; color: var(--green); background: transparent; }
.home-stats .stat-ic .ic { width: 20px; height: 20px; }
.home-stats .t-yellow { background: var(--yellow-s); }
.home-stats .t-yellow .stat-ic { color: var(--yellow-d); }
.home-cages { padding: 20px 24px 24px; }
.home-cages .block-head { margin-bottom: 0; }
.home-cages .block-head h2 { font-size: 21px; }
.home-cages .block-head .link { font-size: 13px; }
.home-cages > .muted { font-size: 14px; margin: 0 0 14px; }
.cage-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cage-mini { background: #F1EEE7; padding: 11px 12px; border-radius: 8px; gap: 3px; }
.cage-mini.busy { background: var(--green-s); }
.cage-mini strong { font-size: 14px; font-weight: 500; }
.cage-mini span { font-size: 13px; }
.cross-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; overflow: visible; }
.cross-card { padding: 20px 16px; gap: 14px; min-width: 0; border-width: 1px; }
.cross-card::after { content: none; }
.cross-card-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cross-card-head > .chev { width: 17px; height: 17px; color: var(--muted); }
.cross-card .cage-badge { padding: 0; font-weight: 600; font-size: 15px; background: transparent; }
.cross-card .cage-badge .ic { display: block; width: 18px; height: 18px; }
.cross-card .pair { justify-content: center; align-self: stretch; gap: 10px; order: 0; margin-top: 0; }
.cross-card .av-lg { width: 66px; height: 70px; border-radius: 8px; }
.cross-card .pair-rings { font-size: 21px; line-height: 1.2; order: 0; }
.cross-card .muted { font-size: 14px; line-height: 1.45; order: 0; }
.cross-card .pill { font-size: 13px; margin-top: auto; align-self: start; order: 0; }
.home-chicks { padding: 20px 24px; }
.home-chicks .block-head { margin-bottom: 12px; }
.home-chicks .list { gap: 0; }
.home-chicks .list.compact .row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; flex-wrap: nowrap; padding: 14px 0; gap: 14px; }
.home-chicks .av-md { width: 52px; height: 56px; border-radius: 8px; }
.home-chicks .list.compact .row-main { flex: 1; }
.home-chicks .list.compact .ring { padding: 0; font-size: 16px; font-weight: 500; }
.home-chicks .list.compact .row-sub { font-size: 14px; }
.home-chicks .list.compact .row-end { padding: 0; font-size: 13px; flex: none; flex-direction: column; align-items: flex-end; }
.home-chicks .row > .chev { width: 18px; }
.home-promo { display: flex; flex-direction: column; background: #EEE8DD !important; padding: 24px; gap: 14px; align-self: start; }
.home-promo .a-ic { width: 40px; height: 40px; background: transparent; color: var(--green); margin: 0; }
.home-promo h2 { margin-bottom: 0; font-size: 25px; }
.home-promo .muted { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.home-promo .btn { margin-top: 8px; font-size: 15px; padding: 0 16px; min-height: 48px; background: var(--green); color: #fff; border-color: transparent; align-self: flex-start; }
.home-promo .btn .ic { display: block; order: 1; width: 18px; }
.ring, .pring { font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: 0; }
.sx .ic { width: 15px; height: 15px; }
.bird-thumb > .sx { display: inline-flex; align-items: center; justify-content: center; height: 18px; }
.pill { font-size: 14px; }
.pill.ok { color: #24643e; }
.pill.warn { color: #77500d; }
.pill.off { color: #98352d; }
.toolbar { gap: 16px; }
.search-box { min-height: 50px; border-radius: 10px; flex-basis: 340px; border-color: #6F8990; }
.search-box .ic { width: 20px; height: 20px; color: var(--muted); }
.search-box:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.chips { gap: 8px; }
.chip { min-height: 44px; padding-inline: 16px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.chip.on { background: var(--green-s); color: var(--green-d); border-color: var(--green); font-weight: 600; }
.bird-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.bird-card { position: relative; }
.bird-card-chevron { display: none; }
.bc-top { margin: 10px 10px 0; border-radius: 8px; }
.bc-top .av-xl { height: 176px; border-radius: 8px; }
.bc-body { padding: 12px 16px 18px; gap: 7px; }
.bc-body .ring-lbl { display: none; }
.bc-body .ring { font-size: 17px; font-weight: 600; }
.bc-var { font-size: 15px; line-height: 1.4; }
.bc-meta { font-weight: 400; font-size: 13px; padding-top: 5px; }
.code { color: var(--muted); font-size: .85em; font-weight: 400; }
.profile { background: #fff; border-radius: 16px; gap: 28px; padding: 28px; }
.profile .av-xxl { width: 170px; height: 176px; border-radius: 10px; }
.profile h1.ring { font-size: clamp(22px, 2.7vw, 34px); font-weight: 600; }
.profile-txt { gap: 12px; }
.profile-var { font-size: 17px; }
.ring-parts { gap: 24px; }
.ring-parts span { font-size: 16px; }
.ring-parts small { font-size: 13px; }
.profile-meta { font-size: 14px; }
.act-bar { gap: 12px; }
.seg-tabs { border-bottom: 1px solid var(--line); gap: 12px; }
.seg { flex: 0 1 180px; padding-inline: 18px; min-height: 52px; border-bottom-width: 3px; font-size: 16px; }
.seg.on { color: var(--green-d); font-weight: 600; }
.tab-body { gap: 24px; }
.form.wide { max-width: 1040px; }
.form, .form.wide { gap: 24px; }
.form.wide > .step { padding: 28px; }
.form .step h2 { margin-bottom: 24px; }
.field { gap: 8px; }
.lbl { font-size: 15px; font-weight: 500; }
.hint { font-size: 14px; line-height: 1.5; }
.field input, .field select, .search-big input { border-radius: 9px; border-color: #6F8990; min-height: 50px; font-size: 16px; }
.field input:focus, .field select:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.field input[readonly] { background: var(--soft); }
.form input:disabled, .form select:disabled { cursor: not-allowed; color: var(--muted); background: var(--soft); }
.num { font-size: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--green-s); color: var(--green-d); margin-right: 10px; }
.segr span { border-radius: 8px; min-height: 46px; }
.segr input:checked + span { color: var(--green-d); background: var(--green-s); border-color: #648891; }
.chip-cb { min-height: 44px; }
.chip-cb.dis span { opacity: 1; color: var(--muted); }
.stepper.wiz { gap: 12px; }
.stepper.wiz button { min-height: 52px; font-size: 15px; gap: 9px; }
.stepper.wiz button span { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); }
.stepper.wiz li.cur button span { background: var(--green); color: #fff; border-radius: 50%; }
.stepper.wiz li.done button span { background: var(--green-s); }
.done-step { border-radius: 10px; }
.cp-cage { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.cp-cage:has(input:checked) { border-color: #648891; background: var(--green-s); }
.cp-cage.busy small { color: var(--muted); }
.cparent, .res-col { border-top-width: 1px; padding: 24px; }
.cp-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cp-head h2 { font-size: 21px; }
.cparent.is-m .cp-head h2 { color: #245474; }
.cparent.is-f .cp-head h2 { color: #943950; }
.bar span { background: var(--male); }
.res-col.is-f .bar span { background: #9b4760; }
.res-pct { font-variant-numeric: tabular-nums; color: var(--green-d); }
.how { background: var(--soft); border-radius: 12px; }
.how summary { min-height: 44px; }
.how-steps li { border-radius: 10px; }
.cage { background: #fff; padding: 24px 16px; }
.cage.sel { border-width: 1px; outline: 2px solid var(--green); outline-offset: -2px; }
.cage-name { font-size: 20px; }
.cage-art { color: #7F9595; }
.cage-pair .pill { font-size: 13px; }
.cross-hero { background: #EEE8DD; border: 0; border-radius: 16px; padding: 28px; }
.cross-hero h1 { font-size: 32px; }
.cross-hero .chip-gold { order: 1; background: transparent; padding: 0; font-size: 14px; color: var(--muted); }
.cross-hero .pair { margin-top: 12px; }
.cross-row { border-radius: 14px; }
.cross-row .cage-badge.big { background: var(--green-s); border-radius: 10px; }
.empty-search { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 24px; text-align: center; background: #fff; border: 1px dashed #A3B7BA; border-radius: 14px; }
.empty-search > .ic { width: 32px; height: 32px; color: var(--green); }
.empty-search h2 { font-size: 23px; }
.empty-search p { margin: 0 0 8px; font-size: 16px; }
.auth { grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr); min-height: 100dvh; background: var(--bg); }
.auth-art { padding: 40px 48px; background-position: 58% 42%; background-color: var(--green-d); background-image: linear-gradient(180deg, #193f46bb, #193f4614 35%, #193f46ed 90%), url(assets/fotos/canario-inicio.jpg); }
.auth-art .brand { font-size: 30px; }
.auth-claim { max-width: 460px; padding-bottom: 12px; }
.auth-art .auth-claim h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; font-weight: 500; }
.auth-claim p { font-size: 18px; color: #E5EFF0; line-height: 1.5; }
.auth-panel { background: #fff; padding: 48px; justify-content: center; }
.auth-card { max-width: 400px; border: 0; padding: 0; background: transparent; border-radius: 0; box-shadow: none; gap: 20px; margin-block: auto; }
.auth-card h1 { font-size: 34px; line-height: 1.15; }
.auth-intro { margin: -8px 0 6px; color: var(--muted); font-size: 16px; }
.auth-card .form { gap: 20px; }
.auth-card .center { margin-top: 6px; font-size: 15px; }
.auth-card .center .link { font-size: 15px; }
.auth-foot { font-size: 13px; margin-top: 32px; padding-top: 0; }
.eye { width: 44px; height: 44px; display: grid; place-items: center; }
.eye .ic { width: 20px; height: 20px; }
.pwd input { padding-right: 56px; }
.sheet { border-radius: 16px; padding: 28px; max-height: calc(100dvh - 48px); box-shadow: 0 12px 48px #203B402e; }
.sheet h2 { font-size: 24px; }
.sheet-list .btn { min-height: 48px; }
.sheet .muted { line-height: 1.55; }
.sheet-actions { gap: 12px; }
.mobile-drawer .side-link.on { box-shadow: none; }
.photo-footer { margin-top: 8px; padding-top: 20px; font-size: 13px; }
.photo-footer a { display: inline-flex; align-items: center; min-height: 44px; }
/* El efecto de hover solo se aplica a punteros que pueden mantenerlo. */
@media (hover: hover) and (pointer: fine) {
    .desktop-nav .side-link:hover { background: #F0F3F2; color: var(--green-d); }
    .btn-primary:hover, .btn-violet:hover, .home-promo .btn:hover { background: var(--green-d); filter: none; }
    .btn-soft:hover { background: var(--green-s); box-shadow: none; }
    .big-action:hover, .cross-card:hover, .bird-card:hover, .cage:hover, .stat:hover { transform: translateY(-2px); box-shadow: var(--sh-h); }
    .cage-mini:hover { background: #DEE8E8; }
    .chip:hover { background: var(--soft); }
    .row:hover { transform: none; background: #F8F8F5; box-shadow: none; }
}
@media (hover: none) {
    .big-action:hover, .cross-card:hover, .bird-card:hover, .cage:hover, .stat:hover, .row:hover { transform: none; box-shadow: none; }
    .btn:hover { filter: none; }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .topbar { padding-inline: 24px; gap: 12px; }
    .topbar .brand { font-size: 24px; }
    .brand-mark { display: none; }
    .desktop-nav .side-link { padding-inline: 10px; font-size: 14px; }
    .top-search { max-width: 260px; }
    .main { padding: 28px 24px 48px; }
    .home-board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'intro intro' 'summary summary' 'crosses crosses' 'chicks promo'; gap: 24px; }
    .hero { min-height: 280px; grid-template-columns: 1.3fr 1fr; }
    .hero-txt { padding: 24px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 15px; }
    .big-action { padding: 16px 14px; gap: 10px; }
    .big-action strong { font-size: 17px; }
    .big-action .a-ic { display: none; }
    .big-action > .chev { display: none; }
    .cross-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-chicks .list.compact .row-end { font-size: 12px; }
    .home-stats, .home-cages { padding: 20px; }
}
@media (max-width: 899px) {
    html { scroll-padding-top: 84px; }
    .topbar { min-height: 68px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; gap: 12px; }
    .topbar .brand { font-size: 25px; }
    .topbar .brand-mark { display: none; }
    .top-btn { width: 44px; height: 44px; min-width: 44px; background: transparent; }
    .topbar > .top-btn:first-child { margin-left: -6px; }
    .top-search { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; max-width: none; min-height: 50px; background: #fff; box-shadow: 0 8px 20px #203B4014; }
    .top-search input { font-size: 16px; }
    .main { padding: 20px 16px calc(100px + env(safe-area-inset-bottom)); gap: 24px; }
    .page-head { padding-bottom: 20px; gap: 12px; }
    .head-ic { width: 40px; height: 40px; }
    .page-head .head-txt { flex: 1 1 200px; }
    .page-head h1 { font-size: 26px; line-height: 1.2; }
    .page-head p { font-size: 14px; }
    .page-head > .btn { width: 100%; }
    .tabbar { padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); background: #fff; box-shadow: none; border-color: var(--line); }
    .tab-link { min-height: 54px; padding: 6px 2px; gap: 4px; font-size: 12px; color: var(--muted); border-radius: 10px; }
    .tab-link.on { color: var(--green-d); background: var(--green-s); }
    .tab-link .ic { width: 23px; height: 23px; }
    .home-board { display: flex; flex-direction: column; gap: 24px; }
    .home-intro, .home-summary { display: contents; }
    .home-board > *, .home-intro > *, .home-summary > * { width: 100%; }
    .hero { order: 0; min-height: 212px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-radius: 14px; }
    .hero-txt { padding: 22px 16px 22px 20px; gap: 12px; }
    .hero h1 { font-size: 28px; line-height: 1.13; }
    .hero p { font-size: 14px; line-height: 1.5; }
    .hero-season { font-size: 12px; margin-top: 0; }
    .hero-photo { background: url(assets/fotos/canario-inicio.jpg) 61% 43% / cover no-repeat; }
    .home-stats { order: 1; padding: 0; border: 0; border-radius: 0; background: transparent; }
    .home-stats h2 { display: none; }
    .home-stats .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 0; }
    .home-stats .stat { background: transparent; text-align: center; align-items: center; padding: 2px 4px; min-height: 0; border-right: 1px solid var(--line); border-radius: 0; gap: 6px; }
    .home-stats .stat:last-child { border-right: 0; }
    .home-stats .stat strong { font-size: 27px; }
    .home-stats .stat > span:last-child { font-size: 12px; line-height: 1.3; min-height: 30px; max-width: 9ch; }
    .home-stats .stat-ic { display: none; }
    .home-actions { order: 2; gap: 10px; }
    .big-action { min-height: 112px; padding: 16px 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .big-action .a-ic { width: 24px; height: 24px; display: block; }
    .big-action .a-ic .ic { width: 23px; height: 23px; }
    .big-action strong { font-size: 17px; }
    .big-action > span > span { display: block; font-size: 13px; line-height: 1.4; margin-top: 6px; }
    .big-action > .chev { display: none; }
    .home-crosses { order: 3; }
    .home-chicks { order: 4; }
    .home-cages { order: 5; }
    .home-promo { order: 6; }
    .block-head h2, .home-board h2 { font-size: 21px; }
    .block-head .link { font-size: 13px; flex-shrink: 0; }
    .section-count { font-size: 14px; }
    .cross-grid { display: flex; overflow-x: auto; gap: 12px; margin-right: -16px; padding: 0 16px 10px 0; scroll-snap-type: x mandatory; }
    .cross-grid .cross-card { flex: 0 0 82%; max-width: 300px; padding: 18px; border-radius: 14px; }
    .cross-card .pair { justify-content: flex-start; }
    .cross-card .av-lg { width: 74px; height: 76px; }
    .home-chicks, .home-cages, .home-promo { padding: 18px; }
    .home-chicks .list.compact .row { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px 0; align-items: center; }
    .home-chicks .av-md { width: 44px; height: 48px; }
    .home-chicks .list.compact .ring { font-size: 14px; }
    .home-chicks .list.compact .row-sub { font-size: 13px; }
    .home-chicks .list.compact .row-end { display: flex; grid-column: 2; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
    .home-chicks .list.compact .row-end .pill { font-size: 12px; }
    .home-chicks .row > .chev { display: none; }
    .home-promo { min-height: 0; gap: 12px; }
    .home-promo .btn { margin-top: 6px; width: 100%; }
    .home-promo h2 { font-size: 24px; }
    .home-cages .block-head h2 { font-size: 21px; }
    .cage-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cage-mini { padding: 10px 8px; min-height: 64px; }
    .cage-mini strong { font-size: 13px; }
    .cage-mini span { font-size: 12px; }
    .toolbar { gap: 14px; }
    .search-box { flex: 1 1 100%; min-width: 0; }
    .toolbar > .chips { width: 100%; gap: 8px; }
    .chip { min-height: 44px; padding-inline: 12px; font-size: 13px; }
    .bird-grid { display: flex; flex-direction: column; gap: 12px; }
    .bird-card { display: grid; grid-template-columns: 80px minmax(0, 1fr) 16px; gap: 12px; padding: 14px 12px; border: 1px solid var(--line); background: #fff; border-radius: 12px; align-items: center; }
    .bc-top { margin: 0; align-self: start; border-radius: 7px; overflow: visible; }
    .bc-top .av-xl { width: 80px; height: 82px; border-radius: 7px; }
    .bc-body { padding: 0; gap: 6px; }
    .bc-body .ring { font-size: 15px; font-weight: 600; }
    .bc-var { font-size: 14px; line-height: 1.4; }
    .bc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; font-size: 12px; }
    .bird-card-chevron { display: block; width: 16px; height: 16px; color: var(--muted); }
    .bc-body > .pill { font-size: 12px; }
    .profile { grid-template-columns: 88px minmax(0, 1fr); padding: 18px; gap: 16px; align-items: start; border-radius: 14px; }
    .profile .av-xxl { width: 88px; height: 108px; border-radius: 8px; }
    .profile-txt { gap: 10px; }
    .profile h1.ring { white-space: normal; font-size: 21px; line-height: 1.3; }
    .profile .ring-parts { display: none; }
    .profile-var { font-size: 14px; }
    .profile-meta { gap: 8px 12px; font-size: 13px; }
    .profile-meta .pill, .profile-meta .meta { font-size: 13px; }
    .act-bar { display: flex; flex-wrap: wrap; gap: 10px; }
    .act-bar .btn:first-child { flex: 1 1 100%; }
    .act-bar .btn:not(:first-child) { flex: 1 1 130px; padding-inline: 12px; font-size: 14px; }
    .seg-tabs { gap: 8px; }
    .seg { flex: 1; min-height: 50px; padding-inline: 10px; font-size: 15px; }
    .card { padding: 20px 18px; }
    .home-board .home-stats { padding: 0; }
    .card h3, .step h2 { font-size: 20px; }
    .card > p { font-size: 15px; }
    .form.wide > .step { padding: 22px 18px; }
    .form .step h2 { margin-bottom: 20px; }
    .field input, .field select { font-size: 16px; }
    .lbl { font-size: 14px; }
    .hint { font-size: 13px; }
    .ring-grid { gap: 14px; }
    .form-actions { gap: 10px; }
    .form-actions.sticky { padding: 0; background: transparent; border: 0; }
    .stepper.wiz { gap: 8px; }
    .stepper.wiz button { font-size: 13px; gap: 6px; padding-inline: 0; }
    .stepper.wiz button span { width: 22px; height: 22px; }
    .cparent, .res-col { padding: 20px 18px; }
    .seg-mini button { min-height: 46px; }
    .cross-hero { padding: 22px 18px; }
    .cross-hero h1 { font-size: 27px; }
    .auth { display: flex; flex-direction: column; background: #fff; }
    .auth-art { min-height: 240px; padding: 24px; justify-content: space-between; background: linear-gradient(90deg, #193F46e6, #193F4626 90%), url(assets/fotos/canario-inicio.jpg) 58% 40% / cover no-repeat; }
    .auth-art .brand { font-size: 25px; }
    .auth-claim { max-width: 230px; margin: 24px 0 0; padding: 0; }
    .auth-art .auth-claim h2 { font-size: 28px; }
    .auth-claim p { font-size: 14px; margin-top: 10px; }
    .auth-panel { flex: 1; padding: 28px 24px max(20px, env(safe-area-inset-bottom)); }
    .auth-card { margin: 0; gap: 18px; max-width: 440px; }
    .auth-card h1 { font-size: 29px; }
    .auth-intro { font-size: 15px; }
    .auth-foot { margin-top: 32px; }
    .mobile-drawer { max-height: 100dvh; padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .drawer-nav .side-link { min-height: 48px; }
    .sheet { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
    .sheet h2 { font-size: 23px; }
    .sheet-actions .btn { flex: 1; }
    #toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
    .main { padding-inline: 14px; }
    .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
    .hero-txt { padding: 20px 12px 20px 16px; }
    .hero h1 { font-size: 26px; }
    .home-actions { gap: 10px; }
    .cross-grid { margin-right: -14px; padding-right: 14px; }
    .big-action { padding: 14px 12px; }
    .big-action strong { font-size: 16px; }
    .block-head h2, .home-board h2 { font-size: 20px; }
    .block-head .link { font-size: 12px; }
    .home-chicks .block-head { flex-wrap: wrap; }
    .bird-card { grid-template-columns: 72px minmax(0, 1fr) 14px; gap: 10px; }
    .bc-top .av-xl { width: 72px; height: 78px; }
    .bc-body .ring { font-size: 14px; }
    .bc-var { font-size: 13px; }
    .profile { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 16px; }
    .profile .av-xxl { width: 72px; height: 96px; }
    .profile h1.ring { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
    .main { max-width: none; padding: 0; }
    .skip-link, .photo-footer { display: none; }
    .bird-card, .cross-card, .card { break-inside: avoid; }
}

/* ==========================================================================
   Ronda 2 (14/11/2026): «Conclusiones conjuntas de las revisiones de diseño».
   Evolución pequeña y perceptible sobre esta misma base, sin cambiar su identidad.
   1) jerarquía y lectura  2) fotos y fichas  3) orientación y carga cognitiva  4) identidad y terminación.
   ========================================================================== */

/* 1. Un solo significado para el botón principal: petróleo. Caléndula queda como acento, no como acción. */
.btn-coral { background: var(--green); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn-coral:hover { background: var(--green-d); filter: none; } }

/* 1. Resumen del criadero (se conserva por decisión del PM) más sobrio: sin mosaicos pastel, cifras alineadas. */
.home-stats .stats { gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.home-stats .stat, .home-stats .t-yellow { background: transparent; border-radius: 0; min-height: 96px; }
.home-stats .stat:nth-child(odd) { border-right: 1px solid var(--line); }
.home-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.home-stats .stat-ic, .home-stats .t-yellow .stat-ic { color: var(--muted); }
.home-stats .stat:last-child strong { color: var(--yellow-d); }

/* 1. Actividad: los cruces muestran la pareja más grande, su fecha y sus pichones. */
.cross-card .pair .av-xl { width: 96px; height: 96px; border-radius: 10px; }
.cross-card .pair-rings { font-size: 22px; }
.cross-card .muted { color: var(--ink); opacity: .82; }
.cross-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cross-meta .pill { margin: 0; }

/* 1. Lectura: códigos y datos secundarios a 14 px y con más contraste. */
.code { color: var(--green-d); font-size: .92em; font-weight: 500; }
.muted.sm, .row-sub, .bc-meta, .bc-var, .cage-mini span, .hero-season { font-size: 14px; }
.row-sub, .bc-var { color: var(--ink); }

/* 2. Fotos: encuadre por imagen para que el ave quede al centro del marco (siguen siendo ilustrativas). */
.av img[src*="canario-rojo"] { object-position: 52% 36%; }
.av img[src*="canario-marfil"] { object-position: 60% 38%; }
.av img[src*="canario-agata"] { object-position: 36% 38%; }
.av img[src*="canario-blanco"] { object-position: 50% 34%; }
.av img[src*="canario-mosaico"] { object-position: 72% 48%; }
/* En esta foto el ave es pequeña y está abajo a la izquierda: se acerca dentro del marco. */
.av img[src*="canario-amarillo"] { object-position: 28% 72%; transform: scale(2.2); transform-origin: 28% 72%; }

/* 2. Ficha: el ave con más presencia en escritorio, sin alejar las acciones en el teléfono. */
.profile .av-xxl { width: 224px; height: 232px; border-radius: 10px; }

/* 3. Portadores en un segundo nivel opcional. */
.porta { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.porta summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 600; color: var(--green-d); -webkit-user-select: none; user-select: none; }
.porta summary::-webkit-details-marker { display: none; }
.porta summary > span { flex: 1; }
.porta summary small { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.porta summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease-ui); }
.porta[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.porta-n { font-size: 14px; font-weight: 600; color: var(--yellow-d); }
.porta > .hint, .porta > .chips { margin: 0 16px 14px; }
.porta > .hint { margin-top: 0; font-size: 14px; line-height: 1.5; }
.porta[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* 3. Elegir jaula: la ocupada por un cruce se ve desactivada y explica por qué. */
.cp-cage:has(input:disabled) { background: #F2F0EA; border-style: dashed; cursor: not-allowed; }
.cp-cage:has(input:disabled) strong { color: var(--muted); }
.cp-cage:has(input:disabled) small { color: var(--muted); }
.cp-cage small { font-size: 13px; line-height: 1.35; }
.step > .hint { margin: -4px 0 4px; }

/* 4. Identidad: el dibujo de jaula como sello en los estados vacíos. */
.empty-art { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 20px; text-align: center; border: 1px dashed #C6CFCD; border-radius: 14px; background: #fff; color: var(--ink); }
.empty-art .cage-art { width: 64px; height: 64px; color: var(--muted); opacity: .55; }
.empty-art p { margin: 0; line-height: 1.5; max-width: 42ch; }
.list > .empty-art { border: 0; border-radius: 0; }
.cross-grid > .empty-art { grid-column: 1 / -1; }

@media (max-width: 899px) {
    /* 1. En el teléfono el trabajo sube: bienvenida compacta y acciones antes del resumen. */
    .hero { min-height: 168px; }
    .hero-txt { padding: 18px 14px 18px 18px; gap: 8px; }
    .hero h1 { font-size: 25px; }
    .hero p { font-size: 14px; }
    .home-actions { order: 1; }
    .home-stats { order: 2; }
    .home-stats .stats { border-radius: 14px; }
    .home-stats .stat { border-bottom: 0 !important; min-height: 0; }
    .home-stats .stat > span:last-child { font-size: 13px; }
    .cross-card .pair .av-xl { width: 84px; height: 84px; }
    .profile .av-xxl { width: 96px; height: 112px; border-radius: 10px; }
    .cp-cage small { font-size: 13px; }
}
@media (max-width: 380px) {
    .profile .av-xxl { width: 80px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
    .porta summary::after { transition: none; }
}

/* Ronda 2, correcciones de break-ui (datos extremos plausibles). */
.av { overflow: hidden; } /* el acercamiento de una foto nunca sale de su marco */
.profile h1.ring .rp { white-space: nowrap; } /* el anillo largo se corta después de un punto, nunca antes */
.cross-vars { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* variedades largas: dos líneas; el nombre completo queda en el título y en la ficha del cruce */
/* Sin franjas laterales gruesas: el sexo se reconoce por su ícono y su etiqueta; el estado, por su texto. */
.cross-row { border-left: 1px solid var(--line); }
.parent, .parent.is-f { border: 1px solid var(--line); border-left-width: 1px; }
@media (max-width: 380px) {
    .cage-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Movimiento con propósito (find-animation-opportunities): solo respuesta al toque y el despliegue de portadores. */
.cross-card, .bird-card, .row, .cage, .cage-mini, .big-action, .parent { transition: transform 160ms var(--ease-ui), background-color 160ms ease, border-color 160ms ease; }
.cross-card:active, .bird-card:active, .cage:active, .cage-mini:active, .big-action:active, .parent:active { transform: scale(.98); }
.row:active { background: var(--soft); }
.porta { interpolate-size: allow-keywords; }
.porta::details-content { height: 0; opacity: 0; overflow: clip; transition: height 220ms var(--ease-ui), opacity 160ms ease, content-visibility 220ms allow-discrete; }
.porta[open]::details-content { height: auto; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .cross-card:active, .bird-card:active, .cage:active, .cage-mini:active, .big-action:active, .parent:active { transform: none; }
    .porta::details-content { transition: opacity 120ms ease; height: auto; }
}

/* ==========================================================================
   Ronda 3 (14/11/2026): una zona protagonista por pantalla y menos marcos.
   Inicio: los cruces en marcha concentran color y fotografía; lo demás se agrupa
   por espacio. Ficha: retrato grande y datos alineados en una sola composición.
   ========================================================================== */

/* Inicio. Zona protagonista: cruces en marcha sobre petróleo, con la pareja grande. */
.home-crosses { background: var(--green-d); color: #fff; border-radius: 20px; padding: 26px 28px 28px; }
.home-crosses .block-head { margin-bottom: 18px; }
.home-crosses .block-head h2 { color: #fff; font-size: 26px; }
.home-crosses .section-count { color: #D4E5E8; }
.home-crosses .block-head .link { color: #fff; text-decoration: underline; text-decoration-color: #fff; }
.home-crosses .cross-grid { gap: 16px; }
.home-crosses .cross-card { border: 0; padding: 16px 16px 18px; gap: 12px; }
.cross-card .pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; width: 100%; }
.cross-card .pair .bird-thumb { width: 100%; }
.cross-card .pair .av-xl { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
.cross-card .pair .x { align-self: center; margin-top: -18px; font-size: 18px; color: var(--muted); }
.cross-card .pair-rings { font-size: 26px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.home-crosses .empty-art { border: 0; }

/* Inicio. Lo secundario sin tarjeta: se agrupa por título y espacio. */
.home-chicks, .home-cages, .home-stats { background: transparent; border: 0; padding: 0; }
.home-stats h2, .home-cages .block-head h2, .home-chicks .block-head h2 { font-size: 21px; }
.home-chicks .list.compact .row { border-color: var(--line); }

/* Lo que se toca conserva su señal: las cifras llevan su enlace en verde con flecha. */
.home-stats .stat > span:last-child { color: var(--green-d); font-weight: 600; }
.home-stats .stat > span:last-child::after { content: ' ›'; }
.home-stats .stat strong { font-size: 38px; }
.cage-mini { border: 1px solid var(--line); }

/* Ficha. Retrato y datos como una pieza: sin tarjeta, foto grande y anillo como título. */
.profile { background: transparent; border: 0; padding: 4px 0 8px; gap: 36px; align-items: flex-start; }
.profile .av-xxl { width: 320px; height: 320px; border-radius: 14px; }
.profile-txt { padding-top: 12px; }
.profile h1.ring { font-size: clamp(28px, 3.4vw, 46px); }
.profile .ring-parts { margin-top: 4px; }
.profile-var { font-size: 19px; }

/* Ficha, familia: los parientes se agrupan por su título; cada ejemplar sigue siendo una tarjeta tocable. */
.tab-body > .card + .grid-2 > .card { background: transparent; border: 0; padding: 0; }
.tab-body > .card + .grid-2 { gap: 28px 24px; margin-top: 8px; }
.tab-body > .card + .grid-2 .mini { background: #fff; border: 1px solid var(--line); }

@media (max-width: 899px) {
    /* La zona protagonista ocupa todo el ancho del teléfono. */
    .home-board > .home-crosses { width: calc(100% + 32px); min-width: 0; margin-inline: -16px; border-radius: 0; padding: 24px 16px 20px; }
    .home-crosses .block-head h2 { font-size: 23px; }
    .home-crosses .cross-grid { padding: 0 0 6px; margin: 0; scrollbar-color: #ffffff66 transparent; }
    .home-crosses .cross-grid .cross-card { flex: 0 0 268px; }
    .cross-card .pair-rings { font-size: 23px; }
    .home-stats .stat strong { font-size: 28px; }
    .home-stats .stat > span:last-child::after { content: none; }
    .home-stats .stats { border-color: var(--line); }
    .profile { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0; }
    .profile .av-xxl, .profile .profile-av, .profile .bird-thumb { width: 100%; }
    .profile .av-xxl { height: 220px; border-radius: 14px; }
    .profile-txt { padding-top: 0; }
    .profile h1.ring { font-size: clamp(24px, 7vw, 32px); }
}
@media (max-width: 380px) {
    .profile { grid-template-columns: minmax(0, 1fr); }
    .profile .av-xxl { width: 100%; height: 190px; }
    .home-crosses .cross-grid .cross-card { flex-basis: 248px; }
}
@media (min-width: 1200px) {
    /* La calculadora sube bajo el resumen para no dejar un hueco junto a los cruces; los pichones usan todo el ancho. */
    .home-board { grid-template-areas: 'intro summary' 'crosses summary' 'crosses promo' 'chicks chicks'; }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .home-board { grid-template-areas: 'intro intro' 'crosses crosses' 'summary summary' 'chicks promo'; }
}

/* Variante petróleo azulado, arena y ámbar: completar las superficies heredadas. */
.mobile-drawer { background: var(--green-d); }
.drawer-season { color: #E8BD70; }
.drawer-profile small { color: #D4E5E8; }
@media (max-width: 380px) {
    .home-board > .home-crosses { width: calc(100% + 28px); margin-inline: -14px; padding-inline: 14px; }
}

/* Errores del sistema (404, 403, sesión, mantenimiento, 500, sin conexión): misma tarjeta que el acceso. */
.err-state { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.layout .err-state { max-width: 620px; margin: clamp(24px, 8vh, 96px) auto; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.err-badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.err-badge .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.tone-warn .err-badge { background: var(--yellow-s); color: var(--yellow-d); }
.tone-danger .err-badge { background: var(--coral-s); color: var(--coral-d); }
.err-code { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.err-state h1 { margin: 0; color: var(--green-d); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.err-state .lead { max-width: 48ch; line-height: 1.55; }
.err-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 560px) { .err-actions, .err-actions .btn { width: 100%; } }
