/* acceso.20260716.css — puerta de acceso del portal de prescripción DENTA.
   Hereda la paleta del sitio (teal #116767 / #0E4C4C). Sin dependencias. */

.acc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, #eef6f6 0%, #f7fbfb 60%, #eaf3f3 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.acc-bloqueado { overflow: hidden; }

.acc-card {
  width: 100%;
  max-width: 460px;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(14, 76, 76, .16), 0 2px 6px rgba(14, 76, 76, .06);
  padding: clamp(22px, 5vw, 34px);
  animation: acc-entra .28s ease both;
}
.acc-form--onb { max-width: none; }
.acc-card:has(.acc-form--onb) { max-width: 620px; }
@keyframes acc-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.acc-logo { display: block; height: 34px; margin: 0 auto 18px; }

.acc-titulo {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  line-height: 1.2;
  color: #0E4C4C;
  text-align: center;
}
.acc-sub {
  margin: 0 0 20px;
  font-size: .92rem;
  line-height: 1.5;
  color: #5b7373;
  text-align: center;
}

/* --- Google ------------------------------------------------------------- */
.acc-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: #1f2937;
  background: #fff;
  border: 1.5px solid #dbe4e4;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.acc-google:hover { border-color: #116767; box-shadow: 0 6px 16px rgba(17, 103, 103, .12); }
.acc-google:active { transform: translateY(1px); }

.acc-o {
  position: relative;
  margin: 18px 0;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #93a7a7;
}

