/* ============================================================
   Sinergia · Login premium · LIGHT
   Registro: SaaS corporativo, autoridad silenciosa.
   Marca: #0092f9 → #00b8ff.
   ============================================================ */

/* ---- 1. Tokens ---- */
:root {
  /* Marca (hex tal cual los pidió el brief) */
  --brand-1: #0092f9;
  --brand-2: #00b8ff;
  --brand-1-rgb:   0, 146, 249;
  --brand-2-rgb:   0, 184, 255;

  /* Neutros tintados al hue de marca (~232) */
  --bg:           oklch(0.985 0.005 232);
  --surface:      oklch(1     0.002 232);   /* "blanco" tintado */
  --surface-soft: oklch(0.975 0.008 232);
  --surface-tint: oklch(0.965 0.012 232);

  --border-1:     oklch(0.93  0.012 232);
  --border-2:     oklch(0.88  0.018 232);

  /* Tinta */
  --ink-1: oklch(0.20 0.04 245);   /* 13.4:1 sobre surface — AAA */
  --ink-2: oklch(0.42 0.04 240);   /*  7.4:1 sobre surface — AAA */
  --ink-3: oklch(0.55 0.03 235);   /*  4.9:1 sobre surface — AA  */
  --ink-4: oklch(0.68 0.02 230);   /* placeholder, 3.2:1 — non-essential */

  /* Tipografía */
  --font-sans:  'Geist', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
}

/* ---- 2. Base ---- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%,
                    rgba(var(--brand-2-rgb), 0.045), transparent 60%),
    radial-gradient(ellipse 70% 60% at 95% 100%,
                    rgba(var(--brand-1-rgb), 0.035), transparent 60%),
    var(--bg);
}

::selection {
  background: rgba(var(--brand-2-rgb), 0.20);
  color: var(--ink-1);
}

a { color: var(--brand-1); }

/* ---- 3. Atmósfera: formas geométricas difuminadas ---- */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.shape--1 {
  width: 620px; height: 620px;
  top: -180px; left: -160px;
  background: rgb(var(--brand-2-rgb));
  opacity: 0.05;
  animation: float-a 70s ease-in-out infinite;
}
.shape--2 {
  width: 520px; height: 520px;
  bottom: -220px; right: -120px;
  background: rgb(var(--brand-1-rgb));
  opacity: 0.04;
  animation: float-b 85s ease-in-out infinite;
}
.shape--3 {
  width: 440px; height: 440px;
  top: 38%; left: 38%;
  background: rgb(var(--brand-2-rgb));
  opacity: 0.025;
  animation: float-c 100s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0,0); }
  50%      { transform: translate(80px, 60px); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0,0); }
  50%      { transform: translate(-70px, -50px); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0,0); }
  50%      { transform: translate(40px, -90px); }
}

/* ---- 4. Marca ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-1);
  text-decoration: none;
  transition: opacity 0.3s var(--ease-out-quart);
}
.brand:hover { opacity: 0.78; }

.brand__mark {
  width: 32px; height: 32px;
  filter: drop-shadow(0 4px 10px rgba(var(--brand-1-rgb), 0.30));
}

.brand__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--ink-1);
}

.brand--mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.brand--mobile img {
  max-width: 140px;
  height: auto;
  display: block;
}

/* ---- 5. Aside editorial (lg+) ---- */
.auth-aside {
  position: relative;
  padding: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 80px);
  border-right: 1px solid var(--border-1);
}

.auth-aside__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 580px;
  min-height: calc(100vh - 96px);
  margin: auto;
}

/* Top */
.aside-top { margin-bottom: 4vh; }

/* Pitch (centro) */
.aside-pitch {
  margin: auto 0;
  padding: 6vh 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 12px 5px 10px;
  background: rgba(var(--brand-2-rgb), 0.08);
  border: 1px solid rgba(var(--brand-2-rgb), 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: oklch(0.42 0.12 235);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(var(--brand-1-rgb), 0.18);
}

.display-headline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink-1);
  margin: 0 0 22px;
}
.display-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--brand-1);
}

.display-sub {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 46ch;
}

