/* ===== Tokens (mismos que la app — client/src/app/globals.css) ===== */
:root {
  --color-primary: #eb6435;
  --color-primary-dark: #d14d1f;
  --color-primary-light: #ff7b52;

  --color-dark: #333333;
  --color-dark-light: #666666;
  --color-text: #171717;

  --color-success: #10b981;

  --color-surface: #f5f5f5;
  --color-border: #dbe6f0;
  --color-white: #ffffff;

  --radius: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 8px 24px rgba(235, 100, 53, 0.28);

  --container: 1140px;
  --header-h: 72px;

  --font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.text-primary {
  color: var(--color-primary);
}

/* ===== Buttons ===== */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

.btn--primary {
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--light {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}
.btn--light:hover {
  background: var(--color-surface);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1.05rem;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 34px;
  width: auto;
}

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

.nav__link {
  font-weight: 500;
  color: var(--color-dark);
  transition: color 0.2s ease;
}
.nav__link:hover {
  color: var(--color-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: clamp(60px, 12vw, 130px) 0 clamp(50px, 9vw, 100px);
  background: radial-gradient(
      120% 120% at 80% 0%,
      rgba(235, 100, 53, 0.1) 0%,
      rgba(235, 100, 53, 0) 55%
    ),
    var(--color-white);
  text-align: center;
}

.hero__inner {
  max-width: 820px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(235, 100, 53, 0.12);
  border-radius: var(--radius-pill);
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--color-dark-light);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--color-dark-light);
}

/* ===== Sections ===== */
.section {
  padding: clamp(60px, 10vw, 110px) 0;
}
.section--alt {
  background: var(--color-surface);
}

.section__head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.section__lead {
  margin-top: 14px;
  font-size: 1.08rem;
  color: var(--color-dark-light);
}

/* ===== Grid de beneficios ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* Centra una card sola cuando queda huérfana en la última fila (grid de 3 columnas) */
.grid .card:nth-child(3n + 1):last-child {
  grid-column: 1 / -1;
  max-width: 380px;
  margin-inline: auto;
}

.card {
  padding: 30px 26px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 16px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.card__text {
  color: var(--color-dark-light);
  font-size: 0.97rem;
}

/* ===== Pasos comensales ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.step {
  text-align: center;
  padding: 16px;
}

.step__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-primary);
}

.step__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.step__text {
  color: var(--color-dark-light);
  font-size: 0.97rem;
}

/* ===== CTA fundadores ===== */
.cta {
  padding: clamp(56px, 9vw, 96px) 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: #fff;
  text-align: center;
}

.cta__inner {
  max-width: 680px;
}

.cta__title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta__text {
  margin: 18px auto 30px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== Footer ===== */
.footer {
  padding: 50px 0;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer__tagline {
  font-size: 0.95rem;
}

.footer__email {
  font-weight: 600;
  color: var(--color-primary-light);
}
.footer__email:hover {
  text-decoration: underline;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__cta {
    margin-top: 12px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}
