/* ==========================================================================
   MundoVigor - Estilos Globales Editoriales (Plantilla Emerald & Amber Luxe)
   Inspirado en el diseño con cabecera oscura esmeralda, hero con superposición
   y botones de alto contraste en ámbar cálido.
   ========================================================================== */

:root {
  --color-forest: #065F46;
  --color-forest-dark: #033829;
  --color-forest-darker: #02261B;
  --color-olive: #059669;
  --color-olive-light: #10B981;
  --color-mint-bright: #34D399;
  --color-mint-light: #D1FAE5;
  --color-beige: #E6F5EF;
  --color-beige-light: #F0FAF5;
  --color-beige-dark: #CEE7DC;
  --color-white: #FFFFFF;
  --color-terracotta: #E58525;
  --color-terracotta-hover: #D07317;
  --color-terracotta-soft: rgba(229, 133, 37, 0.16);
  --color-text: #132B22;
  --color-text-light: #314E43;
  --color-text-muted: #5C786D;
  --color-border: #C8E2D6;
  --color-error: #B93838;
  --color-success: #059669;

  --font-serif: "Lora", "Georgia", "Cambria", serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(3, 56, 41, 0.08);
  --shadow-md: 0 8px 24px rgba(3, 56, 41, 0.12);
  --shadow-lg: 0 18px 42px rgba(3, 56, 41, 0.2);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-normal: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
  --max-width-narrow: 860px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-beige-light);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accesibilidad */
:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 10px 18px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 15px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-forest);
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* Contenedores */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Barra de aviso superior */
.top-notice-bar {
  background-color: var(--color-forest-darker);
  color: #D1FAE5;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-bar p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Cabecera Estilo Plantilla (Dark Emerald Navbar + Amber Flush CTA)
   ========================================================================== */
.site-header {
  background-color: var(--color-forest-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  padding-right: 0; /* Permite que el botón CTA de la derecha toque el margen */
}

.nav-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  padding: 0.9rem 0;
}

.site-logo svg {
  width: 32px;
  height: 32px;
}

.site-logo span {
  color: var(--color-white);
}

.site-logo em {
  font-style: normal;
  color: var(--color-mint-bright);
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.6rem 0.2rem;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-terracotta);
  border-radius: 2px;
}

.header-cta-group {
  display: flex;
  align-items: stretch;
}

/* Botón CTA derecho al estilo del template ("Get Free Quote") */
.nav-search-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  align-self: center;
  margin: 0 0.5rem;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 0.8rem;
  transition: var(--transition-normal);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-search-btn:hover {
  color: var(--color-mint-bright);
  transform: scale(1.08);
}

/* Dropdown Menu para Services / Guías */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item-dropdown .dropdown-arrow {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--color-forest-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 120;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-mint-bright);
  padding-left: 1.6rem;
}

/* Modal de Búsqueda Rápida */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 38, 27, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1001;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-modal-backdrop.show {
  display: flex;
}

.search-modal-box {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  max-width: 620px;
  width: 90%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.search-modal-input-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-modal-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  border: 2px solid var(--color-forest);
  border-radius: var(--radius-xs);
  outline: none;
  color: var(--color-text);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-tag-chip {
  background-color: var(--color-beige);
  color: var(--color-forest);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.search-tag-chip:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.btn-header-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0 1.8rem;
  transition: var(--transition-normal);
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-header-quote:hover {
  background-color: var(--color-terracotta-hover);
  color: var(--color-white);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-forest);
  color: var(--color-white);
  border: 1px solid var(--color-forest);
}

.btn-primary:hover {
  background-color: var(--color-forest-dark);
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.25);
}

.btn-terracotta {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border: 1px solid var(--color-terracotta);
}

.btn-terracotta:hover {
  background-color: var(--color-terracotta-hover);
  box-shadow: 0 4px 14px rgba(229, 133, 37, 0.35);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-forest-dark);
  border-color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-forest);
  border: 1.5px solid var(--color-forest);
}

