/* =========================================
   Landing Page 4Life - Styles Mobile-First
   ========================================= */

/* Variables CSS */
:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #40916c;
  --accent: #52b788;
  --accent-light: #74c69d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #212529;
  --text-gray: #6c757d;
  --text-light: #adb5bd;
  --border: #dee2e6;
  --error: #dc3545;
  --success: #28a745;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilidades */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  background: var(--error);
}

.toast.success {
  background: var(--success);
}

/* Header */
.header {
  background: white;
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  text-align: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.header-tagline {
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* Hero Section */
.hero {
  padding: 48px 0;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-benefits {
  list-style: none;
  margin-bottom: 32px;
}

.hero-benefits li {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

.hero-benefits li:last-child {
  border-bottom: none;
}

.hero-disclaimer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-gray);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  transition: var(--transition);
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-large {
  width: 100%;
  padding: 18px 32px;
  font-size: 1.125rem;
}

.btn-text {
  background: transparent;
  color: var(--primary);
  padding: 12px 16px;
  text-decoration: underline;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1rem;
  padding: 8px 0;
  margin-bottom: 16px;
  cursor: pointer;
}

.btn-back:hover {
  color: var(--primary-dark);
}

/* Route Selector */
.route-selector {
  padding: 48px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 32px;
}

.route-cards {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.route-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.route-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 16px;
}

.route-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 8px;
}

.route-desc {
  font-size: 0.875rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 16px;
}

.route-symptoms {
  list-style: none;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.route-symptoms li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-dark);
  position: relative;
  padding-left: 24px;
}

.route-symptoms li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: bold;
}

.route-card .btn {
  width: 100%;
}

/* Form Section */
.form-section {
  padding: 48px 0;
  background: white;
}

.progress-header {
  margin-bottom: 32px;
}

.form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  min-height: 48px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error);
}

.error-message {
  display: block;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 6px;
  min-height: 20px;
}

.checkbox-group {
  margin: 32px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-right: 12px;
  margin-top: 2px;
  cursor: pointer;
}

/* Quiz Section */
.quiz-section {
  padding: 48px 0;
  background: white;
  min-height: 60vh;
}

.quiz-progress {
  margin-bottom: 32px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-gray);
  font-weight: 600;
}

.quiz-question {
  margin-bottom: 32px;
  min-height: 300px;
}

.quiz-question h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
  line-height: 1.4;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.quiz-option:hover {
  border-color: var(--accent);
  background: rgba(82, 183, 136, 0.05);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(45, 106, 79, 0.08);
  font-weight: 600;
}

.quiz-option input[type="checkbox"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
}

.quiz-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

.quiz-nav .btn {
  flex: 1;
}

/* Result Section */
.result-section {
  padding: 48px 0;
  background: white;
  min-height: 60vh;
}

.result-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.1) 0%, rgba(45, 106, 79, 0.1) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow-md);
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.result-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.result-message {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 32px;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Value Section */
.value-section {
  padding: 64px 0;
  background: white;
}

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.value-cards {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.value-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
  padding: 64px 0;
  background: var(--bg-light);
}

.testimonials {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-size: 1.0625rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 600;
}

/* FAQ */
.faq-section {
  padding: 64px 0;
  background: white;
}

.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 1rem;
}

/* Footer */
.footer {
  padding: 48px 0 24px;
  background: var(--primary-dark);
  color: white;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-light);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   RESPONSIVE - TABLET
   ========================================= */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .hero-benefits li {
    border-bottom: none;
    border-left: 3px solid var(--accent);
    padding-left: 16px;
  }
  
  .btn-large {
    width: auto;
    min-width: 300px;
  }
  
  .route-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .value-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* =========================================
   RESPONSIVE - DESKTOP
   ========================================= */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .route-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .quiz-question h3 {
    font-size: 1.625rem;
  }
  
  .result-title {
    font-size: 2.25rem;
  }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.route-selector,
.form-section,
.quiz-section,
.result-section {
  animation: fadeIn 0.5s ease;
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  .header,
  .btn,
  .footer {
    display: none;
  }
}