/* ============================================================
   PATDS — Páginas públicas (rediseño 2026-10): iniciar sesión, crear
   cuenta, recuperar y crear contraseña, 404. Un lado con la marca (solo
   en pantallas anchas) y un panel con el formulario. Independiente de
   assets/ui.css (estas páginas no tienen menú ni sesión).
   ============================================================ */
:root {
  --p-navy: #2b1f17; --p-gold: #c99a3e; --p-gold2: #e2b86a;
  --p-tx: #241c16; --p-tx2: #4a3f37; --p-mut: #7d7064;
  --p-line: rgba(60, 40, 20, .11); --p-field: rgba(60, 40, 20, .2);
  --p-acc: #b4532a; --p-red: #c62828; --p-redbg: #fdecec; --p-green: #15803d; --p-greenbg: #e8f7ee; --p-amberbg: #fff7e0;
  --p-panel: #fbf6ee; --p-input: #fffdf9; --p-r: 14px;
  --p-serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif; --p-btn: #2b1f17; --p-btn-tx: #fff8ef;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --p-tx: #f6eee4; --p-tx2: #d9cbbd; --p-mut: #a8998a; --p-line: rgba(255, 240, 220, .11); --p-field: rgba(255, 240, 220, .2);
    --p-acc: #f0a374; --p-red: #ff7b72; --p-redbg: rgba(255, 123, 114, .14); --p-green: #3ddc84; --p-greenbg: rgba(61, 220, 132, .14); --p-amberbg: rgba(240, 180, 76, .16);
    --p-panel: #16110d; --p-input: #211a14; --p-btn: #f6eee4; --p-btn-tx: #16110d;
  }
}
html[data-tema="oscuro"] {
  --p-tx: #f6eee4; --p-tx2: #d9cbbd; --p-mut: #a8998a; --p-line: rgba(255, 240, 220, .11); --p-field: rgba(255, 240, 220, .2);
  --p-acc: #f0a374; --p-red: #ff7b72; --p-redbg: rgba(255, 123, 114, .14); --p-green: #3ddc84; --p-greenbg: rgba(61, 220, 132, .14); --p-amberbg: rgba(240, 180, 76, .16);
  --p-panel: #16110d; --p-input: #211a14; --p-btn: #f6eee4; --p-btn-tx: #16110d;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.pub-body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; color: var(--p-tx); background: var(--p-panel); -webkit-font-smoothing: antialiased; }
.pub-body a { color: var(--p-acc); text-decoration: none; }
/* Enlaces dentro de un texto: subrayados, no solo de otro color (accesibilidad). */
.pub-body :is(p, li, label, dd, td, small) a:not([class*="btn"]) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pub-body a:hover { text-decoration: underline; }
.pub-body :focus-visible { outline: 3px solid rgba(180, 83, 42, .4); outline-offset: 2px; border-radius: 10px; }
.pub-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(440px, 1fr); }
@media (max-width: 959.98px) { .pub { grid-template-columns: minmax(0, 1fr); } .pub-marca { display: none !important; } }

