/* ============================================================
   SlowRushLab — hoja de estilo única.
   Azules profundos + estrella dorada. Infantil sin ser de bebé:
   formas redondeadas y generosas, tipografía clara, nada de
   diminutivos visuales. Funciona igual para 3 que para 18.
   Servida por nosotros: ni fuentes ni iconos de terceros (§7.2).
   ============================================================ */

/* ============================================================
   TEMAS
   Cada tema solo cambia variables: canales de color (para las
   transparencias), colores con nombre, redondeos, tipografía y el
   tono de las estrellas. La estructura del HTML no cambia nunca.
   ============================================================ */

:root {
  /* canales RGB para poder usar transparencias temáticas */
  --c-accent: 47 124 255;
  --c-accent2: 91 157 255;
  --c-accent-deep: 14 62 168;
  --c-line: 159 208 255;
  --c-deep: 4 13 36;
  --c-deep2: 6 20 54;
  --c-surface: 10 32 80;
  --c-card: 18 48 99;
  --c-glow: 20 58 134;
  --c-star: 255 211 106;
  --c-star2: 245 166 35;
  --c-mint: 79 224 176;
  --c-coral: 255 122 122;
  --c-shadow: 3 10 28;
  --accent-deep: #0e3ea8;
  --bg-glow: #143a86;
  --icon-filter: none;
  --font-scale: 17px;
}

/* ---- 2. ROSA (más femenino, cualquier edad) ---- */
html[data-theme="rosa"] {
  --c-accent: 226 106 168;
  --c-accent2: 240 150 196;
  --c-accent-deep: 138 40 96;
  --c-line: 255 199 226;
  --c-deep: 32 6 24;
  --c-deep2: 48 12 38;
  --c-surface: 74 22 58;
  --c-card: 94 32 74;
  --c-glow: 128 48 100;
  --c-star: 255 205 120;
  --c-star2: 240 150 60;
  --c-shadow: 26 4 20;
  --accent-deep: #8a2860;
  --bg-glow: #7a2a5e;
  --navy-950: #1c0518; --navy-900: #2a0a24; --navy-850: #350f2c; --navy-800: #451638; --navy-700: #5e2049;
  --blue-600: #d4589a; --blue-500: #e26aa8; --blue-400: #f096c4;
  --sky-300: #ffc7e2; --sky-200: #ffe0ef;
  --text: #fff0f8; --text-dim: #e0b3cd;
  --card-solid: #3a1030;
  --icon-filter: saturate(1.05) hue-rotate(-8deg);
}

/* ---- 3. BABY NEN (3–6, azul brillante y formas muy redondas) ---- */
html[data-theme="baby-nen"] {
  --c-accent: 41 171 226;
  --c-accent2: 120 210 245;
  --c-accent-deep: 18 96 150;
  --c-line: 180 232 255;
  --c-deep: 6 30 48;
  --c-deep2: 10 44 68;
  --c-surface: 16 66 98;
  --c-card: 22 86 126;
  --c-glow: 30 120 170;
  --c-shadow: 4 22 38;
  --accent-deep: #12608e;
  --bg-glow: #1878aa;
  --navy-950: #052235; --navy-900: #082f47; --navy-850: #0b3a58; --navy-800: #0f4a6e; --navy-700: #166288;
  --blue-600: #1f9fd0; --blue-500: #29abe2; --blue-400: #78d2f5;
  --sky-300: #b4e8ff; --sky-200: #dcf4ff;
  --text: #f0fbff; --text-dim: #a9d4e8;
  --card-solid: #0d3c5a;
  --r-sm: 18px; --r: 28px; --r-lg: 38px;
  --font-scale: 18px;
  --icon-filter: saturate(1.15) brightness(1.04);
}

/* ---- 4. BABY NENA (3–6, rosa y lila muy brillantes) ---- */
html[data-theme="baby-nena"] {
  --c-accent: 240 118 178;
  --c-accent2: 200 140 245;
  --c-accent-deep: 150 50 120;
  --c-line: 255 210 236;
  --c-deep: 40 10 40;
  --c-deep2: 58 16 58;
  --c-surface: 88 28 88;
  --c-card: 110 40 110;
  --c-glow: 160 70 160;
  --c-shadow: 30 6 30;
  --accent-deep: #963278;
  --bg-glow: #a3479b;
  --navy-950: #250a26; --navy-900: #331033; --navy-850: #401440; --navy-800: #541b53; --navy-700: #70266d;
  --blue-600: #e46bb0; --blue-500: #f076b2; --blue-400: #c88cf5;
  --sky-300: #ffd2ec; --sky-200: #ffe8f5;
  --text: #fff2fb; --text-dim: #e2b8d8;
  --card-solid: #3d1440;
  --r-sm: 18px; --r: 28px; --r-lg: 38px;
  --font-scale: 18px;
  --icon-filter: saturate(1.1) hue-rotate(-6deg) brightness(1.03);
}

/* ---- 5. TEEN NEN (10–16, sobrio: grafito y azul eléctrico) ---- */
html[data-theme="teen-nen"] {
  --c-accent: 56 130 246;
  --c-accent2: 110 168 255;
  --c-accent-deep: 22 70 150;
  --c-line: 150 170 200;
  --c-deep: 10 12 16;
  --c-deep2: 16 19 25;
  --c-surface: 24 28 36;
  --c-card: 32 38 48;
  --c-glow: 30 50 90;
  --c-star: 235 190 90;
  --c-star2: 210 140 40;
  --c-shadow: 0 0 0;
  --accent-deep: #164696;
  --bg-glow: #16223a;
  --navy-950: #0a0c10; --navy-900: #0f1218; --navy-850: #141820; --navy-800: #1b202a; --navy-700: #262d3a;
  --blue-600: #2f6fe0; --blue-500: #3882f6; --blue-400: #6ea8ff;
  --sky-300: #a8b6cc; --sky-200: #d2dae6;
  --text: #eef2f7; --text-dim: #97a3b5;
  --card-solid: #161b24;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --font-scale: 16.5px;
  --icon-filter: saturate(.82) contrast(1.05);
}

/* ---- 6. TEEN NENA (10–16, sobrio: ciruela y oro rosa) ---- */
html[data-theme="teen-nena"] {
  --c-accent: 198 106 150;
  --c-accent2: 224 150 186;
  --c-accent-deep: 110 40 78;
  --c-line: 200 170 190;
  --c-deep: 16 10 16;
  --c-deep2: 24 15 24;
  --c-surface: 38 24 38;
  --c-card: 50 32 50;
  --c-glow: 80 40 72;
  --c-star: 232 186 140;
  --c-star2: 200 140 96;
  --c-shadow: 8 0 8;
  --accent-deep: #6e284e;
  --bg-glow: #331f31;
  --navy-950: #100a10; --navy-900: #171017; --navy-850: #1e151e; --navy-800: #291b29; --navy-700: #382538;
  --blue-600: #b85f88; --blue-500: #c66a96; --blue-400: #e096ba;
  --sky-300: #cbb0c2; --sky-200: #e8d8e2;
  --text: #f6eef3; --text-dim: #b49dab;
  --card-solid: #1d141d;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --font-scale: 16.5px;
  --icon-filter: saturate(.85) hue-rotate(-10deg);
}

