/* ==========================================================================
   Dinerio Landing — Below-the-fold styles
   Critical styles (header, hero, variables, base) are inline in the HTML.
   ========================================================================== */

/* ---------- Global interactive ---------- */

a, button, summary, [role="button"] {
  cursor: pointer;
}

/* ---------- Section shared ---------- */

.section__title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- Features ---------- */

.features {
  background: var(--surface);
  padding: 120px 20px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1),
              box-shadow 0.25s cubic-bezier(.22,1,.36,1),
              border-color 0.25s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--border-light);
}

.feature-card__icon {
  color: var(--text);
  margin-bottom: 20px;
  width: 28px;
  height: 28px;
}

.feature-card__title {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- How It Works ---------- */

.how-it-works {
  background: var(--card);
  padding: 120px 20px;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.step__number {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.step__title {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.step__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-it-works__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.how-it-works__cta a {
  display: inline-flex;
  transition: transform 0.2s cubic-bezier(.22,1,.36,1), opacity 0.2s;
}

.how-it-works__cta a:hover {
  transform: translateY(-3px);
  opacity: 0.88;
}

.how-it-works__cta a:active {
  transform: translateY(0) scale(0.97);
}

/* ---------- Pricing ---------- */

.pricing {
  background: var(--surface);
  padding: 120px 20px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1),
              box-shadow 0.25s cubic-bezier(.22,1,.36,1);
}

.pricing-card--annual {
  border: 2px solid var(--brand);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.pricing-card--annual:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10);
}

.pricing-card:not(.pricing-card--annual):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card h3 {
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
}

.pricing-card__price {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 48px);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-card__period {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 4px;
}

.pricing-card__subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.pricing-card__cta {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-button);
  font-family: "Epilogue", sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s cubic-bezier(.22,1,.36,1),
              box-shadow 0.2s cubic-bezier(.22,1,.36,1);
  text-decoration: none;
  text-align: center;
}

.pricing-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.pricing-card__cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.pricing__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 48px;
}

.pricing__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 28px;
}

.pricing__web-link {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  transition: color 0.2s;
}

.pricing__web-link:hover {
  color: var(--text-secondary);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--card);
  padding: 120px 20px;
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__item summary {
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 24px;
  color: var(--text);
  transition: color 0.2s;
}

.faq__item summary:hover {
  color: var(--text-secondary);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  color: var(--text-secondary);
  font-size: 15px;
  padding-top: 16px;
  padding-bottom: 4px;
  line-height: 1.7;
  max-width: 600px;
}

/* ---------- CTA Final (#descargar) ---------- */

.cta-final {
  background: var(--brand);
  color: #fff;
  padding: 120px 20px;
  text-align: center;
}

.cta-final h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-final__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  margin-bottom: 40px;
}

.cta-final__stores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-final__stores a {
  display: inline-flex;
  transition: transform 0.2s cubic-bezier(.22,1,.36,1), opacity 0.2s;
}

.cta-final__stores a:hover {
  transform: translateY(-3px);
  opacity: 0.88;
}

.cta-final__stores a:active {
  transform: translateY(0) scale(0.97);
}

.cta-final a:focus-visible,
.cta-final button:focus-visible {
  outline-color: #fff;
}

.cta-final__web-link {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
  opacity: 0.6;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta-final__web-link:hover {
  opacity: 1;
}

/* ---------- Footer ---------- */

.footer {
  background: #111111;
  color: #fff;
  padding: 56px 20px 28px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  width: 100px;
  height: auto;
  filter: brightness(0) invert(1);
  margin: 0 auto 10px;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-bottom: 28px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer a:focus-visible {
  outline-color: #fff;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__links span {
  color: rgba(255, 255, 255, 0.2);
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Cookie Banner ---------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  font-size: 14px;
  color: var(--text-secondary);
}

.cookie-banner__accept {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-button);
  font-family: "Epilogue", sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.cookie-banner__accept:hover {
  background: var(--brand-light);
}

.cookie-banner__link {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: underline;
}

/* ---------- Reveal Animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal .feature-card,
  .reveal .step,
  .reveal .pricing-card,
  .reveal .faq__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Legal pages ---------- */

.legal-content {
  padding: 120px 20px 80px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */

@media (min-width: 1025px) {
  .features,
  .how-it-works,
  .pricing,
  .faq {
    padding: 140px 40px;
  }

  .cta-final {
    padding: 140px 40px;
  }

  .footer {
    padding: 64px 40px 28px;
  }

  .pricing-card {
    padding: 44px;
  }

  .feature-card {
    padding: 36px;
  }

  .feature-card__icon {
    width: 32px;
    height: 32px;
  }

  .how-it-works__grid {
    gap: 64px;
  }

  .step__number {
    font-size: 56px;
  }
}

@media (max-width: 1024px) and (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (max-width: 639px) {
  .section__title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .cta-final h2 {
    font-size: 28px;
  }

  .features {
    padding: 80px 20px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .how-it-works {
    padding: 80px 20px;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step__number {
    font-size: 40px;
  }

  .pricing {
    padding: 80px 20px;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .faq {
    padding: 80px 20px;
  }

  .cta-final {
    padding: 80px 20px;
  }

  .cta-final__subtitle {
    font-size: 16px;
  }
}
