:root {
  --bg-yellow: #ffc928;
  --bg-deep: #043244;
  --text-main: #062019;
  --text-muted: #23463a;
  --accent-teal: #008c86;
  --accent-pill: #008266;
  --border-deep: #032133;
  --border-strong: #020617;
  --page-bg: #ffffff;

  /* sistema de botones / controles */
  --btn-border-width: 3px;
  --btn-shadow: 4px 4px 0 var(--border-strong);
  --control-height: 36px; /* altura estándar de controles del header */
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--page-bg);
  font-family: 'Fredoka', sans-serif;
  color: var(--text-main);
}

body.no-scroll { overflow: hidden; }

/* ====== MODO OSCURO (minimalista, sin romper el estilo) ====== */

body.dark-theme {
    --page-bg: rgb(26 44 59 / 1);
    --landing-shell: #043244;
    --landing-card: #081523;
    --landing-surface: #0b1724;
    --landing-control: #102235;
    --landing-control-hover: #132b40;
    --landing-border: #010b16;
    --text-main: #f9fafb;
    --text-muted: #cbd5f5;
    --bg-yellow: #ffc928;
}

/* fondo global y texto sobre el fondo oscuro (body, secciones, footer) */
body.dark-theme {
    background: var(--page-bg);
    color: var(--text-main);
}

body.dark-theme main,
body.dark-theme footer {
    color: var(--text-main);
}

body.dark-theme .section-kicker,
body.dark-theme .section-subtitle,
body.dark-theme .contact-side {
    color: var(--text-muted);
}

/* ===== HEADER ===== */

body.dark-theme .site-header {
    color: var(--text-main);
}

body.dark-theme .brand-name {
    color: var(--text-main);
}

/* enlaces del nav centrado */
body.dark-theme .nav-pill {
    color: var(--text-main);
}

body.dark-theme .nav-link {
    color: inherit;
}

/* pastilla Home: sigue siendo amarilla con texto oscuro */
body.dark-theme .nav-link-pill.active .nav-pill-inner {
    background: var(--bg-yellow);
    color: #020617;
}

/* ===== CONTROLES DEL HEADER (idioma, toggle, sign in) ===== */

body.dark-theme .lang-pill,
body.dark-theme .btn-signin,
body.dark-theme .toggle-pill {
    background: var(--landing-control);
    color: rgba(249, 250, 251, 0.92);
    border-color: var(--landing-border);
    box-shadow: 4px 4px 0 var(--landing-border);
}

/* botones idioma */
body.dark-theme .lang-btn {
    color: var(--text-main);
}

body.dark-theme .lang-btn:hover {
    background: rgba(148, 163, 184, 0.15);
}

body.dark-theme .lang-btn.active {
    background: var(--bg-yellow);
    color: #020617;
}

/* toggle knob */
body.dark-theme .toggle-knob {
    background: var(--bg-yellow);
}

body.dark-theme .toggle-pill.is-dark {
    background: var(--landing-control);
}

body.dark-theme .toggle-pill.is-dark .toggle-knob {
    background: var(--bg-yellow);
    transform: translateX(24px);
}

/* ===== HERO: fondo amarillo, texto oscuro (no se invierte) ===== */

body.dark-theme .hero-frame {
/* el hero amarillo mantiene texto oscuro */
    color: #062019;
}

body.dark-theme .auth-card-modal {
    background: var(--landing-card);
    color: var(--text-main);
    border-color: var(--landing-border);
    box-shadow: 8px 8px 0 var(--landing-border);
}

body.dark-theme .step-card,
body.dark-theme .contact-card,
body.dark-theme .contact-side-card {
    background: var(--landing-card);
    border-color: var(--landing-border);
    box-shadow: 6px 6px 0 var(--landing-border);
    color: var(--text-main);
}

body.dark-theme .hero-title,
body.dark-theme .hero-kicker {
    color: #062019;
}

body.dark-theme .hero-subtitle,
body.dark-theme .hero-social-proof {
    color: #23463a;
}