/* ---- 7. CLAR (fondo blanco, neutro de edad) ---- */
html[data-theme="clar"] {
  --c-accent: 31 95 224;
  --c-accent2: 90 140 240;
  --c-accent-deep: 20 60 150;
  --c-line: 40 70 120;
  --c-deep: 226 234 246;
  --c-deep2: 240 244 250;
  --c-surface: 226 234 246;
  --c-card: 236 242 251;
  --c-glow: 200 220 250;
  --c-star: 236 168 32;
  --c-star2: 208 132 12;
  --c-shadow: 60 80 120;
  --accent-deep: #1443a0;
  --bg-glow: #dce8fb;
  --navy-950: #f6f8fc; --navy-900: #ffffff; --navy-850: #f2f5fa; --navy-800: #e7edf7; --navy-700: #d8e2f0;
  --blue-600: #1a54cc; --blue-500: #1f5fe0; --blue-400: #4d84ea;
  --sky-300: #2b4a7a; --sky-200: #1d3560;
  --text: #101a2c; --text-dim: #58657d;
  --line: rgb(var(--c-line) / .18);
  --line-strong: rgb(var(--c-line) / .32);
  --card: #ffffff;
  --card-solid: #ffffff;
  --shadow: 0 12px 30px rgb(var(--c-shadow) / .16);
  --icon-filter: none;
}
html[data-theme="clar"] body {
  background-color: #f6f8fc;
  background-image:
    radial-gradient(70rem 40rem at 50% -12rem, #e6eefc 0%, rgb(230 238 252 / 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f2f6fc 100%);
}
html[data-theme="clar"] .input { background: #fff; }
html[data-theme="clar"] .btn-primary, [data-theme="clar"] .btn-star { color: #fff; }
html[data-theme="clar"] .btn-star { color: #3a2400; }
html[data-theme="clar"] .btn-ghost { background: #fff; }
html[data-theme="clar"] .job, [data-theme="clar"] .stat, [data-theme="clar"] .kidcard,
html[data-theme="clar"] .chain li, [data-theme="clar"] .promises li, [data-theme="clar"] .res,
html[data-theme="clar"] .k-results, [data-theme="clar"] .progress, [data-theme="clar"] .cal-cell { background: #fff; }
html[data-theme="clar"] .cal-cell.lvl-1 { background: rgb(var(--c-accent) / .12); }
html[data-theme="clar"] .cal-cell.lvl-2 { background: rgb(var(--c-accent) / .22); }
html[data-theme="clar"] .cal-cell.lvl-3 { background: rgb(var(--c-accent) / .34); }
html[data-theme="clar"] .cal-cell.lvl-4 { background: rgb(var(--c-accent) / .48); }
html[data-theme="clar"] .cal-cell.lvl-3 .cal-day, [data-theme="clar"] .cal-cell.lvl-4 .cal-day { color: #fff; }
html[data-theme="clar"] .cal-amount { color: #8a5a00; }
html[data-theme="clar"] .flash-ok { color: #0d6b4d; }
html[data-theme="clar"] .flash-error { color: #a12020; }
html[data-theme="clar"] .job-approved { color: #0d6b4d; }
html[data-theme="clar"] .job-rejected { color: #a12020; }
html[data-theme="clar"] .p-top { background: rgb(255 255 255 / .85); }
html[data-theme="clar"] .celebrate { background: radial-gradient(60% 60% at 50% 45%, rgb(255 255 255 / .95) 0%, rgb(236 242 251 / .97) 70%); }
html[data-theme="clar"] .k-private p, [data-theme="clar"] .note { color: #5a4a10; }
html[data-theme="clar"] .grad, [data-theme="clar"] .claim-soft { color: var(--text); background: none; -webkit-text-fill-color: currentColor; }

/* ---- 8. FOSC NEUTRE (gris, sin género ni edad) ---- */
html[data-theme="fosc"] {
  --c-accent: 120 130 150;
  --c-accent2: 150 160 180;
  --c-accent-deep: 60 68 82;
  --c-line: 190 198 210;
  --c-deep: 10 11 13;
  --c-deep2: 16 17 20;
  --c-surface: 26 28 32;
  --c-card: 34 36 42;
  --c-glow: 40 44 52;
  --c-star: 224 224 224;
  --c-star2: 168 168 168;
  --c-shadow: 0 0 0;
  --accent-deep: #3c4452;
  --bg-glow: #1a1c22;
  --navy-950: #0a0b0d; --navy-900: #101114; --navy-850: #16181c; --navy-800: #1e2026; --navy-700: #2a2d34;
  --blue-600: #6d7688; --blue-500: #7c8698; --blue-400: #9aa3b4;
  --sky-300: #b0b7c2; --sky-200: #d6dae1;
  --text: #f0f1f3; --text-dim: #969ba5;
  --card-solid: #17191d;
  --r-sm: 10px; --r: 14px; --r-lg: 18px;
  --icon-filter: saturate(.25) contrast(1.06);
}

:root {
  --navy-950: #040d24;
  --navy-900: #061436;
  --navy-850: #08193f;
  --navy-800: #0a2050;
  --navy-700: #123063;
  --blue-600: #1f5fe0;
  --blue-500: #2f7cff;
  --blue-400: #5b9dff;
  --sky-300: #9fd0ff;
  --sky-200: #cfe6ff;
  --star: #ffd36a;
  --star-deep: #f5a623;
  --mint: #4fe0b0;
  --coral: #ff7a7a;
  --text: #eaf2ff;
  --text-dim: #a8c0e2;
  --line: rgb(var(--c-line) / .16);
  --line-strong: rgb(var(--c-line) / .3);
  --card: rgb(var(--c-card) / .42);
  --card-solid: #0d2352;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 14px 34px rgb(var(--c-shadow) / .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* `hidden` tiene que poder con cualquier clase: si una regla pone
   display:flex, el atributo del navegador pierde y se enseñan cosas que
   debían estar escondidas (el botón de instalar, sin ir más lejos). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--navy-950);
  background-image:
    radial-gradient(90rem 48rem at 50% -14rem, var(--bg-glow) 0%, rgb(var(--c-glow) / 0) 62%),
    radial-gradient(60rem 40rem at 92% 6%, rgb(var(--c-accent) / .18) 0%, rgb(var(--c-accent) / 0) 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-scale);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
a { color: var(--sky-200); }
.muted { color: var(--text-dim); font-size: 15px; }
.sub { color: var(--text-dim); margin-top: 8px; }
.sub-h { margin-top: 22px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; }
.neg { color: var(--coral); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.inline { display: inline; }
.empty { color: var(--text-dim); }

/* ---------------- botones ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(160deg, var(--blue-500), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgb(var(--c-accent) / .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgb(var(--c-accent) / .45); }
.btn-ghost { background: rgb(var(--c-line) / .08); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgb(var(--c-line) / .15); }
.btn-danger { background: rgb(var(--c-coral) / .14); border-color: rgb(var(--c-coral) / .4); color: #ffc9c9; }
.btn-danger:hover { background: rgb(var(--c-coral) / .22); }
.btn-star {
  background: linear-gradient(160deg, var(--star), var(--star-deep));
  color: #3a2400;
  box-shadow: 0 10px 22px rgb(var(--c-star2) / .32);
}
.btn-star:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------------- formularios ---------------- */

.form { display: flex; flex-direction: column; gap: 18px; }
.form.narrow { max-width: 26rem; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--sky-200); }
.field-label .req { color: var(--star); font-style: normal; }
.field-help { font-size: 13px; color: var(--text-dim); }
.input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgb(var(--c-deep) / .55);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 1px; border-color: transparent; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sky-300) 50%), linear-gradient(135deg, var(--sky-300) 50%, transparent 50%); background-position: right 18px center, right 12px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-dim); cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue-500); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
legend { padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--sky-200); }
.assign { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.why { font-size: 14px; color: var(--text-dim); }
.why summary { cursor: pointer; color: var(--sky-200); }
.why p { margin-top: 8px; }
.hint { font-size: 13px; color: var(--text-dim); }

/* selección de avatar e icono */
.avatars-pick, .icons-pick { display: flex; flex-wrap: wrap; gap: 12px; }
.av-pick, .ic-pick { position: relative; cursor: pointer; line-height: 0; }
.av-pick input, .ic-pick input { position: absolute; opacity: 0; }
.av-pick .av { width: 58px; height: 58px; border-radius: 50%; border: 2px solid transparent; transition: transform .2s ease, border-color .2s ease; }
.av-pick:hover .av { transform: translateY(-3px); }
.av-pick input:checked + .av { border-color: var(--star); box-shadow: 0 0 0 4px rgb(var(--c-star) / .18); }
.ic-pick .ic { width: 26px; height: 26px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--sky-200); box-sizing: content-box; }
.ic-pick input:checked + .ic { border-color: var(--star); color: var(--star); background: rgb(var(--c-star) / .1); }

/* ---------------- avisos ---------------- */

.flash { padding: 13px 18px; border-radius: var(--r-sm); font-size: 15px; margin-bottom: 18px; }
.flash-error { background: rgb(var(--c-coral) / .14); border: 1px solid rgb(var(--c-coral) / .35); color: #ffd0d0; }
.flash-ok {
  background: rgb(var(--c-mint) / .12);
  border: 1px solid rgb(var(--c-mint) / .32);
  color: #b7f5e0;
  font-weight: 700;
  animation: flashPop .6s cubic-bezier(.2, .9, .3, 1.4) both;
}
@keyframes flashPop {
  0% { transform: scale(.92); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}
.flash-info { background: rgb(var(--c-accent) / .12); border: 1px solid var(--line); }

/* ---------------- tarjetas y tablas ---------------- */

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  margin-bottom: 20px;
}
.card.danger { border-color: rgb(var(--c-coral) / .3); }
.card h2 { margin-bottom: 12px; }
.danger-form { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.danger-form h2 { margin-bottom: 6px; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid rgb(var(--c-line) / .08); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-off { opacity: .45; }
.table tr.is-editing { background: rgb(var(--c-star) / .1); box-shadow: inset 3px 0 0 var(--star); }
.is-editing-card { border-color: rgb(var(--c-star) / .45); background: rgb(var(--c-star) / .06); scroll-margin-top: 90px; }
.editing-name { color: var(--star); }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: rgb(var(--c-line) / .12); }
.tag-TASK { background: rgb(var(--c-accent) / .2); color: var(--sky-200); }
.tag-BONUS { background: rgb(var(--c-star) / .18); color: var(--star); }
.tag-PENALTY { background: rgb(var(--c-coral) / .18); color: #ffb3b3; }
.tag-REWARD { background: rgb(var(--c-mint) / .16); color: #9df0d3; }
.tag-ADJUSTMENT { background: rgb(var(--c-line) / .14); }
.bullets { margin: 10px 0 0 18px; color: var(--text-dim); font-size: 15px; }
.bullets li { margin-bottom: 6px; }
.note { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--star); border-radius: 14px; background: rgb(var(--c-star) / .07); font-size: 15px; color: var(--sky-200); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.stat-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.stat-value { display: block; margin-top: 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.stat-sub { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-dim); }
.stat.warn .stat-value { color: var(--star); }

/* ---------------- logotipo ---------------- */

.logo { display: block; height: auto; width: auto; }
.logo-sm { width: clamp(140px, 20vw, 190px); }
.logo-md { width: clamp(200px, 42vw, 320px); }
.logo-lg { width: clamp(240px, 60vw, 440px); }
.mark { width: 40px; height: 40px; border-radius: 0; }
/* Los avatares son personajes de cuerpo entero sobre fondo transparente:
   se encajan dentro de un círculo azul para que respiren. */
.av {
  display: block;
  border-radius: 50%;
  object-fit: contain;
  object-position: center 42%;
  background:
    radial-gradient(circle at 50% 38%, rgb(var(--c-accent2) / .34) 0%, rgb(var(--c-surface) / .82) 72%);
  padding: 4%;
}
.ic { width: 22px; height: 22px; }

/* ============================================================
   PORTADA
   ============================================================ */

.home .sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.home .sky .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .5; box-shadow: 0 0 8px rgba(255, 255, 255, .8); animation: twinkle 4.5s ease-in-out infinite; }
.home .sky .s1 { top: 12%; left: 8%; } .home .sky .s2 { top: 22%; left: 78%; width: 4px; height: 4px; animation-delay: .6s; }
.home .sky .s3 { top: 38%; left: 18%; animation-delay: 1.2s; } .home .sky .s4 { top: 8%; left: 52%; animation-delay: 1.8s; }
.home .sky .s5 { top: 56%; left: 88%; animation-delay: 2.4s; } .home .sky .s6 { top: 70%; left: 6%; width: 4px; height: 4px; animation-delay: .9s; }
.home .sky .s7 { top: 30%; left: 38%; animation-delay: 3s; } .home .sky .s8 { top: 82%; left: 66%; animation-delay: 1.5s; }
.home .sky .s9 { top: 64%; left: 44%; animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { opacity: .22; transform: scale(.85); } 50% { opacity: .9; transform: scale(1.15); } }

.home main, .home .foot { position: relative; z-index: 1; }
/* La cabecera va por encima del contenido: el panel de idiomas se despliega sobre él */
.home .top { position: relative; z-index: 40; }
.top { max-width: 1120px; margin: 0 auto; padding: 22px clamp(18px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top-right { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.brand-accent { color: var(--sky-300); }
.lang-select {
  padding: 9px 34px 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background-color: rgb(var(--c-line) / .08);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  appearance: none;
  /* La lista desplegable la pinta el sistema: sin esto sale blanca sobre blanca */
  color-scheme: dark;
  background-image: linear-gradient(45deg, transparent 50%, var(--sky-300) 50%), linear-gradient(135deg, var(--sky-300) 50%, transparent 50%);
  background-position: right 16px center, right 10px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
/* Opciones legibles en todos los navegadores */
.lang-select option, select.input option {
  background-color: var(--card-solid);
  color: var(--text);
}
select.input { color-scheme: dark; }

/* ---------------- selector de idioma (HTML5, sin lista nativa) ---------------- */

.lang { position: relative; }
.lang-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgb(var(--c-line) / .08);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.lang-btn::-webkit-details-marker, .lang-btn::marker { display: none; content: ''; }
.lang-btn:hover { background: rgb(var(--c-line) / .16); }
.lang-btn svg { width: 16px; height: 16px; color: var(--sky-300); }
.lang-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--sky-300); transition: transform .2s ease; }
.lang[open] .lang-caret { transform: rotate(180deg); }
.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  width: min(88vw, 560px);
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card-solid);
  box-shadow: var(--shadow);
}
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 3px; }
.lang-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 14px; }
.lang-item:hover { background: rgb(var(--c-accent) / .2); }
.lang-item.is-active { background: rgb(var(--c-star) / .14); color: var(--star); font-weight: 700; }
.lang-code { min-width: 20px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.lang-item.is-active .lang-code { color: var(--star-deep); }

/* ---------------- ritmo y tipografía de la portada ---------------- */

.home main { display: block; }
.home section { position: relative; }

/* Un solo ancho para toda la página: las secciones respiran igual. */
.hero, .trust, .chain, .split, .section, .promises, .closing, .band, .foot-grid, .foot-legal {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 48px);
}
.hero, .chain, .split, .section, .promises { padding-block: clamp(48px, 9vh, 104px); }
.band { padding-block: clamp(40px, 8vh, 88px); }

.kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--star);
  text-transform: uppercase;
}
.kicker.center, .note.center { text-align: center; }
.lede { margin: 18px 0 0; max-width: 38rem; font-size: clamp(15.5px, 1.5vw, 18px); line-height: 1.65; color: var(--text-dim); }
.lede-lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--sky-200); }
.grad { background: linear-gradient(100deg, var(--sky-300) 0%, #fff 42%, var(--star) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 40rem; margin: 0 auto clamp(28px, 4vh, 44px); text-align: center; }
.section-head h2, .split h2, .quote-card h2, .promises h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.18;
}
.section-head .lede { margin-inline: auto; }

/* ---------------- arranque ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block;
  margin-top: 24px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: rgb(var(--c-line) / .08);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sky-300);
}

/* Vista del panel del niño, montada con HTML: nada de capturas ni de imágenes
   pesadas, y se traduce sola con el resto de la página. */
.hero-art { display: flex; justify-content: center; }
.shot {
  width: min(100%, 380px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--card-solid);
  box-shadow: 0 28px 70px -30px rgb(2 8 28 / .95), 0 0 0 1px rgb(var(--c-line) / .05);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.shot-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgb(var(--c-line) / .05); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--c-line) / .3); }
.shot-body { padding: 18px; }
.shot-head { display: flex; align-items: center; gap: 12px; }
.shot-av { width: 48px; height: 48px; border-radius: 50%; background: rgb(var(--c-accent) / .2); }
.shot-head b { display: block; font-size: 15px; }
.shot-head small { color: var(--text-dim); font-size: 12.5px; }
.shot-jobs { list-style: none; margin: 16px 0 0; display: grid; gap: 8px; }
.shot-jobs li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--c-line) / .04);
}
.shot-jobs b { flex: 1; font-size: 13.5px; font-weight: 600; }
.shot-stars { display: inline-flex; gap: 1px; }
.shot-stars img { width: 18px; height: 17px; }
.shot-done { padding: 5px 11px; border-radius: var(--r-pill); background: linear-gradient(160deg, var(--star), var(--star-deep)); color: #29200a; font-size: 11.5px; font-weight: 800; }
.shot-res {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 12px 14px;
  border-radius: 14px;
  background: rgb(var(--c-accent) / .14);
  border: 1px solid rgb(var(--c-accent) / .3);
  font-size: 13px; color: var(--sky-200);
}
.shot-res b { font-size: 17px; color: var(--star); }

/* ---------------- franja de confianza ---------------- */

.trust { padding-block: 0; }
.trust ul {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  padding: 18px clamp(16px, 3vw, 28px);
  border-block: 1px solid var(--line);
}
.trust li { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.trust li::before { content: "✓"; margin-right: 8px; color: var(--sky-300); font-weight: 800; }

/* ---------------- cómo funciona ---------------- */

.chain-h { text-align: center; margin: 10px auto clamp(26px, 4vh, 40px); font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.chain ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chain li {
  position: relative;
  padding: 26px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.chain li:hover { transform: translateY(-3px); border-color: rgb(var(--c-accent) / .45); }
.chain li::after { content: ""; position: absolute; top: 44px; right: -14px; width: 14px; height: 2px; background: linear-gradient(90deg, var(--blue-400), rgb(var(--c-accent2) / 0)); }
.chain li:last-child::after { display: none; }
.chain .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--blue-500), var(--accent-deep));
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 8px 20px rgb(var(--c-accent) / .45);
}
.chain b { display: block; font-size: 15.5px; font-weight: 700; }
.chain small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }

/* ---------------- secciones a dos columnas ---------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split-rev .split-copy { order: 2; }
.split h2 { margin-top: 14px; }
.band-star { background: radial-gradient(80% 90% at 78% 50%, rgb(var(--c-star) / .09) 0%, rgb(var(--c-star) / 0) 68%); }

.claim {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--star);
  border-radius: 0 16px 16px 0;
  background: rgb(var(--c-star) / .09);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--star);
}
.claim-soft { margin-top: 18px; font-size: clamp(15.5px, 1.7vw, 18px); font-weight: 700; color: var(--sky-200); }

.stardust { list-style: none; display: grid; gap: 8px; }
.stardust li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 14.5px;
  color: var(--sky-200);
}
.stardust li::before { content: "⭐"; font-size: 15px; }

/* ---------------- pequeñas acciones ---------------- */

.band-inner { max-width: 44rem; margin: 0 auto; text-align: center; }
.band-inner .lede { margin-inline: auto; margin-top: 16px; }
.flow { list-style: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 32px; }
.flow li { display: flex; align-items: center; gap: 14px; }
.flow-word { display: inline-block; padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgb(var(--c-accent) / .16); font-size: clamp(12px, 1.6vw, 14px); font-weight: 800; letter-spacing: .12em; }
.flow-star { font-size: clamp(24px, 3.4vw, 34px); line-height: 1; filter: drop-shadow(0 0 14px rgb(var(--c-star) / .5)); }
.flow-arrow { color: var(--blue-400); font-size: 18px; }

/* ---------------- valores ---------------- */

.values { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.values li {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition: border-color .25s ease, transform .25s ease;
}
.values li:hover { border-color: rgb(var(--c-accent) / .45); transform: translateY(-3px); }
.values b { display: block; font-size: 16.5px; font-weight: 800; color: var(--sky-200); }
.values small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.section .note { margin: 26px auto 0; max-width: 42rem; }

/* ---------------- escalera ---------------- */

.ladder { list-style: none; display: grid; gap: 10px; position: relative; }
.ladder::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(180deg, rgb(var(--c-accent) / .5), rgb(var(--c-star) / .5)); }
.ladder li {
  position: relative;
  padding: 16px 20px 16px 46px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.ladder li::before {
  content: "";
  position: absolute; left: 9px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgb(var(--c-bg) / 1);
}
.ladder li q { display: block; font-size: clamp(15px, 1.8vw, 18px); font-weight: 700; font-style: italic; }
.ladder li small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-dim); }
.ladder li.is-last { border-color: rgb(var(--c-star) / .42); background: linear-gradient(160deg, rgb(var(--c-star) / .14), rgb(var(--c-accent) / .1)); }
.ladder li.is-last::before { background: var(--star); }
.ladder li.is-last q { color: var(--star); }

