/* ---------- tokens ---------- */
:root {
  --bg: #06070a;
  --panel: #10131a;
  --panel-2: #151923;
  --text: #f7f7f4;
  --muted: #9a9fab;
  --muted-2: #767c87;
  --line: rgba(255, 255, 255, 0.09);
  --orange: #ff7b21;
  --amber: #ffad27;
  --yellow: #ffd54f;
  --lime: #b7d957;
  --wa: #25d366;
  --danger: #ff5c6c;
  --f-display: 'Manrope', system-ui, sans-serif;
  --f-cuerpo: 'DM Sans', system-ui, sans-serif;
  --radio: 20px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 113, 28, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--f-cuerpo);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- layout shell ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.9'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 19, 26, 0.74);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}
.nav__marca {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__logo {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff3a2, #ffb22e 34%, #ff7823 70%, #a92f0e);
  box-shadow: 0 0 18px rgba(255, 121, 30, 0.35);
}
.nav__links { display: flex; align-items: center; gap: 18px; }
.nav__link { color: var(--muted); font-size: 0.88rem; font-weight: 600; transition: color 0.15s ease; }
.nav__link:hover { color: var(--text); }
.nav__logout { margin: 0; }
.link-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 0.88rem; font-weight: 600; padding: 0; font-family: var(--f-cuerpo);
}
.link-btn:hover { color: var(--text); }

.mensajes { max-width: 1120px; margin: 20px auto 0; padding: 0 clamp(20px, 5vw, 48px); display: grid; gap: 10px; }
.mensaje {
  padding: 12px 16px; border-radius: 12px; font-size: 0.9rem;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.mensaje--error { border-color: rgba(255, 92, 108, 0.4); color: var(--danger); }
.mensaje--success { border-color: rgba(183, 217, 87, 0.4); color: var(--lime); }

.pie {
  max-width: 1120px; margin: 80px auto 0; padding: 26px clamp(20px, 5vw, 48px) 40px;
  color: var(--muted-2); font-size: 0.82rem; display: flex; gap: 8px;
  border-top: 1px solid var(--line);
}
.pie__sep { opacity: 0.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #14110b; font-weight: 800; font-family: var(--f-cuerpo);
  padding: 14px 24px; border-radius: 14px; border: none; cursor: pointer;
  font-size: 0.95rem; min-height: 48px;
  box-shadow: 0 10px 30px rgba(255, 122, 31, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255, 122, 31, 0.24); }
.btn--grande { padding: 16px 28px; font-size: 1rem; }
.btn--pequeno { padding: 10px 16px; min-height: auto; font-size: 0.85rem; }
.btn--claro { background: rgba(255, 255, 255, 0.92); color: #14110b; box-shadow: none; }
.btn--claro:hover { background: #fff; }
.btn--fantasma {
  background: rgba(255, 255, 255, 0.035); color: var(--text); border: 1px solid var(--line); box-shadow: none;
}
.btn--fantasma:hover { background: rgba(255, 255, 255, 0.07); transform: none; }
.btn--peligro { background: transparent; color: var(--danger); border: 1px solid rgba(255, 92, 108, 0.35); box-shadow: none; }
.btn--peligro:hover { background: rgba(255, 92, 108, 0.08); transform: none; }

/* ---------- forms (auth) ---------- */
.panel-auth {
  max-width: 440px; margin: clamp(40px, 8vw, 88px) auto; padding: 40px clamp(24px, 5vw, 40px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line); border-radius: 28px;
}
.panel-form { max-width: 560px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 100px;
  border: 1px solid rgba(255, 168, 44, 0.22); background: rgba(255, 122, 29, 0.07);
  color: #ffc259; text-transform: uppercase; letter-spacing: 1.2px;
  font-size: 0.65rem; font-weight: 800; margin-bottom: 18px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.campo-check { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.campo-check input { width: 18px; height: 18px; }
.campo-check label { font-size: 0.92rem; color: var(--muted); }
.form-acciones { display: flex; gap: 12px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.panel-auth h1 { font-size: 1.9rem; margin-bottom: 8px; }
.panel-auth__sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 30px; }
.campo-grupo { margin-bottom: 18px; }
.campo-grupo label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.campo-grupo input[type], .campo-grupo textarea, .campo-grupo select {
  width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text);
  padding: 13px 15px; border-radius: 14px; font-family: var(--f-cuerpo); font-size: 0.98rem; min-height: 48px;
}
.campo-grupo input[type]:focus, .campo-grupo textarea:focus, .campo-grupo select:focus {
  border-color: rgba(255, 137, 38, 0.6); outline: none;
}
.campo-grupo textarea { resize: vertical; min-height: 90px; }
.campo-grupo ul:not(.errorlist) { margin: 6px 0 0; padding-left: 18px; color: var(--muted-2); font-size: 0.78rem; line-height: 1.5; }

/* autofill: evitar el flash claro por defecto del navegador sobre fondo oscuro */
input:autofill,
input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0.04) inset, 0 0 0 1px rgba(255, 178, 60, 0.35) inset;
  transition: background-color 600000s ease-in-out 0s;
}
input:autofill:focus-visible,
input:-webkit-autofill:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}

.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: 0.82rem; font-weight: 700; }
.errorlist li::before { content: "⚠ "; }
.campo-grupo:has(.errorlist) input[type], .campo-grupo:has(.errorlist) textarea { border-color: var(--danger); }
.ayuda { font-size: 0.78rem; color: var(--muted-2); margin-top: 6px; }
.panel-auth__pie { margin-top: 24px; font-size: 0.9rem; color: var(--muted); }
.panel-auth__pie a { color: var(--amber); font-weight: 700; }
.checkboxes-dias { display: flex; flex-wrap: wrap; gap: 10px; }
.checkboxes-dias label {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px;
  color: var(--muted); cursor: pointer; transition: 0.15s ease;
}
.checkboxes-dias label:has(input:checked) {
  background: linear-gradient(135deg, var(--orange), var(--yellow)); border-color: transparent;
  color: #14110b; font-weight: 700;
}

