/* =========================================================
   SIRENAS 360 — 3 temas: rosa (default), noir, clinico
   ========================================================= */

/* ---------- TEMA ROSA (default) ---------- */
:root,
[data-theme="rosa"] {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-slab: "Alfa Slab One", Georgia, serif;

  --bg: #fff8fb;
  --bg-alt: #ffe8f2;
  --surface: #ffffff;
  --ink: #2a0a1d;
  --ink-soft: #5c3a4d;
  --line: rgba(217, 177, 91, .5);
  --accent: #c2187e;
  --accent-deep: #8f0f5c;
  --accent-soft: rgba(194, 24, 126, .1);
  --em: #c2187e;
  --hi: #f4dc9a;
  --hi-dark: #a97f2e;
  --gold-grad: linear-gradient(135deg, #f4dc9a 0%, #d9b15b 45%, #a97f2e 100%);

  --btn-bg: var(--gold-grad);
  --btn-ink: #2a0a1d;
  --btn-shadow: 0 10px 30px -10px rgba(169, 127, 46, .8);
  --primary: #c2187e;
  --on-primary: #fff;

  --radius: 22px;
  --shadow: 0 18px 50px -18px rgba(143, 15, 92, .45);

  --nav-bg: transparent;
  --nav-bg-scrolled: rgba(143, 15, 92, .92);
  --nav-ink: #fff;
  --brand-ring: #d9b15b;
  --menu-bg: rgba(143, 15, 92, .98);

  --hero-bg:
    radial-gradient(ellipse 60% 70% at 85% 40%, rgba(255, 150, 200, .55), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(74, 23, 104, .55), transparent 70%),
    linear-gradient(160deg, #e0289a 0%, #c2187e 45%, #8f0f5c 100%);
  --hero-ink: #fff;
  --hero-em: #f4dc9a;

  --marquee-bg: #2a0a1d;
  --marquee-ink: #f4dc9a;
  --marquee-star: #ff7fb5;

  --game-bg:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(255, 255, 255, .35), transparent 65%),
    linear-gradient(180deg, #d41fa0 0%, #c2187e 55%, #8f0f5c 100%);

  --step-bg: var(--gold-grad);
  --step-ink: #2a0a1d;

  --calc-bg: linear-gradient(160deg, #ffb3d4 0%, #ff7fb5 100%);
  --calc-ink: #2a0a1d;
  --lcd-bg: #b9c2b4;
  --lcd-ink: #1c241a;
  --lcd-font: "Courier New", monospace;

  --agenda-bg:
    radial-gradient(ellipse 50% 60% at 10% 10%, rgba(74, 23, 104, .8), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 90%, rgba(194, 24, 126, .45), transparent 70%),
    #120610;
  --agenda-ink: #fff;
  --agenda-soft: rgba(255, 255, 255, .78);
  --agenda-em: #f4dc9a;
  --agenda-line: rgba(244, 220, 154, .3);

  --wiz-bg: #ffffff;
  --wiz-ink: #2a0a1d;
  --input-bg: #ffffff;
  --input-border: rgba(143, 15, 92, .22);

  --footer-bg: #120610;
  --footer-ink: rgba(255, 255, 255, .7);
  --footer-tag: #f4dc9a;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- TEMA NEGRO Y ORO ---------- */
[data-theme="noir"] {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;

  --bg: #0b0809;
  --bg-alt: #110c0d;
  --surface: #161011;
  --ink: #f4ecd9;
  --ink-soft: #b5a88f;
  --line: rgba(217, 177, 91, .28);
  --accent: #d9b15b;
  --accent-deep: #f4dc9a;
  --accent-soft: rgba(217, 177, 91, .1);
  --em: #e6c57a;
  --hi: #f4dc9a;
  --hi-dark: #d9b15b;

  --btn-ink: #140c04;
  --btn-shadow: 0 10px 34px -12px rgba(217, 177, 91, .55);
  --primary: #d9b15b;
  --on-primary: #140c04;

  --radius: 2px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);

  --nav-bg-scrolled: rgba(11, 8, 9, .9);
  --nav-ink: #f4ecd9;
  --menu-bg: rgba(11, 8, 9, .98);

  --hero-bg:
    radial-gradient(ellipse 40% 50% at 18% 70%, rgba(201, 110, 30, .22), transparent 70%),
    radial-gradient(ellipse 40% 50% at 82% 40%, rgba(110, 40, 150, .3), transparent 70%),
    #0b0809;
  --hero-ink: #f4ecd9;
  --hero-em: #e6c57a;

  --marquee-bg: #0b0809;
  --marquee-ink: #e6c57a;
  --marquee-star: #6e2896;

  --game-bg:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(217, 177, 91, .14), transparent 70%),
    #0b0809;

  --step-bg: transparent;
  --step-ink: #d9b15b;

  --calc-bg: linear-gradient(160deg, #1d1416 0%, #120c0d 100%);
  --calc-ink: #f4ecd9;
  --lcd-bg: #060404;
  --lcd-ink: #f4dc9a;
  --lcd-font: "Jost", system-ui, sans-serif;

  --agenda-bg:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(110, 40, 150, .25), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(201, 110, 30, .14), transparent 70%),
    #0b0809;
  --agenda-ink: #f4ecd9;
  --agenda-soft: #b5a88f;
  --agenda-em: #e6c57a;
  --agenda-line: rgba(217, 177, 91, .28);

  --wiz-bg: #120d0e;
  --wiz-ink: #f4ecd9;
  --input-bg: #0b0809;
  --input-border: rgba(217, 177, 91, .3);

  --footer-bg: #060404;
  --footer-ink: #a39780;
  --footer-tag: #e6c57a;
}

/* ---------- TEMA CLÍNICO ---------- */
[data-theme="clinico"] {
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --bg: #f7fafc;
  --bg-alt: #edf4f6;
  --surface: #ffffff;
  --ink: #0f2f4a;
  --ink-soft: #4b6275;
  --line: #d8e4ea;
  --accent: #12808a;
  --accent-deep: #0f2f4a;
  --accent-soft: rgba(18, 128, 138, .09);
  --em: #12808a;
  --hi: #8fdbe0;
  --hi-dark: #12808a;

  --btn-bg: #12808a;
  --btn-ink: #ffffff;
  --btn-shadow: 0 8px 22px -10px rgba(18, 128, 138, .7);
  --primary: #12808a;
  --on-primary: #fff;

  --radius: 14px;
  --shadow: 0 16px 40px -20px rgba(15, 47, 74, .35);

  --nav-bg: #ffffff;
  --nav-bg-scrolled: #ffffff;
  --nav-ink: #0f2f4a;
  --brand-ring: #12808a;
  --menu-bg: #ffffff;

  --hero-bg:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(18, 128, 138, .12), transparent 70%),
    linear-gradient(180deg, #eaf3f6 0%, #f7fafc 100%);
  --hero-ink: #0f2f4a;
  --hero-em: #12808a;

  --step-bg: #12808a;
  --step-ink: #fff;

  --calc-bg: #ffffff;
  --calc-ink: #0f2f4a;
  --lcd-bg: #0f2f4a;
  --lcd-ink: #ffffff;
  --lcd-font: "Plus Jakarta Sans", system-ui, sans-serif;

  --agenda-bg: linear-gradient(180deg, #0f2f4a 0%, #0c2539 100%);
  --agenda-ink: #ffffff;
  --agenda-soft: rgba(255, 255, 255, .78);
  --agenda-em: #8fdbe0;
  --agenda-line: rgba(255, 255, 255, .16);

  --wiz-bg: #ffffff;
  --wiz-ink: #0f2f4a;
  --input-bg: #ffffff;
  --input-border: #cfdde4;

  --footer-bg: #0a2133;
  --footer-ink: rgba(255, 255, 255, .7);
  --footer-tag: #8fdbe0;
}

/* ---------- TEMA ROSÉ (rosa profesional) ---------- */
[data-theme="rose"] {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --bg: #fbf6f4;
  --bg-alt: #f5ebe8;
  --surface: #ffffff;
  --ink: #2b1424;
  --ink-soft: #6e5562;
  --line: #ecdcd7;
  --accent: #b4466f;
  --accent-deep: #3d1430;
  --accent-soft: rgba(180, 70, 111, .08);
  --em: #b4466f;
  --hi: #ebc7ad;
  --hi-dark: #a8705a;
  --gold-grad: linear-gradient(135deg, #f6dccb 0%, #d4a088 50%, #a8705a 100%);

  --btn-bg: #3d1430;
  --btn-ink: #ffffff;
  --btn-shadow: 0 14px 30px -14px rgba(61, 20, 48, .65);
  --primary: #3d1430;
  --on-primary: #fff;

  --radius: 20px;
  --shadow: 0 22px 50px -26px rgba(61, 20, 48, .35);

  --nav-bg: transparent;
  --nav-bg-scrolled: rgba(251, 246, 244, .86);
  --nav-ink: #2b1424;
  --brand-ring: #d4a088;
  --menu-bg: #fbf6f4;

  --hero-bg:
    radial-gradient(ellipse 55% 65% at 82% 35%, rgba(236, 172, 194, .45), transparent 70%),
    radial-gradient(ellipse 45% 50% at 5% 95%, rgba(235, 199, 173, .45), transparent 70%),
    #fbf6f4;
  --hero-ink: #2b1424;
  --hero-em: #b4466f;

  --step-bg: transparent;
  --step-ink: #a8705a;

  --calc-bg: #ffffff;
  --calc-ink: #2b1424;
  --lcd-bg: #3d1430;
  --lcd-ink: #f6dccb;
  --lcd-font: "Manrope", system-ui, sans-serif;

  --agenda-bg:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(180, 70, 111, .35), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(212, 160, 136, .18), transparent 70%),
    linear-gradient(160deg, #3d1430 0%, #2a0d21 100%);
  --agenda-ink: #fbeee9;
  --agenda-soft: rgba(251, 238, 233, .74);
  --agenda-em: #ebc7ad;
  --agenda-line: rgba(235, 199, 173, .22);

  --wiz-bg: #ffffff;
  --wiz-ink: #2b1424;
  --input-bg: #ffffff;
  --input-border: #e6d3cd;

  --footer-bg: #24091c;
  --footer-ink: rgba(251, 238, 233, .65);
  --footer-tag: #ebc7ad;
}

/* ---------- TEMA LAVANDA ---------- */
[data-theme="lavanda"] {
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-slab: "Playfair Display", Georgia, serif;

  --bg: #f7f3fc;
  --bg-alt: #efe6fa;
  --surface: #ffffff;
  --ink: #24133a;
  --ink-soft: #5f4f74;
  --line: #e4d8f3;
  --accent: #8e3fc4;
  --accent-deep: #3b1d5e;
  --accent-soft: rgba(142, 63, 196, .1);
  --em: #8e3fc4;
  --hi: #f3d38a;
  --hi-dark: #8e3fc4;
  --gold-grad: linear-gradient(120deg, #8e3fc4 0%, #e0559b 55%, #f0b45a 100%);

  --btn-bg: linear-gradient(120deg, #7b2fd0 0%, #c4369a 100%);
  --btn-ink: #ffffff;
  --btn-shadow: 0 16px 34px -14px rgba(123, 47, 208, .6);
  --primary: #7b2fd0;
  --on-primary: #fff;

  --radius: 26px;
  --shadow: 0 26px 50px -26px rgba(59, 29, 94, .4);

  --nav-bg: transparent;
  --nav-bg-scrolled: rgba(247, 243, 252, .86);
  --nav-ink: #24133a;
  --brand-ring: #b77fe0;
  --menu-bg: #f7f3fc;

  --hero-bg:
    radial-gradient(ellipse 45% 55% at 85% 30%, rgba(224, 85, 155, .22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 65% 90%, rgba(240, 180, 90, .2), transparent 70%),
    radial-gradient(ellipse 55% 65% at 5% 20%, rgba(142, 63, 196, .18), transparent 70%),
    #f7f3fc;
  --hero-ink: #24133a;
  --hero-em: #8e3fc4;

  --marquee-bg: #3b1d5e;
  --marquee-ink: #f3d38a;
  --marquee-star: #e0559b;

  --game-bg:
    radial-gradient(ellipse 60% 70% at 80% 0%, rgba(224, 85, 155, .4), transparent 70%),
    linear-gradient(160deg, #3b1d5e 0%, #24133a 100%);

  --step-bg: linear-gradient(120deg, #8e3fc4 0%, #e0559b 55%, #f0b45a 100%);
  --step-ink: #fff;

  --calc-bg: #ffffff;
  --calc-ink: #24133a;
  --lcd-bg: #24133a;
  --lcd-ink: #f3d38a;
  --lcd-font: "Outfit", system-ui, sans-serif;

  --agenda-bg:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(224, 85, 155, .3), transparent 70%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(240, 180, 90, .15), transparent 70%),
    linear-gradient(160deg, #2c1749 0%, #1b0d2e 100%);
  --agenda-ink: #f6efff;
  --agenda-soft: rgba(246, 239, 255, .75);
  --agenda-em: #f3d38a;
  --agenda-line: rgba(243, 211, 138, .22);

  --wiz-bg: #ffffff;
  --wiz-ink: #24133a;
  --input-bg: #ffffff;
  --input-border: #ddd0ee;

  --footer-bg: #1b0d2e;
  --footer-ink: rgba(246, 239, 255, .65);
  --footer-tag: #f3d38a;
}

/* ---------- TEMA ATARDECER ---------- */
[data-theme="atardecer"] {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-slab: "Bricolage Grotesque", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --edge: #2d140c;

  --bg: #fff6ee;
  --bg-alt: #ffeadb;
  --surface: #fffdfb;
  --ink: #2d140c;
  --ink-soft: #6b4a3c;
  --line: rgba(45, 20, 12, .14);
  --accent: #f04a3e;
  --accent-deep: #2d140c;
  --accent-soft: rgba(240, 74, 62, .1);
  --em: #f04a3e;
  --hi: #ffc56b;
  --hi-dark: #d8402c;
  --gold-grad: linear-gradient(135deg, #ffc56b 0%, #ff8a5b 50%, #ff4f7b 100%);

  --btn-bg: #f04a3e;
  --btn-ink: #ffffff;
  --btn-shadow: 4px 4px 0 #2d140c;
  --primary: #2d140c;
  --on-primary: #fff6ee;

  --radius: 18px;
  --shadow: 6px 6px 0 #2d140c;

  --nav-bg: transparent;
  --nav-bg-scrolled: rgba(255, 246, 238, .92);
  --nav-ink: #2d140c;
  --brand-ring: #f04a3e;
  --menu-bg: #fff6ee;

  --hero-bg:
    radial-gradient(circle at 76% 46%, rgba(255, 138, 91, .32), transparent 42%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255, 197, 107, .3), transparent 70%),
    #fff6ee;
  --hero-ink: #2d140c;
  --hero-em: #f04a3e;

  --marquee-bg: #f04a3e;
  --marquee-ink: #fff6ee;
  --marquee-star: #ffc56b;

  --game-bg:
    radial-gradient(ellipse 60% 70% at 50% 120%, rgba(255, 246, 238, .45), transparent 65%),
    linear-gradient(180deg, #ff8a5b 0%, #ff4f7b 100%);

  --step-bg: linear-gradient(135deg, #ffc56b 0%, #ff8a5b 50%, #ff4f7b 100%);
  --step-ink: #2d140c;

  --calc-bg: #fffdfb;
  --calc-ink: #2d140c;
  --lcd-bg: #2d140c;
  --lcd-ink: #ffc56b;
  --lcd-font: "Bricolage Grotesque", system-ui, sans-serif;

  --agenda-bg:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(240, 74, 62, .35), transparent 70%),
    radial-gradient(ellipse 45% 50% at 0% 100%, rgba(255, 197, 107, .2), transparent 70%),
    #2d140c;
  --agenda-ink: #fff6ee;
  --agenda-soft: rgba(255, 246, 238, .76);
  --agenda-em: #ffc56b;
  --agenda-line: rgba(255, 197, 107, .25);

  --wiz-bg: #fffdfb;
  --wiz-ink: #2d140c;
  --input-bg: #ffffff;
  --input-border: rgba(45, 20, 12, .28);

  --footer-bg: #1f0d07;
  --footer-ink: rgba(255, 246, 238, .65);
  --footer-tag: #ffc56b;
}

/* Contenido exclusivo por tema */
[data-theme="lavanda"] [data-only]:not([data-only~="lavanda"]),
[data-theme="atardecer"] [data-only]:not([data-only~="atardecer"]),
[data-theme="rose"] [data-only]:not([data-only~="rose"]),
[data-theme="rosa"] [data-only]:not([data-only~="rosa"]),
[data-theme="noir"] [data-only]:not([data-only~="noir"]),
[data-theme="clinico"] [data-only]:not([data-only~="clinico"]) { display: none !important; }

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--em); }
button { font-family: inherit; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--hi-dark); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 .95rem var(--font-body); letter-spacing: .02em; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--btn-shadow); }
.btn--ghost { color: var(--hero-ink); border: 1.5px solid currentColor; background: transparent; opacity: .92; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--line { color: var(--wiz-ink); border: 1.5px solid var(--input-border); background: transparent; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--text { background: none; color: var(--accent); padding-inline: 12px; }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--block { width: 100%; }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--nav-bg); color: var(--nav-ink); transition: background .35s, box-shadow .35s; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; transition: padding .35s; }
.nav.is-scrolled { background: var(--nav-bg-scrolled); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -14px rgba(0, 0, 0, .4); }
.nav.is-scrolled .nav__in { padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { border-radius: 50%; border: 1.5px solid var(--brand-ring); }
.brand__txt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: .04em; }
.brand__txt b { font-weight: 500; color: var(--hi); letter-spacing: .1em; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: inherit; text-decoration: none; font-size: .92rem; position: relative; opacity: .92; }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--hi); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: currentColor; margin: 6px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger { color: var(--nav-ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; color: var(--hero-ink); padding: 140px 0 110px; background: var(--hero-bg); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--hi); margin-bottom: 18px; }
.eyebrow--dark { color: var(--hi-dark); }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 em { color: var(--hero-em); }
.lead { font-size: 1.12rem; font-weight: 300; max-width: 540px; opacity: .95; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 44px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 38px; padding: 26px 0 0; margin: 0; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--hero-em); }
.hero__facts span { font-size: .8rem; opacity: .9; max-width: 120px; line-height: 1.35; margin-top: 4px; }
[data-theme="rosa"] .hero__facts { border-top-color: rgba(244, 220, 154, .4); }

.hero__art { position: relative; display: grid; place-items: center; }
.art { position: relative; display: grid; place-items: center; width: 100%; }
.ring {
  position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(244, 220, 154, .5); animation: spin 40s linear infinite; pointer-events: none;
}
.ring::after { content: "✦"; position: absolute; top: 6%; left: 14%; color: var(--hi); font-size: 1.4rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.poster {
  position: relative; margin: 0; width: min(380px, 80%); transform: rotate(3deg);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(40, 0, 30, .7), 0 0 0 1px rgba(244, 220, 154, .6);
  transition: transform .6s var(--ease);
}
.poster:hover { transform: rotate(0) scale(1.02); }
.badge {
  position: absolute; right: 2%; bottom: 8%; width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--gold-grad); color: #2a0a1d;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.1;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transform: rotate(-10deg);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-10deg) translateY(-10px); } }
.gold-line { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold-grad); }

/* Logo art (noir) */
.art--logo img { width: min(360px, 70vw); border-radius: 50%; box-shadow: 0 0 0 1px rgba(217, 177, 91, .6), 0 0 120px -20px rgba(217, 177, 91, .45); }
.art--logo .ring { width: min(440px, 86vw); border-color: rgba(217, 177, 91, .35); }

/* Reserva rápida (clínico) */
.qb {
  display: block; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px; box-shadow: 0 30px 60px -30px rgba(15, 47, 74, .45);
  width: min(420px, 100%); justify-self: end; place-items: normal; text-align: left;
}
.qb h2 { font-size: 1.45rem; letter-spacing: -.01em; margin-bottom: 6px; }
.qb__next { display: flex; flex-direction: column; font-size: .82rem; color: var(--ink-soft); margin-bottom: 20px; }
.qb__next b { color: var(--accent); font-size: 1.05rem; font-weight: 700; }
.qb .field { margin-bottom: 14px; }
.qb .btn { margin-top: 6px; border-radius: 12px; }
.qb__list { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .88rem; color: var(--ink-soft); }
.qb__list li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }

/* =========================================================
   MARQUEE / TRUST
   ========================================================= */
.marquee { background: var(--marquee-bg); color: var(--marquee-ink); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 32px; width: max-content; animation: slide 36s linear infinite; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--marquee-star); font-size: 1rem; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust__in { list-style: none; margin: 0 auto; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.trust b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.trust i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-style: normal; font-weight: 700; }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p:last-child { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.sec-head--light { margin-inline: auto; text-align: center; }
.sec-head--light h2, .sec-head--light p:last-child { color: #fff; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab {
  padding: 10px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--accent); background: transparent; color: var(--accent);
  font: 500 .9rem var(--font-body); transition: all .3s var(--ease);
}
.tab:hover { background: var(--accent-soft); }
.tab.is-active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 34px 30px 28px; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent); }
.card[hidden] { display: none !important; }
.card__n { font-family: var(--font-display); font-size: 1rem; font-style: italic; color: var(--hi-dark); letter-spacing: .1em; margin-bottom: 18px; }
.card h3 { margin-bottom: 12px; color: var(--accent-deep); }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card__ideal { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .88rem !important; }
.card__ideal b { color: var(--accent); }
.card__link { font-weight: 500; font-size: .9rem; text-decoration: none; color: var(--accent); margin-top: 6px; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Game */
.game { padding: 100px 0 110px; color: #fff; overflow: hidden; background: var(--game-bg); }
.slab { font-family: var(--font-slab); font-weight: 400; letter-spacing: 0; font-size: clamp(2.2rem, 6vw, 4.4rem); }
.slab span { color: var(--hi); }
.game__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; margin-top: 10px; }
.game__card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -22px rgba(30, 0, 25, .75); background: #fff; }
.game__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.game__card:hover img { transform: scale(1.05); }
.game__card--win { box-shadow: 0 0 0 3px #d9b15b, 0 30px 60px -22px rgba(30, 0, 25, .85); }
.game__card figcaption {
  position: absolute; top: 14px; right: 14px; padding: 6px 16px; border-radius: 999px;
  background: var(--gold-grad); color: #2a0a1d; font-weight: 600; font-size: .85rem;
  animation: pop 2.4s var(--ease) infinite;
}
@keyframes pop { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.1) rotate(3deg); } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 74px; }
.step::before {
  content: ""; position: absolute; top: 28px; left: 56px; right: -24px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--hi-dark) 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step__n {
  position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--step-bg); color: var(--step-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.8rem;
  box-shadow: 0 10px 24px -8px rgba(169, 127, 46, .8);
}
.step h3 { color: var(--accent-deep); margin-bottom: 10px; }
.step p { font-size: .95rem; color: var(--ink-soft); }

/* Cuentas */
.cuentas__in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cuentas__lead { color: var(--ink-soft); font-size: 1.05rem; margin: 18px 0 22px; }
.presets { display: grid; gap: 12px; margin-bottom: 14px; }
.preset {
  display: grid; gap: 2px; text-align: left; cursor: pointer; padding: 16px 20px;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px;
  font-family: var(--font-body); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.preset:hover { transform: translateY(-2px); border-color: var(--accent); }
.preset[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.preset small { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--hi-dark); font-weight: 600; }
.preset b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--accent-deep); }
.preset span { font-size: .85rem; color: var(--ink-soft); }
.cuentas__copy .calc__note { color: var(--ink-soft); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .45); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; cursor: pointer; font-size: .86rem; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--hi-dark); outline-offset: 1px; }
.field small { font-weight: 400; opacity: .75; }
.calc .two { gap: 14px; }