/* ---------------- hecho por padres ---------------- */

.quote-card {
  max-width: 46rem; margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgb(var(--c-accent) / .12), rgb(var(--c-line) / .03));
}
.quote-card .lede { margin-inline: 0; max-width: none; }
.real-life {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--blue-400);
  border-radius: 0 16px 16px 0;
  background: rgb(var(--c-line) / .05);
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 1.7;
  color: var(--sky-200);
}

/* ---------------- privacidad ---------------- */

.promises ul { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.promises li { padding: 26px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: transform .25s ease, border-color .25s ease; }
.promises li:hover { transform: translateY(-4px); border-color: rgb(var(--c-star) / .4); }
.promises .ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 15px; background: linear-gradient(160deg, rgb(var(--c-accent) / .28), rgb(var(--c-accent-deep) / .35)); border: 1px solid var(--line); }
.promises .ico svg { width: 24px; height: 24px; color: var(--sky-200); }
.promises .ico .slash { stroke: var(--star); stroke-width: 2.2; }
.promises b { display: block; font-size: 15px; font-weight: 700; }
.promises small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.privacy-note { max-width: 46rem; margin: clamp(26px, 4vh, 40px) auto 0; text-align: center; }
.privacy-note .note { text-align: left; }

/* ---------------- cierre ---------------- */

