/* MIS DÍAS · sistema visual base (sitio, app web y páginas sueltas). Paleta oficial de la marca. */
@font-face { font-family: 'Playfair Display'; src: url(/assets/fonts/playfair.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(/assets/fonts/playfair-italic.woff2) format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/assets/fonts/montserrat.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ciruela: #782D50; --ciruela-osc: #5E1F3E; --magenta: #C51B65; --coral: #F27679; --rosa: #E9A6A4; --arena: #F5EBDD; --verde: #344D49; --crema: #FCF6F1;
  --primary: var(--ciruela); --primary-2: var(--magenta); --accent: var(--coral);
  --bg: var(--crema); --surface: #fff; --surface-2: #FBF1EC; --line: #EFDFD8; --text: #3A2430; --muted: #85707A; --on-primary: #fff;
  --ph-menstrual: #C51B65; --ph-follicular: #F4A08A; --ph-ovulation: #344D49; --ph-luteal: #B9567A; --fertile: #7FA79E; --fertile-soft: #E1EEEA;
  --period-soft: #FBE0EA; --ok: #2E7D5B; --warn: #B4621B; --danger: #B3261E;
  --radius: 22px; --radius-sm: 14px; --shadow: 0 10px 30px rgba(120, 45, 80, .08), 0 2px 6px rgba(120, 45, 80, .05);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif; --sans: Montserrat, 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --grad: linear-gradient(120deg, #5E1F3E 0%, #782D50 35%, #C51B65 75%, #F27679 100%);
}
/* Temas (Plus) */
[data-theme="coral"] { --primary: #C24E57; --primary-2: #F27679; --grad: linear-gradient(120deg, #9B3141, #C24E57 45%, #F27679 85%, #F8B195); }
[data-theme="verde"] { --primary: #344D49; --primary-2: #4F7A72; --accent: #E9A6A4; --grad: linear-gradient(120deg, #22332F, #344D49 45%, #4F7A72 80%, #7FA79E); }
[data-theme="arena"] { --primary: #8A5A44; --primary-2: #B07A5E; --bg: #F7F0E6; --grad: linear-gradient(120deg, #6E4535, #8A5A44 45%, #C08B6B 85%, #E7C3A5); }
[data-theme="noche"] {
  --primary: #E58AAE; --primary-2: #F27679; --on-primary: #2A1520; --bg: #1C1218; --surface: #271A22; --surface-2: #32222C; --line: #3E2D37; --text: #F6E9EE; --muted: #B7A0AB;
  --period-soft: #4A2333; --fertile-soft: #22352F; --shadow: 0 10px 30px rgba(0, 0, 0, .35); --grad: linear-gradient(120deg, #3B1528, #5E1F3E 40%, #9C2A5A 80%, #C2526B);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: .2px; color: var(--primary); line-height: 1.2; margin: 0 0 .5em; }
[data-theme="noche"] h1, [data-theme="noche"] h2, [data-theme="noche"] h3 { color: #F3D3E0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); } h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--primary-2); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .hidden, [hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary-2) 45%, transparent); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(197, 27, 101, .25); }
.btn-outline { background: transparent; border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-light { background: #fff; color: var(--ciruela); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-google { background: #fff; color: #3c4043; border: 1.5px solid #dadce0; }
.btn-google svg { width: 18px; height: 18px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--primary); font-size: 13px; font-weight: 600; }

label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: 500 15.5px var(--sans); transition: border-color .15s; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); outline: none; }

.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 6px 11px; font: 700 12px var(--sans); color: var(--muted); text-decoration: none; }
.lang a[aria-current] { background: var(--primary); color: var(--on-primary); }
.logo img { display: block; height: 46px; width: auto; }
.logo-sm img { height: 38px; }

.status-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--grad); }
.status-card { background: #fff; border-radius: 26px; padding: 34px 28px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.status-card .logo { display: inline-block; margin-bottom: 18px; }
.status-card .logo img { margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
