/* ============ Tipografías (locales, funcionan sin conexión) ============ */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* 0 = capullo cerrado, 1 = amapola abierta. Se anima en el loader y en el reproductor. */
@property --open { syntax: "<number>"; inherits: true; initial-value: 1; }

/* ============ Paleta corporativa ============
   Colores oficiales del logo: rosa claro #F8CBBB, rosa medio #E4B1A9, rosa petard #EC5757,
   verde claro #B7D9CB y verde oscuro #629680. Papel, vino y caramelo vienen de danzalavida.es. */
:root {
  --paper: #FBF6F3;      /* fondo crudo de la web */
  --paper-2: #F1EAE6;
  --rose: #F8CBBB;       /* rosa claro del logo */
  --poppy: #E4B1A9;      /* acción principal: rosa medio del logo */
  --poppy-deep: #EC5757; /* rosa petard del logo: acentos */
  --poppy-ink: #A33636;  /* petard oscurecido para texto: enlaces y errores */
  --tulip: #EC5757;      /* rosa petard del logo */
  --sage: #B7D9CB;        /* verde claro del logo */
  --sage-deep: #629680;   /* verde oscuro del logo */
  --sky: #B7D9CB;        /* verde claro del logo */
  --sky-deep: #629680;
  --lilac: #ECE6E9;      /* gris rosado de la pared del hero */
  --butter: #F4E3D4;     /* arena */
  --caramel: #B07B5F;    /* titulares de la web */
  --ink: #4A3335;        /* vino oscuro */
  --ink-soft: #745A5B;
  --line: rgba(74, 51, 53, 0.16);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--paper); position: relative; overflow-x: clip; }
@media (min-width: 520px) { .app { box-shadow: 0 0 80px rgba(74, 51, 53, 0.12); } }

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-t) + 16px) 24px calc(var(--safe-b) + 20px);
}
.screen > h1:focus { outline: none; }

.h-display { font: 400 clamp(42px, 12vw, 54px) / 0.98 var(--serif); letter-spacing: -0.015em; color: var(--ink); }
.h2 { font: 400 30px / 1.1 var(--serif); }
.lead { font: italic 400 25px / 1.2 var(--serif); color: var(--ink-soft); }
.fine { font: 400 14px / 1.5 var(--sans); color: var(--ink-soft); }
.grow { flex: 1; }