/* texto dentro de tarjetas blancas */
body.dark-theme .step-title,
body.dark-theme .contact-card-title,
body.dark-theme .form-label {
    color: var(--text-main);
}

body.dark-theme .step-text {
    color: var(--text-muted);
}

body.dark-theme .step-badge {
    background: var(--bg-yellow);
    color: #062019;
}

/* inputs y textareas claros con texto oscuro */
body.dark-theme .form-input,
body.dark-theme .form-textarea,
body.dark-theme .input-wrapper-auth {
    background: var(--landing-control);
    border-color: var(--landing-border);
    color: rgba(249, 250, 251, 0.94);
}

body.dark-theme .input-field-auth {
    color: var(--text-main);
}

body.dark-theme .input-icon-auth,
body.dark-theme .password-toggle-auth {
    color: var(--text-muted);
}

/* ===== BOTÓN SCROLL ARRIBA ===== */

body.dark-theme .scroll-top-btn {
    background: var(--bg-yellow);
    color: #020617;
}

/* ===== FOOTER ===== */

body.dark-theme footer {
    color: var(--text-muted);
}



/* ====== HEADER ====== */

header.site-header {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #020617;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-left: 5px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 8px 0;
  background: transparent;
  border-radius: 999px;
  font-size: 1.1rem;
  color: #020617;
}

.nav-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  cursor: pointer;
  font-weight: 500;
}

.nav-link:hover { opacity: 1; }

/* subrayado solo para los que NO son píldora */
.nav-link:not(.nav-link-pill).active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: #ffd96b;
}

.nav-link.active {
  font-weight: 600;
}

/* Contenedor de la píldora Home */
.nav-link-pill .nav-pill-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  box-shadow: none;
  transition:
    background 0.15s ease-out,
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    transform 0.1s ease-out;
}

.nav-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link-pill.active .nav-pill-inner {
  background: var(--bg-yellow);
  border-color: #020617;
  box-shadow: 4px 4px 0 var(--border-strong);
  color: #020617;
}

.nav-link-pill.active:hover .nav-pill-inner {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

body.dark-theme .nav-pill {
  color: #e5e7eb;
}

body.dark-theme .nav-link-pill.active .nav-pill-inner {
  background: var(--bg-yellow);
  color: var(--bg-deep);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  header.site-header {
    width: 100%;
    margin: 12px auto 0;
    padding: 8px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-name {
    font-size: 1.65rem;
    white-space: nowrap;
  }

  .nav-center {
    display: none;
  }

  .nav-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-signin {
    flex: 1 1 100%;
    justify-content: center;
    min-width: 0;
  }
}

.btn-signin {
  height: var(--control-height);
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--border-deep);
  background: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
}

.btn-signin:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* ===== Language switcher – versión nueva ===== */

.lang-pill {
  height: var(--control-height);
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--border-deep);
  box-shadow: 4px 4px 0 var(--border-strong);
  overflow: hidden;
}

.lang-btn {
  position: relative;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 40px;
  color: var(--bg-deep);
  transition: background 0.15s ease-out, color 0.15s ease-out;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.lang-btn + .lang-btn {
  border-left: 2px solid rgba(0, 0, 0, 0.08);
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.lang-btn.active {
  background: var(--bg-yellow);
  color: var(--bg-deep);
}

body.dark-theme .lang-pill {
  background: var(--landing-control);
  border-color: var(--landing-border);
  box-shadow: 4px 4px 0 var(--landing-border);
}

body.dark-theme .lang-btn {
  color: #e5e7eb;
}

body.dark-theme .lang-btn:hover {
  background: rgba(148, 163, 184, 0.15);
}

body.dark-theme .lang-btn.active {
  background: var(--bg-yellow);
  color: var(--bg-deep);
}

/* Toggle de modo oscuro alineado al estilo */

.toggle-pill {
  border: 2px solid var(--border-deep);
  box-shadow: var(--btn-shadow);
  display: flex;
  align-items: center;
  padding: 3px;
  cursor: pointer;
  transition: background 0.2s ease-out;
  height: var(--control-height);
  width: calc(var(--control-height) * 1.6);
  border-radius: 999px;
  background: #ffffff;
}

.toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-yellow);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
  transform: translateX(0);
  transition:
    transform 0.2s ease-out,
    background 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

.toggle-pill.is-dark {
  background: var(--bg-yellow);
}

.toggle-pill.is-dark .toggle-knob {
  background: #020617;
  box-shadow: 0 0 0 2px #020617;
  transform: translateX(24px);
}

/* ====== HERO / CUADRO AMARILLO ====== */

.hero-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 60px;
}

