/* Volver a Ti : « le carnet précieux » (voir DESIGN.md v2)
   Ivoire + grain papier, halos lavande et or, illustrations au trait fin,
   cartes à double cadre, navigation en pastille flottante. */
:root {
  --teal: #166058; --teal-noche: #0F4A44; --teal-claro: #3E8A7F; --menta: #E4F0EC;
  --lav1: #EAD4F2; --lav2: #E3D2F0; --lila: #F5EAF8; --marfil: #FDFBF8; --papel: #FFFEFC;
  --oro: #C9A227; --oro-claro: #F4E9C8; --oro-hondo: #8C6E14;
  --tinta: #2E2A33; --pizarra: #6B6570; --ciruela: #5E4A6B; --malva: #8A5E95; --bruma: #EFEDF1;
  --curva: cubic-bezier(.32, .72, 0, 1);
  --sombra: 0 22px 44px -22px rgba(94, 74, 107, .28), 0 2px 6px -2px rgba(94, 74, 107, .06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--marfil); }
body {
  margin: 0; color: var(--tinta); background: transparent; min-height: 100dvh;
  font: 400 17px/1.6 "Satoshi", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; padding-bottom: calc(118px + env(safe-area-inset-bottom));
}
/* halos de lumière en fond (fixes, ne bougent pas au défilement) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 38% at 88% 2%, #EBD9F3 0%, transparent 70%),
    radial-gradient(48% 30% at 0% 30%, #F6EFD9 0%, transparent 70%),
    radial-gradient(55% 34% at 100% 78%, #E2EFEA 0%, transparent 70%),
    var(--marfil);
}
/* grain papier très léger */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-weight: 700; color: var(--teal); margin: 0 0 8px; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: 34px; } h2 { font-size: 23px; } h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
.envoltura { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.oculto { display: none !important; }
.suave { color: var(--pizarra); font-size: 15px; }
.nota { color: var(--malva); font-style: italic; }

/* ---------- en-tête ---------- */
.cabecera { position: relative; padding: calc(26px + env(safe-area-inset-top)) 0 18px; overflow: hidden; }
.cabecera .envoltura { position: relative; }
.cabecera .envoltura > *:not(#espiral) { position: relative; z-index: 1; }
.espiral { position: absolute; right: -92px; top: -78px; width: 230px; height: 230px; opacity: .5; z-index: 0; animation: girar 90s linear infinite; }
.marca { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.marca img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(22, 96, 88, .5); }
.marca span { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ciruela); }
.etiqueta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(94, 74, 107, .1); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ciruela); margin-bottom: 12px; }
.etiqueta svg { width: 14px; height: 14px; color: var(--oro); }
.saludo { font-size: 38px; line-height: 1.05; max-width: 11ch; }
.frase { margin-top: 12px; font-size: 17px; color: var(--malva); font-style: italic; max-width: 30ch; }

/* ---------- carte à double cadre ---------- */
.bisel { padding: 6px; border-radius: 30px; background: rgba(94, 74, 107, .045); box-shadow: inset 0 0 0 1px rgba(94, 74, 107, .07); margin-bottom: 16px; }
.nucleo { position: relative; border-radius: 24px; background: var(--papel); padding: 20px; box-shadow: var(--sombra), inset 0 1px 0 rgba(255, 255, 255, .9); overflow: hidden; }
.bisel.lila .nucleo { background: linear-gradient(160deg, #FBF4FD, var(--lila)); }
.bisel.teal { background: rgba(22, 96, 88, .12); }
.bisel.teal .nucleo { background: linear-gradient(150deg, #1B6E65 0%, var(--teal) 45%, var(--teal-noche) 100%); color: var(--marfil); }
.bisel.teal h2, .bisel.teal h3 { color: #FFFDF6; }
.sobretitulo { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ciruela); margin: 0 0 8px; }
.seccion { display: flex; align-items: center; gap: 10px; margin: 26px 4px 12px; }
.seccion::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 162, 39, .5), transparent); }

/* ---------- boutons (pastilles) ---------- */
button, .boton {
  font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 99px; min-height: 52px;
  padding: 8px 8px 8px 24px; cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--teal); color: #FFFDF6; text-decoration: none;
  box-shadow: 0 14px 26px -14px rgba(22, 96, 88, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .5s var(--curva), background .5s var(--curva), box-shadow .5s var(--curva);
}
button:active, .boton:active { transform: scale(.97); }
button .ico, .boton .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: 0 0 auto; transition: transform .5s var(--curva); }
button .ico svg, .boton .ico svg { width: 18px; height: 18px; }
button:active .ico { transform: translate(2px, -2px) scale(1.05); }
button.sin-ico, .boton.sin-ico { padding: 8px 24px; justify-content: center; }
button.secundario, .boton.secundario { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 1.5px rgba(22, 96, 88, .18); }
button.secundario .ico, .boton.secundario .ico { background: var(--menta); }
button.texto { background: none; box-shadow: none; color: var(--teal); padding: 6px 2px; min-height: 0; font-weight: 600; font-size: 15px; justify-content: flex-start; gap: 6px; }
button.texto svg { width: 16px; height: 16px; transition: transform .5s var(--curva); }
button.ancho, .boton.ancho { width: 100%; }
button:disabled { opacity: .55; }

