/* ============================================================
   NUTRIVIDA ESPAÑA — MAIN STYLESHEET
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:       #2E7D6B;
  --primary-dark:  #1f5a4c;
  --primary-light: #e8f5f2;
  --secondary:     #4DB6AC;
  --accent:        #FFB74D;
  --accent-dark:   #f09800;
  --bg-white:      #FFFFFF;
  --bg-light:      #F5F7F6;
  --text-dark:     #1F2D2A;
  --text-mid:      #3a4f4b;
  --text-light:    #5F6F6C;
  --border:        #dce6e3;
  --shadow-sm:     0 2px 8px rgba(46,125,107,0.08);
  --shadow-md:     0 6px 24px rgba(46,125,107,0.13);
  --shadow-lg:     0 12px 40px rgba(46,125,107,0.18);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    0.3s ease;
  --max-w:         1200px;
  --font-head:     'Poppins', sans-serif;
  --font-body:     'Open Sans', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.section-pad      { padding: 80px 0; }
.section-pad-top  { padding-top: 60px; }
.bg-light         { background: var(--bg-light); }
.text-center      { text-align: center; }
.mt-40            { margin-top: 40px; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: #3a9e94;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm   { padding: 10px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-link:hover { color: var(--primary-dark); }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: #fff;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-text h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 4px;
  color: #fff;
}
.cookie-text p  { font-size: 0.875rem; color: #ccc; line-height: 1.5; }
.cookie-text a  { color: var(--secondary); }
.cookie-text    { flex: 1; min-width: 200px; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-cookie {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-cookie-accept  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-cookie-accept:hover { background: var(--primary-dark); }
.btn-cookie-partial { background: transparent; color: #fff; border-color: #fff; }
.btn-cookie-partial:hover { background: rgba(255,255,255,0.1); }
.btn-cookie-reject  { background: transparent; color: #aaa; border-color: #555; font-size: 0.8rem; }
.btn-cookie-reject:hover { border-color: #aaa; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon { font-size: 2rem; }
.logo-text  { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main  { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.logo-sub   { font-family: var(--font-head); font-size: 0.7rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-mid);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }

.nav-link.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  margin-left: 6px;
}
.nav-link.nav-cta:hover, .nav-link.nav-cta.active {
  background: var(--primary-dark);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Warning Block ---------- */
