/* Seres — interim "coming soon" page. Mobile-first, no framework.
   Typography: exactly two self-hosted families — Lora (headings) + Plus Jakarta Sans (everything else). */
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/lora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-var.woff2") format("woff2");
}
:root {
  --navy-900: #040461;
  --navy-700: #1a1f8a;
  --navy-50: #eef0fb;
  --red-700: #b00404;
  --red-800: #8e0303;
  --gold-600: #a67c1e;
  --gold-300: #d9b865;
  --wa-700: #0b7a3b;
  --wa-800: #086330;
  --ink: #0e1230;
  --muted: #4a4f6e;
  --surface: #ffffff;
  --bg: #f6f7fc;
  --line: #dfe2f2;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(4, 4, 97, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
}

/* Font-size preference (A+ button) */
html.fs-1 { font-size: 112.5%; }
html.fs-2 { font-size: 125%; }

/* Bilingual blocks: ES is default (works without JS) */
html:not([lang="en"]) [data-l="en"],
html[lang="en"] [data-l="es"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--navy-900); color: #fff; padding: .7rem 1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Decorative background ---------- */
.stripe {
  position: fixed; inset: 0 0 auto 0; height: 12px; z-index: 30;
  display: grid; grid-template-rows: 1fr 1fr;
}
.stripe span { display: block; transform-origin: left; animation: draw 1.4s var(--ease) both; }
.stripe span:first-child { background: var(--navy-900); }
.stripe span:last-child { background: var(--red-700); animation-delay: .15s; }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 55vmax; height: 55vmax; left: -20vmax; top: -18vmax; background: radial-gradient(circle, #c9cff5 0%, transparent 70%); }
.orb-2 { width: 45vmax; height: 45vmax; right: -18vmax; bottom: -16vmax; background: radial-gradient(circle, #f0dfb0 0%, transparent 70%); animation-duration: 28s; }
.orb-3 { width: 30vmax; height: 30vmax; right: 10vmax; top: 20vh; background: radial-gradient(circle, #f6c9c9 0%, transparent 70%); opacity: .35; animation-duration: 34s; }

/* Background option E (approved 2026-09-30): detailed vector cells + 2 fine-line DNA strands.
   Positions in %, sizes scale up on larger screens via --k. */
.bg { --k: 1; }
.cell, .dna { position: absolute; width: calc(var(--s) * var(--k)); animation: float 20s ease-in-out infinite; }
.cell { aspect-ratio: 1; }
.dna { height: calc(var(--s) * 3.5 * var(--k)); }
.soft { filter: blur(2px); } .softer { filter: blur(3px); }
.e1 { --s: 70px; left: -2%; top: 20%; opacity: .35; }
.e2 { --s: 48px; left: 83%; top: 10%; opacity: .35; animation-delay: -4s; animation-duration: 24s; }
.e3 { --s: 40px; left: 88%; top: 39%; opacity: .3; animation-delay: -8s; }
.e4 { --s: 34px; left: 3%;  top: 57%; opacity: .4; aspect-ratio: 4 / 3; animation-delay: -2s; animation-duration: 26s; }
.e5 { --s: 86px; left: 76%; top: 74%; opacity: .28; animation-delay: -12s; animation-duration: 28s; }
.e6 { --s: 52px; left: 7%;  top: 84%; opacity: .32; animation-delay: -6s; }
.e7 { --s: 30px; left: 48%; top: 94%; opacity: .4; aspect-ratio: 4 / 3; animation-delay: -10s; }
.e8 { --s: 26px; left: 60%; top: 3%;  opacity: .3; animation-delay: -3s; animation-duration: 22s; }
.e9 { --s: 24px; left: 17%; top: 5%;  opacity: .4; aspect-ratio: 4 / 3; animation-delay: -7s; }
.dna1 { --s: 34px; left: 90%; top: 53%; color: var(--gold-600); opacity: .38; rotate: 16deg; animation-duration: 30s; }
.dna2 { --s: 32px; left: 2%;  top: 67%; color: var(--navy-900); opacity: .22; rotate: -20deg; animation-delay: -9s; animation-duration: 32s; }
@media (min-width: 900px) { .bg { --k: 1.35; } }

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.25rem 1rem .25rem;
}
.pill-group {
  display: inline-flex; background: rgba(255,255,255,.8); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; gap: 2px; backdrop-filter: blur(8px);
}
.pill-group button {
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--navy-900);
  background: transparent; border: 0; border-radius: 999px;
  min-width: 48px; min-height: 44px; padding: 0 .85rem; cursor: pointer;
  transition: background .25s, color .25s;
}
.top-right { display: flex; align-items: center; gap: .5rem; }
.pill-group .ico { width: 20px; height: 20px; vertical-align: middle; }
.pill-group .lbl { margin-left: .35rem; }
@media (max-width: 479px) { .pill-group .lbl { display: none; } }
.social { display: flex; gap: .35rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--navy-900); background: rgba(255,255,255,.8); border: 1px solid var(--line);
  backdrop-filter: blur(8px); transition: transform .3s var(--ease), background .25s, color .25s;
}
.social a:hover { transform: translateY(-2px); background: var(--navy-900); color: #fff; }
.social svg { width: 20px; height: 20px; }
.pill-group button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.pill-group button:hover:not([aria-pressed="true"]) { background: var(--navy-50); }

/* ---------- Hero ---------- */
main { position: relative; z-index: 10; flex: 1 0 auto; }
.hero {
  max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 2rem; text-align: center;
}
.logo-wrap {
  display: block; width: fit-content; margin-inline: auto; background: #fff; border-radius: 24px; padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.logo { width: min(78vw, 360px); }

.chip {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
  padding: .4rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 700;
  color: var(--navy-900); background: #fff; border: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-700); position: relative; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red-700);
  animation: ping 1.8s var(--ease) infinite;
}

h1 {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(2rem, 7.2vw, 3.4rem); color: var(--navy-900); text-wrap: balance;
}
h1 em { font-style: normal; color: var(--gold-600); }
.lead { text-wrap: pretty; font-size: 1.125rem; color: var(--muted); margin: 1rem auto 1.75rem; max-width: 36em; }

/* ---------- Buttons ---------- */
.actions { display: grid; gap: .8rem; max-width: 520px; margin: 0 auto; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: flex-start; gap: .8rem;
  min-height: 60px; padding: .8rem 1.25rem; border-radius: 16px;
  font-weight: 700; font-size: 1.08rem; text-decoration: none; text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
}
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small.nowrap { white-space: nowrap; }
.btn small { display: block; font-weight: 500; font-size: .82rem; opacity: .85; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn-primary {
  min-height: 76px; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--red-700), var(--red-800));
  box-shadow: 0 14px 30px -12px rgba(176, 4, 4, .55);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 4.5s var(--ease) 2s infinite;
}
.btn-primary .arrow { margin-left: auto; transition: transform .35s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-wa { color: #fff; background: var(--wa-700); box-shadow: 0 12px 26px -14px rgba(11, 122, 59, .6); }
.btn-wa:hover { background: var(--wa-800); }
.btn-ghost { color: var(--navy-900); background: #fff; border: 2px solid var(--navy-900); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-row { display: grid; gap: .8rem; }

/* ---------- Accessibility note ---------- */
.access {
  display: flex; gap: .8rem; align-items: flex-start; text-align: left;
  max-width: 520px; margin: 1.25rem auto 0; padding: .95rem 1.1rem;
  border-radius: var(--radius); background: var(--navy-50); border: 1px solid var(--line);
  font-size: .98rem;
}
.access svg { width: 30px; height: 30px; flex: none; color: var(--navy-900); }

/* ---------- How-to (details) ---------- */
.howto {
  margin: 1.5rem auto 0; max-width: 520px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.howto summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem;
  padding: 1rem 1.15rem; min-height: 56px; font-weight: 700; color: var(--navy-900);
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary .chev { margin-left: auto; transition: transform .3s var(--ease); }
.howto[open] summary .chev { transform: rotate(180deg); }
.howto .body { padding: 0 1.15rem 1.15rem; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: .75rem; align-items: start; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 800;
}
.tip {
  margin: 1rem 0 0; padding: .8rem .95rem; border-radius: 12px; background: var(--navy-50);
  font-size: .95rem;
}
.tip + .tip { margin-top: .6rem; }
.tip { display: flex; gap: .6rem; align-items: flex-start; }
.tip svg { width: 20px; height: 20px; flex: none; margin-top: .2rem; color: var(--navy-900); }

/* ---------- Info cards ---------- */
.info {
  max-width: 1080px; margin: 0 auto; padding: 1rem 1rem 3rem;
  display: grid; gap: 1rem;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow);
}
.card h2 {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--navy-900); margin-bottom: .6rem;
}
.card h2 svg { width: 26px; height: 26px; color: var(--gold-600); flex: none; }
.card p { margin: .3rem 0; }
.card .link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }

.status {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700;
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: .5rem;
  background: var(--navy-50); color: var(--navy-900);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status[data-open="true"] { background: #e3f4ea; color: #075c2c; }
.status[data-open="false"] { background: #fbe9e9; color: var(--red-800); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .4rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; white-space: nowrap; padding-left: .75rem; }
.hours tr.today th, .hours tr.today td { font-weight: 800; color: var(--navy-900); }
.note { font-size: .85rem; color: var(--muted); }
.phones { display: grid; gap: 0; margin-top: .6rem; }
.phones-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.phones a { display: inline-flex; min-height: 40px; align-items: center; font-weight: 700; width: fit-content; }

/* ---------- Footer ---------- */
footer {
  position: relative; z-index: 10; margin-top: 1rem;
  background: radial-gradient(120% 140% at 0% 0%, #0d0f7a 0%, var(--navy-900) 55%, #02023f 100%);
  color: #d9dcf5; font-size: .95rem;
}
footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}
.foot {
  max-width: 1080px; margin: 0 auto; padding: 2.75rem 1rem 2rem;
  display: grid; gap: 2rem;
}
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--gold-300);
  margin-bottom: .75rem; letter-spacing: .01em;
}
.foot p { margin: 0 0 .6rem; line-height: 1.7; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.foot ul a, .foot-col p a { display: inline-flex; min-height: 36px; align-items: center; }
.foot-logo {
  display: inline-block; background: #fff; border-radius: 16px; padding: .7rem 1rem; margin-bottom: 1rem;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.6);
}
.foot-logo img { width: 190px; }
.foot-brand p { max-width: 30ch; }
.social-foot { margin-top: 1rem; }
.social-foot a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.social-foot a:hover { background: var(--gold-300); color: var(--navy-900); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: 1080px; margin: 0 auto; padding: 1.1rem 1rem 1.6rem;
  display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #aeb3e0;
}
.foot-bottom p { margin: 0; }
.gold { color: var(--gold-300); }

/* ---------- Legal page ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.legal .back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }
.legal h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: .5rem 0 1rem; }
.legal section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; margin: 1rem 0; box-shadow: var(--shadow); scroll-margin-top: 1rem;
}
.legal h2 { font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: 1.45rem; margin-bottom: .5rem; }
.legal .toc { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.legal .toc a {
  display: inline-flex; min-height: 44px; align-items: center; padding: 0 .9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 700; text-decoration: none;
}
.legal .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Entrance animation ---------- */
.reveal { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .34s; }
.d4 { animation-delay: .46s; } .d5 { animation-delay: .58s; } .d6 { animation-delay: .7s; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
@keyframes float { 0%, 100% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(0,-26px,0) rotate(18deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes shine { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }

/* ---------- Small screens: keep decoration away from text, tighten hero ---------- */
@media (max-width: 639px) {
  .hero { padding-top: .75rem; }
  .logo-wrap { margin-bottom: 1rem; padding: .8rem 1.1rem; }
  .lead { margin: .75rem auto 1.25rem; font-size: 1.05rem; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .btn-row { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 2.5rem; }
}
@media (min-width: 900px) {
  .info { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: 1.5fr 1fr 1.1fr .9fr; }
}

/* ---------- High contrast (toggle) ---------- */
html.hc { --muted: #1b1b1b; --line: #1b1b1b; --bg: #ffffff; --shadow: none; }
html.hc .bg, html.hc .btn-primary::after { display: none; }
html.hc .btn-primary { background: #7a0000; }
html.hc body { color: #000; }
html.hc a { color: #00006b; }
html.hc .foot a { color: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Windows high contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .bg { display: none; }
}