/* ============ Botones y enlaces ============ */
.btn {
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 17px / 1 var(--sans); cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--poppy); color: var(--ink); }
.btn-primary:hover { background: #DCA197; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.6); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.link { background: none; border: 0; padding: 12px 4px; font: 500 16px / 1.2 var(--sans); color: var(--poppy-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; margin-left: -6px; padding: 0 8px 0 4px; background: none; border: 0; font: 500 16px / 1 var(--sans); color: var(--ink-soft); cursor: pointer; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(74, 51, 53, 0.25); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Formularios ============ */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 4px; }
.field label { font: 500 15px / 1.3 var(--sans); color: var(--ink-soft); }
.field input {
  width: 100%; padding: 10px 0 12px; background: transparent; border: 0; border-radius: 0;
  border-bottom: 1.5px solid var(--line); font: 400 18px / 1.3 var(--sans); color: var(--ink);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(116, 90, 91, 0.6); }
.field input:focus { border-bottom-color: var(--poppy-deep); box-shadow: 0 1.5px 0 var(--poppy-deep); }
.field input[aria-invalid="true"] { border-bottom-color: var(--poppy-ink); }
.err { font: 500 14px / 1.35 var(--sans); color: var(--poppy-ink); }
.err:empty { display: none; }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw button { position: absolute; right: 0; bottom: 4px; min-height: 40px; padding: 0 4px; background: none; border: 0; font: 500 15px / 1 var(--sans); color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form-error { padding: 12px 14px; border-radius: 14px; background: #F6DCD5; color: #7E3530; font: 500 15px / 1.4 var(--sans); }
.form-error:empty { display: none; }

/* ============ Loader: la amapola florece ============ */
.loader {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--paper); opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.loader.on { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.loader-poppy { width: 140px; height: 140px; animation: bloom 2.8s ease-in-out infinite, spin 26s linear infinite; }
.loader-text { font: italic 400 25px / 1.2 var(--serif); color: var(--ink-soft); min-height: 1.2em; }
@keyframes bloom { 0% { --open: 0.04; } 52% { --open: 1; } 72% { --open: 1; } 100% { --open: 0.04; } }
@keyframes bloomOnce { from { --open: 0.05; rotate: -14deg; } to { --open: 1; rotate: 0deg; } }

/* ============ Amapola (SVG) ============ */
.poppy { display: block; width: 100%; height: 100%; overflow: visible; }
.poppy .petal {
  transform-origin: 100px 100px;
  transform: rotate(calc(var(--a) * 1deg)) scale(calc((0.4 + 0.6 * var(--open)) * var(--s)), calc((0.32 + 0.68 * var(--open)) * var(--s)));
}
.poppy .fade-in { opacity: var(--open); }

/* ============ Acceso ============
   Pantalla de altura fija: el hero con el logo se encoge lo necesario para que
   «Entrar» y «Crear cuenta» quepan sin scroll. */
.auth { height: 100dvh; min-height: 0; padding-top: 0; padding-bottom: calc(var(--safe-b) + 14px); overflow-y: auto; }
.auth-hero {
  position: relative; flex: 1 1 0; min-height: 92px; max-height: 330px; display: flex; justify-content: center; align-items: stretch;
  margin: 0 -24px; padding: calc(var(--safe-t) + 18px) 24px 16px;
  background: linear-gradient(180deg, var(--lilac) 0%, var(--paper) 82%, var(--paper) 100%);
}
.auth-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--sky); opacity: 0.8; }
.auth-hero .logo-full:focus { outline: none; }
.auth-hero .logo-full { height: 100%; max-width: min(78%, 320px); display: flex; justify-content: center; animation: rise 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.auth-hero .logo-full .logo-svg { height: 100%; width: auto; max-width: 100%; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth .lead { flex: none; margin: 14px 0 12px; max-width: 22ch; font-size: 22px; color: var(--caramel); }
.tabs { flex: none; display: flex; gap: 26px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { position: relative; min-height: 46px; padding: 0 2px; background: none; border: 0; font: 600 17px / 1 var(--sans); color: var(--ink-soft); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--poppy); }
.auth .form { flex: none; gap: 12px; margin-bottom: 10px; }
.auth .field input { padding: 7px 0 9px; font-size: 17px; }
.auth .btn { min-height: 50px; margin-top: 4px; }
.auth-note { flex: none; font-size: 12.5px; }

/* ============ Planes ============ */
.steps-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.plans-head { margin: 8px 0 0; display: grid; gap: 8px; }
.plans-sub { font: italic 400 22px / 1.25 var(--serif); color: var(--caramel); }
.trial { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 20px; background: linear-gradient(120deg, #FBEDE8, #F3E6EC); font: 400 15px / 1.45 var(--sans); color: var(--ink-soft); }
.trial b { color: var(--ink); font-weight: 600; }
.trial-flower { flex: none; width: 34px; height: 40px; }
.trial-flower .bloom { width: 100%; height: 100%; display: block; }
.plan-list { display: grid; gap: 10px; margin: 14px 0 16px; }
.plan {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px;
  border-radius: 24px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.plan:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--poppy); }
.plan:has(input:focus-visible) { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
.plan input { appearance: none; -webkit-appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink-soft); display: grid; place-content: center; }
.plan input::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--poppy-deep); transform: scale(0); transition: transform 0.15s; }
.plan input:checked { border-color: var(--poppy-deep); }
.plan input:checked::before { transform: scale(1); }
.plan-name { font: 400 28px / 1.1 var(--serif); }
.plan-note { font: 400 14.5px / 1.35 var(--sans); color: var(--ink-soft); }
.plan-price { font: 400 28px / 1 var(--serif); text-align: right; white-space: nowrap; }
.plan-price small { display: block; margin-top: 4px; font: 400 14px / 1 var(--sans); color: var(--ink-soft); }
.tag { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--sage); color: #2F5446; font: 600 12.5px / 1.4 var(--sans); vertical-align: 3px; }

/* ============ Pago (simulado) ============ */
.test-banner { margin: 16px 0 22px; padding: 14px 16px; border-radius: 18px; background: var(--butter); color: #6A4A33; font: 500 14.5px / 1.5 var(--sans); }
.test-banner b { font-weight: 600; }
.test-banner code { font: 600 14px / 1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0 14px; margin: 6px 0 14px; border-bottom: 1px solid var(--line); }
.summary .what { font: 400 26px / 1.1 var(--serif); }
.summary .amount { font: 400 30px / 1 var(--serif); white-space: nowrap; text-align: right; }
.summary small { display: block; margin-top: 6px; font: 400 14px / 1.4 var(--sans); color: var(--ink-soft); }
.pay .test-banner { margin: 0 0 16px; padding: 10px 14px; font-size: 13.5px; }
.pay .form { gap: 10px; }
.pay .h-display { font-size: clamp(36px, 10.5vw, 46px); }
.pay .pay-note { margin-top: 10px; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pay-note { text-align: center; margin-top: 16px; }

/* Checkout con el aspecto del Payment Element de Stripe: campos en caja, pago exprés arriba. */
.checkout { margin: 0 0 16px; padding: 18px 16px 14px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(74, 51, 53, 0.06), 0 10px 30px rgba(74, 51, 53, 0.07); }
.co-label { margin-bottom: 10px; font: 600 13px / 1.2 var(--sans); letter-spacing: 0.02em; color: var(--ink-soft); }
.express { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-btn { min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: #000; color: #fff; font: 600 16px / 1 var(--sans); letter-spacing: 0.01em; cursor: pointer; transition: transform 0.12s ease, opacity 0.2s; }
.wallet-btn:active { transform: scale(0.97); }
.wallet-btn:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; font: 500 13.5px / 1 var(--sans); color: var(--ink-soft); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.checkout .form { gap: 12px; }
.checkout .field label { font-size: 14px; }
.checkout .field input, .checkout .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #E3DCD8; border-radius: 10px; background: #fff;
  font: 400 16.5px / 1.3 var(--sans); color: var(--ink); box-shadow: 0 1px 1px rgba(74, 51, 53, 0.04);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.checkout .field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23745A5B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.checkout .field input:focus, .checkout .field select:focus { border-color: var(--poppy-deep); box-shadow: 0 0 0 3px rgba(236, 87, 87, 0.22); }
.checkout .field input[aria-invalid="true"] { border-color: var(--poppy-ink); box-shadow: 0 0 0 3px rgba(163, 54, 54, 0.14); }
.checkout .card-row { gap: 12px; }
.card-input { position: relative; }
.card-input input { padding-right: 118px !important; }
.card-brands { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; pointer-events: none; }
.card-brands .cb { width: 32px; height: 20px; display: block; transition: opacity 0.2s, transform 0.2s; }
.card-brands.picked .cb { opacity: 0.25; }
.card-brands.picked .cb.on { opacity: 1; transform: scale(1.08); }
.stripe-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font: 500 13px / 1.3 var(--sans); color: var(--ink-soft); }
.stripe-note b { font-weight: 700; color: #635BFF; }
.pay .checkout + .test-banner { margin: 0 0 6px; }

/* Hoja simulada de Google Pay / Apple Pay */
.wallet-sheet .ws-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wallet-sheet h2 { font: 600 20px / 1.2 var(--sans); }
.ws-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font: 400 24px / 1 var(--sans); cursor: pointer; }
.ws-rows { border-radius: 14px; background: #fff; padding: 2px 14px; }
.ws-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font: 400 15px / 1.3 var(--sans); }
.ws-row + .ws-row { border-top: 1px solid var(--line); }
.ws-row span { color: var(--ink-soft); }
.ws-row b { font-weight: 600; text-align: right; }
.ws-after { margin-top: 12px !important; font-size: 13.5px; }
.ws-confirm-wrap { display: grid; justify-items: center; gap: 12px; margin-top: 18px; }
.ws-confirm { min-height: 52px; border: 0; border-radius: 12px; background: #000; color: #fff; font: 600 16.5px / 1 var(--sans); }
.wallet-sheet.success .ws-confirm { background: #2F7D4F; }
.ws-face { display: none; width: 54px; height: 54px; border-radius: 16px; border: 3px solid #1C1C1E; position: relative; }
.ws-face::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 3px solid #1C1C1E; border-top-color: transparent; }
.is-apple.working .ws-face { display: block; animation: face 1s ease-in-out infinite; }
.is-apple.success .ws-face { display: block; border-color: #2F7D4F; animation: none; }
.is-apple.success .ws-face::before { border-color: #2F7D4F; border-top-color: #2F7D4F; }
.ws-sim { text-align: center; margin-top: 12px !important; font-size: 12.5px; }
@keyframes face { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.6; } }

/* ============ Bienvenida ============ */
.ok { align-items: center; justify-content: center; text-align: center; gap: 22px; }
.ok .bloom-big { width: min(72vw, 300px); aspect-ratio: 1; animation: bloomOnce 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ok p { max-width: 26ch; }

/* ============ Inicio ============
   Todo en una pantalla, sin scroll: la tarjeta del carrusel ocupa el espacio que sobra. */
.home { height: 100dvh; min-height: 0; padding-bottom: calc(var(--safe-b) + 18px); overflow: hidden; }
.home-top { flex: none; display: flex; align-items: flex-start; justify-content: space-between; }
.brand { display: block; width: 118px; }
.brand .logo-svg, .logo-full .logo-svg { display: block; width: 100%; height: auto; }
.avatar {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 0;
  background: var(--rose); color: var(--ink); font: 400 24px / 1 var(--serif); text-align: center; cursor: pointer;
}
.greet { flex: none; margin: 10px 0 0; }
.greet-date { font: 500 12px / 1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.greet-title { margin-top: 4px; font: italic 400 clamp(30px, 8.6vw, 36px) / 1.1 var(--serif); letter-spacing: -0.005em; color: var(--ink-soft); }
.greet-title:focus { outline: none; }
.greet-name { color: var(--caramel); }

.carousel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 16px -24px 0; }
.track {
  flex: 1; min-height: 0; display: flex; gap: 12px; padding: 0 24px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding: 0 24px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.today {
  position: relative; flex: 0 0 calc(100% - 28px); max-height: 380px; min-height: 0; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 54px 22px 22px;
  border-radius: 30px; overflow: hidden; color: var(--ink); text-decoration: none;
  background: linear-gradient(165deg, #E3EEEA 0%, #EEE8EB 52%, #F2D6CC 100%);
}
.today:only-child { flex-basis: 100%; }
.today .deco { position: absolute; width: 34%; max-width: 130px; aspect-ratio: 40 / 48; right: 5%; top: 5%; opacity: 0.6; }
.today .deco .bloom { width: 100%; height: 100%; display: block; }
.today .when { position: absolute; left: 22px; top: 20px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); font: 600 12.5px / 1.4 var(--sans); letter-spacing: 0.04em; color: var(--ink-soft); }
.today h2 { position: relative; max-width: 22ch; margin-bottom: 8px; font: 400 clamp(26px, 7.6vw, 34px) / 1.05 var(--serif); letter-spacing: -0.01em; }
.today p { position: relative; max-width: 30ch; margin-bottom: 16px; font-size: 15.5px; line-height: 1.4; color: #5E4647; }
.play-row { position: relative; display: flex; align-items: center; gap: 14px; font: 600 15px / 1 var(--sans); }
.play-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--poppy); display: grid; place-items: center; transition: transform 0.2s; }
.today:hover .play-btn { transform: scale(1.06); }
.dots { flex: none; display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.dots[hidden] { display: none; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(74, 51, 53, 0.18); transition: width 0.25s, background-color 0.25s; }
.dot.on { width: 18px; border-radius: 6px; background: var(--poppy-deep); }

.week-wrap { flex: none; margin-top: 14px; }
.week-title { font: italic 400 22px / 1.2 var(--serif); color: var(--ink-soft); }
.week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 0; padding: 0; }
.day { display: grid; justify-items: center; font: 500 12.5px / 1 var(--sans); color: var(--ink-soft); }
.day-btn { display: grid; justify-items: center; gap: 5px; padding: 2px 0; border: 0; background: none; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button.day-btn { cursor: pointer; }
button.day-btn:focus-visible { outline-offset: 2px; }
.day .moon { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); box-shadow: inset 0 0 0 1px rgba(74, 51, 53, 0.08); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.day .moon .bloom { width: 28px; height: 34px; display: block; }
.day.is-today { color: var(--ink); font-weight: 600; }
/* Hoy: etiqueta en negrita. Día activo (el de la tarjeta visible del carrusel): anillo. */
.day.is-active .moon { box-shadow: 0 0 0 2px var(--poppy-deep); transform: scale(1.06); }
.day.is-active .day-label { color: var(--ink); }
.day.is-done .moon::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--sage-deep); box-shadow: 0 0 0 2px var(--paper); }
.day.is-empty { opacity: 0.38; }
.day.is-empty .moon { box-shadow: none; }
.install-chip { flex: none; align-self: center; margin-top: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); font: 500 13px / 1.3 var(--sans); color: var(--ink-soft); cursor: pointer; text-align: center; }
.install-chip.is-text { cursor: default; }
@media (max-height: 640px) { .greet-title { font-size: 28px; } .week-wrap { margin-top: 10px; } .brand { width: 100px; } }

/* ============ Cuenta ============ */
.acct-head { display: flex; align-items: center; gap: 16px; margin: 14px 0 16px; }
.acct-head .avatar { flex: none; width: 64px; height: 64px; font-size: 32px; cursor: default; }
.acct-head .who { min-width: 0; }
.acct-head .who p { overflow-wrap: anywhere; }
.panel { display: grid; gap: 10px; padding: 18px 20px; margin-bottom: 12px; border-radius: 26px; background: rgba(255, 255, 255, 0.65); box-shadow: inset 0 0 0 1.5px var(--line); }
.kv { display: flex; justify-content: space-between; gap: 16px; }
.kv span:first-child { color: var(--ink-soft); }
.kv span:last-child { text-align: right; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sage); color: #2F5446; font: 600 13px / 1.4 var(--sans); }
.pill.warn { background: var(--butter); color: #6A4A33; }
.stack { display: grid; gap: 12px; margin-top: 6px; }

/* ============ Hoja de confirmación y aviso ============ */
dialog.sheet { width: min(100%, 480px); max-width: 480px; margin: auto auto 0; padding: 26px 24px calc(var(--safe-b) + 24px); border: 0; border-radius: 30px 30px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 60px rgba(74, 51, 53, 0.25); }
dialog.sheet::backdrop { background: rgba(74, 51, 53, 0.42); }
dialog.sheet .actions { display: grid; gap: 10px; margin-top: 22px; }
dialog.sheet p { margin-top: 8px; color: var(--ink-soft); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--safe-b) + 24px); transform: translateX(-50%); max-width: min(92vw, 420px); padding: 14px 20px; border-radius: 18px; background: var(--ink); color: var(--paper); font: 500 15px / 1.4 var(--sans); }

/* ============ Movimiento reducido ============ */
@media (prefers-reduced-motion: reduce) {
  .loader-poppy { animation: none; --open: 1; }
  .auth-hero .logo-full, .ok .bloom-big { animation: none; }
  .btn, .plan, .play-btn { transition: none; }
}