/* marca de color nativa para checkboxes/radios (día de la semana, alarma activa) */
input[type="checkbox"], input[type="radio"] { accent-color: var(--orange); }

.is-hidden { display: none !important; }
.card-meta { margin-top: 6px; color: var(--muted-2); font-size: 0.78rem; }
.usuario-card__correo { color: var(--muted); font-weight: 500; }

/* ---------- dashboard ---------- */
.panel-cabecera {
  display: flex; align-items: center; justify-content: space-between;
  margin: clamp(40px, 6vw, 64px) 0 32px; gap: 16px; flex-wrap: wrap;
}
.panel-cabecera h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.lista-alarmas { display: grid; gap: 14px; padding-bottom: 80px; }
.alarma-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.alarma-card--inactiva { opacity: 0.5; }
.alarma-card__mensaje { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; margin-bottom: 8px; }
.alarma-card__detalle { font-size: 0.84rem; color: var(--muted); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.estado-pill { display: inline-flex; align-items: center; gap: 6px; }
.estado-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.estado-pill--activa { color: var(--lime); font-weight: 600; }
.estado-pill--activa .estado-dot { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.alarma-card__acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.vacio {
  text-align: center; padding: 64px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 24px;
}
.vacio p { margin-bottom: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .nav { margin: 12px; padding: 10px 12px; }
  .nav__links { gap: 12px; }
  .panel-auth { padding: 30px 22px; border-radius: 22px; }
}

/* ---------- experiencia compartida con la landing ---------- */
.app-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #06070a;
}

.app-main {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: calc(100vh - 90px);
  padding: 112px clamp(20px, 5vw, 64px) 60px;
}

.product-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 30%, rgba(255, 151, 47, .07), transparent 30%),
    linear-gradient(115deg, #06070a 0%, #08090d 58%, #0c0d11 100%);
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background: linear-gradient(90deg, transparent 0 72%, rgba(255, 255, 255, .025) 72% 72.1%, transparent 72.1%);
}

.product-stage__wash {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 52vw;
  height: 85vh;
  transform: rotate(-12deg);
  background: linear-gradient(135deg, transparent 20%, rgba(255, 173, 64, .06) 48%, rgba(255, 244, 212, .035) 58%, transparent 74%);
  filter: blur(18px);
}

.product-stage__bottle {
  position: absolute;
  top: 18%;
  right: clamp(40px, 8vw, 130px);
  width: clamp(150px, 17vw, 235px);
  height: clamp(350px, 58vh, 520px);
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 34px 34px 20px 20px;
  opacity: .32;
  transform: rotate(5deg);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .09) 52%, rgba(255, 255, 255, .015)),
    rgba(20, 22, 28, .38);
  box-shadow: inset 0 0 70px rgba(255, 167, 61, .035), 0 30px 80px rgba(0, 0, 0, .2);
  animation: product-float 10s ease-in-out infinite;
}

.product-stage__bottle::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 22%;
  width: 56%;
  height: 40px;
  border: 1px solid rgba(255, 194, 103, .1);
  border-radius: 9px 9px 4px 4px;
  background: rgba(255, 174, 65, .07);
}