.warning-block {
  background: linear-gradient(135deg, #fff3cd, #ffe69c);
  border-top: 4px solid #FFB74D;
  border-bottom: 4px solid #FFB74D;
  padding: 18px 0;
}
.warning-block p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: #7a5500;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0faf7 50%, #e8f8f5 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-content .btn { margin-right: 12px; margin-bottom: 12px; }
.hero-img-placeholder {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: floatAnim 6s ease-in-out infinite;
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.benefit-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.benefit-icon { font-size: 2.5rem; margin-bottom: 16px; }
.benefit-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.benefit-card p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- Diet Cards (grid preview) ---------- */
.diet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.diet-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.diet-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.diet-card-header {
  height: 140px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.diet-card-header.mediterranean { background: linear-gradient(135deg, #2E7D6B, #66BB6A); }
.diet-card-header.plant-based   { background: linear-gradient(135deg, #43A047, #8BC34A); }
.diet-card-header.dash           { background: linear-gradient(135deg, #E53935, #EF9A9A); }

.diet-card-body { padding: 24px; }
.diet-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.diet-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.diet-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 14px; }

/* ---------- Education Teaser ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.teaser-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.teaser-text p { color: var(--text-light); margin-bottom: 20px; }
.teaser-list { margin-bottom: 32px; }
.teaser-list li {
  padding: 8px 0;
  color: var(--text-mid);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.teaser-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.teaser-icon { font-size: 2rem; margin-bottom: 12px; }
.teaser-card h4 {
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}
.macro-bar { display: flex; flex-direction: column; gap: 14px; }
.macro-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.macro-item span:first-child { min-width: 120px; color: var(--text-mid); font-weight: 600; }
.macro-item span:last-child  { min-width: 36px; text-align: right; font-weight: 700; color: var(--primary); }
.bar { flex: 1; height: 10px; background: var(--bg-light); border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }
.macro-item.carbs  .bar-fill { background: linear-gradient(90deg, #4DB6AC, #80CBC4); }
.macro-item.protein .bar-fill { background: linear-gradient(90deg, #2E7D6B, #4DB6AC); }
.macro-item.fat    .bar-fill { background: linear-gradient(90deg, #FFB74D, #FF8A65); }
.teaser-note { font-size: 0.75rem; color: var(--text-light); margin-top: 16px; }

/* ---------- CTA Section ---------- */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.cta-subtitle { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 32px; }

/* ---------- Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 64px 0 52px;
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---------- Diet Plans Full ---------- */
.intro-text {
  max-width: 820px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 30px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid var(--border);
  color: var(--text-light);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.diet-cards-full { display: flex; flex-direction: column; gap: 36px; }
.diet-card-full {
  display: flex;
  gap: 28px;
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  align-items: flex-start;
}
.diet-card-full:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dcf-icon { font-size: 3rem; flex-shrink: 0; }
.dcf-content { flex: 1; }
.dcf-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.dcf-content h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}
.dcf-content h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin: 18px 0 8px;
}
.dcf-content p { color: var(--text-light); margin-bottom: 12px; }
.dcf-content ul { padding-left: 18px; list-style: disc; }
.dcf-content ul li { color: var(--text-light); margin-bottom: 6px; font-size: 0.95rem; }

.diet-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.diet-badge.cardio    { background: #FFEBEE; color: #C62828; }
.diet-badge.vegetal   { background: #E8F5E9; color: #2E7D32; }
.diet-badge.peso      { background: #FFF3E0; color: #E65100; }
.diet-badge.terapeutico { background: #EDE7F6; color: #4527A0; }

.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  line-height: 1.6;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary-light), #e0f7f4);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin-top: 60px;
  border: 1px solid var(--secondary);
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}
.cta-banner p { color: var(--text-light); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Nutrition Science ---------- */
.science-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.science-article {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.science-article:last-child { border-bottom: none; }
.science-article h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.science-article h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 24px 0 10px;
}
.science-article p { color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.science-article ul { padding-left: 20px; list-style: disc; }
.science-article ul li { color: var(--text-light); margin-bottom: 8px; line-height: 1.6; }

.science-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.tips-list { padding-left: 0; list-style: none; }
.tips-list li {
  padding: 7px 0;
  color: var(--text-mid);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.tips-list li::before { content: "→ "; color: var(--primary); font-weight: 700; }

.plate-visual { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.plate-section {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.plate-section small { display: block; font-weight: 400; opacity: 0.8; }
.plate-section.verduras  { background: #E8F5E9; color: #2E7D32; }
.plate-section.proteinas { background: #E3F2FD; color: #1565C0; }
.plate-section.cereales  { background: #FFF8E1; color: #E65100; }
.plate-note { font-size: 0.75rem; color: var(--text-light); margin-top: 8px; }

.myth-item { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.myth-item:last-child { border-bottom: none; }
.myth-item p { margin: 4px 0 8px; font-size: 0.85rem; color: var(--text-mid); }
.myth-label, .fact-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.myth-label { background: #FFEBEE; color: #C62828; }
.fact-label { background: #E8F5E9; color: #2E7D32; }

.sidebar-cta { background: var(--primary); border-radius: var(--radius); padding: 24px; text-align: center; }
.sidebar-cta h3 { color: #fff; margin-bottom: 8px; }
.sidebar-cta p  { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin-bottom: 16px; }

/* ---------- About Page ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; margin-bottom: 60px; }
.about-intro-text h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-intro-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--primary);
  color: #fff;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-number { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.stat-label  { font-size: 0.8rem; opacity: 0.85; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.value-card p { color: var(--text-light); font-size: 0.9rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.team-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-role { color: var(--secondary); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.team-card p:last-child { color: var(--text-light); font-size: 0.875rem; line-height: 1.6; }

/* ---------- Contact Page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-info > p { color: var(--text-light); margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--text-light); font-size: 0.95rem; }

.contact-note {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}
.contact-note h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact-note p { color: var(--text-mid); font-size: 0.875rem; margin-bottom: 8px; }

.map-placeholder {
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 32px;
  text-align: center;
}
.map-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.map-pin { font-size: 2.5rem; }
.map-inner p { color: var(--text-mid); font-size: 0.9rem; }
.map-transport { color: var(--text-light) !important; font-size: 0.85rem !important; line-height: 1.8; }

.contact-form-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-form-wrap > p { color: var(--text-light); margin-bottom: 24px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,107,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--primary); }
.form-check label { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.form-check a { color: var(--primary); }

.form-disclaimer { font-size: 0.8rem; color: var(--text-light); text-align: center; }

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-error   { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }

/* ---------- Legal Pages ---------- */
.legal-container { max-width: 860px; }
.legal-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.legal-section h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 18px 0 10px;
}
.legal-section p { color: var(--text-light); margin-bottom: 12px; line-height: 1.8; }
.legal-section ul { padding-left: 20px; list-style: disc; }
.legal-section ul li { color: var(--text-light); margin-bottom: 8px; line-height: 1.6; }

.legal-table-wrap, .cookie-table-wrap { overflow-x: auto; margin: 16px 0; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.legal-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
}
.legal-table td {
  padding: 10px 14px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.legal-table tr:nth-child(even) td { background: var(--bg-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo-footer .logo-main { color: var(--secondary); }
.footer-brand .logo-footer .logo-sub  { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.875rem; margin-top: 16px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-disclaimer {
  background: rgba(255,183,77,0.15);
  border: 1px solid rgba(255,183,77,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #FFD082;
  margin-top: 16px;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--secondary); }

.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; font-size: 0.875rem; }
.footer-contact li span:first-child { flex-shrink: 0; }
.footer-contact li a { color: rgba(255,255,255,0.6); }
.footer-contact li a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-warning-small {
  font-weight: 700;
  color: rgba(255,183,77,0.7) !important;
  font-size: 0.75rem !important;
}

/* ---------- Fade-in Animation ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .science-layout { grid-template-columns: 1fr; }
  .science-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 52px 0; }

  .hero .container   { grid-template-columns: 1fr; gap: 40px; }
  .hero-image        { order: -1; }
  .hero-content h1   { font-size: 1.9rem; }

  .teaser-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .diet-card-full { flex-direction: column; }
  .dcf-icon { font-size: 2rem; }

  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 12px 16px; }
  .nav-link.nav-cta { margin-left: 0; text-align: center; }

  .cookie-content { flex-direction: column; gap: 16px; }
  .cookie-actions { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .filter-bar  { gap: 6px; }
  .filter-btn  { padding: 7px 14px; font-size: 0.8rem; }
  .cta-banner  { padding: 28px 20px; }
}
.hero-img-placeholder img {
    width: 100%;       
    height: auto;      
    border-radius: 10px; 
    object-fit: cover; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}