/*
 * Plantilla «Zarigüeyas» (plantilla8).
 *
 * Portada de zarigueyas/styles.css (el diseño del Comedor Zarigüeyas). Dos
 * cambios respecto del original, y los dos a propósito:
 *
 *   1. Todo lleva el prefijo zg-. El diseño usaba .hero, .button, .stat,
 *      .brand…, que chocan con Bootstrap y con los bloques compartidos que
 *      esta plantilla también pinta (galería, mapa, contacto…).
 *   2. Los colores de marca salen del sitio: --primary-color (el verde) y
 *      --secondary-color (el naranja), con los del diseño de respaldo. Los
 *      tonos suaves (crema, verde claro, durazno) son del diseño y se quedan.
 *
 * Las reglas de elemento (body, h1, h2) van bajo .zg, la clase del <body>.
 */
.zg {
  --zg-green: var(--primary-color, #557d25);
  --zg-green-dark: #31531b;
  --zg-green-soft: #e6edcf;
  --zg-orange: var(--secondary-color, #e66a36);
  --zg-orange-soft: #f8dfcc;
  --zg-cream: #fbf4df;
  --zg-ink: #25251f;
  --zg-muted: #68685e;
  --zg-white: #fffdf7;
  --zg-shadow: 0 18px 55px rgba(64, 62, 36, .10);
  --zg-radius: 26px;

  margin: 0;
  color: var(--zg-ink);
  background: var(--zg-cream);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.65;
}
.zg img { max-width: 100%; }
.zg a { color: inherit; text-decoration: none; }
.zg h1, .zg h2, .zg h3 { font-family: Nunito, "DM Sans", sans-serif; }
.zg h1, .zg h2, .zg h3, .zg p { margin-top: 0; }
html { scroll-behavior: smooth; }

/* Lo marcado con <b> (con_resaltado): color de la sección, sin la negrita
   extra del navegador —el título ya es negrita—. */
.zg .resaltado { font-weight: inherit; }

/* ── Cromo: encabezado ─────────────────────────────────────────────── */
.zg-header {
  width: min(1200px, calc(100% - 48px)); margin: auto; min-height: 92px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.zg-brand { display: flex; align-items: center; gap: 12px; font-family: Nunito, sans-serif; font-size: 18px; font-weight: 800; line-height: 1.1; }
.zg-brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; }
/* «Comedor <b>Zarigüeyas</b>»: lo resaltado baja de renglón, como el diseño. */
.zg-brand .resaltado { display: block; color: var(--zg-green); }
.zg-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; color: #535449; list-style: none; margin: 0; padding: 0; }
.zg-nav a { transition: color .2s ease; }
/* _menu_items pinta .nav-link.px-3 (el px-3 de Bootstrap lleva !important). */
.zg-nav .nav-link, .zg-menu-movil .nav-link { padding: 0 !important; color: inherit; }
.zg-nav a:hover { color: var(--zg-orange); }
/* El último elemento del menú es el llamado a la acción («Cómo apoyar»). */
.zg-nav > li:last-child > a { background: var(--zg-green); color: #fff; padding: 11px 19px !important; border-radius: 99px; }
.zg-nav > li:last-child > a:hover { background: var(--zg-green-dark); color: #fff; }
.zg-nav .dropdown-menu { font-size: 13px; }
.zg-menu-toggle { display: none; border: 0; background: transparent; font-size: 22px; color: var(--zg-ink); }
.zg-menu-movil { display: none; }

/* ── Botones ───────────────────────────────────────────────────────── */
.zg-button { display: inline-flex; align-items: center; gap: 14px; border-radius: 99px; padding: 14px 22px; font-size: 13px; font-weight: 800; transition: transform .2s, box-shadow .2s; border: 0; }
.zg-button:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(49,83,27,.18); }
.zg-button-primary { background: var(--zg-green); color: #fff !important; }
.zg-button-dark { background: var(--zg-ink); color: #fff !important; }
.zg-text-link { color: var(--zg-green-dark); font-size: 13px; font-weight: 800; border-bottom: 1px solid #a4b47c; padding-bottom: 4px; }

/* Los bloques compartidos (galería, contacto…) usan los botones de Bootstrap. */
.zg .btn-primary { background: var(--zg-green); border-color: var(--zg-green); border-radius: 99px; }
.zg .btn-primary:hover { background: var(--zg-green-dark); border-color: var(--zg-green-dark); }
.zg .btn-outline-primary { color: var(--zg-green); border-color: var(--zg-green); border-radius: 99px; }
.zg .btn-outline-primary:hover { background: var(--zg-green); color: #fff; }

/* ── Comunes de sección ────────────────────────────────────────────── */
.zg-wrap { width: min(1120px, calc(100% - 48px)); margin: auto; }
.zg-eyebrow, .zg-kicker { color: var(--zg-green); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.zg-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; background: rgba(255,255,255,.65); border-radius: 99px; }
.zg-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zg-orange); }
.zg h2.zg-h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin: 0; font-weight: 900; }

/* ── Portada (zarig_portada) ───────────────────────────────────────── */
.zg-hero {
  min-height: 610px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px;
  width: min(1320px, calc(100% - 48px)); margin: 0 auto;
  padding: 55px clamp(28px, 6vw, 90px) 85px; border-radius: 34px; background: #f7edcf;
}
.zg-hero-copy { position: relative; z-index: 2; max-width: 590px; }
.zg-hero h1 { margin: 22px 0 18px; font-size: clamp(42px, 5.5vw, 70px); line-height: .99; letter-spacing: -.045em; max-width: 620px; font-weight: 900; }
.zg-hero-copy > .zg-hero-texto { max-width: 520px; color: #666457; font-size: 16px; line-height: 1.8; }
.zg-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.zg-hero-note { display: flex; align-items: center; gap: 12px; margin-top: 45px; max-width: 400px; color: #777362; font-size: 12px; }
.zg-note-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--zg-orange-soft); color: var(--zg-orange); font-size: 16px; flex: 0 0 auto; }
.zg-hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.zg-hero-blob { position: absolute; width: min(440px, 95%); aspect-ratio: 1; background: #dfe8bf; border-radius: 47% 53% 58% 42% / 49% 43% 57% 51%; transform: rotate(-9deg); }
.zg-hero-logo { position: relative; width: min(390px, 90%); mix-blend-mode: multiply; border-radius: 50%; box-shadow: 0 22px 55px rgba(71,78,37,.12); }
.zg-floating-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 99px; background: var(--zg-white); box-shadow: var(--zg-shadow); font-size: 12px; font-weight: 800; }
.zg-tag-one { left: 0; top: 18%; transform: rotate(-5deg); }
.zg-tag-two { right: -3%; bottom: 17%; transform: rotate(4deg); }
.zg-hero-bottom-shape { position: absolute; bottom: -70px; left: -2%; width: 104%; height: 115px; background: var(--zg-green); border-radius: 50% 50% 0 0; opacity: .95; }

/* ── Historia (zarig_historia) ─────────────────────────────────────── */
.zg-intro { padding-top: 105px; padding-bottom: 100px; }
.zg-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; margin-top: 15px; }
.zg-intro-text { color: #69685d; font-size: 15px; }
.zg-intro-text p:last-child { margin-bottom: 0; }
.zg-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 55px; padding: 25px 0; border-top: 1px solid #dfd6b8; border-bottom: 1px solid #dfd6b8; }
.zg-stat { padding: 4px 22px; border-right: 1px solid #dfd6b8; }
.zg-stat:first-child { padding-left: 0; }
.zg-stat:last-child { border: 0; }
.zg-stat strong { display: block; color: var(--zg-orange); font: 900 25px Nunito, sans-serif; }
.zg-stat span { display: block; color: #777466; font-size: 11px; margin-top: 4px; }

/* ── Tarjetas, diseño 1: actividades (features) ────────────────────── */
.zg-work { padding: 100px 0 110px; background: #fffaf0; }
.zg-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 45px; }
.zg-section-heading .zg-kicker { margin-bottom: 13px; }
.zg-section-heading > .zg-heading-texto { max-width: 390px; color: #777466; font-size: 14px; margin: 0 0 3px; }
.zg-activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zg-activity-card { min-height: 275px; position: relative; overflow: hidden; padding: 27px 24px; border-radius: var(--zg-radius); background: var(--zg-card, #e5edcf); }
.zg-activity-card:nth-child(4n+1) { --zg-card: #e5edcf; }
.zg-activity-card:nth-child(4n+2) { --zg-card: #f8e1d2; }
.zg-activity-card:nth-child(4n+3) { --zg-card: #f2ebd4; }
.zg-activity-card:nth-child(4n+4) { --zg-card: #f4e1dc; }
.zg-activity-icon { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 17px; background: rgba(255,255,255,.68); font-size: 25px; margin-bottom: 30px; }
.zg-activity-icon img { width: 32px; height: 32px; object-fit: contain; }
.zg-activity-card h3 { font-size: 20px; margin-bottom: 9px; font-weight: 800; }
.zg-activity-card p { color: #6f6d61; font-size: 12px; line-height: 1.7; }
.zg-card-number { position: absolute; right: 20px; bottom: 8px; color: rgba(60,75,36,.12); font: 900 45px Nunito, sans-serif; }

/* ── Bloque con imagen (zarig_bloque): comunidad · cocina · productos ── */
.zg-community { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 75px; padding-top: 115px; padding-bottom: 115px; }
.zg-community-copy .zg-kicker { margin-bottom: 15px; }
.zg-community-copy h2 { margin-bottom: 23px !important; }
.zg-community-copy .zg-texto { color: #716f62; font-size: 14px; }
.zg-community-copy .zg-button { margin-top: 12px; }
.zg-community-photo { position: relative; }
.zg-community-photo img { width: 100%; height: 430px; object-fit: cover; border-radius: 48% 48% 25px 25px / 35% 35% 25px 25px; box-shadow: var(--zg-shadow); }
.zg-photo-caption { position: absolute; left: 22px; bottom: -18px; padding: 13px 18px; border-radius: 99px; background: #fff; box-shadow: var(--zg-shadow); font-size: 12px; font-weight: 800; }
.zg-photo-caption span { color: var(--zg-orange); margin-right: 8px; }

.zg-kitchen { display: grid; grid-template-columns: 1fr 1fr; background: var(--zg-green-dark); color: #fff; }
.zg-kitchen-image { min-height: 500px; }
.zg-kitchen-image img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; display: block; }
.zg-kitchen-copy { align-self: center; padding: 70px clamp(35px, 7vw, 110px); max-width: 700px; }
.zg-kitchen-copy .zg-kicker { color: #d6e2a8; margin-bottom: 15px; }
.zg-kitchen-copy h2 { margin-bottom: 23px !important; }
.zg-kitchen-copy .zg-texto { color: rgba(255,255,255,.78); font-size: 14px; }
.zg-kitchen-quote { margin-top: 30px; padding-left: 18px; border-left: 3px solid #e98b51; color: #f8e6c9; font: italic 700 17px Nunito, sans-serif; }

.zg-products { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 70px; padding-top: 105px; padding-bottom: 105px; }
.zg-products-copy .zg-kicker { margin-bottom: 14px; }
.zg-products-copy h2 { margin-bottom: 20px !important; }
.zg-products-copy .zg-texto { color: #716f62; font-size: 14px; }
.zg-products-illustration { height: 270px; position: relative; display: grid; place-items: center; background: #f7e4d2; border-radius: 48% 52% 43% 57% / 54% 43% 57% 46%; overflow: hidden; }
.zg-products-illustration img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zg-product-circle { width: 125px; height: 125px; display: grid; place-items: center; border-radius: 50%; background: var(--zg-orange); color: #fff; font-size: 58px; box-shadow: 0 15px 30px rgba(230,106,54,.22); }
.zg-product-word { position: absolute; bottom: 27px; left: 50%; transform: translateX(-50%); color: var(--zg-green-dark); font: 900 17px Nunito, sans-serif; text-align: center; line-height: 1.05; }
.zg-product-leaf { position: absolute; width: 55px; height: 25px; background: #84a34d; border-radius: 100% 0 100% 0; }
.zg-leaf-a { top: 48px; left: 65px; transform: rotate(25deg); }
.zg-leaf-b { top: 70px; right: 58px; transform: rotate(195deg); }

/* ── Tarjetas, diseño 2: cómo apoyar (features) ────────────────────── */
.zg-support { padding: 95px 24px; background: #e8edcf; text-align: center; }
.zg-support-inner { width: min(980px, 100%); margin: auto; }
.zg-support-inner .zg-kicker { margin-bottom: 14px; }
.zg-support-inner h2 { max-width: 720px; margin: auto !important; }
.zg-support-inner > .zg-texto { max-width: 620px; margin: 20px auto 40px; color: #6d705e; font-size: 14px; }
.zg-support-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.zg-support-options > div { padding: 23px; border-radius: 18px; background: rgba(255,255,255,.75); }
.zg-support-options span { display: block; color: var(--zg-orange); font: 900 13px Nunito, sans-serif; margin-bottom: 12px; }
.zg-support-options b { display: block; font: 900 17px Nunito, sans-serif; }
.zg-support-options small { display: block; margin-top: 7px; color: #777466; font-size: 11px; line-height: 1.6; }
.zg-support-foot { margin-top: 40px; color: var(--zg-green-dark); font: italic 800 18px Nunito, sans-serif; }
.zg-support-foot span { color: var(--zg-orange); margin-left: 6px; }

/* ── Cromo: pie ────────────────────────────────────────────────────── */
.zg-footer { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 25px; padding: 32px max(24px, calc((100% - 1120px) / 2)); background: #292b21; color: #fff; }
.zg-footer-brand { display: flex; align-items: center; gap: 12px; }
.zg-footer-brand img { width: 55px; height: 55px; object-fit: cover; border-radius: 50%; }
.zg-footer-brand b, .zg-footer-brand span { display: block; font-family: Nunito, sans-serif; }
.zg-footer-brand b { font-size: 14px; }
.zg-footer-brand .resaltado { display: inline; color: inherit; }
.zg-footer-brand span { color: #d9b17d; font-size: 11px; }
.zg-footer p { margin: 0; color: rgba(255,255,255,.65); font-size: 11px; }
.zg-footer > a { color: #d8e5ad; font-size: 12px; font-weight: 700; white-space: nowrap; }
.zg-footer-legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.zg-footer-legal a { color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .zg-nav { gap: 15px; }
  .zg-hero { grid-template-columns: 1fr .8fr; padding-left: 38px; padding-right: 38px; }
  .zg-hero-art { min-height: 350px; }
  .zg-intro-grid { gap: 35px; }
  .zg-activity-grid { grid-template-columns: repeat(2, 1fr); }
  .zg-community { gap: 38px; }
  .zg-kitchen-copy { padding: 55px 38px; }
  .zg-products { gap: 35px; }
}
@media (max-width: 680px) {
  .zg-header { width: calc(100% - 32px); min-height: 76px; position: relative; }
  .zg-brand { font-size: 15px; }
  .zg-brand img { width: 47px; height: 47px; }
  .zg-nav { display: none; }
  .zg-menu-toggle { display: block; }
  .zg-menu-movil.abierto { display: block; position: absolute; top: 100%; right: 0; left: 0; z-index: 20; background: var(--zg-white); border-radius: 18px; box-shadow: var(--zg-shadow); padding: 12px 18px; list-style: none; margin: 0; }
  .zg-menu-movil li a { display: block; padding: 8px 0; font-weight: 700; }
  .zg-hero { width: calc(100% - 20px); grid-template-columns: 1fr; padding: 42px 25px 80px; border-radius: 24px; }
  .zg-hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .zg-hero-copy > .zg-hero-texto { font-size: 14px; }
  .zg-hero-art { min-height: 320px; margin-top: 5px; }
  .zg-hero-logo { width: min(310px, 80%); }
  .zg-floating-tag { font-size: 10px; padding: 8px 11px; }
  .zg-tag-one { left: 0; top: 12%; }
  .zg-tag-two { right: 0; bottom: 11%; }
  .zg-wrap { width: calc(100% - 38px); }
  .zg-intro { padding-top: 75px; padding-bottom: 75px; }
  .zg-intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .zg-stat-strip { grid-template-columns: repeat(2, 1fr); gap: 20px 0; margin-top: 35px; }
  .zg-stat:nth-child(2) { border: 0; }
  .zg-stat:nth-child(3) { padding-left: 0; }
  .zg-stat strong { font-size: 22px; }
  .zg-work { padding: 75px 0; }
  .zg-section-heading { display: block; }
  .zg-section-heading > .zg-heading-texto { margin-top: 20px; }
  .zg-activity-grid { gap: 10px; }
  .zg-activity-card { min-height: 265px; padding: 20px 17px; }
  .zg-activity-card h3 { font-size: 18px; }
  .zg-community { grid-template-columns: 1fr; padding-top: 75px; padding-bottom: 80px; }
  .zg-community-photo img { height: 320px; }
  .zg-kitchen { grid-template-columns: 1fr; }
  .zg-kitchen-image, .zg-kitchen-image img { min-height: 300px; max-height: 350px; }
  .zg-kitchen-copy { padding: 55px 25px 65px; }
  .zg-products { grid-template-columns: 1fr; padding-top: 75px; padding-bottom: 75px; gap: 35px; }
  .zg-products-illustration { max-width: 340px; width: 100%; margin: auto; height: 230px; }
  .zg-support { padding: 75px 20px; }
  .zg-support-options { grid-template-columns: 1fr; }
  .zg-footer { grid-template-columns: 1fr auto; padding: 28px 22px; }
  .zg-footer p { grid-column: 1 / -1; grid-row: 2; }
  .zg-footer > a { grid-column: 2; grid-row: 1; }
  .zg-footer-legal { grid-row: 3; }
}