.btn-outline:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* Botón Hamburguesa */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 105;
  margin-right: 1.5rem;
  align-self: center;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menú móvil */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 102;
  transition: right 0.3s ease;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 56, 41, 0.6);
  backdrop-filter: blur(3px);
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-nav-links a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-forest);
  display: block;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-beige-dark);
}

/* Migas de pan */
.breadcrumbs {
  padding: 1.25rem 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--color-olive);
}

.breadcrumbs a {
  color: var(--color-forest);
}

.breadcrumbs a:hover {
  color: var(--color-terracotta);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text-light);
  font-weight: 600;
}

/* ==========================================================================
   Hero Estilo Plantilla (Fondo con Imagen + Superposición Esmeralda)
   Exactamente como el screenshot: texto blanco a la izquierda con prefijo "—",
   botones duales y controles de navegación de slider < >.
   ========================================================================== */
.hero-template {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-color: var(--color-forest-dark);
  background-image: url('../images/estilo-de-vida-activo-adultos.jpg');
  background-size: cover;
  background-position: center right;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-template-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 38, 27, 0.94) 0%,
    rgba(3, 56, 41, 0.90) 45%,
    rgba(4, 78, 57, 0.72) 75%,
    rgba(6, 95, 70, 0.40) 100%
  );
  z-index: 1;
}

.hero-template-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.hero-template-content {
  max-width: 680px;
  color: var(--color-white);
}

/* Prefijo de línea horizontal como en el screenshot: "— TOWARDS A BRIGHT FUTURE" */
.hero-eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #A7F3D0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-eyebrow-line::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2.5px;
  background-color: var(--color-terracotta);
}

.hero-template h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.hero-template-desc {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.4rem;
  max-width: 600px;
}

.hero-template-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

/* Flechas laterales del slider (como en el screenshot) */
.hero-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition-normal);
  backdrop-filter: blur(4px);
}

.hero-arrow-btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.hero-arrow-left {
  left: 1.5rem;
}

.hero-arrow-right {
  right: 1.5rem;
}

/* Banner de destacados bajo el hero */
.hero-highlights-strip {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide-x: 1px solid var(--color-border);
}

.highlight-item {
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-right: 1px solid var(--color-border);
}

.highlight-item:last-child {
  border-right: none;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--color-beige);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-text h4 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem 0;
  color: var(--color-forest);
}

.highlight-text p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Secciones */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--color-white);
}

.section-beige {
  background-color: var(--color-beige);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-olive);
  display: block;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* Pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-olive);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background-color: var(--color-beige);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
}

.pillar-card h3 {
  color: var(--color-forest);
  margin-bottom: 0.85rem;
}

.pillar-card p {
  color: var(--color-text-light);
  font-size: 0.98rem;
  flex-grow: 1;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-forest);
  margin-top: 1.25rem;
}

.pillar-link:hover {
  gap: 0.7rem;
  color: var(--color-terracotta);
}

/* Artículo destacado */
.featured-article-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  margin-bottom: 4rem;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.featured-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-tag {
  display: inline-block;
  background-color: var(--color-beige);
  color: var(--color-forest);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  align-self: flex-start;
  border: 1px solid var(--color-border);
}

.featured-body h3 {
  font-size: 1.85rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

/* Artículos Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-olive);
}

.article-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.04);
}

.article-thumb .category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.article-info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-info h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.article-info h3 a:hover {
  color: var(--color-terracotta);
}

.article-info p {
  font-size: 0.94rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-beige-dark);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Filtros */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-normal);
}

.filter-btn:hover {
  border-color: var(--color-forest);
  color: var(--color-forest);
}

.filter-btn.active {
  background-color: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}

/* Aviso médico */
.notice-box {
  background-color: #F0FAF5;
  border-left: 4px solid var(--color-olive);
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius-sm);
  margin: 2.5rem 0;
  border: 1px solid var(--color-border);
  border-left-width: 4px;
}

.notice-box-title {
  font-weight: 700;
  color: var(--color-forest);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notice-box p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

/* Lista interactiva de hábitos */
.habits-tracker {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin: 2.5rem 0;
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.tracker-title h3 {
  margin: 0 0 0.3rem 0;
}

.tracker-progress-wrapper {
  min-width: 240px;
}

.tracker-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 0.4rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--color-beige);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-mint-bright) 0%, var(--color-forest) 100%);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: var(--radius-full);
}

