:root {
  color-scheme: light;
  --bg: #edf8f8;
  --bg-deep: #dceff0;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #f9ffff;
  --surface-soft: rgba(225, 246, 245, .72);
  --text: #092e35;
  --muted: #527078;
  --line: rgba(22, 91, 99, .14);
  --primary: #087f83;
  --primary-strong: #056469;
  --primary-soft: #d7f1ef;
  --alpha: #04a6a6;
  --beta: #536de8;
  --danger: #ba3f55;
  --shadow: 0 22px 70px rgba(8, 72, 78, .12);
  --shadow-small: 0 10px 28px rgba(8, 72, 78, .09);
  --radius-lg: 30px;
  --radius-md: 20px;
  --focus: 0 0 0 4px rgba(13, 152, 155, .22);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061a21;
  --bg-deep: #041218;
  --surface: rgba(12, 42, 49, .78);
  --surface-solid: #0d2a31;
  --surface-soft: rgba(21, 63, 69, .62);
  --text: #e8fbf9;
  --muted: #9ab9bd;
  --line: rgba(178, 233, 231, .13);
  --primary: #50d7cf;
  --primary-strong: #8be8e2;
  --primary-soft: rgba(42, 162, 158, .18);
  --alpha: #35d5cc;
  --beta: #899bff;
  --danger: #ff8295;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --shadow-small: 0 10px 32px rgba(0, 0, 0, .22);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #061a21; --bg-deep: #041218; --surface: rgba(12,42,49,.78);
    --surface-solid: #0d2a31; --surface-soft: rgba(21,63,69,.62); --text: #e8fbf9;
    --muted: #9ab9bd; --line: rgba(178,233,231,.13); --primary: #50d7cf;
    --primary-strong: #8be8e2; --primary-soft: rgba(42,162,158,.18);
    --alpha: #35d5cc; --beta: #899bff; --danger: #ff8295;
    --shadow: 0 24px 80px rgba(0,0,0,.28); --shadow-small: 0 10px 32px rgba(0,0,0,.22);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(61, 210, 201, .18), transparent 30rem),
    radial-gradient(circle at 92% 15%, rgba(83, 109, 232, .13), transparent 26rem),
    linear-gradient(150deg, var(--bg), var(--bg-deep));
  color: var(--text);
  transition: background-color .25s, color .25s;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--focus); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand { font-family: "Avenir Next", Inter, "Segoe UI", system-ui, sans-serif; }
h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(2.45rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }
h2 { letter-spacing: -.035em; }

.ambient {
  position: fixed; z-index: -1; width: 24rem; height: 24rem; border-radius: 50%;
  opacity: .24; filter: blur(80px); pointer-events: none;
}
.ambient--one { top: -10rem; right: -8rem; background: #3ad4c8; }
.ambient--two { bottom: -12rem; left: -8rem; background: #687ce4; }
.page-shell { width: min(1180px, 100%); margin: auto; padding: 18px 18px 56px; }
.page-shell--narrow { width: min(850px, 100%); }

.topbar {
  display: flex; align-items: center; justify-content: space-between; min-height: 68px;
  margin-bottom: clamp(34px, 7vw, 82px); padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
  box-shadow: var(--shadow-small); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), #30c7bd); color: white;
  box-shadow: 0 8px 22px rgba(8, 127, 131, .25);
}
.topbar__actions { display: flex; align-items: center; gap: 5px; }
.nav-toggle { display: none; }
.nav-link { min-height: 44px; display: grid; place-items: center; padding: 0 14px; color: var(--muted); font-weight: 700; border-radius: 13px; }
.nav-link:hover { color: var(--text); background: var(--surface-soft); }
.topbar__actions form { margin: 0; }
.nav-link--button { border: 0; background: transparent; cursor: pointer; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 13px; background: var(--surface-soft); color: var(--text); cursor: pointer; }

.page-header { margin-bottom: 34px; }
.eyebrow { margin-bottom: 10px; color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.lead { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.17rem); line-height: 1.65; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin: -26px 0 24px; color: var(--muted); font-weight: 700; }
.back-link:hover { color: var(--primary); }

.lineage-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lineage-card {
  position: relative; min-height: 390px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.lineage-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -100px; bottom: -120px;
  border: 44px solid currentColor; border-radius: 50%; opacity: .06;
}
.lineage-card:hover { transform: translateY(-6px); box-shadow: 0 30px 90px rgba(8,72,78,.18); border-color: currentColor; }
.lineage-card--alpha { color: var(--alpha); }
.lineage-card--beta { color: var(--beta); }
.lineage-card h2 { margin-bottom: 10px; color: var(--text); font-size: clamp(2rem, 4vw, 3.15rem); }
.lineage-card p:not(.eyebrow) { max-width: 360px; color: var(--muted); line-height: 1.55; }
.lineage-card__top { display: flex; justify-content: space-between; }
.lineage-orb { width: 58px; height: 58px; border-radius: 50%; background: currentColor; box-shadow: inset -12px -12px 18px rgba(0,0,0,.12), 0 10px 30px currentColor; opacity: .82; }
.status-chip, .slot-code {
  display: inline-flex; align-items: center; min-height: 34px; width: fit-content; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft);
  color: var(--text); font-size: .79rem; font-weight: 800;
}
.progress { height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.progress span { display: block; height: 100%; border-radius: inherit; background: currentColor; transition: width .6s ease; }
.card-action { position: relative; z-index: 1; color: var(--primary); font-weight: 800; }

.guide-callout, .content-card, .sector-panel, .form-card, .glossary, .archive-panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-small); backdrop-filter: blur(18px);
}
.guide-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 22px; padding: 25px; }
.guide-callout__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); font-size: 1.35rem; font-weight: 800; }
.guide-callout h2 { margin-bottom: 5px; }.guide-callout p:last-child { margin: 0; color: var(--muted); }

