/* Ocultar elementos de invitado antes de que el JS module cargue, si hay sesión activa */
html.user-authed [data-auth="guest"],
html.user-authed #stepsSection,
html.user-authed #stepsTitle,
html.user-authed .cta-final { display: none !important; }

:root {
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  color: #1f1f1f;
  --gold: #f5b331;
  --gold-dark: #df9b0d;
  --ink: #101928;
  --sand: #f8f1e6;
  --card: #ffffff;
  --shadow-soft: 0 24px 60px rgba(16, 25, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--sand);
  position: relative;
}

.background {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 18% 15%, rgba(255, 214, 126, 0.4), transparent 50%),
    radial-gradient(circle at 75% -5%, rgba(214, 122, 10, 0.15), transparent 45%),
    linear-gradient(180deg, #fff9ef, #f5ebdc);
  pointer-events: none;
  z-index: -1;
}

/* Nav styles in nav.css */

.shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  position: relative;
  z-index: 1;
}

.welcome-card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 48px;
}

.welcome-card header {
  text-align: center;
}

.welcome-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.text-gold {
  color: var(--gold-dark);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(245, 179, 49, 0.12);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  margin: 16px auto 32px;
  color: #4b5565;
  max-width: 580px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 48px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;      
}

.hero-btn i { font-size: 1.15rem; }

.hero-btn--primary {
  color: #1f1607;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 14px 32px rgba(245, 179, 49, 0.3);
}

.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(245, 179, 49, 0.4);
  filter: brightness(1.05);
}

.hero-btn--outline {
  color: var(--ink);
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

.hero-btn--outline:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(245, 179, 49, 0.06);
}

/* STEPS SECTION */
.steps-section {
  margin-bottom: 40px;
}

.steps-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--ink);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  position: relative;
  background: #fcfcfd;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  /* button reset */
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 179, 49, 0.18);
  border-color: rgba(245, 179, 49, 0.4);
}

.step-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 179, 49, 0.15);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1f1607;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 179, 49, 0.3);
}

.step-icon {
  width: 52px;
  height: 52px;
  margin: 8px auto 14px;
  border-radius: 16px;
  background: rgba(245, 179, 49, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon i {
  font-size: 24px;
  color: var(--gold-dark);
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #5c606b;
  line-height: 1.5;
}

/* BENEFITS SECTION */
.benefits-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.benefits-card {
  background: linear-gradient(160deg, #1c1c1c, #040404);
  color: #fdf3d9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 36px;
}

.benefits-card h2 {
  margin: 0 0 24px;
  font-size: 1.2rem;
  color: #f9cc67;
}

.benefits-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefits-card li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefits-card li i {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(245, 179, 49, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
}

.benefits-card li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefits-card li strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.benefits-card li span {
  font-size: 0.85rem;
  color: rgba(253, 243, 217, 0.65);
  line-height: 1.45;
}

/* CTA FINAL */
.cta-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 179, 49, 0.08), rgba(245, 179, 49, 0.02));
  border: 1px dashed rgba(245, 179, 49, 0.3);
  width: min(100%, 840px);
  margin: 0 auto 40px;
}

.hero-actions {
  width: 100%;
  justify-content: center;
}

.hero-steps-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(100%, 980px);
  margin: 0 auto 40px;
}

.hero-steps-row .steps-title {
  margin: 0;
  flex: 0 0 auto;
  text-align: center;
}

#uploadCta {
  align-self: center;
}
.cta-final__content h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.cta-final__content p {
  margin: 0;
  color: #5c606b;
  font-size: 0.92rem;
}

/* Promo card (right-side advertising) */
.promo-container { display:flex; justify-content:flex-end; margin: 18px 0 22px; }
.promo-card {
  width: 420px;
  background: linear-gradient(180deg,#ffffff,#fffaf6);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(16,25,40,0.06);
  border: 1px solid rgba(11,34,51,0.04);
}
.promo-pill {
  display:inline-block;
  background: rgba(243,186,58,0.14);
  color: var(--gold-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.promo-title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; }
.promo-lead { margin: 0 0 14px; color: #475569; }
.promo-features { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.promo-features li { background: rgba(11,34,51,0.02); padding: 8px 12px; border-radius: 10px; color: #334155; font-weight: 700; }
.promo-cta { display:inline-block; width:100%; text-align:center; padding: 14px 16px; border-radius: 12px; background: linear-gradient(90deg,var(--gold),var(--gold-dark)); color:#071826; font-weight:900; text-decoration:none; box-shadow:0 14px 34px rgba(245,179,49,0.18); }
.promo-cta:hover { transform: translateY(-2px); box-shadow:0 18px 40px rgba(245,179,49,0.24); }
.promo-note { margin-top:10px; text-align:center; color:#6b7280; font-size:0.9rem; }

.policies {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.policies a {
  color: #2d3648;
  text-decoration: none;
}

/* Botones de política en la página de inicio (visibles solo para invitados) */
.home-policy-links {
  display: flex;
  gap: 12px;
  margin: 28px auto 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.policy-btn {
  display: inline-block;
  min-width: 180px;
  text-align: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(243,186,58,0.14);
  color: #412e00;
  border: 1px solid rgba(243,186,58,0.22);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(214,151,28,0.06);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.policy-btn:hover { transform: translateY(-3px); background: rgba(243,186,58,0.22); }

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 25, 40, 0.4);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
}

.modal__content {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  max-width: 560px;
  width: min(560px, 100%);
  padding: 32px;
  z-index: 1;
}

.modal__content h2 {
  margin-top: 0;
}

.modal__content p + p {
  margin-top: 12px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #5c606b;
  cursor: pointer;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
  }

  .primary-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .welcome-card {
    padding: 32px;
  }
}



/* Login Success Banner */
.login-success-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1a1a1a;
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
  max-width: 380px;
}

.login-success-banner.show {
  opacity: 1;
  transform: translateY(0);
}
