/* ==========================================================================
   Azteca Farmers Market — estilos globales
   ========================================================================== */

:root {
  /* Paleta de marca */
  --color-cream: #fbf3e2;
  --color-cream-soft: #f6ead2;
  --color-cream-deep: #efdcb8;
  --color-green: #83a713;
  --color-green-dark: #56700e;
  --color-green-darker: #3f5209;
  --color-yellow: #e8a93b;
  --color-yellow-dark: #c98a20;
  --color-terracotta: #c1572c;
  --color-terracotta-soft: #f1dcc2;
  --color-terracotta-deep: #a4471f;
  --color-blue: #aedce3;
  --color-blue-soft: #e3f4f6;
  --color-blue-deep: #3f7f89;
  --color-ink: #2b2118;
  --color-ink-soft: #5a4c3e;
  --color-white: #ffffff;

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 30px -14px rgba(43, 33, 24, 0.35);
  --shadow-card: 0 10px 24px -12px rgba(43, 33, 24, 0.28);

  --container-w: 1240px;
}

/* ---- Reset básico ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
  line-height: 1.12;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--color-green-darker);
  color: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
  font-weight: 700;
}

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

/* ---- Etiqueta de sección (eyebrow) ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-terracotta-deep);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-top: 8px;
}

.section-heading p {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--color-ink-soft);
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

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

.btn:focus-visible {
  outline: 3px solid var(--color-blue-deep);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-terracotta-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--color-green-darker);
  border-color: var(--color-green);
}

.btn-secondary:hover {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-green-darker);
  box-shadow: var(--shadow-soft);
}

.btn-yellow:hover {
  background: var(--color-yellow-dark);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid rgba(43, 33, 24, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 14px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 64px;
  width: auto;
}

.header-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-row .brand {
  margin-inline: auto;
}

.menu-toggle {
  background: none;
  border: 2px solid var(--color-green);
  border-radius: var(--radius-sm);
  width: 46px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-green-darker);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.header-spacer {
  width: 46px;
  flex-shrink: 0;
}

.main-nav {
  margin-top: 10px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-green-darker);
}

.main-nav a[aria-current="page"] {
  border-bottom-color: var(--color-green);
  color: var(--color-green-darker);
}

.main-nav a.lang-link {
  color: var(--color-terracotta-deep);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-row {
    padding-inline: 4px;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .main-nav li {
    border-top: 1px solid rgba(43, 33, 24, 0.08);
  }

  .main-nav a {
    display: block;
    padding: 14px 6px;
    border-bottom: none;
  }

  .main-nav a[aria-current="page"] {
    color: var(--color-green-darker);
    background: var(--color-cream-soft);
  }

  .brand img {
    height: 52px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: 32px 64px;
}

.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: clamp(520px, 78vh, 700px);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20, 15, 10, 0.88) 0%, rgba(20, 15, 10, 0.62) 42%, rgba(20, 15, 10, 0.22) 68%, rgba(20, 15, 10, 0.05) 100%),
    linear-gradient(0deg, rgba(20, 15, 10, 0.35) 0%, rgba(20, 15, 10, 0) 40%);
}

.hero-badges {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(3px);
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-terracotta-deep);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--color-ink);
  white-space: nowrap;
}

.hero-badge span {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 56px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
}

.hero-title .line-main {
  display: block;
  color: var(--color-white);
  font-weight: 800;
}

.hero-title .line-accent {
  color: var(--color-yellow);
}

.hero-title .line-sub {
  display: block;
  color: var(--color-green);
  font-size: 0.5em;
  font-weight: 700;
  margin-top: 6px;
}

.hero-lede {
  margin-top: 20px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.hero-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-attr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-cream-deep);
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-ink);
  box-shadow: var(--shadow-card);
}

.hero-attr .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-attr .dot svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-attr:nth-child(1) .dot {
  background: var(--color-green);
}

.hero-attr:nth-child(2) .dot {
  background: var(--color-terracotta);
}

.hero-attr:nth-child(3) .dot {
  background: var(--color-blue-deep);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-rating {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
}

.hero-rating .stars {
  color: var(--color-yellow-dark);
  letter-spacing: 1px;
}

.hero-rating strong {
  font-family: var(--font-display);
  color: var(--color-ink);
}

.hero-copy .btn-secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-copy .btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-green-darker);
}

@media (max-width: 860px) {
  .hero-banner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero-badges {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px 20px 0;
  }

  .hero-copy {
    padding: 20px;
  }
}

@media (max-width: 540px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-badge {
    padding: 8px 14px 8px 10px;
  }
}

/* ==========================================================================
   Lo mejor de Azteca — categorías
   ========================================================================== */

.categories {
  padding-block: 70px;
}

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

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1.02;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 15, 10, 0.85) 0%, rgba(20, 15, 10, 0.25) 45%, rgba(20, 15, 10, 0) 70%);
}

