/* ===== VARIABLES ===== */
:root {
  --beige: #fcfae6;
  --text: #503525;
  --red: #b7352b;
  --green: #1d7b51;
  --cream: #fffdf0;
  --line: rgba(80, 53, 37, .18);
  --shadow: 0 26px 80px rgba(80, 53, 37, .16);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
}


/* ===== RESET / BASE ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===== TIPOGRAFÍA ===== */
h1, h2, h3 {
  font-family: var(--serif);
  line-height: .9;
  margin: 0;
}
h1 {
  font-size: clamp(3.4rem, 7.2vw, 7.2rem);
  line-height: .88;
  letter-spacing: -.04em;
}
h1 span { display: block; }
h2 {
  font-size: clamp(2.7rem, 5.6vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.035em;
}
h3 { line-height: .96; }
p { font-size: 1rem; line-height: 1.72; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .78rem;
  color: var(--green);
  margin: 0 0 18px;
}




/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 58px);
  min-height: 76px;
  background: rgba(252, 250, 230, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.brand-mark { display: none; }
.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: .9;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: .3s;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--beige);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.8rem;
}
.nav a[href*="las-marianas"] { display: none !important; }


/* ===== SECCIÓN BASE ===== */
.section-pad {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 76px);
}
.section-head {
  max-width: 940px;
  margin: 0 auto 54px;
  text-align: center;
}
.section-head p:last-child {
  max-width: 680px;
  margin: 20px auto 0;
}
.section-actions {
  margin-top: 34px;
  text-align: center;
}


/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: .3s;
}
.btn.primary  { background: var(--red);  color: var(--beige); }
.btn.secondary { border: 1px solid var(--text); }
.btn:hover { transform: translateY(-3px); }
.tag {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(29, 123, 81, .1);
  color: var(--green);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}


/* ===== HERO SLIDER ===== */
.hero-slider {
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  height: 100vh;
  padding: 116px clamp(18px, 5vw, 76px) 72px;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease, transform .65s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.hero-slide .hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(420px, 620px) 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy { max-width: 620px; color: var(--beige); }
.hero-copy h1 { color: var(--beige); }
.hero-copy .eyebrow { color: rgba(252,250,230,.75); }
.hero-copy .hero-text { color: rgba(252,250,230,.88); }
.hero-copy .btn.secondary { border-color: rgba(252,250,230,.6); color: var(--beige); }
.hero-copy .btn.secondary:hover { background: rgba(252,250,230,.15); }
.hero-copy .marianas-eyebrow { color: rgba(252,250,230,.75); }
.hero-copy h1 {
  max-width: 620px;
  margin-bottom: 22px;
}
.hero-text {
  max-width: 520px;
  font-size: clamp(.96rem, 1.15vw, 1.08rem);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  filter: saturate(1.06) contrast(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 35%, transparent 55%);
}
.hero-bg-marianas {
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.hero-bg-marianas::after {
  background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 35%, transparent 55%);
}

/* Ocultar elementos del hero estático dentro del slider */
.hero-slider .hero-visual,
.hero-slider .hero-visual::before,
.hero-slider .hero-food-image,
.hero-slider .hero-product-image,
.hero-slider .floating-note,
.hero-slider .cheese-badge {
  display: none !important;
}

.hero-dots {
  position: absolute;
  z-index: 8;
  right: clamp(18px, 5vw, 76px);
  bottom: 42px;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 42px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: rgba(80, 53, 37, .25);
  cursor: pointer;
  transition: .25s ease;
}
.hero-dot.is-active {
  background: var(--text);
  width: 64px;
}

/* Hero visual (estático / recetas page) */
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 120px;
  position: relative;
}
.italian-line {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--green) 0 33.3%, var(--cream) 33.3% 66.6%, var(--red) 66.6%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.hero-visual {
  min-height: 590px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff9 0 38%, #f1dfb0 39% 60%, transparent 61%);
  filter: blur(.1px);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.05); } }

.hero-food-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.hero-product-image {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(45%, 260px);
  max-height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.24));
}
.product-pack {
  position: relative;
  width: min(360px, 75vw);
  aspect-ratio: 1/1.55;
  border-radius: 34px;
  background: linear-gradient(145deg, #fffef3, #f5e7bd);
  box-shadow: var(--shadow);
  border: 1px solid #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transform: rotate(-4deg);
}
.product-pack::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid var(--red);
  border-radius: 24px;
}
.pack-top   { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--red); }
.pack-center { font-family: var(--serif); font-size: 4rem; line-height: .8; color: var(--text); margin: auto 0; }
.pack-bottom { font-weight: 900; letter-spacing: .1em; color: var(--green); font-size: .85rem; }
.cheese-badge,
.floating-note {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: var(--green);
  color: var(--beige);
  font-weight: 900;
  padding: 13px 18px;
  box-shadow: var(--shadow);
}
.cheese-badge { top: 50px; right: 7%; background: var(--red); font-family: var(--serif); font-size: 1.55rem; }
.note-one { left: 0; bottom: 26%; }
.note-two { right: 0; bottom: 14%; background: var(--text); }


