/* softwaretrazabilidadalimentaria.es | styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #0f172a; line-height: 1.6; }

/* Gradients */
.hero-dark { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%); }
.hero-blue { background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #0ea5e9 100%); }
.section-blue { background: #eff6ff; }

/* Buttons */
.btn-orange {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: white; padding: 0.875rem 2rem; border-radius: 0.625rem;
  font-weight: 700; font-size: 0.9375rem; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(249,115,22,0.4);
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(249,115,22,0.5); }

.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: white; color: #1e40af; padding: 0.875rem 2rem; border-radius: 0.625rem;
  font-weight: 700; font-size: 0.9375rem; text-decoration: none;
  transition: all 0.2s; border: 2px solid rgba(255,255,255,0.3);
}
.btn-white:hover { background: rgba(255,255,255,0.15); color: white; border-color: white; }

.btn-blue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #2563eb; color: white; padding: 0.75rem 1.75rem; border-radius: 0.625rem;
  font-weight: 700; font-size: 0.9375rem; text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-blue:hover { background: #1d4ed8; transform: translateY(-1px); }

.btn-outline-blue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #2563eb; padding: 0.75rem 1.75rem; border-radius: 0.625rem;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: all 0.2s; border: 2px solid #2563eb;
}
.btn-outline-blue:hover { background: #2563eb; color: white; }

/* Cards */
.benefit-card {
  background: white; border-radius: 1rem; padding: 1.75rem;
  border: 1px solid #e2e8f0; transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(37,99,235,0.12); border-color: #bfdbfe; }

.step-card {
  background: white; border-radius: 1rem; padding: 2rem;
  border: 1px solid #dbeafe; position: relative;
}

.plan-card {
  background: white; border-radius: 1.25rem; padding: 2rem;
  border: 2px solid #e2e8f0; transition: all 0.2s;
}
.plan-card.featured {
  border-color: #2563eb; box-shadow: 0 8px 30px rgba(37,99,235,0.2);
  transform: scale(1.03);
}

/* Nav */
.nav-dark { background: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Lead form */
.lead-form-blue {
  background: white; border-radius: 1.25rem; padding: 2.5rem;
  border: 1px solid #dbeafe; box-shadow: 0 8px 30px rgba(37,99,235,0.1);
}
.lead-form-blue label { display: block; font-size: 0.75rem; font-weight: 600; color: #475569; margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em; }
.lead-form-blue input, .lead-form-blue select, .lead-form-blue textarea {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: 0.5rem;
  padding: 0.75rem 1rem; font-size: 0.875rem; font-family: inherit;
  outline: none; transition: border-color 0.2s; background: white;
}
.lead-form-blue input:focus, .lead-form-blue select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* FAQ */
.faq-item { border-bottom: 1px solid #f1f5f9; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: #0f172a; text-align: left; gap: 1rem;
}
.faq-question:hover { color: #2563eb; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; color: #475569; font-size: 0.9375rem; line-height: 1.7; }
.faq-answer.open { max-height: 400px; padding-bottom: 1.25rem; }
.faq-icon { transition: transform 0.3s; flex-shrink: 0; color: #2563eb; }
.faq-icon.rotated { transform: rotate(45deg); }

/* Comparison table */
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.compare-check { color: #16a34a; font-weight: 700; }
.compare-cross { color: #dc2626; }

/* Province badge */
.province-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3);
  color: #93c5fd; font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 9999px;
}

/* Stats */
.stat-blue { text-align: center; }
.stat-blue .number { font-size: 3rem; font-weight: 900; color: #2563eb; line-height: 1; }
.stat-blue .label { color: #64748b; font-size: 0.875rem; font-weight: 500; margin-top: 0.25rem; }

/* Testimonial */
.testimonial-blue {
  background: white; border-radius: 1rem; padding: 1.75rem;
  border: 1px solid #dbeafe; box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}
.stars-blue { color: #f59e0b; font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 0.75rem; }

/* Section labels */
.label-blue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #dbeafe; color: #1d4ed8; font-size: 0.75rem; font-weight: 700;
  padding: 0.375rem 0.875rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-h2 { font-size: 2.25rem; font-weight: 900; color: #0f172a; line-height: 1.2; margin-bottom: 1rem; }
.section-p { color: #475569; font-size: 1.0625rem; line-height: 1.7; max-width: 42rem; }

/* Before/after */
.before-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.75rem; padding: 1.5rem; }
.after-box  { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0.75rem; padding: 1.5rem; }

/* Sticky orange CTA */
#sticky-cta-btn {
  position: fixed; bottom: 1.75rem; left: 1.5rem; z-index: 40;
  display: flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: white; padding: 0.75rem 1.25rem; border-radius: 9999px;
  font-weight: 700; font-size: 0.875rem; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(249,115,22,0.45); transition: all 0.2s; white-space: nowrap;
}

/* WhatsApp */
#wa-bubble {
  position: fixed; bottom: 1.75rem; right: 1.5rem; z-index: 50;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 4px 14px rgba(249,115,22,0.4); }
  50%       { box-shadow: 0 4px 28px rgba(249,115,22,0.7); }
}
.pulse-orange { animation: pulse-orange 2.2s ease-in-out infinite; }

/* Mobile */
@media (max-width: 480px) {
  .sticky-label, .wa-label { display: none; }
  .section-h2 { font-size: 1.75rem; }
}

@media print {
  nav, footer, #lead-modal, #sticky-cta-btn, #wa-bubble { display: none !important; }
}