.category-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px;
  color: var(--color-white);
}

.category-copy h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.category-copy p {
  margin-top: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.categories-footer {
  margin-top: 44px;
  text-align: center;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .category-copy {
    padding: 14px;
  }

  .category-copy h3 {
    font-size: 0.95rem;
  }

  .category-copy p {
    display: none;
  }
}

/* ==========================================================================
   Divisor decorativo
   ========================================================================== */

.pattern-divider {
  height: 34px;
  background-image: repeating-linear-gradient(
      -45deg,
      var(--color-green) 0 14px,
      var(--color-yellow) 14px 28px,
      var(--color-blue) 28px 42px,
      var(--color-terracotta) 42px 56px
    );
  background-size: 158px 100%;
  opacity: 0.9;
}

.pattern-divider.thin {
  height: 10px;
}

/* ==========================================================================
   Ven a visitarnos
   ========================================================================== */

.visit {
  padding-block: 76px;
  background: var(--color-terracotta-soft);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.visit-copy .eyebrow {
  color: var(--color-terracotta-deep);
}

.visit-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-top: 8px;
}

.visit-copy > p {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--color-ink-soft);
}

.visit-facts {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.visit-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.visit-fact .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.visit-fact .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-terracotta-deep);
  fill: none;
  stroke-width: 2;
}

.visit-fact strong {
  display: block;
  font-family: var(--font-display);
}

.visit-fact span {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.visit-copy .btn {
  margin-top: 30px;
}

.visit-collage {
  position: relative;
  height: 460px;
}

.visit-collage picture {
  position: absolute;
  display: block;
}

.visit-collage picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.visit-collage picture:nth-child(1) {
  width: 56%;
  height: 62%;
  top: 0;
  left: 4%;
  transform: rotate(-4deg);
  z-index: 2;
}

.visit-collage picture:nth-child(2) {
  width: 46%;
  height: 40%;
  top: 4%;
  right: 2%;
  transform: rotate(5deg);
  z-index: 1;
}

.visit-collage picture:nth-child(3) {
  width: 42%;
  height: 42%;
  bottom: 0;
  right: 10%;
  transform: rotate(-3deg);
  z-index: 3;
}

.visit-collage picture:nth-child(4) {
  width: 42%;
  height: 38%;
  bottom: 2%;
  left: 0;
  transform: rotate(4deg);
  z-index: 1;
}

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

  .visit-collage {
    order: -1;
    height: 380px;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .visit-collage {
    height: 300px;
  }
}

/* ==========================================================================
   Contacto + mapa
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.contact-form-panel {
  background: var(--color-blue);
  padding: 76px 8vw;
  display: flex;
  align-items: center;
}

.contact-form-wrap {
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

.contact-form-wrap .eyebrow {
  color: var(--color-blue-deep);
}

.contact-form-wrap h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-top: 8px;
}

.contact-form-wrap > p {
  margin-top: 12px;
  color: var(--color-ink-soft);
}

.btn-whatsapp {
  margin-top: 28px;
  background: #25d366;
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: var(--color-white);
}

.btn-whatsapp:hover {
  background: #1ebe5b;
}

.contact-alt {
  margin-top: 18px;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.contact-alt a {
  font-weight: 700;
  color: var(--color-blue-deep);
}

.contact-map {
  position: relative;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

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

  .contact-map iframe {
    height: 380px;
  }

  .contact-form-panel {
    padding: 56px 6vw;
    order: -1;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-cream);
  padding-block: 60px 26px;
  border-top: 1px solid rgba(43, 33, 24, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 56px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--color-ink-soft);
  max-width: 32ch;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.footer-socials a:hover {
  background: var(--color-green-darker);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-terracotta-deep);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a,
.footer-col address {
  font-style: normal;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--color-green-darker);
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(43, 33, 24, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

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

/* ==========================================================================
   Páginas de contenido simple (stubs)
   ========================================================================== */

.page-hero {
  padding-block: 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero p {
  margin-top: 14px;
  color: var(--color-ink-soft);
  max-width: 60ch;
  margin-inline: auto;
  font-size: 1.05rem;
}

.content-section {
  padding-block: 40px 90px;
}

.content-card {
  max-width: 780px;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-card);
}

.content-card p + p {
  margin-top: 18px;
}

.content-card img {
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

.stat-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.stat-row div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-green-darker);
}

.stat-row div span {
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}

.category-anchor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin-inline: auto;
}

.category-anchor-card {
  scroll-margin-top: 120px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.category-anchor-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-anchor-body {
  padding: 22px 24px 28px;
}

.category-anchor-body h2 {
  font-size: 1.25rem;
}

.category-anchor-body p {
  margin-top: 8px;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

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

.lang-banner {
  background: var(--color-blue-soft);
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
}

.lang-banner a {
  font-weight: 700;
  color: var(--color-blue-deep);
  text-decoration: underline;
}