.product-stage__bottle::after {
  content: "SPF";
  position: absolute;
  top: 38%;
  right: 14%;
  left: 14%;
  display: grid;
  height: 28%;
  place-items: center;
  border-top: 1px solid rgba(255, 173, 39, .14);
  border-bottom: 1px solid rgba(255, 173, 39, .14);
  color: rgba(255, 204, 111, .28);
  font: 800 clamp(1.5rem, 3vw, 2.6rem) var(--f-display);
}

.product-stage__cream {
  position: absolute;
  right: -8%;
  bottom: 10%;
  width: min(48vw, 650px);
  height: 74px;
  border-radius: 48% 12% 42% 16%;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, transparent, rgba(255, 248, 224, .07) 22%, rgba(255, 224, 177, .1) 58%, transparent);
  filter: blur(5px);
  animation: cream-shift 12s ease-in-out infinite;
}

.product-stage__line {
  position: absolute;
  right: 5%;
  bottom: 18%;
  width: 36vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 173, 39, .13), transparent);
}

.page-enter {
  animation: page-enter .34s ease-out both;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes product-float {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-5px); }
}

@keyframes cream-shift {
  0%, 100% { transform: rotate(-7deg) translateX(0); opacity: .65; }
  50% { transform: rotate(-7deg) translateX(-10px); opacity: 1; }
}

/* ---------- login y registro ---------- */
.auth-page .app-main {
  display: grid;
  align-items: center;
}

.auth-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(440px, 560px);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: 8px 0;
}

.auth-story {
  max-width: 650px;
}

.auth-story h1 {
  max-width: 640px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: .96;
}

.auth-story > p {
  max-width: 540px;
  margin-top: 26px;
  color: #aeb2bc;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.auth-story__status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  padding: 13px 17px;
  border: 1px solid rgba(59, 208, 126, .2);
  border-radius: 14px;
  background: rgba(11, 17, 15, .48);
  backdrop-filter: blur(12px);
}

.auth-story__status strong,
.auth-story__status small {
  display: block;
}

.auth-story__status strong { font-size: .84rem; }
.auth-story__status small { margin-top: 2px; color: var(--muted); font-size: .75rem; }

.auth-story__pulse {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, .09), 0 0 18px rgba(37, 211, 102, .65);
  animation: status-pulse 2.4s ease-out infinite;
}

.auth-story__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.auth-story__steps span {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--muted);
  font-size: .8rem;
}

.auth-story__steps strong {
  margin-right: 8px;
  color: var(--amber);
  font-family: var(--f-display);
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(37, 211, 102, .08), 0 0 18px rgba(37, 211, 102, .55); }
  50% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0), 0 0 24px rgba(37, 211, 102, .7); }
}

.auth-layout .panel-auth {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(22, 25, 33, .91), rgba(10, 12, 17, .82));
  box-shadow: 0 35px 100px rgba(0, 0, 0, .4);
  backdrop-filter: blur(20px);
}

.panel-auth__head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.panel-auth__head h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.panel-auth__number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 173, 39, .25);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 800;
}

.panel-auth__head .panel-auth__sub {
  margin: 7px 0 0;
}

.btn--ancho {
  width: 100%;
  justify-content: space-between;
}

.btn--ancho span {
  font-size: 1.25rem;
  line-height: 1;
}

.panel-auth--register form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.panel-auth--register .campo-grupo {
  min-width: 0;
  margin: 0;
}

.panel-auth--register .campo-grupo label {
  margin-bottom: 5px;
}

.panel-auth--register .campo-grupo input[type] {
  min-height: 44px;
  padding: 10px 13px;
}

.panel-auth--register .ayuda {
  margin-top: 4px;
  font-size: .7rem;
  line-height: 1.35;
}

.panel-auth--register form > .errorlist,
.panel-auth--register .btn--ancho {
  grid-column: 1 / -1;
}

.panel-auth--register .btn--ancho {
  min-height: 46px;
  margin-top: 2px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.panel-auth--register .panel-auth__pie {
  margin-top: 18px;
}

/* ---------- panel de alarmas ---------- */
.dashboard-page .product-stage {
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 139, 28, .055), transparent 24%),
    linear-gradient(115deg, #06070a, #090a0e 68%, #0c0d11);
}

.dashboard-page .product-stage__bottle {
  top: -230px;
  right: 7%;
  transform: rotate(72deg) scale(.75);
  opacity: .12;
  animation: none;
}

.dashboard-page .product-stage__cream { opacity: .45; }

.dashboard-shell {
  width: 100%;
}