.hero-frame {
  position: relative;
  max-width: 1200px;
  width: calc(100% - 40px);
  background: var(--bg-yellow);
  border-radius: 42px;
  border: 4px solid var(--border-deep);
  padding: 40px 48px 48px;
  box-shadow: 4px 4px 0 var(--border-strong);
  overflow: hidden;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.7rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero-title .dot { color: var(--bg-deep); }

.hero-subtitle {
  margin-top: 14px;
  font-size: 1rem;
  max-width: 520px;
  margin-right: auto;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-actions,
.hero-social-proof {
    justify-content: flex-start;
}

/* Preview con contenido “esqueleto” */

.preview-inner {
    position: absolute;
    inset: 18px 22px;
    border-radius: 28px;
    background: url("../img/hero-preview.png") center/cover no-repeat;
}


.preview-header {
    width: 40%;
    height: 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
}

.preview-row {
    width: 70%;
    height: 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
}

.preview-row--wide { width: 90%; }
.preview-row--small { width: 45%; }

/* Responsive: en móvil vuelve a columna única centrada */

@media (max-width: 900px) {
.hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
}

.hero-text {
    text-align: center;
}

.hero-actions,
.hero-social-proof {
    justify-content: center;
}
}



.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border-deep);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out,
    background 0.1s ease-out;
}

.btn-primary {
  background: var(--bg-deep);
  color: #fff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.hero-social-proof {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.hero-preview {
  margin-top: 11px;
  display: flex;
  justify-content: center;
}

.preview-frame {
  width: min(880px, 100%);
  height: 330px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 240, 190, 0.8)
  );
  border-radius: 40px;
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.preview-inner {
  position: absolute;
  inset: 18px 22px;
  border-radius: 28px;
}

/* ====== SECCIONES ====== */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

section { padding: 32px 0; }

.section-header { margin-bottom: 22px; }

.section-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: #ffffff;
  border-radius: 24px;
  border: 2px solid #e0e3f2;
  padding: 18px;
  box-shadow: 0 10px 16px rgba(15, 23, 42, 0.08);
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-deep);
  color: #fff;
  border-radius: 24px;
  padding: 18px;
  border: 2px solid #02151f;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.5);
}

body.dark-theme .feature-card {
  background: var(--landing-card);
  border-color: var(--landing-border);
  box-shadow: 4px 4px 0 var(--landing-border);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

body.dark-theme .feature-pill {
  background: var(--landing-control);
  color: rgba(249, 250, 251, 0.92);
}

.feature-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.feature-text {
  font-size: 0.95rem;
  opacity: 0.95;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-card {
  background: #f9fafb;
  border-radius: 26px;
  border: 3px solid #020617;
  padding: 24px 22px 26px;
  box-shadow: 6px 6px 0 #020617;
}

.contact-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--bg-deep);
}

.contact-duck {
    width: 120px; /* tamaño recomendado */
    margin: 0 auto 20px; /* centrado + separación */
    display: flex;
    justify-content: center;
}

.contact-duck img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(4px 4px 0 #020617);
}

.form-field { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 14px;
  border: 3px solid #020617;
  padding: 10px 14px;
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: 18px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

body.dark-theme .form-input::placeholder,
body.dark-theme .form-textarea::placeholder,
body.dark-theme .input-field-auth::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  margin-top: 8px;
  width: 100%;
  border-radius: 18px;
  padding: 12px 24px;
  background: var(--bg-yellow);
  color: var(--bg-deep);
  border: 3px solid #020617;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 4px 4px 0 #020617;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.btn-submit:hover {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 #020617;
}