/* Espejito (tema Rosa) */
.espejito { margin: 0 0 30px; max-width: 300px; border-radius: 160px 160px 18px 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(244, 220, 154, .5), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.calc {
  background: var(--calc-bg); color: var(--calc-ink);
  border-radius: 28px; padding: 30px; box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .5);
  display: grid; gap: 22px;
}
.calc__screen {
  background: var(--lcd-bg); color: var(--lcd-ink); border-radius: 14px; padding: 18px 22px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; font-family: var(--lcd-font);
}
.calc__label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.calc__screen output { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; line-height: 1.2; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.calc__sub { font-size: .8rem; opacity: .8; }
.calc__note { font-size: .75rem; margin: 0; opacity: .8; }

/* Campos */
.field { display: grid; gap: 8px; font-size: .88rem; font-weight: 500; }
.field b { color: var(--accent); }
input[type=number], input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--input-border);
  background: var(--input-bg); color: inherit; font: 400 1rem var(--font-body);
  transition: border-color .3s, box-shadow .3s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #e0475f; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
textarea { resize: vertical; }

/* FAQ */
.faq details { background: var(--surface); border-radius: 16px; margin-bottom: 12px; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--accent); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--accent-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; color: var(--hi-dark); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* =========================================================
   AGENDA + VALORACIÓN
   ========================================================= */
