/* =================== LEYES DE REFORMA - TEST STYLES =================== */
/* Archivo CSS centralizado para el proyecto de prueba */
/* Mantiene consistencia en todas las vistas de /test/ */

/* ================= Variables & reset ================= */
:root {
  /* Colores LR */
  --brand: #0d3a5a;
  /* azul LR */
  --brand-ink: #143e60;
  /* azul texto */
  --light: #f8f9fa;
  /* fondo claro */
  --accent: #87ceeb;
  /* celeste UI */

  /* Sistema de olas */
  --wave-h: 14rem;
  --rec-pad: 80px;
  /* zona segura interna arriba/abajo */

  /* UI */
  --radius: 18px;
  --radius-xl: 26px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, .12);

  /* Patrón LR - optimizado */
  --lr-pattern-url: url('/images/test-resources/web/fondo.webp');
  --lr-tile: 400px;
  --lr-scale: 4;
  /* zoom del patrón */
  --lr-pattern-size: calc(var(--lr-tile) * var(--lr-scale));
  --lr-pattern-pos-x: 0%;
  --lr-pattern-pos-y: 0px;
  --lr-pattern-veil: .92;
  /* 0 = fuerte / 1 = tenue */

  /* Tipografía */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xl: clamp(28px, 4vw, 40px);
  --font-size-lg: clamp(22px, 3vw, 28px);
  --font-size-md: clamp(16px, 2.5vw, 20px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: #123;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= Header Navigation ================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brand);
  /* padding: 16px 0; */
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 64px);
}

.nav-logo img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: clamp(18px, 4vw, 56px);
}

.left-nav {
  justify-content: flex-start;
}

.right-nav {
  justify-content: flex-end;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 15px;
  padding: 6px 0;
  transition: opacity .2s ease, transform .2s ease;
}

.nav-menu a:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.nav-menu a.active {
  opacity: 1;
  border-bottom: 2px solid var(--accent);
}

/* ================= Mobile Navigation ================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--brand);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(13, 58, 90, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 58, 90, 0.4);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: #fff;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  padding: 30px 20px 20px;
  background: var(--brand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  filter: brightness(0) invert(1);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  padding: 0;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
  display: block;
  padding: 18px 20px;
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-nav-link:hover {
  background: var(--light);
  color: var(--brand);
  padding-left: 25px;
}

.mobile-nav-link.active {
  background: var(--brand);
  color: #fff;
}

.mobile-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

/* ================= Hero Section ================= */
/* Hero base */
:root {
  /* Altura del header para compensar el centrado vertical (ajústalo a tu navbar real) */
  --header-h: 96px;
  --hero-pad-min: 24px;
}

.hero-section {
  position: relative;
  z-index: 0;
  /* Alto adaptativo con svh para móviles con notch */
  min-height: clamp(520px, 85svh, 860px);
  /* Padding vertical adaptable y compensado por header */
  padding-block: clamp(80px, 12svh, 160px);
  padding-block-start: calc(clamp(80px, 12svh, 160px) + var(--header-h));
  color: #fff;
  text-align: center;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Overlay más fuerte en móviles, suave en desktop */
  background:
    linear-gradient(90deg, rgba(0, 22, 35, .75) 0%, rgba(0, 22, 35, .35) 45%, rgba(0, 22, 35, 0) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .14));
}

/* Fondo como media layer */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Contenido centrado */
.hero-inner {
  /* Ancho máximo del bloque de copy para evitar líneas largas */
  max-width: min(1000px, 92vw);
  margin-inline: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(16px, 2.5vw, 28px);
}

/* La caja que contiene h1 + p + pills también centra */
.hero-description {
  display: grid;
  /* o flex: column; si prefieres */
  justify-items: center;
  /* ✅ centra hijos horizontalmente */
  text-align: center;
  /* ✅ el texto del p se centra */
  gap: clamp(8px, 2vw, 16px);
  max-width: 170ch;
  /* opcional: ancho legible */
  margin-inline: auto;
  /* centra la caja si tuviera ancho propio */
}

@media (max-width: 390px) {
  .hero-description {
    max-width: 35ch;
    /* opcional: ancho legible */
  }
}

