:root {
  --primary-color: #5C6B2E;
  --secondary-color: #404B1E;
  --accent-color: #A0B54E;
  --light-color: #F3F5E8;
  --dark-color: #1E2410;
  --gradient-primary: linear-gradient(135deg, #5C6B2E 0%, #A0B54E 100%);
  --hover-color: #404B1E;
  --background-color: #F9FAF2;
  --text-color: #2A2E18;
  --border-color: rgba(92, 107, 46, 0.2);
  --divider-color: rgba(92, 107, 46, 0.12);
  --shadow-color: rgba(30, 36, 16, 0.1);
  --highlight-color: #E8A838;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Poppins', 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.7;
  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.8rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.4;
}

p {
  margin: 0 0 1rem 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  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(255, 255, 255, 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);
}

/* Grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

/* Feature Cards — mosaic tile style: alternating bg, top emoji full-width band */
.feature-card {
  background: #ffffff;
  padding: 0;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.feature-card:last-child {
  border-right: none;
}

.feature-card:hover {
  background: var(--light-color);
}

.feature-icon-band {
  background: var(--gradient-primary);
  padding: 1.2rem 1.4rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.feature-icon {
  font-size: 1.9rem;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.feature-icon-band h3 {
  color: white;
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.feature-card-body {
  padding: 1.4rem 1.6rem 1.6rem;
  flex: 1;
}

.feature-card-body p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text-color);
}

/* Testimonials */
.testimonial {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-bottom: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: 2rem 2rem 1.6rem;
  box-shadow: 0 3px 14px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(92, 107, 46, 0.18);
}

/* FAQ Items */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 1.8rem 2rem;
  width: 100%;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 18px rgba(92, 107, 46, 0.15);
}

/* Form */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  background: #ffffff;
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 107, 46, 0.12);
}

/* Buttons */
.btn, button[type="submit"] {
  transition: all 0.3s ease;
  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(92, 107, 46, 0.28);
}

.btn:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(92, 107, 46, 0.4);
}

/* Contact */
.contact-wrapper {
  width: 80%;
  margin: 0 auto;
}

/* Pattern — cross-hatch */
.pattern-bg {
  position: relative;
  overflow: hidden;
}

.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(92, 107, 46, 0.05) 22px, rgba(92, 107, 46, 0.05) 23px),
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(92, 107, 46, 0.05) 22px, rgba(92, 107, 46, 0.05) 23px);
  pointer-events: none;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--light-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.75;
}

/* Extra block */
.extra-block {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
}

.extra-block h2,
.extra-block h3 {
  color: white;
}

.extra-block p {
  color: rgba(255,255,255,0.9);
}

/* Myth/fact card styles for random block */
.myth-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.myth-card:hover {
  background: rgba(255,255,255,0.13);
}

.myth-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.3rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.myth-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

.myth-label.mito {
  background: rgba(232, 80, 80, 0.3);
  color: #ffb3b3;
}

.myth-label.realidad {
  background: rgba(232, 168, 56, 0.35);
  color: var(--highlight-color);
}

.myth-body {
  padding: 1rem 1.3rem 1.2rem;
}

.myth-body p {
  color: rgba(255,255,255,0.88);
  font-size: 0.97rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navigation {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .feature-card {
    border-right: none;
  }

  .contact-wrapper {
    width: 100%;
  }

  .grid-2col {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .testimonial,
  .faq-item {
    padding: 1.5rem 1rem;
  }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}