/* =============================================================
   LUSITANA — Carnicería Premium · Aberdeen Angus
   Editorial quiet-luxury stylesheet — brand manual integrado
   ============================================================= */

/* =============================================================
   1. Tokens — paleta oficial del manual de marca
   ============================================================= */
:root {
  /* Paleta oficial */
  --crema:       #FDFBE8;  /* fondo principal */
  --crema-2:     #F5F1DE;  /* sombreado sutil sobre crema */
  --navy:        #21344E;  /* color primario de marca */
  --terracota:   #B76944;  /* acento cálido */
  --carbon:      #1D1D1B;  /* negro de marca */
  --line:        rgba(29, 29, 27, 0.12);
  --line-soft:   rgba(29, 29, 27, 0.07);

  --bg:          var(--crema);
  --ink:         var(--carbon);
  --ink-soft:    var(--navy);
  --ink-mute:    rgba(29, 29, 27, 0.58);
  --accent:      var(--terracota);

  --whatsapp:    #25D366;
  --whatsapp-d:  #1DA851;

  /* Tipografía — ver nota en LEEME.md sobre Plantagenet Cherokee / Geographica */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans:  "Outfit", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section-pad: clamp(3.2rem, 7vw, 6rem);
  --radius: 2px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, picture { display: block; max-width: 100%; }
picture { width: 100%; height: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-weight: 400; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--crema); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--carbon); color: var(--crema);
  z-index: 9999; border-radius: 2px; font-size: .85rem; letter-spacing: .04em;
}
.skip-link:focus { top: 1rem; }

.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;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.4rem;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* =============================================================
   4. Typography
   ============================================================= */
.display-xl {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 340;
  letter-spacing: -0.01em;
}
.display-lg {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 340;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.display-md {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
}
em { font-style: italic; }
.lede {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-mute);
  max-width: 36ch;
  line-height: 1.75;
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 3px;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out);
  white-space: nowrap;
}
.btn--dark { color: var(--navy); border-color: var(--navy); }
.btn--dark:hover { background: var(--navy); color: var(--crema); }
.btn--light { color: var(--crema); border-color: rgba(253, 251, 232, 0.7); }
.btn--light:hover { background: var(--crema); color: var(--navy); border-color: var(--crema); }
.btn--ghost-nav { padding: .6rem 1.4rem; font-size: .7rem; }

/* WhatsApp — verde de marca, según pedido explícito */
.btn--whatsapp {
  color: var(--whatsapp-d);
  border-color: var(--whatsapp);
}
.btn--whatsapp:hover { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }

/* --- Fichas fotográficas (self-healing: si falta el archivo, textura discreta) --- */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--crema-2);
  isolation: isolate;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter .8s ease;
  position: relative;
  z-index: 1;
}
.photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(33,52,78,0.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(29,29,27,0.05) 0 1px, transparent 1px 26px),
    linear-gradient(160deg, #F5F1DE 0%, #EAE0C4 100%);
  z-index: 0;
}
.photo::after {
  content: attr(data-label);
  position: absolute;
  left: 1.4rem; bottom: 1.3rem;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 1;
  opacity: .85;
}
.photo.has-image::before { opacity: 0; transition: opacity .6s ease; }
.photo.has-image::after { display: none; }
.photo--framed { border: 1px solid var(--line); }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding .5s var(--ease-out), background-color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.navbar__mark { display: inline-flex; align-items: center; }
.navbar__mark img { height: clamp(33px, 3.9vw, 44px); width: auto; }
.navbar__links {
  display: none;
  gap: clamp(1.4rem, 2.4vw, 2.6rem);
}
.navbar__links a {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crema);
  position: relative;
  padding-bottom: 4px;
  transition: color .5s var(--ease-out);
}
.navbar__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .45s var(--ease-out);
}
.navbar__links a:hover::after { right: 0; }
.navbar__cta { display: none; color: var(--crema); border-color: rgba(253,251,232,0.7); }
.navbar__cta:hover { background: var(--crema); color: var(--navy); border-color: var(--crema); }
.navbar__toggle {
  position: relative;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--crema);
  width: 44px;
  height: 44px;
  margin: -.4rem;
}
.navbar__toggle svg { width: 22px; height: 22px; }
.navbar__toggle-line {
  transform-origin: center;
  transition: transform .35s var(--ease-out), opacity .25s ease;
}
.navbar__toggle.is-open .navbar__toggle-line--1 { transform: translateY(6px) rotate(45deg); }
.navbar__toggle.is-open .navbar__toggle-line--2 { opacity: 0; }
.navbar__toggle.is-open .navbar__toggle-line--3 { transform: translateY(-6px) rotate(-45deg); }

