/* =====================================================
   LA LEONA · Antojitos Mexicanos
   Frontend premium artesanal — basado en home.png
   ===================================================== */

:root {
  --wine:        #430d0d;
  --wine-deep:   #2b0808;
  --wine-soft:   #4d1010;
  --nav:         #1c0e05;
  --nav-2:       #2a1509;
  --cream:       #faf3e3;
  --cream-ink:   #3a2414;
  --gold:        #d9a441;
  --gold-light:  #eec671;
  --gold-deep:   #b07d2b;
  --text:        #f3e6d2;
  --text-soft:   #d8c1a4;
  --red-accent:  #9c1410;
  --wa:          #1fa855;

  --serif:   'Cormorant Garamond', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans:    'Poppins', system-ui, sans-serif;

  --maxw: 1400px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Fondo global: patrón floral + capa oscura, visible en toda la página */
  background:
    linear-gradient(rgba(38, 9, 9, 0.20), rgba(38, 9, 9, 0.80)),
    url('../img/pattern.webp');
  background-size: 460px;
  background-color: var(--wine);
}

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

.container {
  width: min(var(--maxw), 100% - 3rem);
  margin-inline: auto;
}

/* Ancla bajo navbar sticky */
#menu, #contacto, #inicio { scroll-margin-top: 90px; }

/* =====================================================
   INTRO
   ===================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(ellipse at center, #2a0c0a 0%, #140605 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease, visibility .7s;
}
.intro.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.intro.off { display: none; }
.intro-inner { text-align: center; }
.intro-logo {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin-inline: auto;
  border: 2px solid rgba(217, 164, 65, .6);
  box-shadow: 0 0 60px rgba(217, 164, 65, .3);
  opacity: 0; transform: scale(.65);
  animation: introLogo 1s cubic-bezier(.2,.8,.3,1) .15s forwards;
}
.intro-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  letter-spacing: .22em;
  color: var(--cream);
  margin-top: 1.1rem;
  opacity: 0; transform: translateY(14px);
  animation: introUp .8s ease .5s forwards;
}
.intro-rule {
  display: flex; align-items: center; justify-content: center;
  gap: .8rem; margin: .6rem auto; color: var(--gold);
  opacity: 0; animation: introFade .8s ease .8s forwards;
}
.intro-rule span { display: block; width: 52px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.intro-rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.intro-rule i { font-style: normal; font-size: .8rem; }
.intro-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
  letter-spacing: .08em;
  opacity: 0; animation: introFade .8s ease 1s forwards;
}
@keyframes introLogo { to { opacity: 1; transform: scale(1); } }
@keyframes introUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes introFade { to { opacity: 1; } }

/* =====================================================
   HERO (banner)
   ===================================================== */
.hero {
  width: 100%;
  background: var(--wine-deep);
  line-height: 0;
}
.hero img { width: 100%; height: auto; }

/* =====================================================
   NAVBAR ornamental (sticky)
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--nav-2), var(--nav));
  border-top: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
  transition: padding .3s ease, box-shadow .3s ease;
}
/* Onda dorada superior */
.nav-wave {
  display: block;
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 6px,
      rgba(217, 164, 65, .0) 6px 8px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q10 -2 20 4 T40 4' fill='none' stroke='%23d9a441' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x center;
  opacity: .9;
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: .5rem 1.25rem;
  transition: padding .3s ease;
}
.nav-orn {
  width: clamp(90px, 14vw, 155px);
  height: auto;
  flex: 0 0 auto;
}
.nav-orn-r { transform: scaleX(-1); }
.nav-orn-l { margin-right: auto; }
.nav-orn-r { margin-left: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  position: relative;
  padding: .2rem .1rem;
  transition: color .25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--gold-light);
  transition: right .3s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { right: 0; }
.nav-flower { color: var(--gold); font-size: .8rem; font-style: normal; line-height: 1; }

.nav-flourish {
  display: block;
  width: clamp(120px, 18vw, 170px);
  height: auto;
  margin: -2px auto .2rem;
  opacity: .95;
}

/* Estado compacto al hacer scroll */
.navbar.scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, .6); }
.navbar.scrolled .nav-inner { padding-top: .2rem; padding-bottom: .2rem; }
.navbar.scrolled .nav-orn { width: clamp(80px, 11vw, 120px); }
.navbar.scrolled .nav-flourish { display: none; }
.navbar.scrolled .nav-links a { font-size: 1.0rem; }

/* =====================================================
   ENCABEZADO DE SECCIÓN
   ===================================================== */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--red-accent);
  text-align: center;
}
.eyebrow.gold { color: var(--gold-light); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--cream-ink);
  text-align: center;
  margin-top: .35rem;
}
.section-title.light {
  color: var(--gold-light);
  font-style: normal;
}

