/* ===========================================================
   Carnisseria Nova · Canillo — Design system
   Paleta: negro cálido + dorado + burdeos, tipografía editorial
   =========================================================== */

:root {
  --bg-950: #0e0a08;
  --bg-900: #16110d;
  --bg-800: #1d1712;
  --surface: #221b15;
  --surface-2: #2a2119;
  --wine-900: #3d0f16;
  --wine-800: #63161f;
  --wine-700: #7d1d28;
  --wine-600: #98232f;
  --gold-600: #b8863f;
  --gold-500: #cfa768;
  --gold-300: #e8d3a3;
  --cream-100: #f8f2e6;
  --cream-200: #ece1cb;
  --ink-900: #f8f2e6;
  --ink-700: rgba(248, 242, 230, .82);
  --ink-500: rgba(248, 242, 230, .58);
  --line: rgba(232, 211, 163, .16);
  --line-soft: rgba(232, 211, 163, .1);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, .35);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, .45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--cream-100); }
p { line-height: 1.7; margin: 0 0 1em; color: var(--ink-700); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold-500); color: var(--bg-950); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-950), var(--bg-900)); }
.section-dark {
  background: radial-gradient(120% 160% at 20% 0%, var(--wine-800) 0%, var(--wine-900) 55%, var(--bg-950) 100%);
  color: var(--cream-200);
}
.section-dark h2, .section-dark h3 { color: var(--cream-100); }
.section-dark p { color: rgba(248, 242, 230, .78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.section-dark .eyebrow { color: var(--gold-300); }
.section-dark .eyebrow::before { background: var(--gold-300); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--bg-950); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.06); }
.btn-gold { background: var(--gold-500); color: var(--bg-950); }
.btn-gold:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(248,242,230,.35); color: inherit; }
.btn-outline:hover { background: rgba(248,242,230,.08); }
.btn-soft { background: var(--surface-2); color: var(--gold-300); border-color: var(--line); }
.btn-soft:hover { background: var(--surface); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14, 10, 8, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 700; font-size: 19px; color: var(--cream-100); flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.brand small { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-weight: 600; font-size: 14.5px; color: var(--ink-500); position: relative; padding: 4px 0; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--cream-100); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; padding: 6px 11px; border-radius: 999px;
  font-weight: 700; font-size: 12.5px; color: var(--ink-500); letter-spacing: .03em;
}
.lang-switch button.active { background: var(--gold-500); color: var(--bg-950); }
.nav-toggle { display: none; background: none; border: none; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream-100); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 90px;
  background: radial-gradient(120% 150% at 85% -10%, rgba(207,167,104,.14), transparent 55%), var(--bg-900);
  overflow: hidden;
}
.hero-photo {
  min-height: 640px;
  display: flex;
  align-items: center;
  background-image: radial-gradient(120% 150% at 85% -10%, rgba(207,167,104,.10), transparent 55%), url("/assets/img/hero-bg-facana.webp");
  background-size: cover;
  background-position: top center;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .95fr; gap: 56px; align-items: center; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 640px; padding-left: clamp(20px, 6vw, 96px); padding-right: 24px; box-sizing: border-box; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; background: var(--surface);
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--gold-300);
  box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 20px; }
.hero .lead { font-size: 18.5px; max-width: 540px; }
.hero-stars { color: var(--gold-500); font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 18px 0 26px; font-size: 15px; color: var(--ink-700); }
.hero-stars .stars { color: var(--gold-500); letter-spacing: 2px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; border: 1px solid var(--line); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,10,8,.7));
}
.hero-media-tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; color: #fff;
  font-family: var(--font-serif); font-size: 18px;
}
.hero-media-tag small { display: block; font-family: var(--font-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* Marquee strip */
.marquee-strip { background: var(--bg-950); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--cream-200); padding: 13px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 32s linear infinite; width: max-content; }
.marquee-track span { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; color: var(--gold-300); }
.marquee-track span::after { content: "•"; color: rgba(232,211,163,.4); margin-left: 36px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Oferta banner */
.offer-banner { display: none; }
.offer-banner.is-active { display: block; }
.offer-card {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 0; align-items: stretch;
  background: linear-gradient(120deg, var(--wine-800), var(--wine-900));
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); color: var(--cream-100);
  border: 1px solid var(--line);
}
.offer-card .offer-img { position: relative; min-height: 220px; }
.offer-card .offer-img img { width: 100%; height: 100%; object-fit: cover; }
.offer-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.offer-tag {
  display: inline-flex; align-self: flex-start; background: var(--gold-500); color: var(--bg-950);
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}
.offer-body h3 { color: #fff; font-size: 28px; }
.offer-body p { color: rgba(248,242,230,.82); }

/* Cards grid */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-600); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 8px; }
.card-body h3 { font-size: 19px; margin-bottom: 8px; }
.card-body p { font-size: 14.5px; margin-bottom: 0; flex: 1; }