.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px;
  border: 1px solid transparent; border-radius: 15px; background: var(--primary); color: #fff;
  font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(8,127,131,.2);
  transition: transform .18s, background .18s, box-shadow .18s;
}
.button:hover { transform: translateY(-2px); background: var(--primary-strong); }
.button--secondary { background: var(--primary-soft); color: var(--primary-strong); box-shadow: none; }
.button--ghost { background: transparent; color: var(--muted); border-color: var(--line); box-shadow: none; }
.button--danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); box-shadow: none; }

.notice { display: flex; gap: 10px; align-items: center; margin: -22px 0 24px; padding: 14px 17px; border: 1px solid rgba(30,164,130,.25); border-radius: 16px; background: rgba(48,190,153,.13); color: var(--text); font-weight: 700; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.1rem); }
.sector-panel { margin-bottom: 22px; padding: clamp(18px, 4vw, 30px); }
.slot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.slot-grid--breeders { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slot-card { min-height: 220px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); transition: transform .18s, border-color .18s; }
.slot-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.slot-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.slot-card h3 { overflow-wrap: anywhere; margin: 14px 0 5px; font-size: 1rem; }
.slot-card p { margin-bottom: 14px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.slot-card .card-action { margin-top: auto; font-size: .8rem; }
.fish-avatar, .slot-empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 16px; border-radius: 15px; background: linear-gradient(145deg, var(--primary), #53d4c9); color: #fff; font-weight: 800; }
.slot-empty-icon { border: 1px dashed var(--primary); background: transparent; color: var(--primary); font-size: 1.4rem; }

.slot-summary { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding: 16px 19px; border-radius: 18px; background: var(--primary-soft); }
.slot-summary p { margin: 3px 0 0; color: var(--muted); }
.form-card { display: grid; gap: 20px; padding: clamp(20px, 5vw, 36px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; color: var(--text); font-size: .9rem; font-weight: 800; }
label > span { color: var(--muted); font-size: .74rem; font-weight: 500; }
input, select, textarea {
  width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-solid); color: var(--text); padding: 12px 14px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--focus); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.field-error { color: var(--danger); }
.empty-state { padding: 20px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-soft); }
.empty-state h3 { margin-bottom: 6px; font-size: 1rem; }
.empty-state p { margin-bottom: 0; color: var(--muted); }
.form-error { padding: 13px 15px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 700; }
.checkbox-line { display: flex; grid-template-columns: none; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 14px; background: var(--surface-soft); }
.checkbox-line input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--primary); }
.checkbox-line span { color: var(--text); font-size: .9rem; font-weight: 700; }