/* Banda "Menú" en crema con bordes ondulados */
.menu-intro {
  position: relative;
  background: var(--cream);
  padding: 3.2rem 1rem 3.4rem;
  margin-block: 0;
}
.title-mini {
  text-align: center;
  color: var(--red-accent);
  font-size: .9rem;
  margin-top: .5rem;
  font-style: normal;
}
.scallop {
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  background-repeat: repeat-x;
  background-size: 120px 18px;
}
.scallop-top {
  top: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H120 V6 C100 20 80 20 60 8 C40 -4 20 20 0 6 Z' fill='%231c0e05'/%3E%3C/svg%3E");
}
.scallop-bottom {
  bottom: -1px;
  transform: scaleY(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H120 V6 C100 20 80 20 60 8 C40 -4 20 20 0 6 Z' fill='%23faf3e3'/%3E%3C/svg%3E");
}

/* =====================================================
   CATEGORÍAS Y SEPARADOR MESTIZA
   ===================================================== */
#menu > .container { padding-top: 3.5rem; }

.cat { margin-bottom: clamp(4.5rem, 8vw, 8.5rem); }
.cat:last-child { margin-bottom: 3rem; }

.cat-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold-light);
  text-align: center;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.cat-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.1rem auto 2.8rem;
  max-width: 900px;
}
.cat-sep-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 40%, var(--gold));
}
.cat-sep .cat-sep-line:last-child {
  background: linear-gradient(90deg, var(--gold), var(--gold-deep) 60%, transparent);
}
.cat-sep-band {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 .4rem;
}
.cat-sep-band img { width: clamp(150px, 22vw, 230px); height: auto; }
.cat-sep-band i {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  color: var(--gold-light);
  font-style: normal;
  font-size: .7rem;
  text-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

/* =====================================================
   PRODUCTOS (bloque horizontal integrado)
   ===================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem 3.2rem;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(140px, 30%, 215px);
  gap: 1.4rem;
  align-items: center;
  min-width: 0;
}
.product-info { min-width: 0; }

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(217, 164, 65, .55);
  padding: .5rem .95rem;
  position: relative;
}
.product-head::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(217, 164, 65, .16);
  pointer-events: none;
}
.product-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.15;
}
.product-price {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--gold-light);
  white-space: nowrap;
}
/* Posiciona la descripción bajo el marco del nombre.
   La tipografía/estilos del contenido viven en assets/css/description.css */
.product-desc {
  margin-top: .7rem;
}

.product-media {
  align-self: baseline;
}
.product-media img,
.product-noimg {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--gold-deep);
  outline: 1px solid rgba(217, 164, 65, .25);
  outline-offset: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .4s ease;
}
.product:hover .product-media img { transform: scale(1.04); }
.product-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(30, 9, 9, .5), rgba(30, 9, 9, .5)),
    url('../img/pattern.webp') center / 200px;
}
.product-noimg img {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 164, 65, .55);
  aspect-ratio: auto;
  object-fit: contain;
  outline: none; box-shadow: none;
}

/* =====================================================
   CONTACTO
   ===================================================== */
.contact { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); }
.section-head { margin-bottom: 3rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.info-ic {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(217, 164, 65, .4);
  border-radius: 50%;
  color: var(--gold-light);
}
.info-ic svg { width: 20px; height: 20px; }
.info-row h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gold-light);
  line-height: 1.2;
}
.info-row p { color: var(--text-soft); font-size: .95rem; }
.info-row a { color: var(--text-soft); text-decoration: none; transition: color .25s; }
.info-row a:hover { color: var(--gold-light); }

.pay-line { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1.6rem; }
.pay-line span {
  font-size: .78rem; font-weight: 500;
  padding: .32rem .85rem;
  border: 1px solid rgba(217, 164, 65, .35);
  border-radius: 999px;
  color: var(--gold-light);
}

.socials { display: flex; gap: 1rem; margin-top: 1.8rem; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--text-soft);
  border: 1px solid rgba(217, 164, 65, .3);
  border-radius: 50%;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.socials a svg { width: 20px; height: 20px; }
.socials a:hover { color: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }

.delivery-line { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem; }
.delivery-line a {
  color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: .9rem;
  border-bottom: 1px solid rgba(217, 164, 65, .35); padding-bottom: 2px;
  transition: color .25s;
}
.delivery-line a:hover { color: var(--gold-light); }

.contact-map {
  border: 2px solid var(--gold-deep);
  outline: 1px solid rgba(217, 164, 65, .25);
  outline-offset: 3px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.contact-map iframe { width: 100%; height: 460px; border: 0; display: block; filter: saturate(.92); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  position: relative;
  background:
    linear-gradient(rgba(20, 5, 5, .90), rgba(20, 5, 5, .90)),
    url('../img/pattern.webp');
  background-size: 460px;
  padding-top: 2.5rem;
  border-top: 2px solid var(--gold-deep);
}
.footer-top {
  display: flex; align-items: center; justify-content: center;
  max-width: 760px; margin: 0 auto 2.5rem;
  padding-inline: 1.5rem;
}
.footer-top .cat-sep-band img { width: 210px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-logo {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid rgba(217, 164, 65, .55);
  margin-bottom: 1rem;
}
.footer-col p { color: var(--text-soft); font-size: .9rem; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .65rem; }
.footer-col ul a { color: var(--text-soft); text-decoration: none; font-size: .92rem; transition: color .25s; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-info li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-soft); font-size: .88rem; }
.footer-info svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; margin-top: 3px; }

.footer-bottom { border-top: 1px solid rgba(217, 164, 65, .18); }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: space-between; align-items: center;
  padding-block: 1.1rem;
}
.footer-bottom p { color: rgba(216, 193, 164, .7); font-size: .8rem; }
.credit { color: var(--gold); font-size: .8rem; text-decoration: none; transition: color .25s; }
.credit:hover { color: var(--gold-light); }

/* =====================================================
   ANIMACIONES SUAVES
   ===================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .contact-map iframe { height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .products { gap: 1.8rem 2rem; }
  .nav-orn { display: none; }
  .nav-inner { justify-content: center; }
}

@media (max-width: 640px) {
  .products { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .product { grid-template-columns: minmax(0, 1fr) clamp(104px, 34%, 150px); gap: 1rem; }
  .product-desc { font-size: .84rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col p { margin-inline: auto; }
  .footer-info li { justify-content: center; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero img, .product:hover .product-media img { transform: none; }
}