/* ===== MARQUEE ===== */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--text);
  color: var(--beige);
}
.marquee-track {
  display: flex;
  gap: 38px;
  width: max-content;
  animation: marquee 25s linear infinite;
  padding: 20px 0;
}
.marquee span {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  white-space: nowrap;
}
.marquee span::after { content: "•"; color: var(--red); margin-left: 38px; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ===== PRODUCTOS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
  transition: .35s;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.product-brand {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-brand--foggia   { color: var(--red); }
.product-brand--marianas { color: #1a5fa8; }
.product-card h3 {
  font-size: clamp(2rem, 2.7vw, 3rem);
  line-height: .95;
  margin: 0 0 12px;
  min-height: 2em;
}
.product-card p {
  font-size: .95rem;
  margin: 0;
  min-height: auto;
}
.product-card > p:last-of-type,
.product-card .tag { display: none; }
.product-card .mini-pack { width: 68%; margin: 10px auto 28px; transform: rotate(-2deg) scale(.8); }

.product-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf0;
  border-radius: 24px;
  overflow: hidden;
}
.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-photo-card {
  aspect-ratio: 1 / 1;
  margin: -22px -22px 20px;
  padding: 0;
  flex: 0 0 auto;
  background: #f0f2f7;
  box-shadow: none;
  border: none;
  border-radius: 28px 28px 0 0;
}
.product-photo-card img {
  object-fit: cover;
  transform: none;
  background: transparent;
  border-radius: 28px 28px 0 0;
}
.product-photo-modal {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: min(42vw, 420px);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.product-photo-modal img {
  transform: none;
  object-fit: contain;
  object-position: top center;
  padding: 0;
}
.product-modal-media {
  position: relative;
  display: flex;
  align-items: top;
  justify-content: center;
  background: #fffdf0;
  border-radius: 28px;
  min-height: 520px;
}
.modal-product-gallery {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.modal-product-gallery img {
  display: block;
  height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 -4px 20px rgba(0,0,0,.55));
  pointer-events: auto;
}
.pres-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
}
.btn-pres {
  flex: 1 1 auto;
  padding: 10px 14px;
  border: 1.5px solid var(--text);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-pres:hover {
  background: var(--text);
  color: var(--beige);
}
.is-marianas-product .btn-pres {
  border-color: var(--text);
}
.quick {
  position: relative;
  right: auto;
  bottom: auto;
  margin-top: auto;
  align-self: flex-end;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  color: var(--beige);
  font-size: 1.4rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.product-card.is-marianas-product .quick { background: var(--text); color: var(--beige); }


/* ===== QUICKVIEW / MODAL PRODUCTO ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 13, 9, .58);
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(.96);
  width: min(1040px, 92vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--beige);
  border-radius: 34px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, .28);
  animation: modalIn .32s ease forwards;
}
@keyframes modalIn { to { transform: translate(-50%, -50%) scale(1); } }
.modal-close {
  position: sticky;
  top: 18px;
  margin-left: auto;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  color: var(--beige);
  font-size: 1.7rem;
  cursor: pointer;
}
.modal-content {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  padding: 22px 38px 42px;
}
.modal-content.product-layout { grid-template-columns: .9fr 1.1fr; }
.modal-content.recipe-layout  { grid-template-columns: .9fr 1.1fr; }
.modal-content .product-pack  { margin: auto; transform: rotate(-3deg); }
.modal-content.product-layout .modal-info > .tag { display: none; }
.modal-brand-logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  object-fit: contain;
}
.modal-brand-logo[alt="Las Marianas"] {
  height: 52px;
}
.modal-info h2 { font-size: clamp(3.2rem, 7vw, 6.5rem); }
.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.info-list div,
.nutrition {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--cream);
}
.info-list strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.nutrition h3          { font-size: 2.5rem; margin-bottom: 12px; }
.nutrition-portion     { font-size: .82rem; color: var(--green); margin-bottom: 10px; font-weight: 600; }
.nutrition-row         { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; font-weight: 700; }


/* ===== HISTORIA / STORY ===== */
.story {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 24px;
  padding-top: clamp(20px, 3vw, 40px);
}
.story-card,
.story-image,
.distribution-inner {
  border-radius: 38px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 66px);
  box-shadow: var(--shadow);
}
.story-card p { max-width: 720px; }
.story-image {
  min-height: 540px;
  background:
    linear-gradient(rgba(80, 53, 37, .28), rgba(80, 53, 37, .58)),
    url('img/banner-foggia-recetas.webp') center / cover no-repeat;
  color: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.story-image span {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #fff7d7;
}
.story-image h3 {
  font-size: clamp(3rem, 6vw, 6rem);
  max-width: 520px;
  color: var(--beige);
}


/* ===== CALIDAD ===== */
.quality { padding-top: 30px; }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quality-item {
  border-radius: 30px;
  border: 1px solid var(--line);
  padding: 32px;
  background: transparent;
}
.quality-item .icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--beige);
  font-weight: 900;
  font-size: 1.55rem;
  font-family: var(--sans);
  margin-bottom: 40px;
}
.quality-item:nth-child(1) .icon { background: var(--green); }
.quality-item:nth-child(2) .icon { background: var(--red); }
.quality-item:nth-child(3) .icon { background: var(--text); }
.quality-item h3 { font-size: 2.5rem; }


/* ===== DISTRIBUCIÓN ===== */
.distribution {
  padding-top: clamp(20px, 3vw, 40px);
}
.distribution-inner {
  text-align: center;
}
.distribution-inner p {
  max-width: 720px;
  margin: 18px auto 28px;
}
.contact-strip {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-strip > * {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  font-weight: 700;
}
.distribution-btn { margin-top: 10px; }


/* ===== BANNER FÁBRICA ===== */
.factory-banner {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin: 0 clamp(18px, 5vw, 76px);
  border-radius: 42px;
  display: flex;
  align-items: flex-start;
  padding: clamp(42px, 7vw, 90px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.factory-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .78;
}
.factory-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(80,53,37,.66), rgba(80,53,37,.32) 50%, rgba(80,53,37,.64));
}
.factory-banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}
.factory-banner-content .eyebrow { color: #fff1cf; }
.factory-banner-content h2 { color: #fff; max-width: 740px; }
.factory-banner-content p  { max-width: 620px; color: #fff; font-size: 1.05rem; }


/* ===== LAS MARIANAS ===== */
.subbrand { padding-top: 30px; background: #fff; }
.subbrand-card {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 28px;
  align-items: center;
  border-radius: 42px;
  padding: clamp(30px, 5vw, 72px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.subbrand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(183,53,43,.18), transparent 24%),
    radial-gradient(circle at 10% 90%, rgba(29,123,81,.14), transparent 22%);
  pointer-events: none;
  opacity: .38;
}
.subbrand-card > * { position: relative; }
.subbrand-seal {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: var(--beige);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px;
  border: 12px solid rgba(252, 250, 230, .7);
  box-shadow: 0 26px 70px rgba(80, 53, 37, .22);
  transform: rotate(-4deg);
}
.subbrand-seal span   { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4.5rem); line-height: .75; }
.subbrand-seal strong { font-family: var(--serif); font-size: clamp(3rem, 7vw, 7rem);   line-height: .75; }
.subbrand-seal small  { text-transform: uppercase; letter-spacing: .16em; font-weight: 900; color: #fff3d6; }
.subbrand-products {
  display: grid;
  gap: 20px;
  align-content: center;
}
.subbrand-products img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 18px 25px rgba(31,63,122,.14));
}
.marianas-title-row       { display: block; }
.las-marianas-logo,
.marianas-title-row img   { display: none; }
.marianas-eyebrow         { color: #1f3f7a; }
.marianas-btn             { background: #1f3f7a; border-color: #1f3f7a; color: #fff; }
.marianas-btn:hover       { background: #153066; border-color: #153066; }
.las-marianas-btn         { background: #1f3f7a; color: #fff; border-color: #1f3f7a; }
.las-marianas-btn:hover   { background: #153066; border-color: #153066; }


/* ===== RECETAS ===== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.recipe-card {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--cream);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(80, 53, 37, .08);
  cursor: pointer;
  transition: .32s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.recipe-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.recipe-card:hover .recipe-image img { transform: scale(1.04); }
.recipe-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.recipe-body h3 { font-size: 2.45rem; }
.recipe-body .btn { margin-top: auto; }
.recipe-meta    { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(80, 53, 37, .08);
  font-weight: 900;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.recipe-modal-art {
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  display: block;
}
.recipe-modal-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-steps { display: grid; gap: 10px; margin-top: 22px; }
.recipe-steps li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  line-height: 1.55;
}
.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.ingredient-list li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(29, 123, 81, .08);
  font-weight: 700;
}

/* Página de recetas */
.recipes-page { padding-top: 130px; min-height: 100vh; position: relative; }
.page-head h1 { font-size: clamp(4rem, 10vw, 9rem); }


/* ===== FOOTER ===== */
.footer {
  border-top: 3px solid var(--green);
  background: var(--text);
  color: var(--beige);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding: 64px clamp(24px, 6vw, 88px) 52px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-bottom {
  border-top: 1px solid rgba(252,250,230,.12);
  padding: 20px clamp(24px, 6vw, 88px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(252,250,230,.45);
}
.footer-bottom a { color: rgba(252,250,230,.55); text-decoration: none; font-weight: 500; letter-spacing: .04em; transition: color .2s; }
.footer-bottom a:hover { color: var(--beige); }
.footer-up { white-space: nowrap; }
.footer-logo { width: 160px; height: auto; margin-bottom: 20px; }
.footer-tagline { margin: 0; color: rgba(252,250,230,.6); font-size: .95rem; line-height: 1.65; }
.footer-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: rgba(252,250,230,.7);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 400;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--beige); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact p { margin: 0; color: rgba(252,250,230,.7); font-size: .92rem; line-height: 1.5; }
.footer-contact a { color: rgba(252,250,230,.7); text-decoration: none; font-weight: 500; transition: color .2s; }
.footer-contact a:hover { color: var(--beige); }
.footer-hours { color: rgba(252,250,230,.45) !important; font-size: .83rem !important; }


/* ===== ANIMACIONES / UTILIDADES ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #5a3b2e;
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 999;
}
#backToTop.show { opacity: 1; pointer-events: auto; }


/* ===== MEDIA QUERIES ===== */
@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: var(--header-h, 79px);
    left: 0;
    right: 0;
    display: grid;
    gap: 20px;
    padding: 24px 18px;
    border-radius: 0 0 24px 24px;
    background: var(--cream);
    box-shadow: var(--shadow);
    text-align: center;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
  }
  .nav a { justify-self: center; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle  { display: block; }

  .hero-slide {
    padding: 104px 18px 76px;
  }
  .hero-slide .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-bg::after,
  .hero-bg-marianas::after {
    background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
  }
  .hero-bg-marianas {
    background-position: center;
    background-size: cover;
  }
  .hero-visual { min-height: 520px; }

  .product-grid,
  .quality-grid { grid-template-columns: 1fr 1fr; }
  .product-photo-card { aspect-ratio: 1 / 1; }

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

  .story,
  .subbrand-card,
  .modal-content,
  .modal-content.product-layout,
  .modal-content.recipe-layout { grid-template-columns: 1fr; }

  .subbrand-seal       { max-width: 420px; margin: auto; }
  .subbrand-products   { grid-template-columns: 1fr 1fr; }
  .subbrand-products img { max-height: 160px; }
  .recipe-modal-art    { min-height: 320px; }
  .product-modal-media { min-height: 360px; }
  .product-photo-modal { aspect-ratio: 1 / 1; max-width: 100%; }
  .modal-product-gallery img { height: 170px; }
  .ingredient-list     { grid-template-columns: 1fr; }

  .factory-banner { margin: 0 18px; min-height: 520px; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 48px clamp(24px,5vw,48px) 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(3.15rem, 17vw, 4.8rem); }
  h2 { font-size: clamp(2.55rem, 13vw, 4rem); }

  .header    { padding: 14px 18px; }
  .brand-logo { height: 30px; }
  .brand-text { font-size: 1.7rem; }

  .hero { padding-top: 110px; }
  .hero-slide { padding: 96px 18px 72px; }
  .hero-dots  { right: 18px; bottom: 28px; }
  .hero-visual { min-height: 440px; }
  .floating-note { display: none; }
  .cheese-badge  { right: 0; }
  .hero-product-image { width: 45%; bottom: 5%; }

  .product-grid,
  .quality-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 390px; }
  .product-photo-card { aspect-ratio: 1 / 1; }
  .product-photo-modal { aspect-ratio: 1 / 1; max-width: 100%; }
  .product-modal-media { min-height: 300px; }
  .modal-product-gallery img { height: 120px; }

  .story-image  { min-height: 390px; }
  .contact-strip { display: grid; }

  .recipe-grid    { grid-template-columns: 1fr; }
  .recipe-card    { min-height: auto; }
  .recipe-image   { height: 170px; }
  .recipe-body h3 { font-size: 2.1rem; }
  .page-head h1   { font-size: clamp(3.4rem, 17vw, 5rem); }

  .modal-panel  { width: 96vw; border-radius: 26px; }
  .modal-content { padding: 8px 18px 30px; }
  .info-list    { grid-template-columns: 1fr; }

  .footer-top  { padding: 36px 20px 32px; }
  .footer-logo { width: 130px; }

  .factory-banner { min-height: 480px; padding: 34px 24px; border-radius: 30px; }
}