.closing { padding-block: clamp(40px, 7vh, 80px); }
.closing-card {
  max-width: 46rem; margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  border: 1px solid rgb(var(--c-star) / .28);
  border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 50% 0%, rgb(var(--c-accent) / .22), rgb(var(--c-line) / .04));
  text-align: center;
}
.closing-card .logo { margin: 0 auto 20px; }
.closing-card .kicker { display: block; }
.closing-card .hero-cta { justify-content: center; }
.final-claim { margin: 14px auto 28px; max-width: 32rem; font-size: clamp(18px, 2.2vw, 23px); font-weight: 700; line-height: 1.35; color: var(--sky-200); }

/* ---------------- pie ---------------- */

.foot { border-top: 1px solid var(--line); margin-top: clamp(20px, 4vh, 40px); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 48px);
  padding-block: clamp(30px, 5vh, 46px);
}
.foot-brand .tiny { margin-top: 12px; max-width: 22rem; }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { font-size: 14px; color: var(--sky-200); text-decoration: none; }
.foot-links a:hover { color: var(--star); text-decoration: underline; }
.foot-privacy { max-width: 26rem; }
.foot .tiny { font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.foot-legal { padding-block: 18px 34px; border-top: 1px solid var(--line); text-align: center; }

/* ---------------- adaptación a pantallas pequeñas ---------------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede, .hero .kicker { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { margin-top: 8px; }
  .shot { transform: none; }
  .chain ol { grid-template-columns: repeat(2, 1fr); }
  .chain li::after { display: none; }
  .split, .split-rev .split-copy { grid-template-columns: 1fr; order: 0; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .promises ul { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .chain ol, .values, .promises ul { grid-template-columns: 1fr; }
  .trust ul { gap: 8px 18px; }
}


/* ============================================================
   ACCESO / REGISTRO
   ============================================================ */

.auth-main { max-width: 34rem; margin: 0 auto; padding: 40px clamp(18px, 5vw, 32px) 60px; }
.auth-main .brand { display: inline-block; margin-bottom: 26px; }
.auth-main .logo { margin: 0 auto; }
.auth-main h1 { font-size: clamp(26px, 4vw, 34px); }
.auth-main .card { margin-top: 22px; }
.auth-main .alt { margin-top: 18px; font-size: 15px; color: var(--text-dim); }
.plain-main { max-width: 34rem; margin: 0 auto; padding: 80px 24px; text-align: center; }
.plain-main p { margin-top: 12px; color: var(--text-dim); }
.plain-main .btn { margin-top: 22px; }

/* ============================================================
   ÁREA DE ADULTOS
   ============================================================ */

.p-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px clamp(18px, 4vw, 36px); border-bottom: 1px solid var(--line); background: rgb(var(--c-deep2) / .7); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.p-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; }
.p-brand .logo-sm { width: 128px; }
.p-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.p-nav a { padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; color: var(--text-dim); font-size: 14.5px; font-weight: 600; }
.p-nav a:hover { background: rgb(var(--c-line) / .08); color: var(--text); }
.p-nav a.is-active { background: rgb(var(--c-accent) / .2); color: #fff; }
.p-actions { display: flex; gap: 8px; align-items: center; }
.p-main { max-width: 1080px; margin: 0 auto; padding: 30px clamp(18px, 4vw, 36px) 60px; }
.p-main h1 { margin-bottom: 20px; }
.section-h { margin: 30px 0 16px; }
.p-foot { max-width: 1080px; margin: 0 auto; padding: 20px clamp(18px, 4vw, 36px) 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); border-top: 1px solid var(--line); }

.pending { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pending li { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgb(var(--c-deep) / .35); }
.p-av .av { width: 44px; height: 44px; }
.p-text { flex: 1; }
.p-text b { display: block; }
.p-text small { color: var(--text-dim); }
.p-buttons { display: flex; gap: 8px; }

.kidcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
/* aire entre las tarjetas de perfil y el botón de abajo */
.kidcards + p { margin-top: 28px; }
.p-main > p:last-child { margin-top: 24px; }
.kidcard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); text-decoration: none; color: inherit; text-align: center; transition: transform .25s ease, border-color .25s ease; }
.kidcard:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.kc-av .av { width: 68px; height: 68px; }
.kidcard b { font-size: 17px; }
.kc-month { font-size: 24px; font-weight: 800; color: var(--star); }
.kidcard small { font-size: 12.5px; color: var(--text-dim); }
.kc-owed { font-size: 13px; color: var(--text-dim); }

.child-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.ch-av .av { width: 76px; height: 76px; }
.child-head h1 { margin-bottom: 4px; }
.j-ic { display: inline-flex; vertical-align: middle; margin-right: 8px; color: var(--sky-300); }
.j-ic .av { width: 28px; height: 28px; }

/* ============================================================
   MODO NIÑO
   ============================================================ */

.kid { font-size: 18px; }

/* ¿quién juega? */
.picker { max-width: 900px; margin: 0 auto; padding: clamp(30px, 8vh, 80px) 20px 60px; text-align: center; }
.picker .logo { margin: 0 auto clamp(14px, 3vh, 26px); }
.picker h1 { font-size: clamp(30px, 6vw, 48px); }
.kid-grid { list-style: none; margin-top: clamp(28px, 6vh, 52px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 4vw, 34px); }
.kid-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; border-radius: var(--r-lg); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.kid-tile:hover, .kid-tile:focus-visible { transform: translateY(-8px) scale(1.04); }
.kid-tile .av { width: clamp(96px, 20vw, 132px); height: clamp(96px, 20vw, 132px); border: 3px solid rgb(var(--c-line) / .3); box-shadow: var(--shadow); }
.kid-tile:hover .av { border-color: var(--star); }
.kid-name { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; }
.kid-lock { font-size: 14px; opacity: .7; }
.picker-foot { margin-top: 50px; }

/* PIN */
.pinbox { max-width: 26rem; margin: 0 auto; padding: clamp(40px, 10vh, 90px) 20px; text-align: center; }
.pin-avatar .av { width: 110px; height: 110px; margin: 0 auto 20px; border: 3px solid var(--line-strong); }
.pin-form { margin-top: 22px; align-items: center; }
.pin-input { text-align: center; font-size: 34px; letter-spacing: .5em; padding: 16px; text-indent: .5em; }

/* cabecera del panel */
.k-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 34px); }
.k-who { display: flex; align-items: center; gap: 14px; font-size: clamp(19px, 2.6vw, 25px); font-weight: 800; }
.k-who .av { width: 58px; height: 58px; border: 2px solid var(--line-strong); }
.k-actions { display: flex; gap: 8px; }
.k-main { max-width: 1000px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 34px) 70px; }