/* Footer del aside */
.aside-foot {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testimonial {
  margin: 0;
  padding: 0;
  border-left: 0;
}
.testimonial p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-1);
  margin: 0 0 14px;
  max-width: 48ch;
  letter-spacing: -0.005em;
}
.testimonial cite {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
}
.testimonial__avatar {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px -4px rgba(var(--brand-1-rgb), 0.45);
}
.testimonial__who {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-3);
}
.testimonial__who strong {
  font-weight: 600;
  color: var(--ink-1);
}

/* Métricas */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric__num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.035em;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.metric__num sup {
  font-size: 13px;
  font-weight: 500;
  vertical-align: super;
  margin-left: 1px;
  color: var(--ink-3);
  top: -0.4em;
  position: relative;
}
.metric__lbl {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.005em;
}

/* Chip de versión (orgullo de ingeniería) */
.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: oklch(0.72 0.16 145);
  box-shadow: 0 0 0 0 oklch(0.72 0.16 145 / 0.5);
  animation: pulse-dot 2.6s var(--ease-out-quart) infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0   oklch(0.72 0.16 145 / 0.55); }
  70%  { box-shadow: 0 0 0 9px oklch(0.72 0.16 145 / 0);    }
  100% { box-shadow: 0 0 0 0   oklch(0.72 0.16 145 / 0);    }
}

/* ---- 6. Sección formulario ---- */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px);
}

.auth-main__inner {
  width: 100%;
  max-width: 440px;
}

/* ---- 7. Tarjeta de login ---- */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 40px 36px 32px;
  box-shadow:
    0 1px 2px   oklch(0.30 0.05 240 / 0.04),
    0 8px 24px -8px  oklch(0.30 0.05 240 / 0.07),
    0 32px 64px -24px oklch(0.30 0.05 240 / 0.10);
}

.auth-card__head {
  margin-bottom: 26px;
}

.form-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink-1);
  margin: 0 0 6px;
  line-height: 1.2;
}

.form-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.45;
}

/* ---- 8. Formulario ---- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.005em;
}

.field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-soft {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-1);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.25s var(--ease-out-quart);
}
.link-soft:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }

.field__input {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  transition:
    border-color 0.25s var(--ease-out-quart),
    box-shadow   0.25s var(--ease-out-quart),
    background   0.25s var(--ease-out-quart);
}

.field__input:hover {
  border-color: var(--border-2);
}

.field__input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  caret-color: var(--brand-1);
}
.field__input input::placeholder {
  color: var(--ink-4);
  font-weight: 400;
}

.field__input:focus-within {
  border-color: var(--brand-2);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(var(--brand-2-rgb), 0.14);
}

.field__toggle {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  padding: 6px 8px;
  margin-right: -6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition:
    color      0.25s var(--ease-out-quart),
    background 0.25s var(--ease-out-quart);
}
.field__toggle:hover {
  color: var(--ink-1);
  background: var(--surface-tint);
}
.field__toggle i { font-size: 16px; }

/* ---- 9. Recordar sesión ---- */
.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check__box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease-out-quart);
  flex-shrink: 0;
}
.check__box::after {
  content: '';
  width: 11px; height: 11px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 6.5 L5 9 L9.5 3'/></svg>") center / contain no-repeat;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.3s var(--ease-out-quart);
}
.check input:checked + .check__box {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
  box-shadow: 0 4px 10px -3px rgba(var(--brand-1-rgb), 0.40);
}
.check input:checked + .check__box::after {
  opacity: 1;
  transform: scale(1);
}
.check:hover .check__box { border-color: var(--ink-3); }
.check input:checked:hover + .check__box { border-color: transparent; }

/* ---- 10. CTA principal ---- */
.btn-primary-cta {
  position: relative;
  margin-top: 6px;
  height: 52px;
  width: 100%;
  border: 0;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 1px 2px rgba(var(--brand-1-rgb), 0.18),
    0 10px 22px -8px rgba(var(--brand-1-rgb), 0.42);
  transition:
    transform  0.4s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-quart),
    filter     0.4s var(--ease-out-quart);
}

.btn-primary-cta > i {
  font-size: 16px;
  transition: transform 0.4s var(--ease-out-quart);
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    0 2px 4px rgba(var(--brand-1-rgb), 0.18),
    0 18px 34px -8px rgba(var(--brand-1-rgb), 0.52);
}
.btn-primary-cta:hover > i { transform: translateX(3px); }
.btn-primary-cta:active    { transform: translateY(0); }