/* Logo */
.hero-logo {
  display: block;
  margin: 0 auto;
  max-width: min(60vw, 520px);
  height: auto;
  filter: brightness(0) invert(1);
}

/* Textos */
.hero-tagline {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  /* Escala suave en todo el rango */
  font-size: clamp(22px, 4.8vw, 44px);
  letter-spacing: .2px;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 8px 0 18px;
  font-size: clamp(16px, 2.8vw, 20px);
  line-height: 1.5;
  opacity: .92;
  max-width: 70ch;
}

@media (max-width: 414px) {
  .hero-subtitle {
    max-width: 60ch;
  }
}

/* Feature pills */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 14px);
  justify-content: center;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(2px);
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 14px);
  line-height: 1;
  white-space: nowrap;
}

/* Breakpoints finos */

/* ≤ 640: más overlay y paddings contenidos */
@media (max-width: 640px) {
  :root {
    --header-h: 76px;
  }

  .hero-section {
    min-height: clamp(440px, 82svh, 560px);
    padding-block: clamp(56px, 10svh, 96px);
    padding-block-start: calc(clamp(56px, 10svh, 96px) + var(--header-h));
  }

  .hero-section::before {
    background:
      linear-gradient(90deg, rgba(0, 22, 35, .85) 0%, rgba(0, 22, 35, .55) 55%, rgba(0, 22, 35, .1) 85%),
      linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .18));
  }

  .hero-logo {
    max-width: min(70vw, 260px);
  }
}

/* ≤ 480: copy más compacto y pills a dos/tres filas sin amontonarse */
@media (max-width: 480px) {
  :root {
    --header-h: 68px;
  }

  .hero-section {
    min-height: clamp(420px, 82svh, 520px);
  }

  .hero-subtitle {
    margin-bottom: 14px;
  }

  .feature-pill {
    padding: 7px 10px;
  }
}

/* ≥ 1024: más aire vertical y logo un poco mayor sin romper layout */
@media (min-width: 1024px) {
  .hero-section {
    padding-block: clamp(120px, 16svh, 200px);
    padding-block-start: calc(clamp(120px, 16svh, 200px) + var(--header-h));
  }

  .hero-logo {
    max-width: min(42vw, 520px);
  }
}

/* Legacy styles compatibility */
.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
}

/* ================= Content Sections ================= */
.content-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 180px 0;
  background-color: var(--light);
  background-image:
    linear-gradient(rgba(255, 255, 255, var(--lr-pattern-veil)), rgba(255, 255, 255, var(--lr-pattern-veil))),
    var(--lr-pattern-url);
  background-repeat: no-repeat, repeat;
  background-size: auto, var(--lr-pattern-size) var(--lr-pattern-size);
  background-position: 0 0, var(--lr-pattern-pos-x) var(--lr-pattern-pos-y);
}

/* Sección con ola superior */
.content-section.with-wave-top {
  margin-top: calc(-1 * var(--wave-h));
  padding-top: calc(70px + var(--wave-h));
  -webkit-mask:
    linear-gradient(#fff 0 0),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,0 H1440 V64 C1200,32 960,32 720,64 C480,96 240,96 0,64 Z' fill='white'/></svg>") top / 100% var(--wave-h) no-repeat;
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,0 H1440 V64 C1200,32 960,32 720,64 C480,96 240,96 0,64 Z' fill='white'/></svg>") top / 100% var(--wave-h) no-repeat;
  mask-composite: exclude;
}

/* Sección azul (como recetas) */
.content-section.dark {
  background: var(--brand);
  color: #fff;
  background-image: none;
}

.content-section.dark.with-wave-top {
  -webkit-mask:
    linear-gradient(#fff 0 0),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,0 H1440 V64 C1200,32 960,32 720,64 C480,96 240,96 0,64 Z' fill='white'/></svg>") top / 100% var(--wave-h) no-repeat;
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,0 H1440 V64 C1200,32 960,32 720,64 C480,96 240,96 0,64 Z' fill='white'/></svg>") top / 100% var(--wave-h) no-repeat;
  mask-composite: exclude;
}

.content-section>.container {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 20px; */
}

/* ================= Títulos ================= */
.section-title {
  text-align: center;
  margin-bottom: 48px;
  color: var(--brand-ink);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: var(--font-size-xl);
}

.section-title.white {
  color: #fff;
}

.section-title .highlight {
  font-style: italic;
  font-weight: 800;
  color: var(--brand-ink);
}

.section-title.white .highlight {
  color: #fff;
}

/* ================= Cards y Componentes ================= */
.card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card.dark {
  background: var(--brand);
  color: #fff;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 28px;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  background: #113e62;
}

.btn.secondary {
  background: #d6e7f3;
  color: var(--brand-ink);
}

.btn.secondary:hover {
  background: #c0ddf0;
}

/* ================= Product Cards ================= */
.product-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease;
  will-change: transform;
  /* Optimización GPU */
  min-height: 520px;
  /* Altura mínima para todos los cards */
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background-color: #f8f9fa;
  will-change: transform;
  /* Optimización para imágenes */
  flex-shrink: 0;
}

.product-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-ink);
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 2.6em;
  /* Reserva espacio para 2 líneas */
}