.agenda { background: var(--agenda-bg); color: var(--agenda-ink); }
.agenda__in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.agenda__copy { position: sticky; top: 110px; }
.agenda h2 em { color: var(--agenda-em); }
.agenda__lead { color: var(--agenda-soft); font-size: 1.05rem; margin: 18px 0 30px; }
.info { border-top: 1px solid var(--agenda-line); padding-top: 26px; }
.info h3 { font-size: 1.25rem; margin: 0 0 12px; }
.info h3 + .checklist { margin-bottom: 24px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--agenda-soft); font-size: .95rem; }
.checklist li { display: flex; gap: 12px; }
.checklist li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--agenda-em); color: #120610; margin-top: 2px; }
.checklist--plain li::before { content: "•"; background: transparent; color: var(--agenda-em); font-size: 1.2rem; }

/* Cita vigente */
.myappt {
  border: 1px solid var(--agenda-em); border-radius: 16px; padding: 18px 20px; margin-bottom: 28px;
  background: rgba(255, 255, 255, .05); display: grid; gap: 4px;
}
.myappt small { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--agenda-em); }
.myappt strong { font-size: 1.05rem; }
.myappt span { font-size: .85rem; color: var(--agenda-soft); }
.myappt button { justify-self: start; margin-top: 8px; background: none; border: 0; color: var(--agenda-em); cursor: pointer; padding: 0; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }

/* Wizard */
.wiz { background: var(--wiz-bg); color: var(--wiz-ink); border-radius: 24px; padding: 34px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); border: 1px solid var(--line); }
.wiz__steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.wiz__steps::before { content: ""; position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 2px; background: var(--input-border); }
.wiz__steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: .78rem; color: var(--ink-soft); }
.wiz__steps span {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--wiz-bg); border: 2px solid var(--input-border); font-weight: 600; transition: all .3s var(--ease);
}
.wiz__steps em { font-style: normal; color: inherit; }
.wiz__steps li.is-current { color: var(--wiz-ink); font-weight: 600; }
.wiz__steps li.is-current span { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--accent-soft); }
.wiz__steps li.is-done span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.wiz__steps li.is-done span { font-size: 0; }
.wiz__steps li.is-done span::after { content: "✓"; font-size: .9rem; }

.pane h3 { font-size: 1.7rem; margin-bottom: 6px; }
.pane h3:focus { outline: none; }
.pane h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 26px 0 12px; }
.pane__hint { color: var(--ink-soft); font-size: .9rem; margin-bottom: 20px; }
.pane[hidden] { display: none; }
.pane:not([hidden]) { animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input, .mode input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--input-border); font-size: .88rem; cursor: pointer; transition: all .25s var(--ease);
}
.chip span small { font-size: .7rem; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.chip span:hover { border-color: var(--accent); }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip input:focus-visible + span, .mode input:focus-visible + span, .consent input:focus-visible + span { outline: 3px solid var(--hi-dark); outline-offset: 2px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode span { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--input-border); cursor: pointer; font-size: .82rem; color: var(--ink-soft); transition: all .25s var(--ease); }
.mode b { font-size: 1rem; color: var(--wiz-ink); }
.mode input:checked + span { border-color: var(--primary); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--primary); }

.err { color: #e0475f; font-size: .88rem; min-height: 1.3em; margin: 14px 0 0; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.actions--wrap { flex-wrap: wrap; justify-content: flex-start; }

/* Calendario */
.sched { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; margin-top: 14px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head strong { font-size: 1.02rem; }
.cal__nav { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--input-border); background: transparent; color: inherit; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.cal__nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow span { font-size: .72rem; font-weight: 600; color: var(--ink-soft); padding-bottom: 6px; }
.cal__day {
  aspect-ratio: 1; border-radius: 50%; border: 0; background: transparent; color: inherit;
  font-size: .88rem; cursor: pointer; position: relative; transition: background .2s, color .2s;
}
.cal__day:hover:not(:disabled) { background: var(--accent-soft); }
.cal__day:disabled { opacity: .28; cursor: default; }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal__day[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.cal__day[aria-pressed="true"]::after { background: var(--on-primary); }

.slots { border-left: 1px solid var(--input-border); padding-left: 24px; }
.slots__title { font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.slots__group { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin: 12px 0 8px; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slots__grid .slots__group { grid-column: 1 / -1; margin-bottom: 0; }
.slot { padding: 9px 0; border-radius: 10px; border: 1.5px solid var(--input-border); background: transparent; color: inherit; cursor: pointer; font-size: .88rem; font-variant-numeric: tabular-nums; transition: all .2s; }
.slot:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.slot:disabled { opacity: .3; cursor: default; text-decoration: line-through; }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.slots__empty { font-size: .88rem; color: var(--ink-soft); grid-column: 1 / -1; }
.slots__note { font-size: .75rem; color: var(--ink-soft); margin: 14px 0 0; }

/* Paso 3 */
#wizForm { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.conds { border: 1px solid var(--input-border); border-radius: 14px; padding: 16px 18px 12px; margin: 0; }
.conds legend { font-size: .88rem; font-weight: 600; padding: 0 6px; }
#conds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; cursor: pointer; line-height: 1.4; }
.check input, .consent input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; margin: 1px 0 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); cursor: pointer; line-height: 1.5; }

/* Paso 4 */
.done__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; background: var(--primary); color: var(--on-primary); margin-bottom: 18px; animation: pop 1s var(--ease) 1; }
.ticket { border: 1.5px dashed var(--input-border); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; position: relative; }
.ticket div { display: grid; gap: 2px; }
.ticket small { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.ticket strong { font-size: 1rem; text-transform: none; }
.ticket .t-wide { grid-column: 1 / -1; }
.ticket .t-folio strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); letter-spacing: .04em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--footer-bg); color: var(--footer-ink); padding: 44px 0 90px; text-align: center; }
.footer .brand { color: #fff; }
.footer__in { display: grid; gap: 14px; justify-items: center; }
.footer__tag { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--footer-tag); margin: 0; }
.footer__legal { max-width: 640px; font-size: .78rem; margin: 0; }
.footer__copy { font-size: .78rem; margin: 0; opacity: .7; }

/* =========================================================
   SELECTOR DE TEMA
   ========================================================= */