/* --- Lado de la marca --- */
.pub-marca { position: relative; overflow: hidden; color: #f6eee4; background: radial-gradient(120% 90% at 0% 0%, #5a3d2b 0%, #2a1f18 48%, #17110d 100%); padding: 44px clamp(32px, 5vw, 72px); display: flex; flex-direction: column; gap: 32px; }
.pub-marca::before, .pub-marca::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.pub-marca::before { width: 520px; height: 520px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(214, 140, 80, .55) 0%, transparent 70%); }
.pub-marca::after { width: 420px; height: 420px; left: -140px; bottom: -160px; background: radial-gradient(circle, rgba(201, 154, 62, .35) 0%, transparent 70%); }
.pub-marca > * { position: relative; z-index: 1; }
.pub-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.pub-logo:hover { text-decoration: none; }
.pub-logo .marca { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.pub-logo b { font-size: 20px; letter-spacing: .02em; display: block; }
.pub-logo small { display: block; font-size: 10.5px; letter-spacing: .14em; opacity: .7; font-weight: 600; }
.pub-hero { display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin-top: auto; }
.pub-hero h1 { margin: 0; font-family: var(--p-serif); font-size: clamp(40px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -.02em; font-weight: 400; }
.pub-hero h1 em { font-style: italic; color: #f2b98a; }
.pub-hero p { margin: 0; font-size: 17px; line-height: 1.55; color: #d6c7b8; max-width: 480px; }
.pub-feats { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.pub-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #e9ddcf; }
.pub-feats i { width: 28px; height: 28px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(255, 240, 220, .08); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, .14); }
.pub-notis { display: flex; flex-direction: column; gap: 10px; width: min(430px, 100%); }
.pub-noti { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 240, 220, .09); border: 1px solid rgba(255, 240, 220, .16); border-radius: 20px; padding: 12px 14px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.pub-noti .ni { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.pub-noti .ni.sms { background: linear-gradient(160deg, #5fdc6e, #25a83a); }
.pub-noti .ni.app { background: linear-gradient(160deg, #d9864f, #9a4422); }
.pub-noti .ni.mail { background: linear-gradient(160deg, #c9a24a, #8a6420); }
.pub-noti .nt { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .9); min-width: 0; }
.pub-noti .nh { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.pub-noti .nh b { color: #fff; font-size: 13px; }
.pub-pie { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-top: auto; }
.pub-pie a { color: rgba(255, 255, 255, .78); }

/* --- Lado del formulario --- */
.pub-lado { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px clamp(20px, 5vw, 64px); background: var(--p-panel); gap: 24px; }
.pub-panel { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.pub-movil { display: none; align-items: center; gap: 10px; color: var(--p-tx); }
.pub-movil .marca { width: 38px; height: 38px; border-radius: 11px; }
.pub-movil b { font-size: 18px; }
@media (max-width: 959.98px) { .pub-movil { display: flex; } }
.pub-panel h2 { margin: 0; font-family: var(--p-serif); font-size: 38px; line-height: 1.08; letter-spacing: -.02em; font-weight: 400; }
.pub-panel .lead { margin: -8px 0 0; color: var(--p-mut); font-size: 15px; line-height: 1.5; }
.pub-google { min-height: 50px; display: flex; justify-content: center; align-items: center; }
.pub-div { display: flex; align-items: center; gap: 12px; color: var(--p-mut); font-size: 12.5px; }
.pub-div::before, .pub-div::after { content: ""; flex: 1; height: 1px; background: var(--p-line); }
.pub-f { display: flex; flex-direction: column; gap: 7px; }
.pub-f label { font-size: 13px; font-weight: 600; color: var(--p-tx2); }
.pub-inp { position: relative; }
.pub-inp input { width: 100%; height: 50px; border-radius: var(--p-r); border: 1px solid var(--p-field); background: var(--p-input); color: var(--p-tx); padding: 0 14px; font: inherit; font-size: 16px; }
.pub-inp input:focus { outline: none; border-color: var(--p-acc); box-shadow: 0 0 0 4px rgba(180, 83, 42, .14); }
.pub-inp.pw input { padding-right: 52px; }
.pub-ojo { position: absolute; right: 6px; top: 6px; width: 40px; height: 38px; border: 0; background: none; border-radius: 10px; color: var(--p-mut); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pub-ojo:hover { background: rgba(127, 127, 127, .12); color: var(--p-tx); }
.pub-aviso-mayus { font-size: 12.5px; color: #7a5200; background: var(--p-amberbg); border-radius: 10px; padding: 7px 10px; }
html[data-tema="oscuro"] .pub-aviso-mayus { color: #f0c46c; }
.pub-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.pub-btn { height: 52px; width: 100%; border-radius: 999px; border: 0; background: var(--p-btn); color: var(--p-btn-tx); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 28px -10px rgba(60, 35, 20, .35); transition: transform .2s; }
.pub-btn:hover { transform: translateY(-1px); }
.pub-btn:active { transform: translateY(1px); }
.pub-btn:disabled { opacity: .75; cursor: progress; }
.pub-msg { border-radius: 12px; padding: 11px 14px; font-size: 14px; line-height: 1.45; display: none; }
.pub-msg.err { background: var(--p-redbg); color: var(--p-red); font-weight: 600; }
.pub-msg.ok { background: var(--p-greenbg); color: var(--p-green); font-weight: 600; }
.pub-msg.ver { display: block; }
.pub-alterno { text-align: center; font-size: 14px; color: var(--p-mut); margin: 0; }
.pub-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--p-tx2); cursor: pointer; }
.pub-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--p-acc); }
.pub-legal { font-size: 12.5px; color: var(--p-mut); line-height: 1.5; margin: 0; }
.pub-sellos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; color: var(--p-mut); }
.pub-pie-movil { display: none; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12.5px; }
@media (max-width: 959.98px) { .pub-pie-movil { display: flex; } }
@media (prefers-reduced-motion: no-preference) { .pub-panel { animation: pubAparece .45s cubic-bezier(.2, .8, .2, 1) both; } }
@keyframes pubAparece { from { opacity: 0; transform: translateY(8px); } }
/* Un enlace con forma de botón (p. ej. "Ir a PATDS" en la 404) conserva el texto blanco. */
.pub-body a.pub-btn { color: var(--p-btn-tx); text-decoration: none; }

/* Pantalla fija en teléfono (2026-10-14): sin zoom al tocar un campo (Safari
   lo hace con letra menor a 16px) ni con doble toque. El zoom de pellizco
   lo quita la etiqueta viewport de cada página (maximum-scale=1). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: max(16px, 1em) !important; }
}