.dashboard-shell .panel-cabecera {
  margin: 24px 0 46px;
  align-items: flex-end;
}

.dashboard-shell .panel-cabecera h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: .95;
}

.panel-cabecera__copy {
  margin-top: 18px;
  color: var(--muted);
}

.panel-cabecera__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.alarm-count {
  min-width: 105px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.alarm-count strong,
.alarm-count span {
  display: block;
}

.alarm-count strong {
  font-family: var(--f-display);
  font-size: 1.8rem;
  line-height: 1;
}

.alarm-count span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.dashboard-shell .lista-alarmas {
  gap: 12px;
}

.dashboard-shell .alarma-card {
  display: grid;
  grid-template-columns: 130px minmax(220px, 1fr) auto;
  gap: 26px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(16, 19, 26, .76);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.dashboard-shell .alarma-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 173, 39, .22);
  background: rgba(19, 22, 29, .9);
}

.alarma-card__time {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.alarma-card__time strong {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1;
}

.alarma-card__time small {
  color: var(--amber);
  font-size: .62rem;
  font-weight: 800;
}

.alarma-card__content { min-width: 0; }

.alarma-card__topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .76rem;
}

.alarma-card__days {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-shell .alarma-card__mensaje {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.dashboard-shell .vacio {
  position: relative;
  min-height: 370px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  overflow: hidden;
  border-style: solid;
  border-radius: 18px;
  background: rgba(13, 15, 21, .7);
  backdrop-filter: blur(14px);
}

.vacio__sun {
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4a6, #ffad27 38%, #e75619 74%);
  box-shadow: 0 0 45px rgba(255, 123, 33, .34);
}

.vacio__tag {
  color: var(--amber);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vacio h2 {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.vacio p {
  margin: 0 0 10px;
}

/* ---------- crear y editar alarmas ---------- */
.alarm-editor-page .app-main,
.alarm-delete-page .app-main {
  display: grid;
  align-items: center;
}

.alarm-workspace {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding: 6px 0;
}

.alarm-preview-column {
  max-width: 470px;
}

.alarm-preview-column h1,
.delete-intro h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.6rem);
  line-height: .96;
}

.alarm-preview-column > p,
.delete-intro > p {
  max-width: 460px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.message-preview {
  width: min(100%, 410px);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(13, 16, 20, .82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.message-preview__header {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: rgba(17, 25, 22, .92);
}

.message-preview__brand {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #17130d;
  font-family: var(--f-display);
  font-weight: 800;
}

.message-preview__header strong,
.message-preview__header small {
  display: block;
}

.message-preview__header strong { font-size: .86rem; }
.message-preview__header small { color: var(--muted); font-size: .67rem; }

.message-preview__status {
  color: var(--wa);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.message-preview__status.is-paused { color: var(--muted); }

.message-preview__body {
  min-height: 190px;
  padding: 18px;
  background:
    linear-gradient(rgba(7, 18, 14, .78), rgba(7, 18, 14, .9)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, .018) 18px 19px);
}

.message-preview__date {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, .42);
  font-size: .59rem;
  font-weight: 800;
  text-align: center;
}

.message-preview__bubble {
  width: 88%;
  margin-left: auto;
  padding: 13px 14px 8px;
  border-radius: 12px 3px 12px 12px;
  background: #183c31;
  color: #edf7f2;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.message-preview__bubble p {
  min-height: 42px;
  overflow-wrap: anywhere;
  font-size: .85rem;
  line-height: 1.5;
}

.message-preview__bubble > span {
  display: block;
  color: rgba(235, 248, 242, .55);
  font-size: .62rem;
  text-align: right;
}

.message-preview__days {
  margin-top: 14px;
  color: rgba(255, 255, 255, .48);
  font-size: .66rem;
  text-align: center;
}

.alarm-form-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 25, 33, .93), rgba(10, 12, 17, .86));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.alarm-form-panel form {
  display: grid;
  gap: 14px;
}

.alarm-form-panel .campo-grupo,
.alarm-form-panel .campo-check,
.alarm-form-panel .form-acciones {
  margin: 0;
}

.alarm-form-panel textarea {
  min-height: 84px;
  max-height: 110px;
}

.alarm-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.alarm-form__repetir {
  align-items: start;
}

.campo-check--switch {
  min-height: 73px;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.campo-check--switch strong,
.campo-check--switch small {
  display: block;
}

.campo-check--switch strong { font-size: .82rem; }
.campo-check--switch small { margin-top: 2px; color: var(--muted); font-size: .7rem; }

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch__track {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8d919a;
  transition: transform .2s ease, background .2s ease;
}

.switch input:checked + .switch__track {
  border-color: rgba(255, 173, 39, .35);
  background: rgba(255, 123, 33, .22);
}

.switch input:checked + .switch__track::after {
  transform: translateX(18px);
  background: var(--amber);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.alarm-form__days .checkboxes-dias {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.alarm-form__days .checkboxes-dias label {
  position: relative;
  min-width: 0;
  min-height: 40px;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 10px;
}

.alarm-form__days .checkboxes-dias input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.alarm-form__days .checkboxes-dias label:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.checkboxes-dias--tipo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkboxes-dias--tipo label {
  position: relative;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.checkboxes-dias--tipo input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkboxes-dias--tipo label:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.alarm-form__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 2px !important;
}

/* ---------- eliminar alarma ---------- */
.delete-workspace {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.delete-intro {
  margin-bottom: 30px;
}

.delete-intro h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.eyebrow--danger {
  border-color: rgba(255, 92, 108, .22);
  background: rgba(255, 92, 108, .06);
  color: #ff8793;
}

.eyebrow--danger .eyebrow-dot {
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger);
}

.delete-panel {
  display: grid;
  grid-template-columns: 78px minmax(260px, 1fr) minmax(280px, .75fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(16, 19, 26, .84);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.delete-panel__mark {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 92, 108, .16);
  background: rgba(255, 92, 108, .055);
  color: var(--danger);
  font: 300 2.3rem var(--f-display);
}

.delete-panel__content,
.delete-panel__confirm {
  padding: 28px;
}

.delete-panel__label {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.delete-panel__time {
  margin: 12px 0;
  font: 800 2.6rem/1 var(--f-display);
}

.delete-panel__time small {
  color: var(--amber);
  font-size: .65rem;
}

.delete-panel__content > p {
  overflow-wrap: anywhere;
  font-family: var(--f-display);
  font-weight: 700;
}

.delete-panel__meta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: .75rem;
}

.delete-panel__confirm {
  align-content: center;
  display: grid;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}

.delete-panel__confirm > p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: .82rem;
}

.delete-panel__confirm .form-acciones {
  margin: 0;
}

.pie {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }

  .auth-story { display: none; }
  .product-stage__bottle { right: 4%; opacity: .18; }

  .dashboard-shell .alarma-card {
    grid-template-columns: 110px 1fr;
  }

  .dashboard-shell .alarma-card__acciones {
    grid-column: 2;
  }

  .alarm-workspace {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }

  .alarm-preview-column { display: none; }

  .delete-panel {
    grid-template-columns: 64px 1fr;
  }

  .delete-panel__confirm {
    grid-column: 2;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .app-main {
    padding: 96px 16px 44px;
  }

  .auth-layout { padding-top: 16px; }
  .auth-story h1 { font-size: clamp(2.75rem, 14vw, 4.7rem); }
  .auth-story > p { margin-top: 20px; font-size: .95rem; }
  .auth-story__status, .auth-story__steps { margin-top: 26px; }
  .auth-story__steps { display: grid; grid-template-columns: 1fr; gap: 0; }

  .auth-layout .panel-auth {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .product-stage__bottle {
    top: 24%;
    right: -70px;
    opacity: .11;
  }

  .product-stage__cream {
    right: -30%;
    width: 90vw;
  }

  .dashboard-shell .panel-cabecera {
    align-items: flex-start;
    margin-top: 20px;
  }

  .panel-cabecera__actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-shell .alarma-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .alarma-card__time {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-shell .alarma-card__acciones {
    grid-column: auto;
  }

  .dashboard-shell .alarma-card__acciones > * {
    flex: 1 1 auto;
  }

  .dashboard-shell .alarma-card__acciones .btn {
    width: 100%;
  }

  .alarm-form__row {
    grid-template-columns: 1fr;
  }

  .alarm-form__days .checkboxes-dias {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .alarm-form__actions {
    grid-template-columns: 1fr;
  }

  .delete-intro { margin-bottom: 22px; }

  .delete-panel {
    grid-template-columns: 1fr;
  }

  .delete-panel__mark {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 92, 108, .16);
  }

  .delete-panel__content,
  .delete-panel__confirm {
    grid-column: 1;
    padding: 22px;
  }
}

@media (max-width: 540px) {
  .panel-auth--register form {
    grid-template-columns: 1fr;
  }

  .panel-auth--register form > .errorlist,
  .panel-auth--register .btn--ancho {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-stage__bottle,
  .product-stage__cream,
  .auth-story__pulse,
  .page-enter {
    animation: none;
  }
}