.product-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  min-height: 5.25em;
  /* Reserva espacio para aproximadamente 3-4 líneas */
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Ensure button stays at bottom */
.product-content .btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

/* ================= Recipe Cards ================= */
.recipe-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  will-change: transform;
  /* Optimización GPU */
}

.recipe-card:hover {
  transform: translateY(-3px);
}

.recipe-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  /* Forzar aceleración GPU */
  will-change: transform;
  /* Indicar cambio para optimizar */
}

.recipe-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 10px;
}

.recipe-description {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.recipe-meta {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
}

/* ================= Article Cards ================= */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease;
  will-change: transform;
  /* Optimización GPU */
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 24px;
}

.article-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 12px;
}

.article-excerpt {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}

/* ================= Forms ================= */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--brand-ink);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font-primary);
  transition: border-color .3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  outline: none;
}

/* Forms en secciones dark */
.content-section.dark .form-group label {
  color: #fff;
}

.content-section.dark .form-group input,
.content-section.dark .form-group textarea,
.content-section.dark .form-group select {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .3);
}

/* ================= Dev Badge ================= */
.dev-header {
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 8px 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.dev-badge {
  background: #ff6b6b;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

/* ================= Utility Classes ================= */
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.gap-sm {
  gap: 12px;
}

.gap-md {
  gap: 20px;
}

.gap-lg {
  gap: 32px;
}

.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: 16px;
}

.mb-md {
  margin-bottom: 24px;
}

.mb-lg {
  margin-bottom: 32px;
}

.mb-xl {
  margin-bottom: 48px;
}

.p-sm {
  padding: 16px;
}

.p-md {
  padding: 24px;
}

.p-lg {
  padding: 32px;
}

.p-xl {
  padding: 40px;
}

/* Mobile-first grid layouts */
.responsive-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.responsive-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.responsive-grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.responsive-grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Button groups */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Contact forms responsive */
.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

/* Stats grid */
.stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* Image responsive */
.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ================= Responsive Breakpoints ================= */
/* Mobile First - Base styles above are mobile */

/* Small tablets (576px and up) */
@media (min-width:576px) {
  /* .container {
    padding: 0 20px;
  } */

  .btn-group {
    gap: 16px;
  }
}

/* Tablets (768px and up) */
@media (min-width:768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    gap: 24px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Product cards for tablets */
  .product-card {
    min-height: 480px;
  }

  .product-image {
    height: 200px;
  }

  .product-title {
    min-height: 2.6em;
  }

  .product-description {
    min-height: 4.5em;
  }

  /* Recipe cards for tablets */
  .recipe-card {
    min-height: 450px;
  }

  .recipe-title {
    min-height: 2.6em;
  }

  .recipe-description {
    min-height: 3.9em;
  }
}

/* Small desktops (992px and up) */
@media (min-width:992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large desktops (1200px and up) */
@media (min-width:1200px) {
  .container {
    max-width: 1200px;
  }
}

/* ================= Legacy Responsive (max-width) ================= */
@media (max-width:1024px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width:980px) {
  .nav-grid {
    grid-template-columns: 1fr auto 1fr;
    row-gap: 12px;
  }

  .left-nav,
  .right-nav {
    justify-content: center;
    gap: 28px;
  }

  .nav-logo img {
    height: 64px;
  }
}

@media (max-width:768px) {
  :root {
    --lr-scale: .9;
    --lr-pattern-veil: .95;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  /* Better mobile spacing */
  .content-section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 32px;
    font-size: clamp(30px, 6vw, 32px);
    padding: 25px;
  }

  /* Mobile forms */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Mobile buttons */
  .btn-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width:640px) {
  .nav-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-logo {
    order: -1;
    margin-bottom: 8px;
  }

  .left-nav,
  .right-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .nav-logo img {
    height: 56px;
  }

  /* .container {
    padding: 0 16px;
  } */

  /* Very small mobile adjustments */
  .hero-section {
    padding: 80px 0;
    min-height: 400px;
  }

  .content-section {
    padding: 40px 0;
  }

  .content-section.with-wave-top {
    padding-top: calc(40px + var(--wave-h));
  }
}

/* ================= Mobile-specific improvements ================= */
@media (max-width:480px) {
  .hero-title {
    font-size: clamp(24px, 8vw, 36px);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: clamp(16px, 4vw, 20px);
  }

  /* Smaller cards on very small screens */
  .card,
  .product-card,
  .recipe-card,
  .article-card {
    border-radius: 12px;
  }

  .product-content,
  .recipe-content,
  .article-content {
    padding: 16px;
  }

  /* Adjust product card height for mobile */
  .product-card {
    min-height: 440px;
  }

  .product-image {
    height: 180px;
  }

  .product-title {
    font-size: 16px;
    min-height: 2.4em;
  }

  .product-description {
    font-size: 13px;
    min-height: 4.5em;
  }

  /* Recipe cards for mobile */
  .recipe-card {
    min-height: 420px;
  }

  .recipe-image-container {
    height: 170px;
  }

  .recipe-title {
    font-size: 16px;
    min-height: 2.4em;
  }

  .recipe-description {
    font-size: 13px;
    min-height: 3.9em;
  }

  /* Form improvements */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  /* Button improvements */
  .btn {
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  .btn-group .btn {
    margin-bottom: 8px;
  }
}

/* ================= Specific Landing Page Sections ================= */

/* Hero Logo */
.hero-logo {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 600px;
  height: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 550px;
    margin-bottom: 1.5rem;
  }
}

/* Products Section */
.products-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 120px 0;
  background-color: var(--light);
  background-image:
    linear-gradient(rgba(255, 255, 255, var(--lr-pattern-veil)), rgba(255, 255, 255, var(--lr-pattern-veil))),
    var(--lr-pattern-url);
  background-repeat: no-repeat, repeat;
  background-size: auto, var(--lr-pattern-size) var(--lr-pattern-size);
  background-position: 0 0, var(--lr-pattern-pos-x) var(--lr-pattern-pos-y);
}

@media (max-width: 768px) {
  .products-section {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)),
      var(--lr-pattern-url);
    background-size: auto, calc(300px * 4) calc(300px * 4);
  }
}