/* TARJETA DE HOY — lo primero y lo más grande */
.today {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 46px) clamp(22px, 5vw, 40px);
  border-radius: var(--r-lg);
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.today-win {
  background:
    radial-gradient(70% 120% at 50% -10%, rgb(var(--c-star) / .3) 0%, rgb(var(--c-star) / 0) 60%),
    linear-gradient(160deg, rgb(var(--c-accent) / .35), rgb(var(--c-surface) / .8));
  border-color: rgb(var(--c-star) / .35);
}
.today-zero { background: linear-gradient(160deg, rgb(var(--c-card) / .55), rgb(var(--c-deep2) / .8)); }
.today-label { display: block; font-size: clamp(15px, 2vw, 18px); font-weight: 600; color: var(--sky-200); }
.today-amount { display: block; margin: 10px 0 6px; font-size: clamp(46px, 12vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.today-win .today-amount { background: linear-gradient(180deg, #fff 0%, var(--star) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgb(var(--c-star) / .25); }
.today-zero .today-amount { color: var(--text-dim); opacity: .55; }
.today-stars { display: inline-block; padding: 7px 18px; border-radius: var(--r-pill); background: rgb(var(--c-star) / .16); color: var(--star); font-weight: 700; }
.today-sub, .today-pending { display: block; margin-top: 10px; color: var(--text-dim); font-size: 15.5px; }
.today-pending { color: var(--sky-300); }

.k-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.k-row .card { margin-bottom: 20px; }
.big { display: block; margin: 6px 0 2px; font-size: clamp(26px, 4.4vw, 36px); font-weight: 800; }
.k-month .big { color: var(--star); }
.k-streak .big { color: var(--mint); }

/* meta */
.goal-name { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.goalbar { height: 16px; border-radius: var(--r-pill); background: rgb(var(--c-deep) / .6); border: 1px solid var(--line); overflow: hidden; }
.goalbar span { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--blue-500), var(--star)); transition: width .6s ease; }
.goal-sub { margin-top: 10px; color: var(--text-dim); font-size: 15px; }

/* TAREAS: lo primero y lo más grande de la pantalla del niño */
.k-jobs-main { margin-bottom: 22px; }
.k-jobs-main h1 { font-size: clamp(24px, 4.6vw, 38px); margin-bottom: 18px; }

/* Resultado: secundario, a un lado y en pequeño */
.k-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgb(var(--c-deep) / .35);
}
.res { flex: 1 1 96px; min-width: 96px; padding: 6px 8px; border-radius: 12px; text-align: center; }
.res-today { background: rgb(var(--c-star) / .1); }
.res-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.res-stars { display: block; margin-top: 3px; font-size: 17px; font-weight: 800; color: var(--star); }
.res-wallet { color: var(--mint); font-size: 15px; }
.res-money { display: block; font-size: 11.5px; color: var(--text-dim); }

/* tareas */
.jobs { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.goal-done { border-color: rgb(var(--c-mint) / .4); }
.ideas-hint { margin-top: 4px; font-size: 13px; color: var(--text-dim); }
.ideas { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.ideas li { padding: 6px 13px; border: 1px solid var(--line); border-radius: var(--r-pill); background: rgb(var(--c-deep) / .4); font-size: 13px; color: var(--sky-200); }
.job {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 20px);
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgb(var(--c-deep) / .4);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.job:hover { transform: translateY(-2px); border-color: rgb(var(--c-star) / .35); background: rgb(var(--c-surface) / .5); }

/* ---- el premio: estrellas grandes, lo primero de la fila ---- */
.job-stars { display: flex; align-items: center; gap: 3px; flex: none; }
/* La estrella oficial: la misma imagen en toda la aplicación */
.job-star {
  width: clamp(34px, 7vw, 52px);
  height: auto;
  object-fit: contain;
  transform-origin: 50% 55%;
  filter: drop-shadow(0 4px 10px rgb(var(--c-star2) / .45)) var(--icon-filter);
  animation: starBreath 3.2s ease-in-out infinite;
}
/* escalonado: cada estrella salta un pelín después que la anterior */
.job-star:nth-child(1) { animation-delay: 0s; }
.job-star:nth-child(2) { animation-delay: .22s; }
.job-star:nth-child(3) { animation-delay: .44s; }
.job-star:nth-child(4) { animation-delay: .66s; }
.job-star:nth-child(5) { animation-delay: .88s; }
.job-star:nth-child(6) { animation-delay: 1.1s; }
/* respira tranquila y da un saltito de vez en cuando: llama sin cansar */
@keyframes starBreath {
  0%, 70%, 100% { transform: scale(1) rotate(0deg); }
  76% { transform: scale(1.18) rotate(-9deg); }
  84% { transform: scale(.97) rotate(6deg); }
  91% { transform: scale(1.07) rotate(-2deg); }
}
/* al pasar por encima o tocar, las estrellas saltan una tras otra */
.job:hover .job-star, .job:focus-within .job-star {
  animation: starPop .55s cubic-bezier(.2, .9, .3, 1.4) both;
}
.job:hover .job-star:nth-child(2), .job:focus-within .job-star:nth-child(2) { animation-delay: .07s; }
.job:hover .job-star:nth-child(3), .job:focus-within .job-star:nth-child(3) { animation-delay: .14s; }
.job:hover .job-star:nth-child(4), .job:focus-within .job-star:nth-child(4) { animation-delay: .21s; }
.job:hover .job-star:nth-child(5), .job:focus-within .job-star:nth-child(5) { animation-delay: .28s; }
.job:hover .job-star:nth-child(6), .job:focus-within .job-star:nth-child(6) { animation-delay: .35s; }
@keyframes starPop {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.38) rotate(-12deg); }
  75% { transform: scale(.94) rotate(7deg); }
  100% { transform: scale(1.12) rotate(0deg); }
}
.job-star-x { margin-left: 4px; font-size: clamp(18px, 3vw, 24px); font-weight: 800; color: var(--star); }

/* estrella suelta: botones, cifras y marcas */
.star-mark { display: inline-block; width: 22px; height: auto; vertical-align: -.28em; }
.star-mark.mini { width: 19px; margin-left: 4px; vertical-align: -.22em; }
.btn-done { gap: 9px; }
/* estrella azul dentro del botón dorado: contraste de verdad */
.flat-star { width: 22px; height: 22px; vertical-align: -.3em; }
.btn-done .flat-star.on-btn { width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgb(var(--c-deep) / .4)); }
.res-stars { display: inline-flex; align-items: center; justify-content: center; }

.job-text { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.job-text b { font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; }
.job-text .job-ic { display: inline-flex; color: var(--sky-300); opacity: .45; flex: none; }
.job-text .job-ic .ic { width: 20px; height: 20px; }

/* ya conseguida: la estrella se queda encendida y quieta */
.job-is-approved .job-star { animation: none; filter: drop-shadow(0 0 14px rgb(var(--c-star) / .85)); }
.job-is-pending .job-star { animation-duration: 5s; opacity: .8; }
.job-is-rejected .job-star { animation: none; filter: grayscale(.7); opacity: .45; }
.job-state { padding: 8px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 700; }
.job-pending { background: rgb(var(--c-line) / .12); color: var(--sky-200); }
.job-approved { background: rgb(var(--c-mint) / .16); color: #9df0d3; }
.job-rejected { background: rgb(var(--c-coral) / .14); color: #ffb3b3; }
.job-is-approved { border-color: rgb(var(--c-mint) / .25); }
.job-is-approved .job-text b { text-decoration: line-through; text-decoration-color: rgb(var(--c-line) / .4); }
.all-done { margin-top: 16px; text-align: center; font-weight: 700; color: var(--mint); }

/* calendario */
.calendar { margin-top: 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-head h3 { font-size: 18px; text-transform: capitalize; }
.cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 22px; line-height: 1; }
.cal-nav:hover { background: rgb(var(--c-line) / .1); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; border: 1px solid var(--line); background: rgb(var(--c-deep) / .45); font-size: 13px; }
.cal-empty { border: 0; background: none; }
.cal-day { font-weight: 600; color: var(--text-dim); }
.cal-amount { font-size: clamp(9px, 1.6vw, 11.5px); font-weight: 700; color: var(--star); line-height: 1; }
.cal-cell.lvl-1 { background: rgb(var(--c-accent) / .2); }
.cal-cell.lvl-2 { background: rgb(var(--c-accent) / .35); }
.cal-cell.lvl-3 { background: linear-gradient(160deg, rgb(var(--c-accent) / .55), rgb(var(--c-star) / .2)); }
.cal-cell.lvl-4 { background: linear-gradient(160deg, rgb(var(--c-accent) / .7), rgb(var(--c-star) / .38)); border-color: rgb(var(--c-star) / .4); }
.cal-cell.lvl-1 .cal-day, .cal-cell.lvl-2 .cal-day, .cal-cell.lvl-3 .cal-day, .cal-cell.lvl-4 .cal-day { color: #fff; }
.cal-cell.is-today { outline: 2px solid var(--star); outline-offset: 1px; }

/* barras mes a mes */
.bars { display: flex; align-items: flex-end; gap: clamp(4px, 1.4vw, 10px); height: 160px; margin-top: 16px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bar-fill { width: 100%; max-width: 42px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); transition: height .5s ease; }
.bar.is-current .bar-fill { background: linear-gradient(180deg, var(--star), var(--star-deep)); }
.bar-label { font-size: 11.5px; color: var(--text-dim); text-transform: capitalize; }

/* progresión */
.progress { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgb(var(--c-deep) / .4); }
.progress strong { display: block; font-size: 17.5px; }
.progress small { color: var(--text-dim); }
.progress-arrow { font-size: 22px; }
.progress-up { border-color: rgb(var(--c-mint) / .35); }
.progress-up .progress-arrow { color: var(--mint); }
.progress-down { border-color: rgb(var(--c-coral) / .3); }
.progress-down .progress-arrow { color: var(--coral); }
.progress-flat .progress-arrow { color: var(--text-dim); }

.k-private { background: rgb(var(--c-star) / .07); border-color: rgb(var(--c-star) / .25); }
.k-private p { color: var(--sky-200); }

/* ============================================================
   PREMIO DEL DÍA ANTERIOR — celebración 3D al abrir el día
   ============================================================ */

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(60% 60% at 50% 45%, rgb(var(--c-glow) / .82) 0%, rgb(var(--c-deep) / .94) 70%);
  backdrop-filter: blur(8px);
  animation: celFade .45s ease both;
}
@keyframes celFade { from { opacity: 0; } to { opacity: 1; } }

.celebrate-box { text-align: center; perspective: 1000px; }
.cel-kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sky-300); animation: celUp .5s .1s ease both;
}
.cel-stage { position: relative; display: grid; place-items: center; height: clamp(180px, 34vh, 280px); transform-style: preserve-3d; }

/* la estrella grande entra girando en 3D y luego flota */
.cel-star {
  width: clamp(130px, 34vw, 210px);
  height: auto;
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 40px rgb(var(--c-star2) / .55));
  animation: celSpin 1.5s cubic-bezier(.18, .9, .25, 1.05) both, celFloat 3.4s 1.5s ease-in-out infinite;
}
@keyframes celSpin {
  0% { transform: perspective(900px) rotateY(-720deg) rotateX(25deg) scale(.15); opacity: 0; }
  55% { opacity: 1; }
  70% { transform: perspective(900px) rotateY(0deg) rotateX(0deg) scale(1.22); }
  85% { transform: perspective(900px) rotateY(12deg) scale(.98); }
  100% { transform: perspective(900px) rotateY(0deg) scale(1); opacity: 1; }
}
@keyframes celFloat {
  0%, 100% { transform: perspective(900px) translateY(0) rotateY(-6deg); }
  50% { transform: perspective(900px) translateY(-14px) rotateY(6deg); }
}

/* estrellitas que salen despedidas, cada una por su lado */
.cel-mini {
  position: absolute;
  width: clamp(28px, 6vw, 42px);
  height: auto;
  opacity: 0;
  animation: celFly 2.6s ease-out infinite;
}
.cel-mini-1 { animation-delay: 1.2s; --dx: -150px; --dy: -110px; }
.cel-mini-2 { animation-delay: 1.35s; --dx: 160px; --dy: -90px; }
.cel-mini-3 { animation-delay: 1.5s; --dx: -190px; --dy: 40px; }
.cel-mini-4 { animation-delay: 1.65s; --dx: 185px; --dy: 60px; }
.cel-mini-5 { animation-delay: 1.8s; --dx: -90px; --dy: 130px; }
.cel-mini-6 { animation-delay: 1.95s; --dx: 95px; --dy: 140px; }
.cel-mini-7 { animation-delay: 2.1s; --dx: -40px; --dy: -160px; }
.cel-mini-8 { animation-delay: 2.25s; --dx: 45px; --dy: -170px; }
@keyframes celFly {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(.3); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate3d(var(--dx, 100px), var(--dy, -100px), 90px) rotate(220deg) scale(1); opacity: 0; }
}