/* --- puerta de dos caminos (2026-07-22) ---------------------------------- */
/* Nota normativa: por qué conviene la cuenta, sin inventar obligaciones. */
.acc-norma {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #f6fafa;
  border: 1px solid #d6e7e7;
  border-left: 4px solid #116767;
  border-radius: 11px;
  text-align: left;
}
.acc-norma__t { font-size: .8rem; color: #0E4C4C; }
.acc-norma__li {
  position: relative;
  padding-left: 16px;
  font-size: .8rem;
  line-height: 1.45;
  color: #3d5a5a;
}
.acc-norma__li::before { content: "✓"; position: absolute; left: 0; color: #116767; font-weight: 700; }
.acc-norma__x { margin-top: 4px; font-size: .74rem; line-height: 1.5; color: #557070; }

/* Camino sin cuenta: secundario a propósito (la recomendación es la cuenta),
   pero un botón real, no un enlace escondido. */
.acc-anon {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  font: inherit;
  text-align: left;
  color: #0E4C4C;
  background: #fff;
  border: 1.5px dashed #b9cfcf;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.acc-anon:hover { border-color: #116767; box-shadow: 0 6px 16px rgba(17, 103, 103, .10); }
.acc-anon:active { transform: translateY(1px); }
.acc-anon span { font-weight: 600; }
.acc-anon em { font-style: normal; font-size: .76rem; line-height: 1.45; color: #557070; }

/* (La banda del modo sin cuenta del formulario clásico se retiró el 2026-07-22
   junto con el clásico: el estado "sin cuenta" ahora vive en la cabecera del
   asistente — ver el puente de index.html.) */
@media (prefers-reduced-motion: reduce) {
  .acc-anon, .acc-google, .acc-primario { transition: none; }
}
.acc-o::before, .acc-o::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 62px);
  height: 1px;
  background: #e3ecec;
}
.acc-o::before { left: 0; }
.acc-o::after { right: 0; }
.acc-o--corta::before, .acc-o--corta::after { width: calc(50% - 22px); }

/* --- formularios -------------------------------------------------------- */
.acc-form { display: grid; gap: 13px; }
.acc-form--onb { grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .acc-form--onb { grid-template-columns: 1fr; } }
.acc-form label { display: grid; gap: 5px; }
.acc-form label span { font-size: .82rem; font-weight: 600; color: #0E4C4C; }
.acc-form input, .acc-form select {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: #14342f;
  background: #fbfdfd;
  border: 1.5px solid #dbe4e4;
  border-radius: 9px;
  min-height: 44px;
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.acc-form input:focus, .acc-form select:focus {
  outline: none;
  border-color: #116767;
  box-shadow: 0 0 0 3px rgba(17, 103, 103, .14);
}
.acc-ancho { grid-column: 1 / -1; }

/* --- ayudas y errores de campo ------------------------------------------ */
.acc-hint {
  font-size: .74rem;
  font-style: normal;
  line-height: 1.35;
  color: #93a7a7;
}
.acc-opc {
  font-style: normal;
  font-weight: 400;
  font-size: .74rem;
  color: #a3b5b5;
}
.acc-err {
  display: block;
  font-size: .76rem;
  font-style: normal;
  line-height: 1.35;
  color: #b23b3b;
}
.acc-form input.acc-malo, .acc-form select.acc-malo {
  border-color: #d98b8b;
  background: #fffafa;
}
.acc-form input.acc-malo:focus, .acc-form select.acc-malo:focus {
  border-color: #b23b3b;
  box-shadow: 0 0 0 3px rgba(178, 59, 59, .12);
}

/* --- resumen de lo enviado (pantalla de revisión) ----------------------- */
.acc-resumen {
  display: grid;
  gap: 8px;
  margin: 4px 0 20px;
  padding: 14px 16px;
  background: #f6fafa;
  border: 1px solid #e3ecec;
  border-radius: 11px;
  text-align: left;
}
.acc-resumen__fila { display: flex; justify-content: space-between; gap: 14px; }
.acc-resumen__k { font-size: .8rem; color: #557070; }
.acc-resumen__v { font-size: .86rem; color: #0E4C4C; text-align: right; word-break: break-word; }
.acc-enlace--centrado { display: block; margin: 12px auto 0; }

.acc-primario {
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #116767;
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.acc-primario:hover:not(:disabled) { background: #0E4C4C; box-shadow: 0 8px 20px rgba(17, 103, 103, .28); }
.acc-primario:active:not(:disabled) { transform: translateY(1px); }
.acc-primario:disabled { opacity: .6; cursor: default; }

.acc-salir {
  display: block;
  margin: 16px auto 0;
  /* 04-ago: `padding:4px` dejaba el objetivo tactil muy por debajo de los 44px que el
     propio proyecto fija como token (`--f-tap` en forma.20260716.css). Se usa el mismo
     valor, no uno nuevo. */
  padding: 12px 16px;
  min-height: 44px;
  font: inherit;
  font-size: .84rem;
  color: #829696;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* --- vía secundaria: correo/contraseña plegado -------------------------- */
.acc-otra { margin-top: 18px; border-top: 1px solid #eef3f3; padding-top: 14px; }
.acc-otra__t {
  cursor: pointer;
  list-style: none;
  /* 04-ago: mismo caso que `.acc-salir` — era `padding:4px`. */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: #557070;
  text-align: center;
  padding: 4px;
  transition: color .16s ease;
}
.acc-otra__t::-webkit-details-marker { display: none; }
.acc-otra__t:hover { color: #116767; }
.acc-otra[open] .acc-otra__t { margin-bottom: 12px; color: #0E4C4C; font-weight: 600; }

.acc-pie {
  margin: 18px 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: #829696;
  text-align: center;
}

/* --- avisos ------------------------------------------------------------- */
.acc-aviso {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  font-size: .84rem;
  line-height: 1.45;
  border-radius: 9px;
}
.acc-aviso--error { color: #8a2b2b; background: #fdf0f0; border: 1px solid #f4d4d4; }
.acc-aviso--info { color: #0E4C4C; background: #eef6f6; border: 1px solid #d6e7e7; }

/* --- tarjeta de identidad dentro del formulario ------------------------- */
.acc-identidad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #eef6f6, #f7fbfb);
  border: 1px solid #d6e7e7;
  border-left: 4px solid #116767;
  border-radius: 12px;
}
.acc-identidad__eti {
  width: 100%;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #557070;
}
.acc-identidad__nom { font-size: 1.02rem; color: #0E4C4C; }
.acc-identidad__meta { font-size: .82rem; color: #5b7373; }
.acc-identidad__acc { margin-left: auto; display: flex; gap: 12px; }
.acc-enlace {
  font: inherit;
  font-size: .82rem;
  color: #116767;
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  text-decoration: underline;
}
.acc-enlace:hover { color: #0E4C4C; }

.form-aviso-borrador {
  margin: 0 0 14px;
  padding: 9px 12px;
  font-size: .84rem;
  color: #0E4C4C;
  background: #eef6f6;
  border: 1px solid #d6e7e7;
  border-radius: 9px;
}
/* Estado sano de expiración: fuera del overlay para que también sea visible
   durante el wizard. No bloquea escritura; explica la contingencia. */
.acc-sesion-estado{position:fixed;z-index:35;top:66px;left:50%;transform:translateX(-50%);width:min(92vw,680px);padding:10px 14px;border:1px solid #d9a441;border-radius:10px;background:#fff8e8;color:#68450b;font-size:16px;line-height:1.4;box-shadow:0 8px 24px rgba(25,55,50,.14)}
.acc-sesion-estado[hidden]{display:none}
@media(max-width:600px){.acc-sesion-estado{top:58px}}
@media(max-width:600px){
  .acc-card :is(button,input,select,label,span,p,em,summary,strong){font-size:16px}
  .acc-titulo{font-size:22px}
}
