/* Campaña Navideña 2026 - kolbi
 * Estilos compartidos por login, registro, recuperar y cambiar contraseña.
 * Vive fuera de /styles para que el pipeline de Grunt no lo inyecte en el admin.
 */
:root {
  --green-900: #04110a;
  --green-800: #082a15;
  --green-600: #14571f;
  --green-400: #66db4f;
  --red-600: #c8102e;
  --red-500: #e0283f;
  --gold-400: #f5c04a;
  --orange-500: #f2842f;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, .78);
  --text-muted: rgba(255, 255, 255, .55);
  --border: rgba(154, 234, 135, .3);
  --surface: rgba(5, 28, 14, .86);
  --input-bg: rgba(0, 0, 0, .25);
  --error-bg: rgba(255, 99, 99, .16);
  --error-border: rgba(255, 99, 99, .4);
  --error-text: #ffd5d5;
  --info-bg: rgba(245, 192, 74, .12);
  --info-border: rgba(245, 192, 74, .4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(200, 16, 46, .35) 0%, transparent 40%),
    radial-gradient(circle at 10% 0%, var(--green-600) 0%, var(--green-900) 50%, #000 100%);
  background-attachment: fixed;
  padding: 24px 16px 48px;
  overflow-x: hidden;
}

/* ---------- Nieve ---------- */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.snow span {
  position: absolute;
  top: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  animation: snow-fall linear infinite;
}
@keyframes snow-fall {
  to { transform: translate3d(30px, 105vh, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
}

/* ---------- Layout ---------- */
.shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.brand { width: min(200px, 56vw); height: auto; }

.layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.promo { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.title {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
}
.title em { font-style: normal; color: var(--gold-400); }

.subtitle { font-size: 16px; line-height: 1.45; color: var(--text-soft); max-width: 440px; }

.panel {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red-600);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .4);
  padding: 28px 22px 22px;
}

.panel-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.panel-subtitle { font-size: 14px; color: var(--text-soft); margin-bottom: 20px; line-height: 1.4; }

/* ---------- Árbol navideño ---------- */
.tree {
  position: relative;
  width: min(300px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tree svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45)); }

.tree-sphere { transition: opacity .35s ease, transform .35s ease; transform-box: fill-box; transform-origin: center; }
.tree-sphere.empty { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tree-sphere.pop { animation: sphere-pop .45s ease; }
@keyframes sphere-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.tree-star { transition: fill .4s ease, stroke .4s ease; transform-box: fill-box; transform-origin: center; }
.tree-star.off { fill: none; stroke: rgba(245, 192, 74, .6); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tree-star.on { fill: var(--gold-400); stroke: #fff3c4; stroke-width: 1; filter: drop-shadow(0 0 10px rgba(245, 192, 74, .9)); animation: star-glow 2.4s ease-in-out infinite; }
@keyframes star-glow {
  50% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .tree-sphere.pop, .tree-star.on { animation: none; }
}

.tree-stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tree-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
}
.tree-stat-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red-500); }
.tree-stat-star { color: var(--gold-400); font-size: 15px; line-height: 1; }

.tree-progress { width: 100%; display: grid; gap: 6px; }
.tree-progress-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.tree-progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red-500), var(--gold-400)); transition: width .4s ease; }
.tree-progress-label { font-size: 13px; color: var(--text-soft); text-align: center; }

.how-it-works { display: grid; gap: 8px; font-size: 14px; color: var(--text-soft); line-height: 1.4; }
.how-it-works li { list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.how-it-works b { color: var(--white); }
.how-step {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Formulario ---------- */
form { display: grid; gap: 14px; }

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

label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .88); }

.input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(102, 219, 79, .2); }
.input.invalid { border-color: var(--error-border); }
/* iOS Safari: el input date tiene ancho mínimo intrínseco y centra el texto, se desborda del contenedor */
input[type="date"].input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  text-align: left;
}
input[type="date"].input::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"].input::-webkit-datetime-edit { padding: 0; }

.field-error { font-size: 12px; color: var(--error-text); min-height: 0; }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 70px; }
.toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}
.toggle-pass:hover { color: var(--white); }

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