/* Estado con scroll: fondo oscuro (no claro) para que el logo crema siga legible */
.navbar.is-scrolled {
  background: rgba(29, 29, 27, 0.86);
  backdrop-filter: blur(10px);
  padding: .95rem 0;
  border-bottom: 1px solid rgba(253,251,232,0.1);
}

.navbar__panel {
  position: fixed; inset: 0;
  background: var(--carbon);
  z-index: 99;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility 0s linear .5s;
}
.navbar__panel.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out), visibility 0s; }
.navbar__panel a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--crema);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(253,251,232,0.12);
}
.navbar__panel .btn { margin-top: 2rem; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--carbon);
}
.hero__bg { position: absolute; inset: -6% -2%; width: 104%; height: 112%; will-change: transform; }
.hero__bg .photo { width: 100%; height: 100%; }
.hero__bg img { filter: brightness(.68) saturate(1.02); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,29,27,0.4) 0%, rgba(29,29,27,0.25) 40%, rgba(29,29,27,0.6) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--crema);
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logotipo central + lockup "Carnicería" / "Aberdeen Angus" */
.hero__lockup {
  position: relative;
  width: min(90vw, 560px);
  padding: clamp(.9rem, 3vw, 1.6rem) 0;
}
.hero__logo-h1 { line-height: 0; }
.hero__logo { width: 100%; height: auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,0.25)); }
.hero__tag {
  position: absolute;
  font-size: clamp(.62rem, 1.1vw, .8rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(253,251,232,0.86);
  white-space: nowrap;
}
.hero__tag--top {
  top: 0; left: 14%;
}
.hero__tag--bottom {
  bottom: 0; right: 14%;
}

.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.6rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(253,251,232,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 34px;
  background: rgba(253,251,232,0.5);
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--crema);
  animation: scrollLine 2.4s var(--ease-soft) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* --- Section shell --- */
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.6rem); }

/* --- Editorial split (Carnicería / Hamburguesas) --- */
.editorial {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.editorial__figure { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.editorial__figure--natural {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.editorial__figure--natural img { width: 100%; height: auto; object-fit: contain; }
.editorial__body .btn { margin-top: 2.2rem; }
.editorial__body p.lede { margin-top: 1.4rem; white-space: pre-line; }
.editorial--reverse .editorial__figure { order: 2; }
.editorial--reverse .editorial__body { order: 1; }

/* --- Fotografía única a modo de pausa editorial --- */
.showcase { text-align: center; }
.showcase .eyebrow { margin-bottom: 2.2rem; }
.showcase__figure {
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: auto;
}
.showcase__figure img { width: 100%; height: auto; object-fit: contain; }

/* --- Fotografía a página completa (sin container, borde a borde) --- */
.full-bleed { width: 100%; line-height: 0; position: relative; }
.full-bleed img { width: 100%; height: auto; display: block; }

/* Texto superpuesto sobre la zona con más luz del pedestal (evitando la sombra
   del lado izquierdo). Coordenadas calculadas sobre la captura anotada por el
   cliente: aprox. 32%-69% del ancho y 54%-94% del alto de la fotografía. */
.full-bleed__overlay {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translateX(-50%);
  width: min(37%, 330px);
  text-align: center;
  line-height: 1.05;
}
.full-bleed__overlay .eyebrow { margin-bottom: 1rem; }
.full-bleed__overlay-title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.9rem, 5.4vw, 3.3rem);
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.full-bleed__overlay-text {
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-mute);
  white-space: pre-line;
}

@media (max-width: 640px) {
  .full-bleed { padding-bottom: 450px; background: var(--bg); }
  .full-bleed__overlay { width: min(52%, 380px); }
  .full-bleed__overlay-title {
    font-size: clamp(1.35rem, 6.6vw, 1.9rem);
    margin-bottom: .65rem;
  }
  .full-bleed__overlay-text {
    font-size: clamp(.86rem, 3.8vw, 1rem);
    line-height: 1.4;
  }
  .full-bleed__overlay .eyebrow { margin-bottom: .55rem; font-size: .62rem; }
}

@media (max-width: 340px) {
  .full-bleed { padding-bottom: 580px; }
}

@media (max-width: 300px) {
  .full-bleed { padding-bottom: 660px; }
}

/* --- Video en su tamaño/proporción original, texto debajo --- */
.video-frame {
  position: relative;
  overflow: hidden;
  background: var(--crema-2);
  isolation: isolate;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-frame__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(29, 29, 27, 0.55);
  color: var(--crema);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease, transform .3s ease;
  z-index: 2;
}
.video-frame__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-frame__play:hover { background: rgba(29, 29, 27, 0.75); transform: scale(1.05); }
.video-frame__play[hidden] { display: none; }

.video-showcase__frame {
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: auto;
}
.video-showcase__frame video { width: 100%; height: auto; object-fit: contain; }
.video-showcase__body {
  max-width: 62ch;
  margin: clamp(2.2rem, 5vw, 3.5rem) auto 0;
  text-align: center;
}
.video-showcase__body .lede { margin-inline: auto; max-width: 58ch; }

/* --- Nuestra promesa de valor (grid de valores) --- */
.values__head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.values__grid {
  display: grid;
  gap: clamp(2.2rem, 4vw, 2.6rem);
  grid-template-columns: repeat(2, 1fr);
}
.value {
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.value__icon {
  height: 40px;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: flex-end;
}
.value__icon img { height: 100%; width: auto; object-fit: contain; }
.value__title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--navy);
  margin-bottom: .5rem;
}
.value__text { font-size: .88rem; color: var(--ink-mute); max-width: 28ch; }