/* ---------- champs ---------- */
input, select, textarea { font: inherit; font-size: 16px; width: 100%; border: 0; border-radius: 16px; padding: 14px 16px; background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1.5px rgba(94, 74, 107, .14); transition: box-shadow .4s var(--curva); }
input:focus, select:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--teal-claro), 0 0 0 5px rgba(62, 138, 127, .12); }
textarea { min-height: 104px; resize: vertical; }
label { display: block; font-weight: 700; font-size: 14px; margin: 14px 2px 6px; color: var(--ciruela); }
.fila { display: flex; gap: 10px; align-items: center; }
.fila > * { flex: 1; }

/* ---------- pastilles d'info ---------- */
.pastilla { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: var(--lila); color: var(--ciruela); white-space: nowrap; }
.pastilla.malva { background: var(--malva); color: #fff; }
.pastilla.oro { background: var(--oro-claro); color: var(--oro-hondo); }
.pastilla.menta { background: var(--menta); color: var(--teal); }

/* ---------- symboles ---------- */
.simbolo { width: 100%; height: 100%; display: block; }
.medallon { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 20px; padding: 11px; color: var(--teal); background: radial-gradient(circle at 30% 25%, #fff 0%, var(--menta) 80%); box-shadow: inset 0 0 0 1px rgba(22, 96, 88, .1), 0 10px 20px -14px rgba(22, 96, 88, .6); transition: background .6s var(--curva), color .6s var(--curva); }
.ilustracion { width: 150px; height: auto; display: block; margin: 4px auto 10px; }

/* ---------- navigation flottante ---------- */
.isla { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: flex; gap: 4px; padding: 6px; border-radius: 99px; background: rgba(255, 254, 252, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 18px 40px -18px rgba(46, 42, 51, .35), inset 0 0 0 1px rgba(94, 74, 107, .1); }
.isla button { white-space: nowrap; background: none; box-shadow: none; color: var(--pizarra); min-height: 50px; padding: 0 20px; gap: 8px; justify-content: center; font-size: 15px; }
.isla button svg { width: 22px; height: 22px; }
.isla button.activa { background: var(--teal); color: #FFFDF6; box-shadow: 0 10px 20px -12px rgba(22, 96, 88, .8); }

/* ---------- apparitions douces ---------- */
.aparecer { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .9s var(--curva), transform .9s var(--curva), filter .9s var(--curva); transition-delay: var(--retraso, 0s); }
.aparecer.visto { opacity: 1; transform: none; filter: none; }

/* ---------- message flottant ---------- */
.aviso { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; background: var(--tinta); color: #fff; padding: 13px 20px; border-radius: 99px; font-size: 15px; font-weight: 500; max-width: 90vw; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); animation: subir .6s var(--curva); }

audio { width: 100%; margin: 8px 0; height: 40px; }

@keyframes girar { to { transform: rotate(360deg); } }
@keyframes subir { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .aparecer { opacity: 1; transform: none; filter: none; }
}

/* ===================== v3 « lumière du jour » (13/11/2026, voir DESIGN.md) =====================
   Cartes allégées (plus de double cadre), titres plus affirmés, boutons en relief doux. */
:root {
  --radio: 28px;
  --sombra: inset 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 1px rgba(94, 74, 107, .06), 0 28px 52px -32px rgba(94, 74, 107, .45), 0 8px 16px -12px rgba(94, 74, 107, .12);
}
body::before {
  background:
    radial-gradient(70% 34% at 100% 0%, #EBDCF5 0%, transparent 72%),
    radial-gradient(52% 30% at 0% 34%, #F8F0DA 0%, transparent 72%),
    radial-gradient(60% 34% at 100% 74%, #E0EFE9 0%, transparent 72%),
    radial-gradient(60% 30% at 0% 100%, #F1E4F6 0%, transparent 72%),
    var(--marfil);
}
h1 { font-weight: 900; letter-spacing: -.035em; }
h2 { letter-spacing: -.025em; }
.bisel { padding: 0; background: none; box-shadow: none; border-radius: var(--radio); margin-bottom: 14px; }
.nucleo { border-radius: var(--radio); box-shadow: var(--sombra); }
.bisel.teal { background: none; }
.bisel.teal .nucleo { background: radial-gradient(120% 90% at 100% 0%, #2B8479 0%, transparent 56%), linear-gradient(150deg, #1B6E65, var(--teal) 50%, var(--teal-noche)); box-shadow: 0 28px 48px -28px rgba(15, 74, 68, .8), inset 0 1px 0 rgba(255, 255, 255, .16); }
.seccion { margin: 32px 4px 14px; }
.seccion .sobretitulo { font-size: 12px; }
button, .boton { background: linear-gradient(180deg, #1E776C, var(--teal)); }
button.secundario, .boton.secundario { background: #fff; }
.isla { box-shadow: 0 18px 40px -18px rgba(46, 42, 51, .4), inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px rgba(94, 74, 107, .08); }
.medallon { border-radius: 50%; }

/* ---- en-tête « ciel » partagé par l'appli cliente et l'espace de Pamela ---- */
/* en-tête : un ciel qui change avec l'heure, mandala doré, anneau du jour */
.cabecera.cielo { padding: calc(22px + env(safe-area-inset-top)) 0 30px; border-radius: 0 0 40px 40px; margin-bottom: 22px;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  box-shadow: 0 30px 50px -40px rgba(94, 74, 107, .55), inset 0 -1px 0 rgba(255, 255, 255, .7); }
body { --c1: #E6DAF6; --c2: #F0E6F8; --c3: #FBF6FB; --astro: #FFF1BF; --ax: 82%; --ay: 6%; }
body[data-cielo="alba"] { --c1: #FBE4D4; --c2: #F6E2EF; --c3: #F3EBFA; --astro: #FFE9B8; --ax: 86%; --ay: 30%; }
body[data-cielo="tarde"] { --c1: #FBDDBD; --c2: #F5D8E3; --c3: #EEE2F6; --astro: #FFD9A0; --ax: 88%; --ay: 34%; }
body[data-cielo="noche"] { --c1: #D2C6EC; --c2: #E0D6F2; --c3: #F0E9F8; --astro: #FFFFFF; --ax: 84%; --ay: 12%; }
.cabecera.cielo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 40% at var(--ax) var(--ay), var(--astro) 0%, transparent 70%); opacity: .9; }
.mandala { position: absolute; right: -128px; top: -96px; width: 330px; height: 330px; opacity: .62; z-index: 0; animation: girar 160s linear infinite; }
.cabecera .envoltura > *:not(#mandala) { position: relative; z-index: 1; }
.cabecera.cielo .marca { margin-bottom: 30px; }
.cabecera.cielo .etiqueta { background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-linea { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 14px; }
.momento { margin: 0 0 2px; font-size: 19px; font-weight: 500; color: var(--ciruela); letter-spacing: -.01em; }
.cabecera.cielo .saludo { font-size: clamp(44px, 13vw, 58px); line-height: .98; max-width: none; margin: 0; color: var(--teal); }
.cabecera.cielo .frase { margin-top: 18px; padding-left: 14px; border-left: 2px solid rgba(201, 162, 39, .6); font-size: 17px; line-height: 1.5; max-width: 32ch; }
.anillo-hoy { position: relative; width: 92px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 16px 30px -18px rgba(94, 74, 107, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.anillo-hoy svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.anillo-hoy circle { fill: none; stroke-width: 6; }
.anillo-hoy .pista { stroke: rgba(94, 74, 107, .1); }
.anillo-hoy .avance { stroke: var(--oro); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--curva); }
.anillo-hoy .num { position: relative; text-align: center; line-height: 1; }
.anillo-hoy .num b { display: block; font-size: 25px; font-weight: 900; color: var(--teal); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.anillo-hoy .num span { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ciruela); }
.anillo-hoy.completo { background: linear-gradient(145deg, #E7C75B, var(--oro)); box-shadow: 0 16px 30px -16px rgba(140, 110, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .5); color: #fff; }
.anillo-hoy.completo svg:not(.ok) { display: none; }
.anillo-hoy .ok { position: static; transform: none; width: 40px; height: 40px; }

.aviso { background: var(--teal-noche); box-shadow: 0 16px 30px -14px rgba(15, 74, 68, .6); }