.cel-title { margin-top: 8px; font-size: clamp(24px, 5vw, 38px); font-weight: 800; animation: celUp .6s .9s ease both; }
.cel-stars {
  margin-top: 6px; font-size: clamp(30px, 7vw, 48px); font-weight: 800; color: var(--star);
  text-shadow: 0 0 30px rgb(var(--c-star) / .5); animation: celUp .6s 1.05s ease both;
}
.cel-money { margin-top: 2px; font-size: clamp(16px, 2.4vw, 20px); color: var(--sky-200); animation: celUp .6s 1.2s ease both; }
.celebrate .btn { margin-top: 26px; animation: celUp .6s 1.35s ease both; }
@keyframes celUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- anchos y alturas sin `style=` (la CSP los bloquea) ---------------- */

.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; }
.w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; }
.w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; }
.w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; }
.w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; }
.w-100 { width: 100%; }

.h-0 { height: 3px; } .h-5 { height: 5%; } .h-10 { height: 10%; } .h-15 { height: 15%; }
.h-20 { height: 20%; } .h-25 { height: 25%; } .h-30 { height: 30%; } .h-35 { height: 35%; }
.h-40 { height: 40%; } .h-45 { height: 45%; } .h-50 { height: 50%; } .h-55 { height: 55%; }
.h-60 { height: 60%; } .h-65 { height: 65%; } .h-70 { height: 70%; } .h-75 { height: 75%; }
.h-80 { height: 80%; } .h-85 { height: 85%; } .h-90 { height: 90%; } .h-95 { height: 95%; }
.h-100 { height: 100%; }

/* ---------------- estrellas ilustradas de las tareas ---------------- */

.task-star { display: block; width: clamp(46px, 9vw, 64px); height: auto; filter: var(--icon-filter); }
.job-mascot { flex: none; display: flex; animation: mascotFloat 4s ease-in-out infinite; }
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}
.job:hover .job-mascot { animation: mascotCheer .7s ease both; }
@keyframes mascotCheer {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.18) rotate(-8deg); }
  70% { transform: scale(1.04) rotate(6deg); }
  100% { transform: scale(1.08) rotate(0); }
}
.task-star.mini { width: 34px; }
.j-ic .task-star.mini { width: 30px; }

/* selector de estrella de tarea */
.ic-pick .task-star { width: 62px; border-radius: 50%; border: 2px solid transparent; transition: transform .2s ease, border-color .2s ease; }
.ic-pick:hover .task-star { transform: translateY(-3px); }
.ic-pick input:checked + .task-star { border-color: var(--star); box-shadow: 0 0 0 4px rgb(var(--c-star) / .2); }
.icons-pick { gap: 10px; }

/* selector de avatar: 50 opciones en rejilla con scroll propio */
.avatars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}
.avatars-pick .av-pick .av { width: 60px; height: 60px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .chain ol { grid-template-columns: repeat(2, 1fr); }
  .chain li::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .p-nav { order: 3; width: 100%; }
  .p-top { gap: 12px; }
  .job { flex-wrap: wrap; }
  .job-text { min-width: 55%; }
  .cal-amount { display: none; }
  .cal-cell { border-radius: 11px; }
  .bars { height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- selector de tema ---------------- */

.themes-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.th-pick { cursor: pointer; }
.th-pick input { position: absolute; opacity: 0; }
.th-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 13px 10px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: rgb(var(--c-deep) / .35);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.th-pick:hover .th-card { transform: translateY(-3px); }
.th-pick input:checked + .th-card { border-color: var(--star); background: rgb(var(--c-star) / .1); }
.th-card b { font-size: 14px; font-weight: 700; }
.th-card small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--star); }
.th-pick.is-suggested .th-card { border-style: dashed; }
.sw { display: flex; border-radius: var(--r-pill); overflow: hidden; width: 74px; height: 26px; box-shadow: 0 4px 12px rgb(var(--c-shadow) / .35); }
.sw i { flex: 1; }