/* Columna derecha: centramos la tarjeta */
.contact-side {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tarjeta del pato */
.contact-side-card {
    background: #fffbeb;
    border: 3px solid #020617;
    border-radius: 26px;
    padding: 24px 22px 26px;
    box-shadow: 6px 6px 0 #020617;
}

/* Avatar del pato */
.contact-side-avatar {
    border-radius: 22px;
    border: 3px solid #020617;
    background: var(--bg-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 210px;
}

.contact-side-avatar img {
    width: 100%;
    height: 100%;
}

/* Listado dentro de la tarjeta */
.contact-side-card ul {
    list-style: none;
    margin: 10px 0 10px;
    padding: 0;
}

.contact-side-card li {
    margin-bottom: 6px;
}

/* Modo oscuro coherente */
body.dark-theme .contact-side-card {
    background: var(--landing-surface);
    color: var(--text-main);
}

body.dark-theme .contact-side-avatar {
    background: #f8fafc;
    box-shadow: inset 0 0 0 2px rgba(2, 6, 23, 0.08);
}



footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-bottom: 24px;
}

/* ====== MODAL AUTH ====== */

.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
  z-index: 40;
}

.auth-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-card-modal {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 28px;
  border: 3px solid var(--border-strong);
  box-shadow: 10px 10px 0 var(--border-strong);
  padding: 26px 24px 24px;
  position: relative;
}

.auth-avatar-wrapper {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fffbeb;
  border: 3px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 rgba(0,0,0,0.2);
}