/* ---- 11. Cross-CTA: agendar demo ---- */
.cross-cta {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg,
              rgba(var(--brand-2-rgb), 0.05),
              rgba(var(--brand-2-rgb), 0.02));
  border: 1px solid rgba(var(--brand-2-rgb), 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cross-cta__txt {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.cross-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-1);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: gap 0.35s var(--ease-out-quart),
              color 0.25s var(--ease-out-quart);
}
.cross-cta__link i {
  font-size: 14px;
  transition: transform 0.35s var(--ease-out-quart);
}
.cross-cta__link:hover {
  color: var(--brand-2);
  gap: 10px;
}
.cross-cta__link:hover i { transform: translate(2px, -2px); }

/* ---- 12. Legal mini ---- */
.legal {
  margin: 22px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
  text-align: center;
}
.legal a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.25s var(--ease-out-quart),
              color 0.25s var(--ease-out-quart);
}
.legal a:hover {
  color: var(--brand-1);
  text-decoration-color: currentColor;
}

/* ---- 13. Entrada escalonada ---- */
.brand--mobile  { animation: rise 0.85s var(--ease-out-expo) 0.05s both; }
.aside-top      { animation: rise 0.85s var(--ease-out-expo) 0.05s both; }
.aside-pitch    { animation: rise 0.95s var(--ease-out-expo) 0.15s both; }
.aside-foot     { animation: rise 0.95s var(--ease-out-expo) 0.30s both; }
.auth-card      { animation: rise 0.95s var(--ease-out-expo) 0.20s both; }
.cross-cta      { animation: rise 0.85s var(--ease-out-expo) 0.40s both; }
.legal          { animation: rise 0.85s var(--ease-out-expo) 0.50s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 14. Responsividad ---- */
@media (max-width: 991.98px) {
  .auth-main {
    min-height: 100vh;
    padding: 36px 22px 40px;
  }
  .brand--mobile { margin-bottom: 28px; }
}

@media (max-width: 575.98px) {
  .auth-card     { padding: 32px 24px 28px; border-radius: var(--r-lg); }
  .form-title    { font-size: 20px; }
  .field__input  { height: 48px; }
  .btn-primary-cta { height: 50px; font-size: 14.5px; }
  .shape         { filter: blur(70px); }
  .cross-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (min-width: 1400px) {
  .auth-card     { padding: 44px 40px 36px; }
  .auth-main__inner { max-width: 460px; }
}

/* ---- 15. Motion accesible ---- */
@media (prefers-reduced-motion: reduce) {
  .shape, .chip-dot {
    animation: none !important;
  }
  .brand, .brand--mobile,
  .aside-top, .aside-pitch, .aside-foot,
  .auth-card, .cross-cta, .legal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .btn-primary-cta,
  .btn-primary-cta > i,
  .field__input, .field__toggle,
  .check__box, .check__box::after,
  .link-soft, .cross-cta__link, .cross-cta__link i,
  .legal a {
    transition: none !important;
  }
}

/* ---- 16. Focus visible ---- */
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}
.field__input input:focus-visible,
.field__input:focus-within input:focus-visible {
  outline: 0;
}
.btn-primary-cta:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
}
.check input:focus-visible + .check__box {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
}






/* ============================================================
   AÑADIR AL FINAL DE style.css (antes del bloque 14. Responsividad)
   ============================================================ */

/* ---- Demo helper · selectores rápidos ---- */
.demo-helper {
  margin: 18px 0 0;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg,
              var(--surface) 0%,
              var(--surface-soft) 100%);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
}

.demo-helper__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.demo-helper__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.demo-helper__tag i {
  font-size: 11px;
  color: var(--brand-1);
}

.demo-helper__hint {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.demo-helper__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.demo-helper__row:last-child {
  margin-bottom: 0;
}

.demo-helper__lbl {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

/* ---- Segmented control ---- */
.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-tint);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  position: relative;
}

.seg__btn {
  flex: 1;
  position: relative;
  padding: 7px 6px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color      0.3s var(--ease-out-quart),
    background 0.3s var(--ease-out-quart),
    box-shadow 0.3s var(--ease-out-quart),
    transform  0.3s var(--ease-out-quart);
}

.seg__btn:hover:not(.is-active) {
  color: var(--ink-1);
  background: oklch(1 0 0 / 0.6);
}

