/* =========================================================
   Santa Carne · estilos del sitio público
   Paleta estricta blanco / negro / grises (el logo chico de la barra es el único color).
   Tipografías: Montserrat (logotipo en texto), Comfortaa (títulos) y Nunito (texto).
   ========================================================= */

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Nunito, sans-serif;
  font-weight: 300;
  line-height: 1.8;
  color: #111;
  background: #fff;
}
h1, h2, h3 { font-family: Comfortaa, sans-serif; font-weight: 300; letter-spacing: .14em; }

/* Etiqueta chica en mayúsculas sobre los títulos */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: #888;
}

/* Secciones alternadas negro / blanco */
section { padding: 150px 6%; }
.dark { background: #000; color: #fff; }
.light { background: #fff; color: #111; }

/* Encabezado de sección */
.head { text-align: center; margin-bottom: 80px; }
.head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: 14px; }
.lead { max-width: 560px; margin: 10px auto 0; color: #999; }

/* Línea fina decorativa bajo los títulos */
.divider { display: flex; justify-content: center; margin: 22px 0; }
.divider::before { content: ""; width: 60px; height: 1px; background: #888; opacity: .35; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  margin: 6px;
  padding: 16px 40px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: .3s;
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand span { font-family: Montserrat, sans-serif; font-size: .9rem; font-weight: 300; letter-spacing: .35em; }
.brand img { width: 48px; height: 48px; }
.nav-links { display: flex; }
.nav-links a {
  margin-left: 40px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  text-decoration: none;
  color: #bbb;
}
.nav-links a:hover { color: #fff; }

/* ---------- Portada (hero) ---------- */
/* Foto de fondo a pantalla completa; versiones según ancho y formato (webp con respaldo jpg) */
.hero {
  position: relative;
  min-height: min(100vh, 940px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 6% 110px;
  text-align: center;
  color: #fff;
  background: #111 url("../img/hero/carniceria-1400.jpg") center / cover no-repeat;
  background-image: image-set(url("../img/hero/carniceria-1400.webp") type("image/webp"), url("../img/hero/carniceria-1400.jpg") type("image/jpeg"));
}
@media (min-width: 1500px) {
  .hero {
    background-image: url("../img/hero/carniceria-2400.jpg");
    background-image: image-set(url("../img/hero/carniceria-2400.webp") type("image/webp"), url("../img/hero/carniceria-2400.jpg") type("image/jpeg"));
  }
}
@media (max-width: 700px) {
  .hero {
    background-image: url("../img/hero/carniceria-mobile.jpg");
    background-image: image-set(url("../img/hero/carniceria-mobile.webp") type("image/webp"), url("../img/hero/carniceria-mobile.jpg") type("image/jpeg"));
  }
}
/* Velo oscuro parejo + viñeta: la foto (en blanco y negro, desenfocada) queda como textura */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%),
    rgba(0, 0, 0, .68);
}
.hero-panel { position: relative; max-width: 820px; }
.hero-badge { display: inline-block; margin-bottom: 44px; padding: 8px 22px; border: 1px solid rgba(255, 255, 255, .55); color: #f2f2f2; }

/* Logotipo en texto (Montserrat): SANTA en 600 muy espaciada, CARNE en 300 entre dos líneas finas */
.wordmark { margin: 0; font-family: Montserrat, sans-serif; line-height: 1; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.wordmark span { display: block; }
.wordmark-top { font-size: clamp(3.3rem, 10vw, 7.2rem); font-weight: 600; letter-spacing: .32em; margin-right: -.32em; }
.wordmark .wordmark-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 1.1em;
}
.wordmark-bottom::before,
.wordmark-bottom::after { content: ""; width: clamp(28px, 6vw, 70px); height: 1px; background: rgba(255, 255, 255, .7); }
.wordmark-bottom::after { margin-left: -1.1em; } /* compensa el espaciado de la última letra */
.hero-sub { max-width: 620px; margin: 40px auto 46px; font-size: clamp(1.1rem, 2.1vw, 1.35rem); line-height: 1.7; color: #eee; font-weight: 400; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }

/* Botones de la portada (claros sobre fondo oscuro) */
.btn-light { background: #fff; color: #000; border: 1px solid #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-outline-light { border: 1px solid #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: #000; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; max-width: 1140px; margin: auto; }
.about-photo { display: block; width: 100%; height: 520px; object-fit: cover; }
.about h2 { margin: 14px 0 26px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.35; }
.about p { margin-bottom: 16px; color: #666; }
.stats { display: flex; gap: 44px; margin-top: 40px; padding-top: 30px; border-top: 1px solid #e5e5e5; }
.stats b { display: block; font-family: Comfortaa, sans-serif; font-weight: 300; font-size: 1.5rem; }
.stats span { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: #888; }

/* ---------- Cortes: pestañas por categoría ---------- */
.cat-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; max-width: 900px; margin: -30px auto 56px; }
.cat-tabs button {
  padding: 12px 26px;
  font: inherit;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #999;
  background: transparent;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: .25s;
}
.cat-tabs button:hover { color: #fff; border-color: #666; }
.cat-tabs button.on { background: #fff; color: #000; border-color: #fff; }
.cat-pane.hidden { display: none; }

/* ---------- Cortes: grilla y tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 1200px; margin: auto; }
.card { display: flex; flex-direction: column; background: #0a0a0a; color: #fff; border: 1px solid #222; transition: .35s; }
.card:hover { border-color: #fff; transform: translateY(-4px); }
.card img { display: block; width: 100%; height: 200px; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 24px 18px 26px; text-align: center; }
.card h3 { font-size: 1rem; letter-spacing: .12em; }
.card p { margin-top: 10px; font-size: .85rem; color: #999; }

/* Precio: sólo aparece si el corte tiene precio cargado; queda al pie de la tarjeta */
.price {
  margin-top: auto;
  padding-top: 18px;
  font-family: Comfortaa, sans-serif;
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: #fff;
}
.price::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto 14px; background: #444; }
.price small { font-family: Nunito, sans-serif; font-size: .72rem; letter-spacing: .12em; color: #888; }

/* ---------- Frase ---------- */
.band { padding: 130px 6%; text-align: center; background: #fff; color: #111; }
.band q {
  display: block;
  max-width: 820px;
  margin: auto;
  font-family: Comfortaa, sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.6;
  quotes: "“" "”";
}
.band .divider { margin-top: 26px; }

/* ---------- Por qué elegirnos ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: auto; border-top: 1px solid #2a2a2a; }
.why > div { padding: 50px 28px; text-align: center; border-right: 1px solid #2a2a2a; }
.why > div:last-child { border-right: 0; }
.why-num { font-family: Comfortaa, sans-serif; font-size: 1.6rem; color: #999; }
.why h3 { margin: 14px 0 12px; font-size: 1rem; letter-spacing: .1em; }
.why p { font-size: .9rem; color: #999; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: auto; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.contact > div { padding: 50px 24px; text-align: center; border-right: 1px solid #e5e5e5; }
.contact > div:last-child { border-right: 0; }
.contact h3 { margin-bottom: 12px; font-size: 1rem; }
.contact p { color: #666; }
.contact-cta { text-align: center; }

/* Etiqueta "PLACEHOLDER" (se quita sola cuando los datos son reales) */
.ph {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .25em;
  color: #888;
  border: 1px dashed #888;
}

.wa {
  display: inline-block;
  margin-top: 70px;
  padding: 17px 46px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.wa:hover { background: #fff; color: #000; }

/* ---------- Pie ---------- */
footer {
  padding: 50px 6%;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .25em;
  color: #777;
  background: #000;
  border-top: 1px solid #1e1e1e;
}
footer .brand { justify-content: center; margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .why > div { border-bottom: 1px solid #2a2a2a; }
}
@media (max-width: 800px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card img { height: 150px; }
  .card p { display: none; }
  .card-body { padding: 16px 10px 18px; }
  .price { padding-top: 12px; font-size: .9rem; }
  .price::before { margin-bottom: 10px; }
  .card h3 { font-size: .82rem; letter-spacing: .08em; }
  .cat-tabs { margin: -30px auto 36px; }
  .cat-tabs button { padding: 10px 16px; font-size: .62rem; letter-spacing: .2em; }
}
@media (max-width: 700px) {
  section { padding: 100px 7%; }
  .hero .btn { display: block; width: min(100%, 300px); margin: 12px auto 0; }
  .nav-links { display: none; }
  .about, .contact, .why { grid-template-columns: 1fr; }
  .about { gap: 70px; }
  .about-photo { height: 340px; }
  .stats { gap: 22px; }
  .why > div, .contact > div { border-right: 0; }
  .contact > div { border-bottom: 1px solid #e5e5e5; }
  .contact > div:last-child { border-bottom: 0; }
}

/* Accesibilidad: texto chico gris con contraste AA sobre fondo blanco (sin cambiar el diseño) */
.eyebrow, .stats span, .ph { color: #6b6b6b; }
.dark .eyebrow, .dark .stats span, .dark .ph { color: #8f8f8f; }