.themes {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(20, 12, 18, .82); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); color: #fff;
}
.themes__label { font-size: .66rem; text-transform: uppercase; letter-spacing: .18em; opacity: .6; padding: 0 8px 0 10px; }
.themes button {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 0; background: transparent; color: inherit; cursor: pointer; font-size: .78rem; font-weight: 500;
  transition: background .25s;
}
.themes button:hover { background: rgba(255, 255, 255, .1); }
.themes button[aria-checked="true"] { background: rgba(255, 255, 255, .18); }
.sw { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.sw--rosa { background: linear-gradient(135deg, #e0289a 50%, #d9b15b 50%); }
.sw--noir { background: radial-gradient(circle, #d9b15b 0 30%, #0b0809 32%); }
.sw--clinico { background: linear-gradient(135deg, #0f2f4a 50%, #12808a 50%); }
.sw--rose { background: linear-gradient(135deg, #f6e1dc 50%, #3d1430 50%); box-shadow: inset 0 0 0 1.5px #d4a088; }
.sw--lavanda { background: linear-gradient(135deg, #8e3fc4, #e0559b 60%, #f0b45a); }
.sw--atardecer { background: radial-gradient(circle at 50% 60%, #ffc56b 0 34%, #ff8a5b 36% 62%, #ff4f7b 64%); }
/* Con 6 temas: solo el activo muestra su nombre */
.themes button { padding: 6px; }
.themes button span { display: none; }
.themes button[aria-checked="true"] { padding-right: 12px; }
.themes button[aria-checked="true"] span { display: inline; }

/* =========================================================
   LEGAL: aviso simplificado, consentimientos, pie
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-mini { font-size: .78rem; line-height: 1.55; color: var(--ink-soft); background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; margin: 0; }
.privacy-mini a, .consent a { color: var(--accent); font-weight: 600; }
.consent__note { font-size: .76rem; color: var(--ink-soft); margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: .82rem; }
.footer__links a, .footer__links button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.footer__links a:hover, .footer__links button:hover { color: var(--footer-tag); }

/* =========================================================
   AVISO DE COOKIES + PANEL
   ========================================================= */
.cookie-banner {
  position: fixed; left: 18px; bottom: 18px; z-index: 90; width: min(440px, calc(100% - 36px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); animation: paneIn .5s var(--ease);
}
.cookie-banner__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0 0 6px; }
.cookie-banner__text { font-size: .84rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 14px; }
.cookie-banner__text a { color: var(--accent); font-weight: 600; }
.cookie-banner__actions, .cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cbtn {
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--input-border); background: transparent;
  color: var(--ink); font: 600 .84rem var(--font-body); cursor: pointer; transition: border-color .2s, background .2s;
}
.cbtn:hover { border-color: var(--accent); }
.cbtn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cbtn--link { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: 8px; }
body.consent-pending .themes { display: none; }

.cookie-dialog { width: min(560px, calc(100% - 32px)); border: 0; border-radius: 22px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); }
.cookie-dialog::backdrop { background: rgba(10, 4, 10, .55); backdrop-filter: blur(4px); }
.cookie-dialog__form { padding: 28px; display: grid; gap: 14px; }
.cookie-dialog h2 { font-size: 1.6rem; }
.cookie-dialog__intro { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.cookie-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.cookie-row__title { font-weight: 700; margin: 0 0 2px; font-size: .95rem; }
.cookie-row__desc { font-size: .8rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }
.switch { position: relative; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__ui { display: block; width: 46px; height: 26px; border-radius: 999px; background: var(--input-border); position: relative; transition: background .25s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--primary); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:disabled + .switch__ui { opacity: .55; }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--hi-dark); outline-offset: 2px; }

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal-head { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.legal-head__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; }
.legal-head .brand { color: var(--ink); }
.legal-head__back { font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.legal-head__back:hover { text-decoration: underline; }
.legal { padding: 64px 0 90px; }
.legal__wrap { width: min(820px, 100% - 40px); margin-inline: auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 10px; }
.legal__meta { color: var(--ink-soft); font-size: .88rem; margin-bottom: 28px; }
.legal__note { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 18px; font-size: .88rem; margin-bottom: 32px; }
.legal__toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 18px 40px; margin: 0 0 40px; font-size: .92rem; }
.legal__toc li { margin: 4px 0; }
.legal__toc a { color: var(--accent); text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal h2 { font-size: 1.55rem; margin: 42px 0 14px; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: .98rem; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 22px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); }
.legal mark.ph { background: #fff1a8; color: #4a3b00; padding: 1px 6px; border-radius: 5px; font-weight: 600; font-size: .92em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 14px 0 6px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.legal th { color: var(--ink); font-weight: 700; background: var(--bg-alt); }
.legal .table-wrap { overflow-x: auto; }
.legal .btn { margin-top: 10px; }
.legal-page .footer { padding-bottom: 44px; }
.legal-page em { color: inherit; font-family: inherit; font-size: inherit; transform: none; background: none; -webkit-background-clip: border-box; background-clip: border-box; }

@media (max-width: 680px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .cookie-banner__actions .cbtn { flex: 1; }
  .cookie-dialog__form { padding: 22px 18px; }
}

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
/* Retrasos escalonados sin estilos en línea (compatibles con la CSP) */
[data-delay="100"] { --d: 100ms; }
[data-delay="120"] { --d: 120ms; }
[data-delay="200"] { --d: 200ms; }
[data-delay="240"] { --d: 240ms; }
[data-delay="300"] { --d: 300ms; }

/* =========================================================
   OVERRIDES: TEMA NEGRO Y ORO (editorial de lujo)
   ========================================================= */
[data-theme="noir"] body { font-weight: 300; }
[data-theme="noir"] h2 { font-weight: 500; font-size: clamp(2.4rem, 5.4vw, 4rem); }
[data-theme="noir"] .eyebrow { letter-spacing: .38em; font-size: .72rem; }
[data-theme="noir"] .btn { border-radius: 0; text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; padding: 17px 32px; }
[data-theme="noir"] .btn--sm { padding: 11px 18px; font-size: .7rem; }
[data-theme="noir"] .btn--ghost { border-width: 1px; border-color: rgba(217, 177, 91, .55); color: #e6c57a; }
[data-theme="noir"] .btn--ghost:hover { background: rgba(217, 177, 91, .08); }

[data-theme="noir"] .nav__in { border-bottom: 1px solid rgba(217, 177, 91, .2); }
[data-theme="noir"] .menu a:not(.btn) { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; }

/* Hero centrado con medallón */
[data-theme="noir"] .hero { padding: 150px 0 120px; text-align: center; }
[data-theme="noir"] .hero::before { content: ""; position: absolute; inset: 104px 28px 34px; border: 1px solid rgba(217, 177, 91, .2); pointer-events: none; }
[data-theme="noir"] .hero__in { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
[data-theme="noir"] .hero__art { order: -1; }
[data-theme="noir"] .hero h1 { font-weight: 500; font-size: clamp(3rem, 8vw, 6.4rem); }
[data-theme="noir"] .hero h1 em { font-weight: 500; }
[data-theme="noir"] .lead { margin-inline: auto; color: #cfc3aa; }
[data-theme="noir"] .hero__cta { justify-content: center; }
[data-theme="noir"] .hero__facts { justify-content: center; gap: 0; border: 0; padding: 0; }
[data-theme="noir"] .hero__facts li { padding: 0 34px; border-left: 1px solid rgba(217, 177, 91, .3); align-items: center; }
[data-theme="noir"] .hero__facts li:first-child { border-left: 0; }
[data-theme="noir"] .hero__facts span { text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; max-width: 140px; text-align: center; }
[data-theme="noir"] .gold-line { height: 1px; opacity: .6; }
[data-theme="noir"] .marquee { border-bottom: 1px solid rgba(217, 177, 91, .2); }

/* Encabezados centrados con ornamento */
[data-theme="noir"] .sec-head { margin-inline: auto; text-align: center; max-width: 760px; margin-bottom: 60px; }
[data-theme="noir"] .sec-head .eyebrow { display: inline-flex; align-items: center; gap: 16px; }
[data-theme="noir"] .sec-head .eyebrow::before,
[data-theme="noir"] .sec-head .eyebrow::after { content: ""; width: 42px; height: 1px; background: currentColor; opacity: .6; }
[data-theme="noir"] .tabs { justify-content: center; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
[data-theme="noir"] .tab { border: 0; border-radius: 0; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; padding: 14px 24px; border-bottom: 1px solid transparent; margin-bottom: -1px; }
[data-theme="noir"] .tab.is-active { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }

/* Cirugías como lista editorial */
[data-theme="noir"] .grid { grid-template-columns: 1fr; gap: 0; }
[data-theme="noir"] .card {
  display: grid; grid-template-columns: 70px 1.1fr 1.6fr auto; grid-template-areas: "n t d l" "n t i l";
  column-gap: 32px; align-items: start; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 34px 10px;
}
[data-theme="noir"] .card:hover { transform: none; box-shadow: none; background: rgba(217, 177, 91, .04); padding-left: 22px; }
[data-theme="noir"] .card__n { grid-area: n; font-size: 1.6rem; margin: 0; color: var(--accent); }
[data-theme="noir"] .card h3 { grid-area: t; font-size: 1.9rem; font-weight: 500; color: var(--ink); }
[data-theme="noir"] .card p:not(.card__ideal) { grid-area: d; margin: 0 0 8px; }
[data-theme="noir"] .card__ideal { grid-area: i; border: 0; padding: 0; margin: 0; }
[data-theme="noir"] .card__link { grid-area: l; align-self: center; text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; border: 1px solid var(--line); padding: 12px 16px; text-decoration: none !important; }
[data-theme="noir"] .card__link:hover { border-color: var(--accent); }

[data-theme="noir"] .slab { font-family: var(--font-display); font-style: italic; font-weight: 500; }
[data-theme="noir"] .sec-head--light h2 { color: var(--ink); }
[data-theme="noir"] .sec-head--light p:last-child { color: var(--ink-soft); }
[data-theme="noir"] .game__card { border-radius: 0; padding: 8px; background: #161011; box-shadow: 0 0 0 1px rgba(217, 177, 91, .35); }
[data-theme="noir"] .game__card img { filter: saturate(.9); }
[data-theme="noir"] .game__card--win { box-shadow: 0 0 0 1px #d9b15b, 0 0 60px -20px rgba(217, 177, 91, .6); }

/* Pasos con numerales huecos */
[data-theme="noir"] .step { padding-top: 96px; border-top: 1px solid var(--line); }
[data-theme="noir"] .step::before { display: none; }
[data-theme="noir"] .step__n { top: 14px; width: auto; height: auto; background: none; box-shadow: none; font-size: 4.4rem; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px #d9b15b; }
[data-theme="noir"] .step h3 { color: var(--ink); font-weight: 500; font-size: 1.8rem; }

[data-theme="noir"] .calc { border-radius: 0; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
[data-theme="noir"] .preset, [data-theme="noir"] .seg, [data-theme="noir"] .seg span { border-radius: 0; }
[data-theme="noir"] .preset { background: transparent; }
[data-theme="noir"] .preset b { color: var(--ink); font-weight: 500; font-size: 1.6rem; }
[data-theme="noir"] .seg { background: rgba(217, 177, 91, .08); }
[data-theme="noir"] .calc__screen { border-radius: 0; box-shadow: inset 0 0 0 1px rgba(217, 177, 91, .25); }
[data-theme="noir"] input, [data-theme="noir"] select, [data-theme="noir"] textarea { border-radius: 0; border-width: 1px; }
[data-theme="noir"] .faq details { border-radius: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); margin: 0; }
[data-theme="noir"] .faq details[open] { box-shadow: none; }
[data-theme="noir"] .faq summary { color: var(--ink); font-weight: 500; font-size: 1.5rem; padding-left: 0; }
[data-theme="noir"] .faq details p { padding-left: 0; }

[data-theme="noir"] .wiz { border-radius: 0; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px #000; border: 0; }
[data-theme="noir"] .chip span, [data-theme="noir"] .mode span, [data-theme="noir"] .slot, [data-theme="noir"] .ticket, [data-theme="noir"] .conds, [data-theme="noir"] .myappt { border-radius: 0; border-width: 1px; }
[data-theme="noir"] .checklist li::before { color: #140c04; }

/* =========================================================
   OVERRIDES: TEMA CLÍNICO (médico, limpio, confiable)
   ========================================================= */
[data-theme="clinico"] h1, [data-theme="clinico"] h2, [data-theme="clinico"] h3 { letter-spacing: -.025em; font-weight: 700; }
[data-theme="clinico"] h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; }
[data-theme="clinico"] h3 { font-size: 1.2rem; }
[data-theme="clinico"] em { font-style: normal; }
[data-theme="clinico"] .eyebrow { letter-spacing: .12em; font-weight: 700; font-size: .74rem; }
[data-theme="clinico"] .btn { border-radius: 10px; font-weight: 600; }
[data-theme="clinico"] .btn--gold:hover { background: #0f2f4a; }
[data-theme="clinico"] .btn--ghost { border-color: #c4d4dd; color: #0f2f4a; }
[data-theme="clinico"] .btn--ghost:hover { background: #fff; border-color: #0f2f4a; }

[data-theme="clinico"] .nav { box-shadow: 0 1px 0 var(--line); }
[data-theme="clinico"] .topstrip { background: #0f2f4a; color: rgba(255, 255, 255, .85); font-size: .78rem; max-height: 40px; overflow: hidden; transition: max-height .35s var(--ease); }
[data-theme="clinico"] .nav.is-scrolled .topstrip { max-height: 0; }
[data-theme="clinico"] .topstrip__in { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
[data-theme="clinico"] .topstrip a { color: #8fdbe0; text-decoration: none; font-weight: 600; white-space: nowrap; }
[data-theme="clinico"] .brand__txt { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
[data-theme="clinico"] .brand__txt b { color: var(--accent); font-weight: 800; letter-spacing: 0; }
[data-theme="clinico"] .footer .brand__txt b { color: #8fdbe0; }
[data-theme="clinico"] .menu a:not(.btn) { font-weight: 500; }
[data-theme="clinico"] .menu a:not(.btn)::after { background: var(--accent); }

[data-theme="clinico"] .hero { padding: 170px 0 90px; }
[data-theme="clinico"] .hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; font-weight: 800; }
[data-theme="clinico"] .hero h1 em { display: block; }
[data-theme="clinico"] .lead { font-weight: 400; color: var(--ink-soft); font-size: 1.08rem; }
[data-theme="clinico"] .hero__facts { gap: 0; border-top: 0; padding: 0; }
[data-theme="clinico"] .hero__facts li { padding: 4px 26px; border-left: 1px solid var(--line); }
[data-theme="clinico"] .hero__facts li:first-child { padding-left: 0; border-left: 0; }
[data-theme="clinico"] .hero__facts b { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
[data-theme="clinico"] .hero__facts span { color: var(--ink-soft); }
[data-theme="clinico"] .gold-line { display: none; }

[data-theme="clinico"] .section { padding: 96px 0; }
[data-theme="clinico"] .sec-head p:last-child { font-size: 1rem; }
[data-theme="clinico"] .tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-alt); border-radius: 12px; }
[data-theme="clinico"] .tab { border: 0; border-radius: 9px; color: var(--ink-soft); font-weight: 600; padding: 9px 20px; }
[data-theme="clinico"] .tab:hover { background: rgba(255, 255, 255, .7); }
[data-theme="clinico"] .tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(15, 47, 74, .25); }

[data-theme="clinico"] .card { padding: 28px 26px 24px; border-top: 3px solid var(--accent); box-shadow: 0 1px 2px rgba(15, 47, 74, .05); }
[data-theme="clinico"] .card:hover { transform: translateY(-4px); border-color: var(--line); border-top-color: var(--accent); }
[data-theme="clinico"] .card__n { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: .78rem; letter-spacing: .04em; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
[data-theme="clinico"] .card h3 { font-size: 1.22rem; }
[data-theme="clinico"] .card__ideal { border-top-style: solid; }
[data-theme="clinico"] .card__link { font-weight: 600; }

[data-theme="clinico"] .steps { gap: 18px; }
[data-theme="clinico"] .step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
[data-theme="clinico"] .step::before { display: none; }
[data-theme="clinico"] .step__n { position: static; width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; box-shadow: none; margin-bottom: 18px; }
[data-theme="clinico"] .step h3 { font-size: 1.15rem; }

[data-theme="clinico"] .calc { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
[data-theme="clinico"] .calc__screen { border-radius: 12px; box-shadow: none; }
[data-theme="clinico"] .calc__label { letter-spacing: .06em; }
[data-theme="clinico"] .calc__note { color: var(--ink-soft); }
[data-theme="clinico"] .preset { border-radius: 12px; border-left: 3px solid var(--accent); }
[data-theme="clinico"] .preset b { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
[data-theme="clinico"] .seg { background: var(--bg-alt); }

[data-theme="clinico"] .faq details { border-radius: 12px; }
[data-theme="clinico"] .faq summary { font-size: 1.05rem; font-weight: 700; }
[data-theme="clinico"] .faq details[open] { box-shadow: 0 10px 30px -18px rgba(15, 47, 74, .4); }

[data-theme="clinico"] .wiz { border-radius: 18px; border: 0; }
[data-theme="clinico"] .pane h3 { font-size: 1.4rem; }
[data-theme="clinico"] .chip span { border-radius: 10px; }
[data-theme="clinico"] .slot, [data-theme="clinico"] .cal__day { border-radius: 10px; }
[data-theme="clinico"] .checklist li::before { color: #0f2f4a; }
[data-theme="clinico"] .ticket .t-folio strong { font-weight: 800; letter-spacing: 0; }
[data-theme="clinico"] .footer__tag { font-style: normal; font-weight: 600; }

/* =========================================================
   OVERRIDES: TEMA ROSÉ (rosa profesional, toques especiales)
   ========================================================= */
/* Textura de grano muy sutil sobre todo el sitio */
[data-theme="rose"] body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 80; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="rose"] h1, [data-theme="rose"] h2 { font-weight: 360; letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
[data-theme="rose"] h3 { font-weight: 450; letter-spacing: -.01em; }
[data-theme="rose"] em { font-weight: 330; }
[data-theme="rose"] .eyebrow { color: var(--hi-dark); letter-spacing: .22em; font-weight: 600; font-size: .7rem; display: inline-flex; align-items: center; gap: 12px; }
[data-theme="rose"] .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Numeración automática de secciones: 01 — NUESTRAS CIRUGÍAS */
[data-theme="rose"] main { counter-reset: sec; }
[data-theme="rose"] .section .eyebrow { counter-increment: sec; }
[data-theme="rose"] .agenda .eyebrow { color: var(--agenda-em); }
[data-theme="rose"] .section .eyebrow::before { content: counter(sec, decimal-leading-zero) " —"; width: auto; height: auto; background: none; font-family: var(--font-display); font-style: italic; font-size: .95rem; letter-spacing: .02em; }

/* Botones: pastilla ciruela con flecha y destello al pasar */
[data-theme="rose"] .btn { font-weight: 600; letter-spacing: .01em; }
[data-theme="rose"] .btn--gold { position: relative; overflow: hidden; }
[data-theme="rose"] .btn--gold::after { content: "→"; margin-left: 4px; transition: transform .3s var(--ease); }
[data-theme="rose"] .btn--gold:hover::after { transform: translateX(4px); }
[data-theme="rose"] .btn--gold::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(246, 220, 203, .45) 50%, transparent 70%);
  transition: transform .8s var(--ease);
}
[data-theme="rose"] .btn--gold:hover::before { transform: translateX(120%); }
[data-theme="rose"] .btn--ghost { border-color: rgba(61, 20, 48, .3); color: var(--accent-deep); }
[data-theme="rose"] .btn--ghost:hover { background: #fff; border-color: var(--accent-deep); }
[data-theme="rose"] .btn--sm::after { display: none; }

[data-theme="rose"] .nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
[data-theme="rose"] .brand__txt { font-weight: 400; letter-spacing: -.01em; font-size: 1.5rem; }
[data-theme="rose"] .brand__txt b { color: var(--hi-dark); font-style: italic; font-weight: 400; letter-spacing: 0; }
[data-theme="rose"] .footer .brand__txt b { color: var(--hi); }
[data-theme="rose"] .menu a:not(.btn) { font-weight: 500; }
[data-theme="rose"] .menu a:not(.btn)::after { background: var(--accent); }

/* Hero */
[data-theme="rose"] .hero { padding: 150px 0 100px; }
[data-theme="rose"] .hero__in { grid-template-columns: 1.08fr .92fr; gap: 70px; }
[data-theme="rose"] .hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.3rem); line-height: 1.02; }
[data-theme="rose"] .hero h1 em { display: block; }
[data-theme="rose"] .lead { font-weight: 400; color: var(--ink-soft); font-size: 1.1rem; }
[data-theme="rose"] .hero__facts { gap: 0; border-top: 1px solid var(--line); }
[data-theme="rose"] .hero__facts li { padding: 0 28px; border-left: 1px solid var(--line); }
[data-theme="rose"] .hero__facts li:first-child { padding-left: 0; border-left: 0; }
[data-theme="rose"] .hero__facts b { font-weight: 360; font-size: 2.3rem; color: var(--accent-deep); }
[data-theme="rose"] .hero__facts span { color: var(--ink-soft); }
[data-theme="rose"] .gold-line { height: 1px; background: var(--line); }

/* Arco con marco doble, sello giratorio y tarjetas flotantes */
.art--arch { min-height: 520px; }
.arch {
  margin: 0; width: min(360px, 78%); aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 26px 26px;
  box-shadow: 0 0 0 10px #fbf6f4, 0 0 0 11px #d4a088, 0 50px 80px -40px rgba(61, 20, 48, .55);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch:hover img { transform: scale(1.04); }
.seal { position: absolute; top: -6px; right: 2%; width: 150px; aspect-ratio: 1; display: grid; place-items: center; }
.seal svg { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.seal text { font: 600 12.5px "Manrope", sans-serif; letter-spacing: .2em; fill: #3d1430; }
.seal img { width: 74px; height: 74px; border-radius: 50%; box-shadow: 0 0 0 1px #d4a088, 0 12px 24px -10px rgba(61, 20, 48, .6); }
.fcard {
  position: absolute; display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 40px -22px rgba(61, 20, 48, .45);
  font-size: .78rem; color: var(--ink-soft); animation: float2 6s ease-in-out infinite;
}
.fcard b { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.05rem; color: #3d1430; }
.fcard::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 4px rgba(212, 160, 136, .25); }
.fcard--a { left: 0; top: 38%; }
.fcard--b { right: 0; bottom: 10%; animation-delay: -3s; }
@keyframes float2 { 50% { transform: translateY(-10px); } }

/* Barra de confianza */
[data-theme="rose"] .trust { background: transparent; border-color: var(--line); }
[data-theme="rose"] .trust i { background: transparent; border: 1px solid var(--hi-dark); color: var(--hi-dark); font-size: .8rem; }
[data-theme="rose"] .trust b { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }

/* Cirugías */
[data-theme="rose"] .tabs { gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; display: inline-flex; }
[data-theme="rose"] .tab { border: 0; color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
[data-theme="rose"] .tab:hover { background: var(--accent-soft); }
[data-theme="rose"] .tab.is-active { background: var(--primary); color: #fff; }
[data-theme="rose"] .card {
  padding: 36px 30px 28px; border: 1px solid transparent; box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(61, 20, 48, .3);
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(var(--line), var(--line)) border-box;
}
[data-theme="rose"] .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; }
[data-theme="rose"] .card__n { position: absolute; top: 22px; right: 26px; margin: 0; font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; font-style: italic; line-height: 1; color: transparent; -webkit-text-stroke: 1px #d4a088; letter-spacing: 0; }
[data-theme="rose"] .card h3 { font-size: 1.55rem; color: var(--accent-deep); padding-right: 50px; }
[data-theme="rose"] .card__ideal { border-top: 1px solid var(--line); }
[data-theme="rose"] .card__ideal b { color: var(--hi-dark); }
[data-theme="rose"] .card__link { font-weight: 600; color: var(--accent-deep); }

/* Método: números romanos y línea rosa-oro */
[data-theme="rose"] .steps { counter-reset: st; }
[data-theme="rose"] .step { counter-increment: st; padding-top: 86px; }
[data-theme="rose"] .step::before { top: 32px; left: 72px; right: -20px; height: 1px; background: linear-gradient(90deg, #d4a088, rgba(212, 160, 136, .15)); }
[data-theme="rose"] .step__n { width: 64px; height: 64px; font-size: 0; box-shadow: none; border: 1px solid #d4a088; background: var(--surface); }
[data-theme="rose"] .step__n::before { content: counter(st, upper-roman); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; font-weight: 400; color: var(--accent-deep); }
[data-theme="rose"] .step h3 { font-size: 1.45rem; }

/* Pago a tu ritmo */
[data-theme="rose"] .calc { border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
[data-theme="rose"] .calc__screen { border-radius: 16px; box-shadow: none; background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(180, 70, 111, .45), transparent 60%), #3d1430; }
[data-theme="rose"] .calc__screen output { font-family: var(--font-display); font-weight: 360; letter-spacing: -.01em; }
[data-theme="rose"] .calc__note { color: var(--ink-soft); }
[data-theme="rose"] .seg { background: var(--bg-alt); border-radius: 999px; }
[data-theme="rose"] .seg span { border-radius: 999px; }
[data-theme="rose"] .preset { border-radius: 18px; position: relative; padding-left: 26px; }
[data-theme="rose"] .preset::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--gold-grad); }
[data-theme="rose"] .preset b { font-weight: 400; font-size: 1.35rem; }

/* Preguntas frecuentes en lista fina */
[data-theme="rose"] .faq details { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
[data-theme="rose"] .faq details[open] { box-shadow: none; }
[data-theme="rose"] .faq summary { font-weight: 400; font-size: 1.4rem; padding-left: 0; color: var(--ink); }
[data-theme="rose"] .faq summary::after { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d4a088; display: grid; place-items: center; font-size: 1.1rem; line-height: 1; color: var(--hi-dark); }
[data-theme="rose"] .faq details p { padding-left: 0; }

/* Agenda */
[data-theme="rose"] .wiz { border: 0; border-radius: 26px; box-shadow: 0 0 0 1px rgba(235, 199, 173, .3), 0 50px 90px -40px rgba(0, 0, 0, .7); }
[data-theme="rose"] .pane h3 { font-weight: 400; }
[data-theme="rose"] .checklist li::before { background: transparent; border: 1px solid var(--agenda-em); color: var(--agenda-em); }
[data-theme="rose"] .checklist--plain li::before { border: 0; }
[data-theme="rose"] .ticket .t-folio strong { font-weight: 400; color: var(--accent-deep); }
[data-theme="rose"] .footer__tag { font-weight: 300; }

/* =========================================================
   OVERRIDES: TEMA LAVANDA (soñador, editorial, degradados)
   ========================================================= */
[data-theme="lavanda"] h1, [data-theme="lavanda"] h2 { font-weight: 600; letter-spacing: -.02em; }
[data-theme="lavanda"] h3 { font-weight: 600; }
/* Palabras destacadas con degradado violeta → rosa → dorado */
[data-theme="lavanda"] em {
  font-style: italic; font-weight: 500; color: transparent;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  padding-right: .06em;
}
[data-theme="lavanda"] .eyebrow { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); letter-spacing: .14em; font-weight: 600; font-size: .7rem; }
[data-theme="lavanda"] .sec-head--light .eyebrow, [data-theme="lavanda"] .agenda .eyebrow { background: rgba(255, 255, 255, .12); color: #f3d38a; }
[data-theme="lavanda"] .btn { font-weight: 600; }
[data-theme="lavanda"] .btn--gold:hover { box-shadow: 0 22px 40px -14px rgba(196, 54, 154, .7); }
[data-theme="lavanda"] .btn--ghost { border-color: rgba(59, 29, 94, .25); color: var(--accent-deep); background: rgba(255, 255, 255, .6); }
[data-theme="lavanda"] .brand__txt { font-style: italic; font-weight: 600; letter-spacing: 0; }
[data-theme="lavanda"] .brand__txt b { color: var(--accent); font-style: normal; }
[data-theme="lavanda"] .footer .brand__txt b { color: #f3d38a; }
[data-theme="lavanda"] .menu a:not(.btn)::after { background: var(--gold-grad); height: 2px; }
[data-theme="lavanda"] .nav.is-scrolled { box-shadow: 0 10px 30px -20px rgba(59, 29, 94, .4); }

[data-theme="lavanda"] .hero { padding: 150px 0 110px; }
[data-theme="lavanda"] .hero h1 { font-size: clamp(3.2rem, 7.4vw, 6.2rem); line-height: .98; }
[data-theme="lavanda"] .hero h1 em { display: inline-block; }
[data-theme="lavanda"] .lead { font-weight: 300; color: var(--ink-soft); font-size: 1.15rem; }
[data-theme="lavanda"] .hero__facts { border-top: 0; gap: 14px; }
[data-theme="lavanda"] .hero__facts li { background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); border: 1px solid #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 14px 30px -22px rgba(59, 29, 94, .45); }
[data-theme="lavanda"] .hero__facts b { font-style: italic; color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
[data-theme="lavanda"] .hero__facts span { color: var(--ink-soft); }
[data-theme="lavanda"] .gold-line { height: 4px; background: var(--gold-grad); }

/* Blob que respira + órbita + destellos */
.art--blob { min-height: 500px; }
.blob {
  position: absolute; width: min(440px, 88%); aspect-ratio: 1;
  background: var(--gold-grad); opacity: .9; filter: saturate(1.1);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: blob 12s ease-in-out infinite; box-shadow: 0 40px 90px -30px rgba(142, 63, 196, .7);
}
@keyframes blob {
  33% { border-radius: 63% 37% 41% 59% / 56% 62% 38% 44%; transform: rotate(8deg) scale(1.03); }
  66% { border-radius: 38% 62% 55% 45% / 63% 38% 62% 37%; transform: rotate(-6deg) scale(.98); }
}
.blob__logo { position: relative; width: min(290px, 60%); border-radius: 50%; box-shadow: 0 0 0 8px rgba(255, 255, 255, .55), 0 30px 60px -20px rgba(36, 19, 58, .7); }
.orbit { position: absolute; width: min(500px, 98%); aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(142, 63, 196, .35); animation: spin 30s linear infinite; }
.orbit i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(224, 85, 155, .35), 0 0 20px rgba(224, 85, 155, .8); }
.orbit i:nth-child(1) { top: -7px; left: 50%; margin-left: -7px; }
.orbit i:nth-child(2) { bottom: 14%; right: 4%; background: #f3d38a; }
.orbit i:nth-child(3) { bottom: 14%; left: 4%; width: 10px; height: 10px; }
.spark { position: absolute; color: #f0b45a; font-size: 1.6rem; animation: twinkle 3s ease-in-out infinite; text-shadow: 0 0 14px rgba(240, 180, 90, .8); }
.spark--1 { top: 6%; left: 14%; }
.spark--2 { top: 18%; right: 6%; font-size: 1.1rem; animation-delay: -1s; color: #e0559b; }
.spark--3 { bottom: 8%; right: 22%; font-size: 1.3rem; animation-delay: -2s; color: #8e3fc4; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.7) rotate(25deg); } }
.glow-tag {
  position: absolute; left: 2%; bottom: 14%; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px); border: 1px solid #fff;
  font-family: "Playfair Display", serif; font-style: italic; font-weight: 600; color: #3b1d5e;
  box-shadow: 0 18px 36px -18px rgba(59, 29, 94, .55); animation: float2 6s ease-in-out infinite;
}

[data-theme="lavanda"] .marquee__track { font-weight: 500; }
[data-theme="lavanda"] #cirugias { background: radial-gradient(ellipse 40% 40% at 100% 0%, rgba(224, 85, 155, .1), transparent 70%), radial-gradient(ellipse 40% 40% at 0% 100%, rgba(142, 63, 196, .1), transparent 70%); }
[data-theme="lavanda"] .tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -20px rgba(59, 29, 94, .5); }
[data-theme="lavanda"] .tab { border: 0; color: var(--ink-soft); font-weight: 500; }
[data-theme="lavanda"] .tab.is-active { background: var(--btn-bg); color: #fff; }
[data-theme="lavanda"] .card { border: 1px solid #fff; background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -30px rgba(59, 29, 94, .5); overflow: hidden; }
[data-theme="lavanda"] .card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: var(--gold-grad); opacity: 0; filter: blur(40px); transition: opacity .5s; }
[data-theme="lavanda"] .card:hover { border-color: #fff; }
[data-theme="lavanda"] .card:hover::after { opacity: .35; }
[data-theme="lavanda"] .card__n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; margin-bottom: 12px; }
[data-theme="lavanda"] .card h3 { font-size: 1.6rem; }
[data-theme="lavanda"] .card__ideal { border-top: 1px solid var(--line); }

[data-theme="lavanda"] .slab { font-style: italic; font-weight: 600; }
[data-theme="lavanda"] .slab span { color: transparent; background: linear-gradient(120deg, #f3d38a, #ff9ccc); -webkit-background-clip: text; background-clip: text; }
[data-theme="lavanda"] .game__card { border-radius: 28px; border: 6px solid rgba(255, 255, 255, .9); }
[data-theme="lavanda"] .game__card--win { box-shadow: 0 0 0 3px #f3d38a, 0 30px 60px -22px rgba(0, 0, 0, .6); }

[data-theme="lavanda"] .steps { gap: 18px; }
[data-theme="lavanda"] .step { background: #fff; border-radius: 26px; padding: 30px 24px; box-shadow: 0 20px 40px -30px rgba(59, 29, 94, .5); }
[data-theme="lavanda"] .step::before { display: none; }
[data-theme="lavanda"] .step__n { position: static; margin-bottom: 18px; width: 54px; height: 54px; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; box-shadow: 0 12px 24px -10px rgba(196, 54, 154, .7); }

[data-theme="lavanda"] .calc { border-radius: 30px; box-shadow: var(--shadow); border: 1px solid #fff; }
[data-theme="lavanda"] .calc__screen { border-radius: 20px; box-shadow: none; background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(224, 85, 155, .55), transparent 60%), #24133a; }
[data-theme="lavanda"] .calc__screen output { font-family: var(--font-display); font-style: italic; }
[data-theme="lavanda"] .calc__note { color: var(--ink-soft); }
[data-theme="lavanda"] .seg { background: var(--bg-alt); border-radius: 999px; }
[data-theme="lavanda"] .seg span { border-radius: 999px; }
[data-theme="lavanda"] .seg input:checked + span { background: var(--btn-bg); }
[data-theme="lavanda"] .preset { border-radius: 22px; border-color: #fff; box-shadow: 0 14px 30px -24px rgba(59, 29, 94, .5); }
[data-theme="lavanda"] .preset[aria-pressed="true"] { background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; border: 2px solid transparent; }
[data-theme="lavanda"] .preset b { font-style: italic; }

[data-theme="lavanda"] .faq details { border-radius: 22px; border-color: #fff; box-shadow: 0 14px 30px -26px rgba(59, 29, 94, .5); }
[data-theme="lavanda"] .faq details[open] { border-color: #fff; box-shadow: inset 4px 0 0 #c4369a, var(--shadow); }
[data-theme="lavanda"] .faq summary::after { color: #c4369a; }

[data-theme="lavanda"] .wiz { border: 0; border-radius: 30px; }
[data-theme="lavanda"] .chip input:checked + span, [data-theme="lavanda"] .slot[aria-pressed="true"], [data-theme="lavanda"] .cal__day[aria-pressed="true"] { background: var(--btn-bg); border-color: transparent; }
[data-theme="lavanda"] .done__icon, [data-theme="lavanda"] .wiz__steps li.is-done span { background: var(--btn-bg); border-color: transparent; }

/* =========================================================
   OVERRIDES: TEMA ATARDECER (cálido, audaz, tipo sticker)
   ========================================================= */
[data-theme="atardecer"] h1, [data-theme="atardecer"] h2 { font-weight: 800; letter-spacing: -.04em; line-height: .95; }
[data-theme="atardecer"] h3 { font-weight: 700; letter-spacing: -.02em; }
/* Palabras destacadas en letra manuscrita */
[data-theme="atardecer"] em {
  font-family: var(--font-script); font-style: normal; font-weight: 400; letter-spacing: 0;
  color: var(--em); font-size: 1.18em; line-height: .8; display: inline-block; padding: 0 .08em; transform: rotate(-3deg);
}
[data-theme="atardecer"] .eyebrow {
  display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--edge); color: #fff6ee;
  letter-spacing: .12em; font-weight: 700; font-size: .7rem; transform: rotate(-2deg);
}
[data-theme="atardecer"] .sec-head--light .eyebrow { background: #fff6ee; color: var(--edge); }
[data-theme="atardecer"] .agenda .eyebrow { background: #ffc56b; color: var(--edge); }

[data-theme="atardecer"] .btn { border: 2px solid var(--edge); font-weight: 700; box-shadow: 4px 4px 0 var(--edge); }
[data-theme="atardecer"] .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--edge); }
[data-theme="atardecer"] .btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--edge); }
[data-theme="atardecer"] .btn--ghost { background: #fffdfb; color: var(--edge); opacity: 1; }
[data-theme="atardecer"] .btn--line { background: #fffdfb; border-color: var(--edge); color: var(--edge); }
[data-theme="atardecer"] .btn--text { border: 0; box-shadow: none; }
[data-theme="atardecer"] .brand__txt { font-weight: 800; letter-spacing: -.03em; font-size: 1.5rem; }
[data-theme="atardecer"] .brand__txt b { font-family: var(--font-script); font-weight: 400; color: var(--accent); font-size: 1.3em; letter-spacing: 0; }
[data-theme="atardecer"] .footer .brand__txt b { color: #ffc56b; }
[data-theme="atardecer"] .menu a:not(.btn) { font-weight: 600; }
[data-theme="atardecer"] .menu a:not(.btn)::after { background: var(--accent); height: 3px; border-radius: 3px; }
[data-theme="atardecer"] .nav.is-scrolled { box-shadow: 0 2px 0 var(--edge); }

[data-theme="atardecer"] .hero { padding: 150px 0 110px; }
[data-theme="atardecer"] .hero h1 { font-size: clamp(3.2rem, 7.8vw, 6.6rem); }
[data-theme="atardecer"] .lead { font-weight: 400; color: var(--ink-soft); font-size: 1.12rem; }
[data-theme="atardecer"] .hero__facts { border-top: 2px solid var(--edge); }
[data-theme="atardecer"] .hero__facts b { font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
[data-theme="atardecer"] .hero__facts span { color: var(--ink-soft); }
[data-theme="atardecer"] .gold-line { height: 10px; background: var(--gold-grad); border-top: 2px solid var(--edge); }

/* Sol + foto sticker + sello */
.art--sun { min-height: 520px; }
.sun { position: absolute; width: min(430px, 86%); aspect-ratio: 1; border-radius: 50%; background: var(--gold-grad); border: 2px solid #2d140c; box-shadow: 10px 10px 0 #2d140c; }
.sun::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed rgba(45, 20, 12, .35); }
.snap {
  position: relative; margin: 0; width: min(300px, 62%); padding: 10px 10px 34px; background: #fffdfb;
  border: 2px solid #2d140c; border-radius: 10px; box-shadow: 8px 8px 0 #2d140c; transform: rotate(-6deg);
  transition: transform .5s var(--ease);
}
.snap:hover { transform: rotate(-1deg) scale(1.03); }
.snap img { border-radius: 4px; border: 2px solid #2d140c; }
.snap::after { content: "una tuneada ✿"; position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font: 400 1.5rem "Great Vibes", cursive; color: #2d140c; }
.sticker { position: absolute; right: 2%; top: 4%; width: 140px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #ffc56b; border: 2px solid #2d140c; box-shadow: 4px 4px 0 #2d140c; transform: rotate(12deg); }
.sticker svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.sticker text { font: 800 14px "Bricolage Grotesque", sans-serif; fill: #2d140c; letter-spacing: .1em; }
.sticker b { font: 800 1.6rem "Bricolage Grotesque", sans-serif; color: #2d140c; letter-spacing: -.04em; }
.star { position: absolute; color: #f04a3e; font-size: 2rem; -webkit-text-stroke: 1.5px #2d140c; animation: twinkle 3.4s ease-in-out infinite; }
.star--1 { left: 4%; top: 22%; }
.star--2 { right: 12%; bottom: 8%; color: #ffc56b; font-size: 2.4rem; animation-delay: -1.5s; }

[data-theme="atardecer"] .marquee { transform: rotate(-1.5deg); margin: -6px -10px 0; border-block: 2px solid var(--edge); position: relative; z-index: 2; }
[data-theme="atardecer"] .marquee__track { font-family: var(--font-display); font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.4rem; }

[data-theme="atardecer"] .tabs { gap: 8px; }
[data-theme="atardecer"] .tab { border: 2px solid var(--edge); color: var(--edge); font-weight: 700; background: #fffdfb; }
[data-theme="atardecer"] .tab.is-active { background: var(--edge); color: #fff6ee; box-shadow: 3px 3px 0 var(--accent); }
[data-theme="atardecer"] .card { border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--edge); }
[data-theme="atardecer"] .card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--edge); border-color: var(--edge); }
[data-theme="atardecer"] .card__n { font-family: var(--font-display); font-style: normal; font-weight: 800; letter-spacing: -.02em; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); border: 2px solid var(--edge); color: var(--edge); font-size: .95rem; transform: rotate(-8deg); }
[data-theme="atardecer"] .card h3 { font-size: 1.5rem; }
[data-theme="atardecer"] .card__ideal { border-top: 2px dashed var(--line); }
[data-theme="atardecer"] .card__link { font-weight: 700; }

[data-theme="atardecer"] .sec-head--light h2 { color: #fff; }
[data-theme="atardecer"] .slab { font-weight: 800; letter-spacing: -.04em; }
[data-theme="atardecer"] .slab span { font-family: var(--font-script); font-weight: 400; color: #ffe08a; font-size: 1.15em; letter-spacing: 0; }
[data-theme="atardecer"] .game__card { border: 3px solid var(--edge); box-shadow: 8px 8px 0 var(--edge); border-radius: 16px; }
[data-theme="atardecer"] .game__card--win { box-shadow: 8px 8px 0 var(--edge), 0 0 0 6px #ffc56b; }
[data-theme="atardecer"] .game__card figcaption { border: 2px solid var(--edge); }

[data-theme="atardecer"] .steps { gap: 20px; }
[data-theme="atardecer"] .step { background: #fffdfb; border: 2px solid var(--edge); border-radius: 18px; padding: 28px 22px; box-shadow: 6px 6px 0 var(--edge); }
[data-theme="atardecer"] .step::before { display: none; }
[data-theme="atardecer"] .step__n { position: static; margin-bottom: 16px; border: 2px solid var(--edge); box-shadow: 3px 3px 0 var(--edge); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
[data-theme="atardecer"] .step:nth-child(even) { transform: rotate(1deg); }
[data-theme="atardecer"] .step:nth-child(odd) { transform: rotate(-1deg); }
[data-theme="atardecer"] .step.reveal:not(.is-in) { transform: translateY(28px); }

[data-theme="atardecer"] .calc { border: 2px solid var(--edge); box-shadow: 8px 8px 0 var(--edge); border-radius: 22px; }
[data-theme="atardecer"] .calc__screen { border-radius: 14px; box-shadow: none; border: 2px solid var(--edge); }
[data-theme="atardecer"] .calc__screen output { font-weight: 800; letter-spacing: -.03em; }
[data-theme="atardecer"] .calc__note { color: var(--ink-soft); }
[data-theme="atardecer"] input[type=number], [data-theme="atardecer"] input[type=text], [data-theme="atardecer"] input[type=tel], [data-theme="atardecer"] input[type=email], [data-theme="atardecer"] select, [data-theme="atardecer"] textarea { border: 2px solid var(--edge); }
[data-theme="atardecer"] .seg { background: transparent; border: 2px solid var(--edge); border-radius: 14px; }
[data-theme="atardecer"] .seg input:checked + span { background: var(--accent); color: #fff; }
[data-theme="atardecer"] .preset { border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); }
[data-theme="atardecer"] .preset[aria-pressed="true"] { background: #ffe0c7; box-shadow: 4px 4px 0 var(--accent); }
[data-theme="atardecer"] .preset b { font-weight: 800; letter-spacing: -.02em; }

[data-theme="atardecer"] .faq details { border: 2px solid var(--edge); border-radius: 16px; }
[data-theme="atardecer"] .faq details[open] { box-shadow: 6px 6px 0 var(--accent); border-color: var(--edge); }
[data-theme="atardecer"] .faq summary { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
[data-theme="atardecer"] .faq summary::after { color: var(--accent); font-weight: 700; }

[data-theme="atardecer"] .wiz { border: 2px solid var(--edge); box-shadow: 10px 10px 0 #f04a3e; border-radius: 22px; }
[data-theme="atardecer"] .chip span, [data-theme="atardecer"] .mode span, [data-theme="atardecer"] .slot, [data-theme="atardecer"] .cal__nav, [data-theme="atardecer"] .conds, [data-theme="atardecer"] .ticket { border-width: 2px; border-color: var(--edge); }
[data-theme="atardecer"] .chip input:checked + span { background: var(--accent); border-color: var(--edge); color: #fff; }
[data-theme="atardecer"] .pane h3 { font-weight: 800; letter-spacing: -.03em; }
[data-theme="atardecer"] .checklist li::before { color: var(--edge); }
[data-theme="atardecer"] .ticket .t-folio strong { font-weight: 800; letter-spacing: -.02em; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__in, .cuentas__in, .agenda__in { grid-template-columns: 1fr; gap: 48px; }
  .agenda__copy { position: static; }
  .hero { padding-top: 120px; }
  .hero__art { order: -1; }
  [data-theme="clinico"] .hero__art { order: 0; }
  [data-theme="clinico"] .qb { justify-self: stretch; width: 100%; }
  .poster { width: min(300px, 70%); }
  .ring { width: 90%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(2)::before { display: none; }
  .trust__in { grid-template-columns: repeat(2, 1fr); }
  .game__row { grid-template-columns: 1fr 1fr; }
  .game__card:first-child { grid-column: 1 / -1; max-height: 340px; }
  .section { padding: 84px 0; }
  [data-theme="noir"] .card { grid-template-columns: 54px 1fr; grid-template-areas: "n t" "n d" "n i" "n l"; row-gap: 8px; }
  [data-theme="noir"] .card__link { justify-self: start; margin-top: 12px; }
  [data-theme="noir"] .hero::before { inset: 90px 14px 20px; }

  .burger { display: block; }
  .menu {
    position: fixed; left: 0; right: 0; top: 0; padding: 92px 24px 32px;
    flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--menu-bg); color: var(--nav-ink); backdrop-filter: blur(12px);
    transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
    z-index: -1; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4);
  }
  .menu.is-open { transform: none; visibility: visible; }
  .menu a:not(.btn) { font-size: 1.2rem; }
  [data-theme="clinico"] .menu { padding-top: 130px; }
  [data-theme="rose"] .hero__in { grid-template-columns: 1fr; gap: 56px; }
  [data-theme="rose"] .hero__art { order: 0; }
  .art--arch { min-height: 0; padding: 20px 0; }
  [data-theme="rose"] .step:nth-child(2)::before { display: none; }
}
@media (max-width: 680px) {
  .seal { width: 112px; right: 0; top: 0; }
  .seal img { width: 56px; height: 56px; }
  .art--blob, .art--sun { min-height: 360px; }
  .glow-tag { font-size: .85rem; padding: 8px 14px; }
  .sticker { width: 104px; right: 0; }
  .sticker b { font-size: 1.2rem; }
  [data-theme="atardecer"] .marquee__track { font-size: 1.1rem; }
  .fcard { padding: 10px 14px; font-size: .7rem; }
  .fcard b { font-size: .92rem; }
  .fcard--a { top: 46%; }
  [data-theme="rose"] .step::before { display: none; }
  [data-theme="rose"] .hero__facts li { padding: 0 14px; }
  [data-theme="rose"] .tabs { display: flex; }
  [data-theme="rose"] .tab { flex: 1; padding: 9px 6px; }
}
@media (max-width: 680px) {
  .grid, .steps, .trust__in { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .game__row { grid-template-columns: 1fr; }
  .game__card:first-child { max-height: none; }
  .badge { width: 96px; height: 96px; font-size: .95rem; }
  .brand__txt { font-size: 1.45rem; }
  .calc { padding: 24px 20px; }
  .wiz { padding: 24px 18px; border-radius: 18px; }
  .sched { grid-template-columns: 1fr; }
  .slots { border-left: 0; padding-left: 0; border-top: 1px solid var(--input-border); padding-top: 18px; }
  .two, #conds, .modes, .ticket { grid-template-columns: 1fr; }
  .wiz__steps em { font-size: .7rem; }
  .actions { flex-wrap: wrap; }
  .themes__label, .themes button span { display: none; }
  .themes button { padding: 6px; }
  .hero__facts li, [data-theme="noir"] .hero__facts li { padding: 0 16px; }
  [data-theme="clinico"] .topstrip span { display: none; }
  [data-theme="clinico"] .topstrip__in { justify-content: center; }
  [data-theme="clinico"] .tabs { display: flex; }
  [data-theme="clinico"] .tab { flex: 1; padding: 9px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Impresión: solo el comprobante de la cita */
@media print {
  .nav, .themes, .footer, main > *:not(#agenda), .agenda__copy, .wiz__steps, .actions, .done__icon { display: none !important; }
  body, .agenda, .wiz { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .agenda__in { display: block; }
  .section { padding: 0; }
}

/* =========================================================
   CELULAR — ajustes finales (van al final para ganar a los temas)
   ========================================================= */
.dock { display: none; }

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }

  /* Portada: primero el mensaje y el botón, después la imagen */
  .hero, [data-theme] .hero { padding: 104px 0 64px; }
  [data-theme="clinico"] .hero { padding-top: 120px; }
  .hero__in, [data-theme] .hero__in { gap: 36px; }
  .hero__art, [data-theme] .hero__art { order: 1; }
  [data-theme="noir"] .hero__art { order: -1; }
  .hero h1, [data-theme] .hero h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); line-height: 1.05; margin-bottom: 16px; }
  .eyebrow { font-size: .68rem; letter-spacing: .16em; margin-bottom: 14px; }
  .lead, [data-theme] .lead { font-size: 1rem; }
  .hero__cta { margin: 24px 0 30px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { gap: 10px 0; }
  .hero__facts b { font-size: 1.7rem; }
  [data-theme="lavanda"] .hero__facts { gap: 8px; }
  [data-theme="lavanda"] .hero__facts li { padding: 10px 12px; flex: 1; }

  /* Imagen de portada más compacta */
  .poster { width: min(230px, 64%); }
  .ring { width: 78%; }
  .badge { width: 84px; height: 84px; font-size: .85rem; right: 6%; }
  .art--logo img { width: 170px; }
  .art--logo .ring { width: 220px; }
  .art--arch, .art--blob, .art--sun { min-height: 0; padding: 10px 0; }
  .arch { width: min(240px, 66%); }
  .blob { width: min(280px, 78%); }
  .blob__logo { width: min(180px, 50%); }
  .orbit { width: min(320px, 92%); }
  .glow-tag { bottom: 4%; }
  .sun { width: min(290px, 80%); }
  .snap { width: min(210px, 58%); }
  .fcard--a { left: 2%; top: 30%; }
  .fcard--b { right: 2%; bottom: 4%; }
  [data-theme="noir"] .hero::before { inset: 84px 10px 16px; }

  /* Secciones y títulos */
  .section, [data-theme] .section { padding: 64px 0; }
  .game { padding: 64px 0; }
  h2, [data-theme] h2 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .sec-head { margin-bottom: 28px; }
  .marquee__track { font-size: 1.15rem; gap: 22px; }

  /* Áreas táctiles de al menos 44 px */
  .card__link { display: inline-flex; align-items: center; min-height: 44px; }
  [data-theme="noir"] .card__link { min-height: 44px; }
  .menu a:not(.btn) { display: flex; align-items: center; min-height: 44px; }
  .footer__links { gap: 0 18px; }
  .footer__links a, .footer__links button { display: inline-flex; align-items: center; min-height: 44px; }
  .tab { min-height: 44px; }
  .cal__nav { width: 44px; height: 44px; }
  .slot { min-height: 44px; }
  .consent { padding: 4px 0; }

  /* Agenda: el formulario justo después del título */
  .agenda__in { row-gap: 18px; }
  .agenda__copy { display: contents; }
  .agenda__copy > * { order: 1; }
  .agenda__copy .info { order: 3; margin-top: 18px; }
  .wiz { order: 2; }
  .espejito { display: none; }
  .agenda__lead { margin: 12px 0 4px; }
  .actions .btn { flex: 1 1 auto; }
  .wiz__steps { margin-bottom: 22px; }
  .pane h3, [data-theme] .pane h3 { font-size: 1.4rem; }
  .ticket { padding: 18px; }

  /* Barra inferior fija: agendar + tema */
  .dock {
    display: flex; align-items: center; gap: 8px; position: fixed; z-index: 70;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 7px; border-radius: 999px; background: rgba(20, 12, 18, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
    transition: transform .35s var(--ease), opacity .35s;
  }
  .dock__cta { flex: 1; padding: 13px 18px; font-size: .92rem; }
  [data-theme="atardecer"] .dock__cta { box-shadow: 3px 3px 0 var(--edge); }
  .dock__theme { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); display: grid; place-items: center; cursor: pointer; }
  .dock__theme .sw { width: 28px; height: 28px; }
  .dock.is-compact { left: auto; }
  .dock.is-compact .dock__cta { display: none; }
  body.consent-pending .dock { opacity: 0; pointer-events: none; transform: translateY(20px); }

  /* El selector de temas se vuelve un panel que abre el círculo de la barra */
  .themes { display: none; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); justify-content: space-between; padding: 8px; border-radius: 22px; }
  .themes.is-open { display: flex; animation: paneIn .3s var(--ease); }
  .themes__label { display: none; }
  .themes button, .themes button[aria-checked="true"] { padding: 6px; }
  .themes button span, .themes button[aria-checked="true"] span { display: none; }
  .themes .sw { width: 34px; height: 34px; }
  .themes button[aria-checked="true"] .sw { box-shadow: 0 0 0 3px #fff, inset 0 0 0 1.5px rgba(255, 255, 255, .5); }

  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .legal-page .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .cookie-banner { bottom: calc(12px + env(safe-area-inset-bottom)); }

  /* Páginas legales */
  .legal { padding: 40px 0 60px; }
  .legal h1 { font-size: 2.1rem; }
  .legal h2 { font-size: 1.3rem; margin-top: 32px; }
  .legal p, .legal li { font-size: .95rem; }
  .legal__toc { padding: 14px 16px 14px 34px; }
  .legal__toc a { display: inline-block; padding: 4px 0; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1, [data-theme] .hero h1 { font-size: 2.2rem; }
  .dock__cta { font-size: .85rem; padding: 12px 14px; }
  .cal__day { font-size: .82rem; }
}

@media (max-width: 680px) {
  .hero__facts, [data-theme] .hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hero__facts li, [data-theme] .hero__facts li { padding: 0 10px; border-left: 1px solid var(--line); min-width: 0; }
  .hero__facts li:first-child, [data-theme] .hero__facts li:first-child { padding-left: 0; border-left: 0; }
  .hero__facts span { max-width: none; font-size: .72rem; }
  [data-theme="rosa"] .hero__facts li { border-left-color: rgba(244, 220, 154, .35); }
  [data-theme="lavanda"] .hero__facts { gap: 8px; }
  [data-theme="lavanda"] .hero__facts li, [data-theme="lavanda"] .hero__facts li:first-child { padding: 10px; border-left: 1px solid #fff; }
}

/* Las etiquetas de los pasos de la agenda no heredan los estilos decorativos de <em> */
[data-theme] .wiz__steps em {
  font-family: var(--font-body); font-style: normal; font-weight: inherit; font-size: inherit; line-height: inherit;
  color: inherit; transform: none; padding: 0; display: inline;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
}