.habits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.habit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background-color: var(--color-beige-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.habit-item:hover {
  border-color: var(--color-olive);
  background-color: var(--color-white);
}

.habit-item.completed {
  background-color: #E2F5EC;
  border-color: var(--color-olive-light);
}

.habit-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-olive);
  border-radius: 6px;
  margin-top: 2px;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: var(--transition-normal);
  flex-shrink: 0;
  background: var(--color-white);
}

.habit-checkbox::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: 0.15s transform ease-in-out;
  box-shadow: inset 1em 1em var(--color-white);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.habit-checkbox:checked {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
}

.habit-checkbox:checked::before {
  transform: scale(1);
}

.habit-text {
  flex-grow: 1;
}

.habit-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-forest);
  margin-bottom: 0.2rem;
}

.habit-item.completed .habit-title {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.habit-desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin: 0;
}

.habit-reset-btn {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
}

/* Acordeón FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2.5rem 0;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--color-olive);
}

.faq-button {
  width: 100%;
  text-align: left;
  padding: 1.3rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-forest);
  background: transparent;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--color-olive);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-terracotta);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
  color: var(--color-text-light);
  font-size: 1rem;
}

.faq-item.active .faq-content {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* Formularios */
.form-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.6rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-forest);
  margin-bottom: 0.45rem;
}

.form-label span.req {
  color: var(--color-terracotta);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xs);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: var(--transition-normal);
}

.form-control:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.12);
  outline: none;
}

.form-control.is-invalid {
  border-color: var(--color-error);
  background-color: #FFF9F9;
}

.form-error {
  display: none;
  font-size: 0.83rem;
  color: var(--color-error);
  margin-top: 0.35rem;
  font-weight: 500;
}

.form-control.is-invalid + .form-error {
  display: block;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-forest);
  flex-shrink: 0;
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--color-forest);
  text-decoration: underline;
  font-weight: 600;
}

.field-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.95rem;
}

.alert-feedback.show {
  display: block;
}

.alert-feedback.alert-error {
  background-color: #FDF2F2;
  border-left: 4px solid var(--color-error);
  color: #7A1F1F;
}

.alert-feedback.alert-success {
  background-color: #EBF8F2;
  border-left: 4px solid var(--color-success);
  color: #064E3B;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.tip-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.tip-number {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-terracotta);
  line-height: 1;
}

.tip-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.tip-content p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin: 0;
}

/* Tablas */
.food-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.food-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.food-table th {
  background-color: var(--color-forest);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 600;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
}

.food-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.food-table tr:last-child td {
  border-bottom: none;
}

.food-table tr:nth-child(even) {
  background-color: var(--color-beige-light);
}

/* Footer Смарагдовий */
.site-footer {
  background-color: var(--color-forest-darker);
  color: #D1FAE5;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .site-logo {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-brand .site-logo span {
  color: var(--color-white);
}

.footer-brand .site-logo em {
  color: var(--color-mint-bright);
}

.footer-brand p {
  color: #A7F3D0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--color-terracotta);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: #A7F3D0;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6EE7B7;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-xs);
  margin-bottom: 2.5rem;
}

.footer-disclaimer-box p {
  color: #D1FAE5;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 580px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: 999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-forest);
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Modal de Cookies */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 56, 41, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal-backdrop.show {
  display: flex;
}

.cookie-modal {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.cookie-group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.cookie-group-header h5 {
  font-size: 1rem;
  color: var(--color-forest);
}

.cookie-group p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .site-header .container {
    padding-right: 1.5rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlight-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .highlight-item:last-child {
    border-bottom: none;
  }

  .featured-article-card {
    grid-template-columns: 1fr;
  }

  .featured-img-wrap img {
    height: 300px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .main-nav .nav-links,
  .main-nav .header-cta-group {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-arrow-btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-template-container {
    padding: 3.5rem 1.5rem;
  }

  .featured-body {
    padding: 1.8rem;
  }

  .form-card {
    padding: 2rem 1.4rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}