.seg__btn.is-active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 1px 2px rgba(var(--brand-1-rgb), 0.18),
    0 6px 14px -4px rgba(var(--brand-1-rgb), 0.45);
}

.seg__btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 999px;
}

/* Entrada escalonada del helper */
.demo-helper {
  animation: rise 0.85s var(--ease-out-expo) 0.45s both;
}
/* (el cross-cta y legal deberían recalibrar su delay a 0.55s y 0.65s
   si quieres mantener la cascada perfecta; ver nota en respuesta) */

/* ---- Responsivo del demo helper ---- */
@media (max-width: 575.98px) {
  .demo-helper {
    padding: 14px 14px 12px;
  }
  .demo-helper__row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }
  .demo-helper__lbl {
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.005em;
  }
  .seg__btn {
    font-size: 11px;
    padding: 6px 4px;
  }
}








/* ============================================================
   Modal de Bootstrap 5 · estilo Sinergia
   ============================================================ */

/* Backdrop tintado con blur */
.modal-backdrop.show {
  background: oklch(0.18 0.04 245);
  opacity: 0.55;
}
.modal-backdrop {
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

/* Dialog */
.modal-reset .modal-dialog {
  max-width: 440px;
  margin: 24px auto;
}

/* Content: tarjeta principal */
.modal-reset .modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  box-shadow:
    0 1px 2px   oklch(0.20 0.04 245 / 0.05),
    0 12px 28px -8px  oklch(0.20 0.04 245 / 0.18),
    0 40px 80px -16px oklch(0.20 0.04 245 / 0.28);
}

/* Body con padding generoso */
.modal-reset .modal-body {
  padding: 38px 36px 30px;
  text-align: center;
}

/* Botón cerrar custom (no usamos .btn-close de Bootstrap) */
.modal-reset__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink-3);
  cursor: pointer;
  z-index: 2;
  transition:
    color      0.25s var(--ease-out-quart),
    background 0.25s var(--ease-out-quart);
}
.modal-reset__close:hover {
  background: var(--surface-tint);
  color: var(--ink-1);
}
.modal-reset__close i { font-size: 14px; }

/* Icono superior */
.modal-reset__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%,
      rgba(var(--brand-2-rgb), 0.18),
      rgba(var(--brand-1-rgb), 0.06));
  border: 1px solid rgba(var(--brand-2-rgb), 0.22);
  color: var(--brand-1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    0 6px 16px -8px rgba(var(--brand-1-rgb), 0.30);
}
.modal-reset__icon svg {
  width: 28px;
  height: 28px;
}

/* Tipografía */
.modal-reset__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.028em;
  color: var(--ink-1);
  margin: 0 0 8px;
  line-height: 1.2;
}
.modal-reset__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto 26px;
  max-width: 38ch;
}

/* Form */
.reset-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* Botón terciario "Volver al inicio de sesión" */
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: 0;
  padding: 11px 12px;
  margin-top: 2px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border-radius: 10px;
  transition:
    color      0.25s var(--ease-out-quart),
    background 0.25s var(--ease-out-quart),
    gap        0.30s var(--ease-out-quart);
}
.btn-tertiary i {
  font-size: 13px;
  transition: transform 0.30s var(--ease-out-quart);
}
.btn-tertiary:hover {
  color: var(--brand-1);
  background: rgba(var(--brand-2-rgb), 0.06);
  gap: 10px;
}
.btn-tertiary:hover i { transform: translateX(-2px); }
.btn-tertiary:focus-visible,
.modal-reset__close:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
}

/* Mobile: bottom sheet */
@media (max-width: 575.98px) {
  .modal-reset .modal-dialog {
    margin: 0;
    align-items: flex-end;
    min-height: 100%;
  }
  .modal-reset .modal-content {
    border-radius: 20px 20px 0 0;
  }
  .modal-reset .modal-body {
    padding: 32px 22px 24px;
  }
  .modal-reset__title { font-size: 20px; }
  .modal-reset__icon  { width: 56px; height: 56px; margin-bottom: 18px; }
  .modal-reset__sub   { margin-bottom: 22px; }
}

/* Motion accesible */
@media (prefers-reduced-motion: reduce) {
  .modal-reset__close,
  .btn-tertiary,
  .btn-tertiary i {
    transition: none !important;
  }
}