.products-showcase {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

.product-feature {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease;
}

.product-feature:hover {
  transform: translateY(-3px);
}

.product-feature:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.product-feature:nth-child(even) .product-visual {
  order: 2;
}

.product-visual {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--brand);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-badge.frozen {
  background: #4CAF50;
}

.product-content {
  padding: 32px;
}

.product-category {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-ink);
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-description {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-tag {
  background: #e8f4f8;
  color: var(--brand-ink);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.product-cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.product-cta:hover {
  transform: translateY(-1px);
  background: var(--brand-ink);
}

/* Recipes Section */
.recipes-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 120px 0;
  background: var(--brand);
  color: #fff;
}

.recipes-title {
  text-align: center;
  margin-bottom: 48px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: var(--font-size-xl);
}

@media (max-width: 768px) {
  .recipes-title {
    margin-bottom: 32px;
    font-size: clamp(30px, 6vw, 32px);
    padding: 25px;
  }
}

.recipes-showcase {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

.featured-recipe {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.recipe-hero {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-hero-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

.recipe-difficulty {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.recipe-difficulty.expert {
  background: #ff6b6b;
  color: #fff;
}

.recipe-difficulty.easy {
  background: #4CAF50;
  color: #fff;
}

.recipe-difficulty.medium {
  background: #ff9800;
  color: #fff;
}

.recipe-time {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-info {
  padding: 32px;
}

.recipe-category {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 8px;
  font-weight: 600;
}

.recipe-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.recipe-preview {
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.recipe-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ingredient-tag {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.recipe-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.recipe-cta {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.recipe-cta:hover {
  transform: translateY(-1px);
  background: #f0f0f0;
}

.recipe-favorite {
  background: none;
  border: 2px solid rgba(255, 255, 255, .3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 20px;
}

.recipe-favorite:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
}

.recipes-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.recipe-card.compact {
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.recipe-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.recipe-quick-time {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.recipe-content {
  padding: 20px;
}

.recipe-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.recipe-description {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.recipe-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity .2s ease;
}

.recipe-link:hover {
  opacity: .8;
}

.recipes-cta {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: rgba(255, 255, 255, .1);
  padding: 32px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.cta-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cta-description {
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  margin-bottom: 16px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  background: #f0f0f0;
}

.cta-visual {
  text-align: center;
}

.recipe-count {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.recipe-label {
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  font-weight: 600;
}

/* Contact Section */
.contact-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 120px 0;
  background-color: var(--light);
  background-image:
    linear-gradient(rgba(255, 255, 255, var(--lr-pattern-veil)), rgba(255, 255, 255, var(--lr-pattern-veil))),
    var(--lr-pattern-url);
  background-repeat: no-repeat, repeat;
  background-size: auto, var(--lr-pattern-size) var(--lr-pattern-size);
  background-position: 0 0, var(--lr-pattern-pos-x) var(--lr-pattern-pos-y);
}

.contact-title {
  text-align: center;
  margin-bottom: 48px;
  color: var(--brand-ink);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: var(--font-size-xl);
}

.contact-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 1fr;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-ink);
  margin-bottom: 24px;
}

.address-box {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.address-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 8px;
}

.address-box p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.map-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.map-button:hover {
  transform: translateY(-1px);
  background: var(--brand-ink);
}

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-ink);
  margin-bottom: 24px;
}

.btn-enviar {
  width: 100%;
  padding: 14px 24px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.btn-enviar:hover {
  transform: translateY(-1px);
  background: var(--brand-ink);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .product-feature {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .product-feature:nth-child(even) .product-visual {
    order: unset;
  }

  .product-visual {
    aspect-ratio: 16/10;
    min-height: 200px;
  }

  .product-hero-image {
    width: 95%;
    height: 95%;
  }

  .product-content {
    padding: 24px;
  }

  .featured-recipe {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .recipe-info {
    padding: 24px;
  }

  .recipe-hero {
    aspect-ratio: 16/10;
    min-height: 180px;
  }

  .recipe-hero-image {
    width: 95%;
    height: 95%;
  }

  .recipe-image-container {
    height: 180px;
  }

  .recipe-image {
    width: 95%;
    height: 95%;
  }

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

  .recipes-cta {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

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

  .contact-form {
    padding: 24px;
  }

  .products-section,
  .recipes-section,
  .contact-section {
    padding: 35px 15px;
  }
}

/* ================= Article Cards (for Enterate) ================= */
.article-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--brand);
}

.article-image-container {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-meta-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.article-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 8px;
  line-height: 1.3;
  flex: 1;
}

.article-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 2;
}

.article-read-more {
  align-self: flex-start;
  padding: 8px 16px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-read-more:hover {
  background: #0a4b6b;
  transform: translateY(-2px);
}

/* ================= Recipe Cards Modern Design ================= */
.recipe-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(13, 58, 90, 0.15);
  border-color: var(--brand);
}

.recipe-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.recipe-card:hover .recipe-image {
  transform: scale(1.02);
}

.recipe-difficulty-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.difficulty-fácil {
  background: #10b981;
  color: white;
}

.difficulty-medio {
  background: #f59e0b;
  color: white;
}

.difficulty-gourmet {
  background: #ef4444;
  color: white;
}

.recipe-time-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.recipe-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand);
  color: white;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.recipe-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 2.6em;
}

.recipe-description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  min-height: 4.2em;
}

.recipe-view-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  margin-top: auto;
}

.recipe-view-btn:hover {
  background: var(--brand-ink);
  transform: translateY(-2px);
}

/* Mobile adjustments for recipe cards */
@media (max-width: 768px) {
  .recipe-image-container {
    height: 180px;
  }

  .recipe-content {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .recipe-image-container {
    height: 160px;
  }

  .recipe-content {
    padding: 16px;
  }

  .recipe-title {
    font-size: 16px;
  }

  .recipe-description {
    font-size: 13px;
  }
}

/* ================= Gallery Styles (for Nosotros) ================= */
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: end;
}

.gallery-caption {
  color: #fff;
  padding: 20px;
  font-weight: 600;
}

/* ================= Statistics Cards ================= */
.stat-card {
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

/* ================= Event Cards (for Enterate) ================= */
.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

.event-date {
  padding: 20px;
  text-align: center;
  color: #fff;
}

.event-day {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.event-month {
  font-size: 14px;
  opacity: 0.8;
}

.event-content {
  padding: 24px;
}

.event-title {
  color: var(--brand-ink);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.event-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.event-details {
  color: #999;
  font-size: 12px;
}

/* ================= Newsletter Signup ================= */
.newsletter-signup {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 40px;
  text-align: center;
}

.newsletter-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  font-size: 16px;
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  min-width: 200px;
}

.newsletter-btn {
  padding: 12px 24px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ================= Contact Improvements ================= */
.contact-info-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.contact-title {
  color: var(--brand-ink);
  font-size: 5vh;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Vista móvil */
@media (max-width: 768px) {
  .contact-info {
    display: flex;
    flex-direction: column;
    /* Mantiene el orden vertical */
    align-items: center;
    /* Centra horizontalmente */
    justify-content: center;
    /* Centra verticalmente si tiene altura fija */
    text-align: center;
    /* Centra los textos dentro */
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .contact-info .address-box {
    width: 100%;
    /* Ocupa todo el ancho */
    max-width: none;
    /* Elimina el límite */
    margin: 10px 0;
    /* Espacio entre los cuadros */
    border-radius: 25px;
    /* Opcional: bordes rectos al ocupar todo el ancho */
  }
}

.contact-hours {
  padding: 16px;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 12px;
}

.contact-link {
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--brand);
}

/* ================= Improved Mobile Responsiveness ================= */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    min-width: auto;
  }

  .gallery-item {
    height: 200px;
  }

  .stat-number {
    font-size: 24px;
  }

  .contact-icon {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .contact-title {
    font-size: 18px;
  }

  .event-day {
    font-size: 24px;
  }

  .event-title {
    font-size: 16px;
  }
}

/* ================= SVG Icon Enhancements ================= */
.svg-icon {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.svg-icon:hover {
  transform: scale(1.1);
}

/* Enhanced article meta display */
.article-meta span {
  transition: color 0.3s ease;
}

.article-meta span:hover {
  color: var(--brand);
}

/* Enhanced value cards for Nosotros */
.value-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.value-card:hover::before {
  left: 100%;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced contact form styling */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--brand-ink);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Enhanced button animations */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-with-icon svg {
  transition: transform 0.3s ease;
}

.btn-with-icon:hover svg {
  transform: scale(1.2);
}

/* Enhanced grid layouts */
.responsive-grid {
  display: grid;
  gap: 24px;
}

.responsive-grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ================= Mobile Responsive Media Queries ================= */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .nav-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-logo {
    order: -1;
  }

  /* Ocultar el header principal cuando el menú móvil está activo */
  body.mobile-menu-open .main-header {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
}

@media (max-width: 768px) {
  .responsive-grid.cols-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
  }

  .mobile-menu-content {
    width: 280px;
  }

  .hero-title {
    font-size: clamp(28px, 5vw, 48px);
  }

  /* .section-title {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 32px;
  } */

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .mobile-menu-content {
    width: 100vw;
  }

  .mobile-menu-toggle {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .hamburger-line {
    width: 18px;
  }

  /* .container {
    padding: 0 16px;
  } */

  .nav-container {
    padding: 0 16px;
  }

  .content-section {
    padding: 120px 0;
  }

  .hero-section {
    min-height: 460px;
    padding: 100px 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mobile-nav-link:hover {
    background: transparent;
    color: var(--brand-ink);
    padding-left: 20px;
  }

  .mobile-nav-link:active {
    background: var(--light);
    color: var(--brand);
  }
}