/* Carousels (testimonials + gallery) */
.carousel-wrap { position: relative; margin: 0 -24px; padding: 0 24px; }
.carousel-wrap::before, .carousel-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none;
}
.carousel-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-900), transparent); }
.carousel-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-900), transparent); }
.section-alt .carousel-wrap::before { background: linear-gradient(90deg, var(--bg-950), transparent); }
.section-alt .carousel-wrap::after { background: linear-gradient(270deg, var(--bg-950), transparent); }

.testi-carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 4px 22px;
  scrollbar-width: thin; scrollbar-color: var(--gold-600) transparent;
}
.testi-carousel::-webkit-scrollbar { height: 6px; }
.testi-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px 26px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
  flex: 0 0 320px; scroll-snap-align: start; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.testi-card:hover { transform: scale(1.04); box-shadow: var(--shadow-md); border-color: var(--gold-600); }
.testi-stars { color: var(--gold-500); font-size: 15px; letter-spacing: 2px; }
.testi-text { font-size: 15px; color: var(--ink-700); font-style: italic; flex: 1; }
.testi-foot { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-500), var(--wine-700)); color: var(--bg-950);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 14px; color: var(--cream-100); }
.testi-source { font-size: 12px; color: var(--ink-500); }

/* Gallery */
.gallery-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 22px; scrollbar-width: thin; scrollbar-color: var(--gold-600) transparent; }
.gallery-carousel::-webkit-scrollbar { height: 6px; }
.gallery-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.gallery-carousel a {
  flex: 0 0 280px; aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; display: block; position: relative;
  scroll-snap-align: start; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-carousel a:hover { transform: scale(1.05); box-shadow: var(--shadow-md); z-index: 1; }
.gallery-carousel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-carousel a:hover img { transform: scale(1.1); }

/* Blog / SEO articles */
.article-card { display: flex; flex-direction: column; }
.article-date { font-size: 12.5px; color: var(--ink-500); font-weight: 600; margin-bottom: 6px; }

/* Standalone article page */
.breadcrumb { font-size: 13px; color: var(--ink-500); margin-bottom: 26px; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb span[aria-hidden] { margin: 0 6px; opacity: .5; }
.article-hero-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); margin-bottom: 36px; box-shadow: var(--shadow-md); }
.article-prose { max-width: 720px; margin: 0 auto; }
.article-prose h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.article-lead { font-size: 18.5px; color: var(--ink-700); margin-bottom: 30px; }
.article-prose h3 { font-size: 21px; margin-top: 38px; margin-bottom: 12px; }
.article-prose p { font-size: 16px; margin-bottom: 20px; }
.article-back { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.related-head { margin: 64px 0 24px; }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }
.info-list { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--gold-500); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 19px;
}
.info-icon svg { width: 22px; height: 22px; }
.info-item h4 { margin: 0 0 4px; font-size: 12.5px; font-family: var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-500); }
.info-item p { margin: 0; font-size: 15.5px; color: var(--cream-100); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 340px; filter: grayscale(.4) invert(.92) contrast(.92); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Contact form */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--gold-300); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-family: inherit; font-size: 14.5px; background: var(--bg-950); color: var(--cream-100);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-500); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; background: var(--bg-900); }
.field textarea { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer { background: var(--bg-950); color: rgba(248,242,230,.75); padding: 64px 0 0; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid var(--line-soft); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); }
.footer-brand span { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: #fff; }
.site-footer h5 { color: var(--gold-300); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-sans); }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: var(--gold-300); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.social-row a:hover { background: var(--gold-500); color: var(--bg-950); border-color: var(--gold-500); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 12.5px; color: rgba(248,242,230,.45); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { font-weight: 700; color: var(--gold-300); }

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--bg-950); border-top: 1px solid var(--line); display: none; padding: 10px 16px; gap: 10px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.4);
}
.sticky-cta a { flex: 1; text-align: center; }

/* Cookie banner (reuse pattern) */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 480px; z-index: 90;
  background: var(--surface); border-radius: var(--radius-md); padding: 22px 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.cookie-banner h2 { font-size: 16px; margin-bottom: 8px; }
.cookie-banner p { font-size: 13.5px; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-settings { position: fixed; left: 18px; bottom: 18px; z-index: 55; background: var(--surface); border: 1px solid var(--line); color: var(--gold-300); padding: 8px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
[data-lang-content] { display: none; }
[data-lang-content].active-lang { display: block; }
span[data-lang-content].active-lang, strong[data-lang-content].active-lang { display: inline; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .offer-card { grid-template-columns: 1fr; }
  .offer-card .offer-img { min-height: 180px; }
}
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13.5px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 900px) {
  .header-inner { padding: 14px 16px; gap: 12px; }
  .nav { gap: 12px; }
  .brand small { display: none; }
  .btn-sm { padding: 9px 14px; font-size: 12.5px; }
}
@media (max-width: 800px) {
  .nav { position: fixed; top: 74px; left: 0; right: 0; background: var(--bg-950); flex-direction: column; align-items: flex-start;
    padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .25s ease; box-shadow: var(--shadow-md); }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  .section { padding: 64px 0; }
  .contact-card { padding: 26px; }
  .testi-card { flex-basis: 280px; }
  .gallery-carousel a { flex-basis: 220px; }
}