.fish-hero { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 440px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.fish-hero__visual { position: relative; display: grid; place-items: center; min-height: 320px; background: radial-gradient(circle at 35% 25%, #70e3da, transparent 28%), linear-gradient(145deg, #087f83, #183e82); }
.fish-hero__visual::before, .fish-hero__visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.fish-hero__visual::before { width: 250px; height: 250px; }.fish-hero__visual::after { width: 330px; height: 330px; }
.fish-hero__visual span { z-index: 1; color: rgba(255,255,255,.94); font: 800 clamp(5rem, 15vw, 10rem)/1 "Avenir Next", Inter, system-ui; text-shadow: 0 20px 50px rgba(0,0,0,.25); }
.fish-hero__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 6vw, 62px); }
.fish-hero__content h1 { margin-bottom: 8px; font-size: clamp(2.6rem, 7vw, 5rem); }
.chip-row, .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-row { margin-bottom: 24px; }.hero-actions { margin-top: 25px; }
.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; margin-top: 20px; }
.care-panel { margin-top: 20px; }
.care-form { display: grid; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.care-history { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.care-history li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.care-history li > div { display: flex; justify-content: space-between; gap: 16px; }
.care-history span { color: var(--muted); font-size: .8rem; }
.care-history p { margin: 8px 0 0; color: var(--muted); white-space: pre-wrap; }
.content-card { padding: clamp(22px, 4vw, 34px); }
.content-card > h2, .glossary > h2 { margin-bottom: 22px; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.account-card { display: grid; gap: 22px; }
.account-card h1 { margin-bottom: 0; }
.account-email { margin: -12px 0 0; color: var(--muted); }
.billing-summary { display: grid; gap: 13px; padding: 20px; border-radius: 18px; background: var(--surface-soft); }
.billing-summary p { margin: 0; color: var(--muted); line-height: 1.6; }
.billing-summary--attention { border: 1px solid color-mix(in srgb, #c17b18 35%, transparent); }
.billing-summary--restricted { border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent); }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.billing-detail { display: grid; gap: 7px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; }
.billing-detail span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.billing-detail strong { line-height: 1.4; }
.billing-alert { margin: 0; padding: 15px 17px; border-radius: 16px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 700; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-actions form { margin: 0; }
.parent-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.parent-card { display: grid; gap: 5px; min-height: 130px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.parent-card span, .parent-card small { color: var(--muted); }.parent-card strong { font-size: 1.05rem; }
.parent-card:not(.parent-card--empty):hover { border-color: var(--primary); }
.subheading { margin: 28px 0 12px; font-size: 1rem; }
.descendant-list { display: grid; gap: 8px; }
.descendant-list a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 13px; background: var(--surface-soft); }
.descendant-list small, .empty-copy, .notes-copy, .care-preview p { color: var(--muted); }
.notes-copy { line-height: 1.7; }
.care-preview { display: flex; gap: 13px; margin-top: 24px; padding: 16px; border-radius: 16px; background: var(--primary-soft); }
.care-preview p { margin: 5px 0 0; font-size: .86rem; line-height: 1.5; }
.archive-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; padding: 22px; }
.archive-panel p { margin: 5px 0 0; color: var(--muted); }

.help-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.help-step { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-small); }
.help-step > span { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.help-step h2 { margin-bottom: 8px; font-size: 1.12rem; }.help-step p { margin: 0; color: var(--muted); line-height: 1.6; }
.glossary { margin-top: 20px; padding: clamp(22px,4vw,34px); }
.glossary dl { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 0; }
.glossary dl div { padding: 16px; border-radius: 16px; background: var(--surface-soft); }
.glossary dt { margin-bottom: 7px; color: var(--primary); font-weight: 800; }.glossary dd { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.help-cta { display: flex; justify-content: center; padding: 30px; }
.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 52px; padding: 24px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer p { margin: 0; }.footer a { color: var(--primary); font-weight: 800; }

.auth-shell {
  min-height: 100vh; width: min(520px, 100%); display: grid; align-content: center;
  gap: 28px; margin: auto; padding: 28px 18px;
}
.auth-card, .price-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow); backdrop-filter: blur(22px);
}
.auth-card { display: grid; gap: 18px; padding: clamp(28px, 7vw, 48px); }
.auth-card h1 { margin-bottom: 0; font-size: clamp(2.25rem, 9vw, 4rem); }
.auth-card p { color: var(--muted); line-height: 1.6; }
.auth-card form { display: grid; gap: 16px; }
.auth-card > a:not(.button) { color: var(--primary); font-weight: 800; }

.pricing-hero {
  min-height: 650px; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 7vw, 90px);
  align-items: center; padding: clamp(14px, 4vw, 42px) 0 70px;
}
.pricing-hero h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 0; margin: 30px 0 0; list-style: none; }
.feature-list li { padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); color: var(--text); font-weight: 750; }
.feature-list li::before { content: "✓"; margin-right: 9px; color: var(--primary); }
.price-card { position: relative; display: grid; gap: 14px; padding: clamp(28px, 5vw, 42px); overflow: hidden; }
.price-card::before { content: ""; position: absolute; width: 220px; height: 220px; top: -140px; right: -90px; border-radius: 50%; background: var(--primary); opacity: .16; }
.price-card > span { color: var(--primary); font-weight: 800; }
.price-card > strong { font-size: clamp(3.5rem, 9vw, 5.8rem); letter-spacing: -.07em; line-height: 1; }
.price-card > small, .price-card > p { color: var(--muted); }
.price-card form { display: grid; gap: 15px; margin-top: 14px; }
.checkbox-label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.checkbox-label input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.checkbox-label span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.checkbox-label a { color: var(--primary); font-weight: 800; text-decoration: underline; }
.form-alert, .checkout-notice {
  margin: 0; padding: 12px 14px; border-radius: 14px; line-height: 1.45;
}
.form-alert { border: 1px solid #c96767; background: #fff1f1; color: #7f2222 !important; }
.checkout-notice { border: 1px solid var(--line); background: var(--surface-soft); }

.legal-shell { width: min(940px, 100%); }
.legal-header { margin-bottom: 28px; }
.legal-header h1 { max-width: 900px; }
.legal-status {
  display: inline-flex; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-weight: 750;
}
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
}
.legal-nav a { color: var(--primary); font-weight: 800; }
.legal-content { display: grid; gap: 18px; }
.legal-section {
  padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-small);
}
.legal-section h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.legal-section h3 { margin: 24px 0 10px; }
.legal-section p, .legal-section li { color: var(--muted); line-height: 1.7; }
.legal-section a { color: var(--primary); font-weight: 800; text-decoration: underline; }
.legal-section table { width: 100%; border-collapse: collapse; }
.legal-section th, .legal-section td {
  padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.legal-section th { color: var(--text); }

.reveal { animation: reveal .55s both; animation-delay: var(--delay, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }


/* ── Painel operacional e alertas (#113) ── */
.ops-panel { margin-bottom: 22px; padding: clamp(18px,4vw,30px); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.ops-card { padding: 18px; border-radius: var(--radius-md); background: var(--surface-soft); border: 1px solid var(--line); }
.ops-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ops-card__name { font-weight: 700; font-size: .95rem; color: var(--text); }
.ops-card__metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.ops-metric { text-align: center; }
.ops-metric__value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.ops-metric__label { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

.alert-panel { margin-bottom: 22px; padding: clamp(18px,4vw,30px); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alert-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); }
.alert-item--warning { background: rgba(186,63,85,.08); border-color: rgba(186,63,85,.2); }
.alert-item--info { background: var(--surface-soft); }
.alert-item__icon { font-size: 1.2rem; line-height: 1.4; }
.alert-item--warning .alert-item__icon { color: var(--danger); }
.alert-item--info .alert-item__icon { color: var(--primary); }
.alert-item__body p { margin: 0 0 4px; font-size: .85rem; line-height: 1.4; color: var(--text); }
.alert-item__link { font-size: .78rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.alert-item__link:hover { text-decoration: underline; }

.next-steps-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 14px; }
.next-step-card { padding: 16px; border-radius: var(--radius-md); background: var(--surface-soft); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.next-step-card--planned { border-left: 4px solid var(--primary); }
.next-step-card--active { border-left: 4px solid var(--alpha); background: var(--primary-soft); }
.next-step-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.next-step-card__date { font-size: .72rem; color: var(--muted); }
.next-step-card h3 { font-size: .9rem; margin: 0; }
.next-step-card p { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.next-step-card .card-action { font-size: .8rem; }

/* === Galeria técnica de fotografias === */
.photo-gallery { margin-top: 1.5rem; }
.photo-gallery__count { white-space: nowrap; }
.gallery-intro { max-width: 68ch; color: var(--muted); font-size: .85rem; margin: .35rem 0 1.5rem; line-height: 1.5; }
.photo-group { margin: 0 0 2rem; min-width: 0; }
.photo-group__title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; color: var(--text); font-size: .72rem; font-weight: 800; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.photo-group__title::before, .photo-group__title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.photo-group__title > .photo-group__marker { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.photo-group__title > .photo-group__label { flex: 0 1 auto; min-width: 0; color: var(--text); font-size: inherit; line-height: inherit; text-align: center; }
.photo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; gap: .85rem; }
.photo-card { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--radius-md); padding: .85rem; background: var(--surface-soft); box-shadow: var(--shadow-small); display: flex; flex-direction: column; gap: .6rem; }
.photo-card__head { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: .55rem; }
.photo-card__head strong { font-size: .88rem; }
.photo-card__icon { width: 32px; height: 32px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-card__instruction { min-height: 2.8em; color: var(--muted); font-size: .75rem; margin: 0; line-height: 1.4; }
.photo-card__current, .photo-card__new-preview { display: flex; flex-direction: column; gap: .45rem; }
.photo-card__label { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.photo-card__preview a { display: block; width: 100%; height: 100%; }
.photo-card__preview { position: relative; aspect-ratio: 4/3; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-card__media { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.photo-card__unavailable { min-height: 100%; padding: 1rem; display: grid; place-items: center; color: var(--muted); font-size: .78rem; text-align: center; }
.photo-card__state { align-self: flex-start; padding: .25rem .5rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: .68rem; font-weight: 800; }
.photo-card__empty { color: var(--muted); font-size: .78rem; }
.photo-card__empty-state { min-height: 3.2rem; display: flex; align-items: center; padding: .8rem; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface-solid); }
.photo-card__error { background: rgba(186,63,85,.12); color: var(--danger); border: 1px solid rgba(186,63,85,.25); border-radius: 10px; padding: .5rem .6rem; font-size: .78rem; }
.photo-card__notice { background: var(--primary-soft); color: var(--primary-strong); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; font-size: .78rem; }
.photo-management { margin-top: .15rem; border-top: 1px solid var(--line); }
.photo-management__summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; color: var(--primary-strong); cursor: pointer; font-size: .78rem; font-weight: 800; list-style: none; }
.photo-management__summary::-webkit-details-marker { display: none; }
.photo-management__summary::after { content: "+"; flex: 0 0 auto; font-size: 1.2rem; line-height: 1; }
.photo-management[open] .photo-management__summary::after { content: "−"; }
.photo-management__summary:hover { color: var(--primary); }
.photo-management__summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.photo-card__actions { display: flex; flex-direction: column; gap: .5rem; }
.photo-upload-form { display: flex; flex-direction: column; gap: .5rem; }
.photo-drop-zone { position: relative; min-height: 44px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; aspect-ratio: 4/3; padding: .8rem; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--primary) 42%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--surface-solid) 72%, transparent); color: var(--muted); text-align: center; font-size: .75rem; transition: border-color .18s, background-color .18s, transform .18s; }
.photo-drop-zone:hover, .photo-drop-zone.is-drag-over { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.photo-drop-zone:focus-visible { box-shadow: var(--focus); border-color: var(--primary); }
.photo-drop-zone--replace { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; text-align: left; }
.photo-drop-zone__icon { width: 34px; height: 34px; flex: 0 0 auto; padding: 8px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo-file-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.photo-card__new-preview { padding: .7rem; border: 1px solid var(--primary); border-radius: 14px; background: var(--primary-soft); }
.photo-local-preview { display: block; width: 100%; max-height: 180px; aspect-ratio: 4/3; object-fit: contain; object-position: center; border-radius: 10px; }
.photo-selection { margin: 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.photo-upload-status { margin: 0; color: var(--primary-strong); font-size: .75rem; font-weight: 700; }
.photo-upload-form__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.photo-submit-btn, .photo-cancel-btn { min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-solid); color: var(--text); cursor: pointer; font-size: .78rem; font-weight: 750; }
.photo-submit-btn:hover:not(:disabled) { background: var(--primary); color: var(--bg-deep); }
.photo-submit-btn:disabled { cursor: not-allowed; opacity: .5; }
.photo-remove-form { display: inline; }
.photo-viewer { width: min(92vw, 980px); max-width: 980px; max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }
.photo-viewer::backdrop { background: rgba(2, 15, 20, .82); }
.photo-viewer__surface { position: relative; display: grid; min-height: 180px; place-items: center; padding: 3.5rem 4rem 1rem; }
.photo-viewer__figure { display: grid; width: 100%; min-height: 140px; margin: 0; place-items: center; gap: .7rem; }
.photo-viewer__image { display: block; width: auto; max-width: 100%; max-height: calc(92vh - 7.5rem); object-fit: contain; }
.photo-viewer__caption { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; color: var(--muted); font-size: .78rem; text-align: center; }
.photo-viewer__position { font-variant-numeric: tabular-nums; }
.photo-viewer__close { position: absolute; z-index: 1; top: .7rem; right: .7rem; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--text); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.photo-viewer__close:hover { background: var(--primary-soft); }
.photo-viewer__navigation { position: absolute; z-index: 1; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--text); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.photo-viewer__navigation:hover { background: var(--primary-soft); }
.photo-viewer__previous { left: .7rem; }
.photo-viewer__next { right: .7rem; }
.photo-viewer__status { position: absolute; top: 1rem; left: 50%; margin: 0; transform: translateX(-50%); color: var(--muted); font-size: .78rem; }
.photo-viewer__error { display: grid; gap: .7rem; width: min(100%, 32rem); padding: 1rem; border: 1px solid rgba(186,63,85,.35); border-radius: 12px; background: rgba(186,63,85,.1); color: var(--danger); text-align: center; }
.photo-viewer__error p { margin: 0; }
.photo-viewer__error-actions { display: flex; justify-content: center; gap: .5rem; }
.photo-viewer__error-actions button { min-height: 40px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); color: var(--text); cursor: pointer; font-size: .78rem; font-weight: 700; }
@media (max-width: 900px) {
  .slot-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .glossary dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
/* Language selector */
.lang-switch { display: flex; align-items: center; gap: 6px; margin: 0; }
.lang-switch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-switch__select {
  min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface-soft); color: var(--text); font-size: .85rem; font-weight: 700; cursor: pointer;
}
.lang-switch__select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-switch__select:hover { border-color: var(--primary); }
.lang-switch .nav-link--button { margin: 0; }

@media (max-width: 700px) {
  .page-shell { padding-inline: 13px; }
  .topbar { position: relative; margin-bottom: 38px; }
  .nav-toggle { display: grid; place-items: center; }
  .topbar__actions {
    position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(280px, calc(100vw - 26px));
    display: none; align-items: stretch; padding: 8px; border: 1px solid var(--line); border-radius: 13px;
    background: var(--surface); box-shadow: var(--shadow-small);
  }
  .topbar__actions--open { display: flex; flex-direction: column; }
  .topbar__actions .nav-link { width: 100%; justify-content: start; }
  .topbar__actions .icon-button { align-self: flex-end; }
  .topbar__actions .lang-switch { width: 100%; justify-content: flex-start; padding: 0 14px; }
  .lang-switch__select { flex: 1; }
  .lineage-grid, .detail-grid, .help-steps { grid-template-columns: 1fr; }
  .lineage-card { min-height: 330px; }
  .guide-callout { grid-template-columns: auto 1fr; }.guide-callout .button { grid-column: 1 / -1; }
  .slot-grid, .slot-grid--breeders { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .slot-card { min-height: 210px; }
  .form-row { grid-template-columns: 1fr; }
  .billing-grid { grid-template-columns: 1fr; }
  .fish-hero { grid-template-columns: 1fr; }.fish-hero__visual { min-height: 260px; }
  .parent-grid { grid-template-columns: 1fr; }
  .archive-panel { align-items: stretch; flex-direction: column; }.archive-panel .button { width: 100%; }
  .footer { flex-direction: column; }
  .pricing-hero { grid-template-columns: 1fr; min-height: auto; }
  .feature-list { grid-template-columns: 1fr; }

  .ops-grid { grid-template-columns: 1fr; }
  .ops-card__metrics { grid-template-columns: repeat(3,1fr); }
  .alert-list { grid-template-columns: 1fr; }
  .next-steps-list { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .slot-grid, .slot-grid--breeders, .glossary dl { grid-template-columns: 1fr; }
  .slot-card { min-height: 190px; }
  .photo-upload-form__buttons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