.auth-avatar-inner {
  border-radius: 50%;
  background: var(--bg-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.auth-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-card-inner { margin-top: 30px; }

.auth-title {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.auth-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 18px;
}

body.dark-theme .auth-subtitle {
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  border-radius: 14px;
  border: 3px solid var(--border-strong);
  overflow: hidden;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  border: none;
  outline: none;
}

.auth-tab.active { background: var(--bg-yellow); }

body.dark-theme .auth-tab {
  background: var(--landing-control);
  color: rgba(249, 250, 251, 0.92);
}

body.dark-theme .auth-tab.active {
  background: var(--bg-yellow);
  color: #020617;
}

.form-group-auth { margin-bottom: 14px; }

.form-label-auth {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.input-wrapper-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 3px solid var(--border-strong);
  background: #ffffff;
  padding: 8px 10px;
}

.input-icon-auth {
  font-size: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.input-field-auth {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  flex: 1;
  padding: 4px 2px;
  background: transparent;
}

.input-field-auth::placeholder { color: #9ca3af; }

.password-toggle-auth {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.forgot-link-auth {
  text-align: right;
  margin-top: 4px;
  font-size: 0.88rem;
}

.forgot-link-auth a {
  color: #ea9b00;
  text-decoration: none;
}

.btn-primary-auth {
  margin-top: 16px;
  width: 100%;
  border-radius: 18px;
  padding: 12px 24px;
  background: var(--bg-deep);
  color: #ffffff;
  border: 3px solid var(--border-strong);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.btn-primary-auth:hover {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 var(--border-strong);
}

.auth-legal {
  margin-top: 14px;
  font-size: 0.8rem;
  text-align: center;
  color: #4b5563;
}

body.dark-theme .auth-legal {
  color: var(--text-muted);
}

.auth-legal a {
  color: #ea9b00;
  text-decoration: none;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 36px;
  height: 36px;
  border-radius: 12px;

  border: 2px solid rgba(0, 0, 0, 0.10);
  background: transparent;
  color: inherit;

  cursor: pointer;
  display: grid;
  place-items: center;
}

body.dark-theme .auth-close {
  border-color: rgba(249, 250, 251, 0.16);
  background: var(--landing-control);
  color: var(--text-main);
}

.auth-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

.auth-error {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #b91c1c;
  text-align: center;
}

/* Botón "volver arriba" */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: var(--btn-border-width) solid var(--border-strong);
  background: var(--bg-yellow);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease-out,
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--border-strong);
}

body.dark-theme .scroll-top-btn {
  background: var(--bg-yellow);
  color: var(--bg-deep);
}

.hidden { display: none; }

/* Modo oscuro coherente para botones secundarios */
body.dark-theme .btn-secondary,
body.dark-theme .btn-signin {
  background: var(--landing-control);
  color: rgba(249, 250, 251, 0.92);
  border-color: var(--landing-border);
}

body.dark-theme .btn-submit {
  background: var(--bg-yellow);
  color: var(--bg-deep);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .tag-floating { display: none; }
}

@media (max-width: 640px) {
  .nav-center { display: none; }
  .steps-grid,
  .features-grid { grid-template-columns: 1fr; }
  .hero-frame { width: calc(100% - 24px); padding: 32px 18px 40px; }
  main { padding: 0 16px 56px; }

  .features-grid {
    gap: 12px;
  }

  .feature-card {
    padding: 16px;
    border-radius: 20px;
  }

  .feature-pill {
    margin-bottom: 10px;
  }

  .contact-layout {
    gap: 20px;
  }

  .contact-card,
  .contact-side-card {
    padding: 20px 18px 22px;
    border-radius: 22px;
  }

  .contact-card-title {
    margin-bottom: 16px;
    font-size: 1.25rem;
  }

  .contact-duck {
    width: 104px;
    margin-bottom: 16px;
  }

  .scroll-top-btn {
    right: 14px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}

body.dark-theme {
  background: var(--page-bg);
}

/* ===============================
   TOAST (Quacker unified)
   =============================== */

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 260px;
  max-width: 420px;

  padding: 12px 12px;
  border-radius: 12px;

  background: rgba(17, 24, 39, 0.92);
  color: #f9fafb;

  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(10px);

  position: relative;
  overflow: hidden;
}

.toast.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-msg {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  color: rgba(249, 250, 251, 0.95);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-icon {
  width: 20px;
  height: 20px;
  opacity: .92;
  margin-top: 2px;
}

.toast--success { border-color: rgba(70, 200, 140, .35); }
.toast--error { border-color: rgba(255, 120, 120, .35); }
.toast--info { border-color: rgba(120, 170, 255, .35); }

/* Buttons */
.toast-btn{
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  cursor: pointer;
  user-select: none;

  box-shadow: 2px 2px 0 rgba(0,0,0,0.35);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.toast-btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(1px);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.35);
}

.toast-btn:active{
  transform: translateY(2px);
  box-shadow: 0 0 0 rgba(0,0,0,0.35);
}

.toast-btn:disabled{
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: 0 0 0 rgba(0,0,0,0.35);
}

.toast-btn svg{ display:block; }

.toast-btn.toast-close{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 0;
}

.toast-btn.toast-action{
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.1px;
}

/* Barra de tiempo */
.toast-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
}

.toast-timer > span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.65);
  transition: transform linear;
}

/* Busy (por si usas acción en el futuro) */
.toast-btn.is-busy {
  opacity: 0.75;
  pointer-events: none;
}

/* ===== Auth: errores inline por campo ===== */

.field-error-auth {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #b91c1c;
  line-height: 1.2;
}

.input-wrapper-auth.is-invalid {
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.03);
}

.input-wrapper-auth.is-valid {
  border-color: rgba(2, 6, 23, 0.55);
}

/* ===== Auth submit: disabled + loading ===== */

.btn-primary-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 4px 4px 0 var(--border-strong);
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes spinAuthBtn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-spinner svg {
  animation: spinAuthBtn 700ms linear infinite;
}

.btn-primary-auth.is-loading #authSubmitArrow {
  display: none;
}

.btn-primary-auth.is-loading #authSubmitSpinner {
  display: inline-flex;
}

.hidden { display: none; }

/* Contact side: viñetas por CSS (no en texto) */
.contact-side ul {
  list-style: disc;
  padding-left: 18px;
  margin: 10px 0 0;
}

.contact-side li {
  margin: 8px 0;
}
