:root {
  --primary-color: #7A3B1E;
  --secondary-color: #5C2A12;
  --accent-color: #C46B2A;
  --light-color: #FDF3EB;
  --dark-color: #2E1608;
  --gradient-primary: linear-gradient(135deg, #7A3B1E 0%, #C46B2A 100%);
  --hover-color: #5C2A12;
  --background-color: #FDFAF6;
  --text-color: #33200F;
  --border-color: rgba(122, 59, 30, 0.18);
  --divider-color: rgba(122, 59, 30, 0.12);
  --shadow-color: rgba(46, 22, 8, 0.10);
  --highlight-color: #F2D57F;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; width: 100%; }

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.75;
  margin: 0; padding: 0;
  width: 100%; min-width: 320px;
}

img { max-width: 100%; height: auto; }

.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 1rem;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700; color: var(--primary-color);
  margin: 0 0 1rem 0;
}

h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 4vw, 2.4rem); line-height: 1.3; }
h3 { font-size: clamp(1.05rem, 3vw, 1.35rem); line-height: 1.4; }

p { margin: 0 0 1rem 0; font-size: clamp(1rem, 2vw, 1.1rem); line-height: 1.8; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; cursor: pointer;
  padding: 10px; background: rgba(255,255,255,0.96);
  border-radius: 4px; border: 1px solid var(--border-color);
}
.hamburger .line {
  width: 22px; height: 2px;
  background: var(--primary-color);
  margin: 2px 0; transition: 0.3s; border-radius: 1px;
}
#menu-toggle { display: none; }
#menu-toggle:checked ~ .mobile-nav { max-height: 400px; opacity: 1; }

.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color); z-index: 1000;
}
.mobile-nav ul { padding: 2rem; margin: 0; list-style: none; }
.mobile-nav li { margin: 1rem 0; }
.mobile-nav a {
  display: block; padding: 0.8rem 0;
  color: var(--text-color); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid transparent; transition: all 0.3s ease;
}
.mobile-nav a:hover { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* Header */
header {
  background: rgba(253, 250, 246, 0.97);
  padding: 1.2rem 0; position: relative;
  z-index: 1000; box-shadow: 0 2px 16px var(--shadow-color);
}
header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 3rem; width: auto; }

.navigation ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2rem; }
.navigation a {
  text-decoration: none; color: var(--text-color);
  font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease;
}
.navigation a:hover { color: var(--primary-color); }

/* Feature cards — horizontal list style */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.6rem 2rem;
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
}
.feature-card:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 24px rgba(122, 59, 30, 0.16);
  border-left: 4px solid var(--accent-color);
}
.feature-icon {
  flex-shrink: 0;
  width: 58px; height: 58px;
  background: rgba(196, 107, 42, 0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-color); transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
  background: var(--gradient-primary); color: white;
}
.feature-card h3 { margin-bottom: 0.25rem; }
.feature-card p { margin: 0; font-size: 0.97rem; }

/* Testimonials */
.testimonial {
  background: #fff; border-radius: 12px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 3px 14px var(--shadow-color);
  border-bottom: 4px solid var(--accent-color);
  width: 100%; transition: all 0.3s ease;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: 0 7px 24px rgba(122,59,30,0.16); }

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-color);
  border-radius: 10px; margin: 1rem 0;
  padding: 1.8rem 2rem; width: 100%;
  box-shadow: 0 2px 10px var(--shadow-color); transition: all 0.3s ease;
}
.faq-item:hover { border-left-color: var(--primary-color); box-shadow: 0 4px 18px rgba(122,59,30,0.14); }

/* Form */
input, textarea {
  font-family: var(--alt-font);
  border: 2px solid var(--border-color); border-radius: 8px;
  padding: 0.9rem 1.1rem; background: #fff;
  color: var(--text-color); font-size: 1rem;
  width: 100%; transition: all 0.3s ease;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(122, 59, 30, 0.12);
}

/* Buttons */
.btn, button[type="submit"] {
  background: var(--gradient-primary);
  color: white; border: none;
  padding: 1rem 2rem; border-radius: 8px;
  font-weight: 700; font-family: var(--alt-font);
  cursor: pointer; font-size: 1rem;
  text-decoration: none; display: inline-block;
  text-align: center;
  box-shadow: 0 3px 14px rgba(122, 59, 30, 0.28);
  transition: all 0.3s ease;
}
.btn:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(122, 59, 30, 0.4);
}

/* Contact */
.contact-wrapper { width: 80%; margin: 0 auto; }

/* Pattern — diagonal cross-hatch */
.pattern-bg {
  position: relative;
  overflow: hidden;
}
.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(196, 107, 42, 0.07) 0px, rgba(196, 107, 42, 0.07) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(196, 107, 42, 0.07) 0px, rgba(196, 107, 42, 0.07) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
}

/* Random block — two-column comparison table */
.compare-block {
  padding: 5rem 0;
  background-color: #F5E6D3;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
}
.compare-table thead tr {
  background: var(--gradient-primary);
  color: #fff;
}
.compare-table thead th {
  padding: 1.1rem 1.6rem;
  font-family: var(--main-font);
  font-size: 1.05rem;
  text-align: left;
  color: #fff;
}
.compare-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: #FDF3EB; }
.compare-table tbody td {
  padding: 1rem 1.6rem;
  font-size: 0.98rem;
  color: var(--text-color);
  vertical-align: middle;
}
.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--primary-color);
  width: 30%;
}
.badge-good {
  display: inline-block;
  background: rgba(46, 160, 90, 0.12);
  color: #1a7a3c;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.badge-bad {
  display: inline-block;
  background: rgba(196, 60, 40, 0.10);
  color: #922b1a;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .feature-card { flex-direction: column; align-items: center; text-align: center; }
  .contact-wrapper { width: 100%; }
  .grid-2col { grid-template-columns: 1fr !important; }

  /* Table → cards on mobile */
  .compare-table { display: block; background: transparent; box-shadow: none; border-radius: 0; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: flex; flex-direction: column; gap: 0.9rem; }
  .compare-table tbody tr {
    display: flex; flex-direction: column; gap: 0.4rem;
    background: #fff; border-radius: 12px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-bottom: none;
  }
  .compare-table tbody td {
    padding: 0; font-size: 0.95rem;
    width: 100% !important;
  }
  .compare-table tbody td:first-child {
    font-size: 1rem; margin-bottom: 0.2rem;
  }
  .compare-table tbody td::before {
    content: attr(data-label);
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--accent-color);
    display: block; margin-bottom: 0.15rem;
  }
  .compare-table tbody td:first-child::before { content: "Alimento"; }
  .compare-table tbody td:nth-child(2)::before { content: "Efecto"; }
  .compare-table tbody td:nth-child(3)::before { content: "Por qué"; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color); outline-offset: 2px;
}