.link {
  color: var(--gold-400);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.link:hover { text-decoration: underline; }

.btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--orange-500);
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  padding: 13px 24px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 8px 22px rgba(242, 132, 47, .4);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242, 132, 47, .45); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-outline:hover { border-color: var(--green-400); background: rgba(102, 219, 79, .08); box-shadow: none; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  margin: 6px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.helper { text-align: center; color: var(--text-soft); font-size: 14px; }

.alert {
  display: none;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 4px;
}
.alert.show { display: block; }
.alert.error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error-text); }
.alert.info { background: var(--info-bg); border: 1px solid var(--info-border); color: #ffe9b8; }
.alert .link { font-size: inherit; }

.hidden { display: none !important; }

/* ---------- Estado de éxito ---------- */
.success { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.success-title { font-size: 24px; font-weight: 800; }
.success-text { font-size: 15px; color: var(--text-soft); line-height: 1.45; }

.footer-note { font-size: 12px; color: var(--text-muted); text-align: center; }
.footer-note a { color: var(--text-soft); }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .promo { align-items: center; text-align: center; }
  .promo .tree { width: min(240px, 100%); }
  .how-it-works { text-align: left; }
}

@media (max-width: 480px) {
  .panel { padding: 22px 16px 18px; border-radius: 18px; }
}

/* ---------- Agregar servicio ---------- */
.services-box {
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.services-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.services-list { list-style: none; display: grid; gap: 8px; }
.services-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.services-phone { font-weight: 700; }
.services-type { font-size: 12px; color: var(--text-soft); background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 2px 10px; }
.services-fav { font-size: 12px; color: var(--gold-400); margin-left: auto; }
.services-empty { font-size: 14px; color: var(--text-soft); }

.steps { list-style: none; display: flex; gap: 8px; margin-bottom: 18px; counter-reset: step; }
.step {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 3px solid rgba(255, 255, 255, .12);
  counter-increment: step;
}
.step::before { content: counter(step) ". "; }
.step.active { color: var(--white); border-top-color: var(--red-500); }
.step.done { color: var(--text-soft); border-top-color: var(--green-400); }

.otp-input { font-size: 26px; font-weight: 800; letter-spacing: .5em; text-align: center; padding-left: calc(14px + .5em); }

.link:disabled { color: var(--text-muted); cursor: not-allowed; text-decoration: none; }

/* ---------- Recuperar / cambiar contraseña ---------- */
.mail-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  background: rgba(245, 192, 74, .15);
  border: 2px solid var(--gold-400);
  color: var(--gold-400);
}
.mail-icon.ok { background: rgba(102, 219, 79, .15); border-color: var(--green-400); color: var(--green-400); }
.mail-icon.warn { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }

.password-rules { list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--text-muted); margin-top: -4px; }
.password-rules li::before { content: "○ "; }
.password-rules li.ok { color: var(--green-400); }
.password-rules li.ok::before { content: "✓ "; }

.success .link { font-size: 14px; }

/* ---------- Elegir tipo de servicio ---------- */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.choice-card:hover, .choice-card:focus-visible { border-color: var(--green-400); background: rgba(102, 219, 79, .08); transform: translateY(-2px); outline: none; }
.choice-icon { font-size: 26px; line-height: 1; }
.choice-title { font-size: 16px; font-weight: 800; }
.choice-text { font-size: 13px; color: var(--text-soft); line-height: 1.35; }

form .link[data-back-to-choice] { justify-self: center; font-size: 14px; }

@media (max-width: 420px) {
  .choice-grid { grid-template-columns: 1fr; }
}

/* ---------- Registro ---------- */
.panel-wide { max-width: 620px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; }
select.input option { color: var(--white); background: var(--green-800); }
.helper-left { text-align: left; font-size: 13px; margin-top: -6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-soft); line-height: 1.4; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--orange-500); flex: 0 0 auto; }
.check a { color: var(--gold-400); }

@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Mis servicios ---------- */
.service-pick-list { list-style: none; display: grid; gap: 10px; }
.service-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.service-pick-icon { font-size: 24px; line-height: 1; }
.service-pick-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; align-items: flex-start; }
.btn.btn-small { width: auto; font-size: 15px; padding: 9px 20px; box-shadow: none; }

/* ---------- Logo kölbi: rana oficial (images/site/kolbi: fav.png verde, logo.png blanca) + texto en KolbiSans ---------- */
@font-face {
  font-family: "KolbiSans";
  font-weight: 700;
  font-display: swap;
  src: url("/digitalDynamics/responsiveRoulette/styles/fonts/KolbiSans-Bold.woff2") format("woff2"),
       url("/digitalDynamics/responsiveRoulette/styles/fonts/KolbiSans-Bold.woff") format("woff");
}
.kolbi-logo {
  display: inline-flex;
  align-items: center;
  gap: .14em;
  font-family: "KolbiSans", "DM Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
}
.kolbi-logo-text { transform: translateY(-.04em); }
.kolbi-frog { width: .98em; height: auto; flex-shrink: 0; }
.kolbi-logo--green { color: #32c332; }
.kolbi-logo--white { color: #ffffff; }
