/* =========================================================
   Pasto en Rollo Aguascalientes - Landing Google Ads
   ========================================================= */

/* ---------- Tipografía ---------- */

/* Archivo proporcionado: Poppins 300, subconjunto latin-ext.
   Con unicode-range solo se descarga si la página usa esos caracteres. */
@font-face {
  font-family: "Poppins";
  src: url("https://img1.wsimg.com/gfonts/s/poppins/v24/pxiByp8kv8JHgFVrLDz8Z11lFc-K.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins 400 y 600, subconjunto latin (incluye á, é, í, ó, ú, ñ, ¿, ¡) */
@font-face {
  font-family: "Poppins";
  src: url("https://img1.wsimg.com/gfonts/s/poppins/v24/pxiEyp8kv8JHgFVrJJfecg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  src: url("https://img1.wsimg.com/gfonts/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Respaldo con métricas ajustadas a Poppins para reducir el salto al cargar la fuente */
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 112%;
  ascent-override: 94%;
  descent-override: 31%;
  line-gap-override: 9%;
}

/* ---------- Tokens ---------- */
:root {
  /* Marca verificada (theme-color del sitio oficial) */
  --brand: #49b14c;
  /* Tonos derivados del mismo verde para contraste AA con texto blanco */
  --brand-700: #2d6c2f;
  --brand-800: #245725;
  /* Neutros */
  --ink: #142915;
  --text: #2c3a2e;
  --muted: #56635a;
  --surface: #f3f6ef;
  --line: #dde3d6;
  --white: #ffffff;

  --font: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --gutter: 16px;
  --container: 1200px;
  --header-h: 64px;
  --section-y: 56px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

a {
  color: var(--brand-700);
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Botón WhatsApp ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn--wa {
  background: var(--brand-700);
  color: var(--white);
}

.btn--wa:hover {
  background: var(--brand-800);
}

.btn--wa:active {
  transform: translateY(1px);
}

.btn--wa:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn--sm {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  gap: 8px;
}

.btn--sm .btn__icon {
  width: 20px;
  height: 20px;
}

.btn--lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.0625rem;
}

.btn--lg .btn__icon {
  width: 24px;
  height: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

.site-header__logo {
  width: auto;
  height: 44px;
  max-width: 52vw;
  object-fit: contain;
  object-position: left center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(620px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Capa de contraste discreta: solo oscurece la zona del texto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 28, 13, 0.82) 0%, rgba(12, 28, 13, 0.55) 45%, rgba(12, 28, 13, 0.1) 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 40px;
}

.hero__kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero__title {
  font-size: clamp(1.875rem, 9.2vw + 0.1rem, 4.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero__line {
  display: block;
}

.hero__line::first-letter {
  text-transform: uppercase;
}

.hero__line--place {
  color: var(--white);
}

.hero__lead {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.hero__content .btn {
  margin-top: 24px;
}

.hero__note {
  margin-top: 14px;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ---------- Secciones ---------- */
.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--surface);
}

.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-head__title {
  font-size: clamp(1.5rem, 4.6vw + 0.4rem, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-head__text {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---------- Productos ---------- */
.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--surface);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.card__lead {
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-700);
}

.card__text {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--muted);
}

.card__btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Video ---------- */
.video__inner {
  display: grid;
  gap: 28px;
}

.video__copy .btn {
  margin-top: 24px;
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Sucursales ---------- */
.branches__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.branch {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.branch__map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.branch__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.branch__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.branch__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.branch__address {
  margin-top: 8px;
  color: var(--text);
}

.branch__ref {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.branch__data {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.branch__data dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.branch__data dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--text);
}

.branch__data a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-weight: 600;
  text-decoration: none;
}

.branch__data a:hover {
  text-decoration: underline;
}

.link-directions {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--brand);
}

.link-directions:hover {
  color: var(--brand-800);
}

/* ---------- CTA final ---------- */
.final-cta {
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--white);
}

.final-cta__inner {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.final-cta__title {
  font-size: clamp(1.5rem, 4.6vw + 0.4rem, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.final-cta__text {
  max-width: 52ch;
  margin-top: 10px;
  font-size: 1.0625rem;
  opacity: 0.9;
}

.final-cta .btn--wa {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.final-cta .btn--wa:focus-visible {
  outline-color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 32px;
  background: #0e1d0f;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  gap: 16px;
}

.site-footer p + p {
  margin-top: 4px;
}

.site-footer__name {
  font-weight: 600;
  color: var(--white);
}

.site-footer a {
  color: var(--white);
}

.site-footer__legal {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Responsive ---------- */
/* Móvil: logo centrado sin botón en header, contenido del hero arriba y centrado */
@media (max-width: 767px) {
  :root {
    --header-h: 80px;
  }

  .site-header__inner {
    justify-content: center;
  }

  .site-header__logo {
    height: 60px;
    max-width: 80vw;
    object-position: center;
  }

  .site-header .btn {
    display: none;
  }

  .hero {
    align-items: flex-start;
  }

  .hero::after {
    background: linear-gradient(to bottom, rgba(12, 28, 13, 0.72) 0%, rgba(12, 28, 13, 0.6) 55%, rgba(12, 28, 13, 0.2) 100%);
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(40px, 9svh, 80px);
    padding-bottom: 48px;
    text-align: center;
  }

  .hero__kicker {
    margin-bottom: clamp(16px, 3svh, 28px);
  }

  .hero__lead {
    margin-top: clamp(16px, 3svh, 28px);
  }

  .hero__content .btn {
    margin-top: clamp(28px, 5svh, 44px);
  }

  .hero__note {
    margin-top: clamp(16px, 3svh, 28px);
  }
}

@media (max-width: 359px) {
  :root {
    --gutter: 14px;
  }

  .site-header__logo {
    height: 54px;
  }
}

@media (min-width: 560px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
    --section-y: 80px;
  }

  .site-header__logo {
    height: 52px;
  }

  .btn--sm {
    min-height: 46px;
    padding: 11px 18px;
    font-size: 1rem;
  }

  .hero {
    min-height: min(680px, calc(100svh - var(--header-h)));
  }

  .hero__content {
    padding-bottom: 64px;
  }

  .hero__kicker {
    font-size: 1rem;
  }

  .hero__lead {
    font-size: 1.25rem;
  }

  .hero__note {
    font-size: 0.9375rem;
  }

  .products__grid {
    gap: 24px;
  }

  .branch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .branch__map {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .branch__body {
    padding: 28px;
  }

  .final-cta__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: min(760px, calc(100svh - var(--header-h)));
  }

  .hero::after {
    background: linear-gradient(to right, rgba(12, 28, 13, 0.8) 0%, rgba(12, 28, 13, 0.55) 45%, rgba(12, 28, 13, 0.05) 75%);
  }

  .hero {
    align-items: center;
  }

  .hero__content {
    padding-block: 96px;
  }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .video__inner {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 56px;
  }

  .branches__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .branch {
    display: flex;
  }

  .branch__map {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .branch__body {
    padding: 24px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}