/* --- Franja de cita --- */
.statement { background: var(--navy); padding-block: clamp(2.6rem, 6vw, 4.5rem); text-align: center; }
.statement__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: 1.22;
  max-width: 20ch;
  margin-inline: auto;
  color: var(--crema);
}
.statement__mark { color: var(--terracota); }

/* --- CTA final --- */
.closing { text-align: center; }
.closing .display-lg { margin-bottom: 1.4rem; }
.closing .lede { margin-inline: auto; }
.closing__actions { margin-top: 2.6rem; display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }

/* --- Footer --- */
.footer { background: var(--carbon); color: var(--crema); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.2rem; }
.footer__grid {
  display: grid;
  gap: 2.6rem;
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
  border-bottom: 1px solid rgba(253,251,232,0.14);
}
.footer__mark img { height: 34px; width: auto; }
.footer__tagline { margin-top: .9rem; font-size: .82rem; color: rgba(253,251,232,0.6); max-width: 28ch; }
.footer__col h4 {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(253,251,232,0.55); margin-bottom: 1rem; font-weight: 400;
}
.footer__col li { margin-bottom: .55rem; font-size: .9rem; }
.footer__col a { transition: opacity .4s var(--ease-out), color .4s var(--ease-out); opacity: .88; }
.footer__col a:hover { opacity: 1; color: var(--terracota); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.8rem; font-size: .74rem; letter-spacing: .04em; color: rgba(253,251,232,0.45);
}

/* --- WhatsApp flotante --- */
.wa-float {
  position: fixed;
  right: clamp(1.1rem, 3vw, 1.8rem);
  bottom: clamp(1.1rem, 3vw, 1.8rem);
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(29,29,27,0.28);
  transition: transform .4s var(--ease-out), background-color .4s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px); background: var(--whatsapp-d); }
.wa-float svg { width: 24px; height: 24px; }

/* =============================================================
   7. Responsive
   ============================================================= */
@media (min-width: 640px) {
  .values__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .editorial { grid-template-columns: 1.05fr .95fr; }
  .footer__grid { grid-template-columns: 1.3fr repeat(3, .9fr); }
}
@media (min-width: 960px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: inline-flex; }
  .navbar__toggle { display: none; }
}
@media (min-width: 1280px) {
  .editorial { grid-template-columns: 1.2fr .8fr; }
}

/* Hero lockup: en pantallas pequeñas, las etiquetas se acercan al logo */
@media (max-width: 480px) {
  .hero__tag { font-size: .58rem; letter-spacing: .22em; }
  .hero__tag--top { left: 4%; }
  .hero__tag--bottom { right: 4%; }
}

/* =============================================================
   8. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll-line::after { animation: none; }
  .hero__bg { transform: none !important; }
}