.sw-official i:nth-child(1) { background: #0a2050; } .sw-official i:nth-child(2) { background: #2f7cff; } .sw-official i:nth-child(3) { background: #ffd36a; }
.sw-rosa i:nth-child(1) { background: #2a0a24; } .sw-rosa i:nth-child(2) { background: #e26aa8; } .sw-rosa i:nth-child(3) { background: #ffc7e2; }
.sw-baby-nen i:nth-child(1) { background: #082f47; } .sw-baby-nen i:nth-child(2) { background: #29abe2; } .sw-baby-nen i:nth-child(3) { background: #b4e8ff; }
.sw-baby-nena i:nth-child(1) { background: #331033; } .sw-baby-nena i:nth-child(2) { background: #f076b2; } .sw-baby-nena i:nth-child(3) { background: #c88cf5; }
.sw-teen-nen i:nth-child(1) { background: #0f1218; } .sw-teen-nen i:nth-child(2) { background: #3882f6; } .sw-teen-nen i:nth-child(3) { background: #97a3b5; }
.sw-teen-nena i:nth-child(1) { background: #171017; } .sw-teen-nena i:nth-child(2) { background: #c66a96; } .sw-teen-nena i:nth-child(3) { background: #e8ba8c; }
.sw-clar i:nth-child(1) { background: #ffffff; } .sw-clar i:nth-child(2) { background: #1f5fe0; } .sw-clar i:nth-child(3) { background: #eca820; }
.sw-fosc i:nth-child(1) { background: #101114; } .sw-fosc i:nth-child(2) { background: #7c8698; } .sw-fosc i:nth-child(3) { background: #e0e0e0; }

/* elección de sexo: solo para sugerir tema */
.sex-pick { display: flex; gap: 10px; }
.sex-pick label { flex: 1; cursor: pointer; }
.sex-pick input { position: absolute; opacity: 0; }
.sex-pick span {
  display: block; padding: 13px; text-align: center; font-weight: 700;
  border: 2px solid var(--line); border-radius: var(--r); background: rgb(var(--c-deep) / .35);
}
.sex-pick input:checked + span { border-color: var(--star); background: rgb(var(--c-star) / .1); color: var(--star); }

/* acceso al tema desde el modo niño */
.k-theme { margin-top: 22px; }
.k-theme .themes-pick { margin-top: 12px; }

/* ---------------- condiciones de uso ---------------- */

.legal-main { max-width: 44rem; margin: 0 auto; padding: 20px clamp(18px, 5vw, 40px) 70px; }
.legal-main h1 { margin-bottom: 14px; }
.legal-main .lede { margin: 0 0 6px; }
.legal-updated { font-size: 13px; color: var(--text-dim); margin-bottom: 26px; }
.legal-block { margin-bottom: 26px; }
.legal-block h2 { font-size: clamp(18px, 2.2vw, 22px); margin-bottom: 8px; color: var(--sky-200); }
.legal-block p { color: var(--text-dim); font-size: 16px; }
.legal .foot a, .p-foot a { color: var(--text-dim); }

/* ---------------- repeticiones al día ---------------- */

.job-times {
  display: inline-block; margin-top: 4px; padding: 3px 11px;
  border-radius: var(--r-pill); background: rgb(var(--c-accent) / .18);
  font-size: 13px; font-weight: 700; color: var(--sky-200);
}
.job-times.is-full { background: rgb(var(--c-mint) / .18); color: #9df0d3; }

/* ---------------- BOOST ---------------- */

.boost-cta { margin: 4px 0 22px; text-align: center; }
.boost-card h1 { font-size: clamp(22px, 4vw, 30px); margin-bottom: 6px; }
.boost-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.boost-pick { cursor: pointer; }
.boost-pick input { position: absolute; opacity: 0; }
.boost-pick span {
  display: block; padding: 13px 16px; border: 2px solid var(--line);
  border-radius: var(--r); background: rgb(var(--c-deep) / .35); font-size: 15px; font-weight: 600;
}
.boost-pick input:checked + span { border-color: var(--star); background: rgb(var(--c-star) / .12); color: var(--star); }
.boost-left { margin-top: 12px; font-size: 13px; }
.boost-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.boost-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgb(var(--c-deep) / .35);
}
.boost-row b { font-size: 15.5px; }
.boost-row small { color: var(--text-dim); }
.boost-state { margin-left: auto; font-size: 13.5px; font-weight: 700; }
.boost-pending .boost-state { color: var(--sky-300); }
.boost-approved { border-color: rgb(var(--c-star) / .4); }
.boost-approved .boost-state { color: var(--star); }
.boost-rejected { opacity: .6; }
.boost-stars { width: 74px; text-align: center; padding: 9px; }

/* media estrella: se recorta la imagen por la mitad */
.job-star-half { display: inline-flex; overflow: hidden; width: clamp(17px, 3.5vw, 26px); }
.job-star-half .job-star { flex: none; }

/* ============ administración de la plataforma ============ */
/* Sobria a propósito: es la sala de máquinas, no la casa de nadie. */
body.admin { background: rgb(var(--c-bg)); }
.atop {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid rgb(var(--c-line) / .6);
  background: rgb(var(--c-surface));
}
.abrand { font-size: 15px; letter-spacing: .01em; }
.anav { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; }
.anav-item {
  padding: 7px 13px; border-radius: 9px; font-size: 14px;
  color: rgb(var(--c-text-dim)); text-decoration: none;
}
.anav-item:hover { background: rgb(var(--c-accent) / .12); color: rgb(var(--c-text)); }
.anav-item.is-active { background: rgb(var(--c-accent) / .18); color: rgb(var(--c-text)); }
.amain { max-width: 1100px; margin: 0 auto; padding: 24px 20px 64px; }
.amain h1 { margin-bottom: 18px; }

.atable-wrap { overflow-x: auto; }
.atable-wrap .table { min-width: 860px; }
.arow-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.arow-actions form { display: flex; gap: 6px; align-items: center; margin: 0; }
.input-sm { width: 108px; padding: 6px 9px; font-size: 13px; }
.input-xs { width: 78px; }
.form-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.block { display: block; }
tr.is-blocked { opacity: .62; }

/* barras de visitas: la altura sale de una clase, nunca de estilo en línea */
.abars { display: flex; align-items: flex-end; gap: 4px; list-style: none; padding: 0; margin: 8px 0 4px; overflow-x: auto; }
.abar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 26px; }
.abar-fill { display: block; width: 16px; border-radius: 5px 5px 0 0; background: rgb(var(--c-accent)); }
.abar-label, .abar-num { font-size: 10px; color: rgb(var(--c-text-dim)); }

/* alturas de las barras (1 a 20), sin estilos en línea por la CSP */
.abar-fill.h-1 { height: 7px; }
.abar-fill.h-2 { height: 14px; }
.abar-fill.h-3 { height: 21px; }
.abar-fill.h-4 { height: 28px; }
.abar-fill.h-5 { height: 35px; }
.abar-fill.h-6 { height: 42px; }
.abar-fill.h-7 { height: 49px; }
.abar-fill.h-8 { height: 56px; }
.abar-fill.h-9 { height: 63px; }
.abar-fill.h-10 { height: 70px; }
.abar-fill.h-11 { height: 77px; }
.abar-fill.h-12 { height: 84px; }
.abar-fill.h-13 { height: 91px; }
.abar-fill.h-14 { height: 98px; }
.abar-fill.h-15 { height: 105px; }
.abar-fill.h-16 { height: 112px; }
.abar-fill.h-17 { height: 119px; }
.abar-fill.h-18 { height: 126px; }
.abar-fill.h-19 { height: 133px; }
.abar-fill.h-20 { height: 140px; }

/* ---------------- cabecera compacta en el móvil ---------------- */
@media (max-width: 640px) {
  .home .top { padding-block: 14px; gap: 10px; }
  .home .top .logo-sm { width: clamp(112px, 32vw, 150px); }
  .top-right { gap: 8px; }
  .top-right .btn-sm { padding: 8px 13px; font-size: 13px; }
  .hero { padding-top: clamp(24px, 5vh, 40px); }
  .hero-copy h1 { font-size: clamp(31px, 8.4vw, 40px); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .closing-card .hero-cta .btn { width: auto; }
}

/* ---------------- alta y acceso a dos columnas ---------------- */
.auth-split {
  max-width: 1060px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.auth-col { min-width: 0; }
.auth-aside {
  position: sticky; top: 28px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgb(var(--c-accent) / .14), rgb(var(--c-line) / .04));
}
.auth-aside h2 { margin-top: 10px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; line-height: 1.25; }
.auth-points { list-style: none; margin: 20px 0; display: grid; gap: 10px; }
.auth-points li {
  padding: 12px 14px 12px 38px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgb(var(--c-line) / .05);
}
.auth-points li::before {
  content: "✓";
  position: absolute; left: 14px; top: 12px;
  color: var(--sky-300); font-weight: 800;
}
.auth-points b { display: block; font-size: 14.5px; font-weight: 700; }
.auth-points small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-dim); }
.auth-aside .tiny { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }

@media (max-width: 880px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { position: static; }
}
.arange { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

/* ---------------- instalación y recordatorio ---------------- */
.install-card h2 { font-size: 19px; }
.install-card h2.mt { margin-top: 26px; }
.install-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.notify-state { font-size: 13.5px; }
.install-card .why { margin-top: 10px; }
.install-card .why p { margin-top: 6px; }
.dns-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }

/* ---------------- modo centro y ranking ---------------- */
.kind-pick { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.kind-pick legend { margin-bottom: 8px; }
.kind-opt input { position: absolute; opacity: 0; }
.kind-card {
  display: block; padding: 16px 18px; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.kind-opt input:checked + .kind-card { border-color: rgb(var(--c-star) / .55); background: rgb(var(--c-star) / .1); }
.kind-opt input:focus-visible + .kind-card { outline: 2px solid rgb(var(--c-accent)); outline-offset: 2px; }
.kind-card b { display: block; font-size: 15.5px; }
.kind-card small { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }

.org-door { text-align: center; }
.org-door h1 { margin: 6px 0 10px; font-size: clamp(28px, 5vw, 44px); }
.org-door .hero-cta { justify-content: center; margin-top: 24px; }

.rank-filter { margin-bottom: 14px; }
.rank-filter .field-label { display: block; margin-bottom: 6px; }
.rank-table .rank-pos { width: 56px; text-align: center; font-weight: 800; }
.rank-who { display: flex; align-items: center; gap: 10px; }
.rank-who img { width: 34px; height: 34px; border-radius: 50%; }
.rank-top .rank-pos { color: var(--star); }
.rank-1 { background: rgb(var(--c-star) / .12); }
.rank-2 { background: rgb(var(--c-line) / .07); }
.rank-3 { background: rgb(var(--c-line) / .04); }
@media (max-width: 560px) { .kind-pick { grid-template-columns: 1fr; } }


/* ============================================================
   PARTE PROFESIONAL — pro.slowrushlab.com
   Otra casa. Grafito, una línea de latón y tipografía con serifa
   en los titulares. Sin estrella, sin cielo y sin redondeos de
   juguete: quien mira esto está eligiendo proveedor.
   Las variables se redefinen aquí, así que las pantallas de acceso
   y de alta que cuelgan de esta puerta heredan el mismo tono.
   ============================================================ */
body.propage {
  --c-accent: 176 141 87;
  --c-accent2: 201 168 108;
  --c-accent-deep: 120 92 48;
  --c-line: 150 162 176;
  --c-deep: 11 13 16;
  --c-deep2: 15 18 22;
  --c-surface: 20 24 29;
  --c-card: 26 31 38;
  --c-glow: 0 0 0;
  --c-star: 176 141 87;
  --c-star2: 201 168 108;
  --c-shadow: 0 0 0;
  --navy-950: #0b0d10; --navy-900: #0f1216; --navy-850: #14181d; --navy-800: #1b2027; --navy-700: #262c34;
  --blue-600: #8d7443; --blue-500: #b08d57; --blue-400: #c9a86c;
  --sky-300: #ced4dc; --sky-200: #e8eaed;
  --text: #e8eaed; --text-dim: #98a0aa;
  --card-solid: #14181d;
  --accent-deep: #7a5f2f;
  --bg-glow: transparent;
  --r-sm: 3px; --r: 4px; --r-lg: 6px; --r-pill: 4px;
  --font-scale: 16.5px;
  --shadow: 0 1px 0 rgb(255 255 255 / .04);
  /* Titulares: geometría recta y estrecha, de plano técnico. Bahnschrift
     viene con Windows, DIN Alternate con macOS y iOS, y Roboto Condensed con
     Android; donde no haya ninguna cae en la del sistema, apretada. Ni una
     fuente descargada: nada de terceros (§7.2). */
  --pro-display: Bahnschrift, "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Segoe UI Variable Display", system-ui, sans-serif;
  /* Etiquetas y cifras, en monoespaciada: es lo que las hace parecer datos. */
  --pro-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pro-line: rgb(255 255 255 / .09);
  --pro-line-strong: rgb(255 255 255 / .16);
  --pro-brass: #b08d57;

  background-color: #0b0d10;
  background-image: linear-gradient(180deg, #0f1216 0%, #0b0d10 46%);
  background-attachment: fixed;
  color: var(--text);
}

/* --- barra superior --- */
.pro-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1180px; margin: 0 auto; padding: 22px 28px;
  border-bottom: 1px solid var(--pro-line);
}
.pro-mark { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; }
.pro-word { font-family: var(--pro-display); font-size: 23px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #f2f4f6; }
.pro-tag {
  font-family: var(--pro-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
  color: var(--pro-brass); border: 1px solid rgb(176 141 87 / .5); border-radius: 2px; padding: 3px 7px 2px;
}
.pro-top-right { display: flex; align-items: center; gap: 10px; }

/* --- botones: rectos, de una línea, sin brillo --- */
.pro-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 3px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pro-btn-lg { padding: 14px 26px; font-size: 14.5px; }
.pro-btn-solid { background: var(--pro-brass); color: #14100a; border-color: var(--pro-brass); }
.pro-btn-solid:hover { background: #c9a86c; border-color: #c9a86c; }
.pro-btn-line { border-color: var(--pro-line-strong); color: #e8eaed; }
.pro-btn-line:hover { border-color: var(--pro-brass); color: var(--pro-brass); }
.pro-btn-quiet { color: var(--text-dim); }
.pro-btn-quiet:hover { color: #e8eaed; }

/* --- estructura --- */
.pro-main { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.pro-eyebrow {
  font-family: var(--pro-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .2em; font-weight: 600; color: var(--pro-brass); margin-bottom: 18px;
}
.pro-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start;
  padding: clamp(56px, 9vh, 104px) 0 clamp(44px, 7vh, 76px);
}
.pro-hero h1 {
  font-family: var(--pro-display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(36px, 4.8vw, 62px); line-height: 1.04; color: #f4f6f8; margin-bottom: 22px;
}
.pro-lede { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.65; color: var(--text-dim); max-width: 34rem; }
.pro-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pro-note { margin-top: 16px; font-size: 13px; color: #79808a; }

/* --- panel de precio --- */
.pro-panel { border: 1px solid var(--pro-line); border-radius: 5px; background: #12161b; padding: 26px 24px; }
.pro-panel h2 { font-family: var(--pro-display); font-weight: 600; font-size: 23px; letter-spacing: -.01em; color: #f2f4f6; margin-bottom: 6px; }
.pro-sub { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.pro-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.pro-table th {
  text-align: left; font-family: var(--pro-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .12em; color: #79808a; font-weight: 600; padding: 0 0 10px;
  border-bottom: 1px solid var(--pro-line);
}
.pro-table td { padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / .05); }
.pro-table tr:last-child td { border-bottom: 0; }
.pro-table .num { text-align: right; font-family: var(--pro-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pro-table td.num { color: #f2f4f6; font-weight: 600; }
.pro-table td.dim { color: #79808a; font-weight: 400; }
.pro-panel .pro-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pro-line); }
.pro-panel .pro-btn { margin-top: 18px; }

/* --- franja de garantías --- */
.pro-band {
  display: grid; grid-template-columns: repeat(4, 1fr); list-style: none;
  border-block: 1px solid var(--pro-line);
}
.pro-band li { padding: 26px 24px 26px 0; }
.pro-band li + li { padding-left: 24px; border-left: 1px solid var(--pro-line); }
.pro-band b {
  display: block; font-family: var(--pro-display); font-size: 16px; font-weight: 600;
  letter-spacing: -.005em; color: #f2f4f6; margin-bottom: 5px;
}
.pro-band span { font-size: 13px; line-height: 1.5; color: #79808a; }

/* --- secciones --- */
.pro-section { padding: clamp(56px, 9vh, 96px) 0; }
.pro-section-alt { border-top: 1px solid var(--pro-line); }
.pro-h2 {
  font-family: var(--pro-display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.12; color: #f2f4f6; margin-bottom: 40px; max-width: 32rem;
}
.pro-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; list-style: none;
  background: var(--pro-line); border: 1px solid var(--pro-line);
}
.pro-grid li { background: #0e1114; padding: 28px 24px; }
.pro-num {
  display: block; font-family: var(--pro-mono); font-size: 11.5px; letter-spacing: .08em;
  color: var(--pro-brass); margin-bottom: 12px;
}
.pro-grid b, .pro-steps b {
  display: block; font-family: var(--pro-display); font-size: 17px; font-weight: 600;
  letter-spacing: -.005em; color: #f2f4f6; margin-bottom: 8px;
}
.pro-grid p, .pro-steps p { font-size: 13.5px; line-height: 1.6; color: #8b929c; }
.pro-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; }
.pro-steps li { border-top: 2px solid var(--pro-brass); padding-top: 18px; }

/* --- cierre y pie --- */
.pro-closing { border-top: 1px solid var(--pro-line); padding: clamp(56px, 9vh, 96px) 0; }
.pro-closing h2 {
  font-family: var(--pro-display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12; color: #f4f6f8; margin-bottom: 16px; max-width: 28rem;
}
.pro-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  max-width: 1180px; margin: 0 auto; padding: 26px 28px 40px;
  border-top: 1px solid var(--pro-line); font-size: 12.5px; color: #6f767f;
}
.pro-foot-links { display: flex; gap: 18px; }
.pro-foot a { color: #8b929c; text-decoration: none; }
.pro-foot a:hover { color: var(--pro-brass); }

/* --- el selector de idioma, en sobrio --- */
body.propage .lang-btn { border-radius: 3px; border-color: var(--pro-line-strong); font-size: 13px; }
body.propage .lang-menu { border-radius: 4px; }

/* --- acceso y alta bajo esta puerta --- */
body.propage .auth-main .logo { display: none; }
body.propage .auth-main h1 { font-family: var(--pro-display); font-weight: 600; letter-spacing: -.015em; }
body.propage h2, body.propage h3 { font-family: var(--pro-display); letter-spacing: -.01em; }
body.propage .card { border-radius: 5px; background: #12161b; border: 1px solid var(--pro-line); box-shadow: none; }
body.propage .btn { border-radius: 3px; letter-spacing: .04em; }
body.propage .input { border-radius: 3px; }

@media (max-width: 900px) {
  .pro-hero { grid-template-columns: 1fr; gap: 34px; }
  .pro-grid, .pro-steps { grid-template-columns: 1fr; }
  .pro-band { grid-template-columns: repeat(2, 1fr); }
  .pro-band li:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .pro-top { flex-wrap: wrap; }
  .pro-band { grid-template-columns: 1fr; }
  .pro-band li + li { border-left: 0; border-top: 1px solid var(--pro-line); padding-left: 0; }
  .pro-cta .pro-btn { width: 100%; }
}

/* --- captcha propio: el señuelo y el reto --- */
/* Fuera de la vista pero presente en el formulario: quien lo rellena es un
   robot, y ahí se queda. Nada de display:none, que los delata. */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reto { margin-top: 4px; }
[data-reto-estado]:empty { display: none; }
[data-reto-estado] { margin-top: 8px; }

/* --- bandeja de mensajes de la administración --- */
.msgs { display: grid; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); padding: 18px 20px; }
.msg.is-new { border-color: rgb(var(--c-accent) / .45); box-shadow: inset 3px 0 0 rgb(var(--c-accent)); }
.msg-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.msg-meta { text-align: right; }
.msg-body { white-space: pre-wrap; font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.tag-done { opacity: .6; }
