/* ==========================================================================
   Dietlove — Landing estática de lista de espera
   Colores: naranja #ea580c (orange-600), hover #c2410c (orange-800)
   Tipografía: Inter (cuerpo) + Fraunces (títulos)
   ========================================================================== */

:root {
  --color-naranja: #ea580c;
  --color-naranja-hover: #c2410c;
  --color-naranja-suave: #fff7ed;
  --color-fondo: #ffffff;
  --color-tinta: #111827;
  --color-muted: #6b7280;
  --color-linea: #e5e7eb;
  --color-error: #ef4444;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-tinta);
  background: var(--color-fondo);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--color-naranja);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-linea);
  z-index: 100;
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-naranja);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu li a {
  color: var(--color-tinta);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu li a:hover {
  color: var(--color-naranja);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-naranja);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-cta:hover {
  background: var(--color-naranja-hover);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-tinta);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  background: var(--color-naranja-suave);
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--color-tinta);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-tinta);
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-linea);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-naranja);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.form-checkbox input {
  width: auto;
  margin: 0;
}

.form-checkbox label {
  margin: 0;
  cursor: pointer;
}

.form-checkbox a {
  font-weight: 500;
}

.error {
  color: var(--color-error);
  font-size: 0.75rem;
  display: none;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-primary:hover {
  background: var(--color-naranja-hover);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.hero-social {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero-visual {
  display: none;
}

.plan-preview {
  max-width: 400px;
  margin: 0 auto;
}

.plan-card {
  background: #fff;
  border: 1px solid var(--color-linea);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.plan-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-naranja);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-items {
  list-style: none;
}

.plan-items li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.plan-items li:last-child {
  border-bottom: none;
}

.item-name {
  color: var(--color-tinta);
}

.item-qty {
  color: var(--color-muted);
}

/* ===== Secciones genéricas ===== */
section {
  padding: 4rem 0;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-tinta);
}

/* ===== Problema ===== */
.problema h2 {
  color: var(--color-tinta);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-linea);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===== Solución ===== */
.solucion {
  background: #f9fafb;
}

.solucion h2 {
  margin-bottom: 1rem;
}

.solucion p {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.solucion-nota {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ===== Beneficios ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ===== Cómo funciona ===== */
.como-funciona {
  background: #f9fafb;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-naranja);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

/* ===== CTA Form ===== */
.cta-form {
  background: #fff;
}

.cta-form .hero-form {
  max-width: 560px;
  margin: 0 auto;
}

.cta-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .cta-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-linea);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  background: #fff;
}

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

.faq-item p {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-linea);
  background: #f9fafb;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-tinta);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand .logo {
  color: var(--color-naranja);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #d1d5db;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-legal {
  border-top: 1px solid #374151;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.rgpd-nota {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.rgpd-nota a {
  color: var(--color-naranja);
}

.footer-copy {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.footer-datos {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    display: none;
    border-bottom: 1px solid var(--color-linea);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-cta {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    order: -1;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero-form {
    padding: 1rem;
  }

  .btn-lg {
    width: 100%;
  }
}