/* Sazón de Casa — estilos principales */
:root {
  --cream: #faf6f0;
  --cream-dark: #f0e8dc;
  --terracotta: #c45c3e;
  --terracotta-dark: #a34830;
  --terracotta-soft: #e8a090;
  --olive: #5c6b4a;
  --olive-dark: #445236;
  --olive-soft: #8a9a78;
  --ink: #2c241c;
  --ink-soft: #5a4f44;
  --muted: #7a6e62;
  --white: #ffffff;
  --border: #e4d8c8;
  --shadow: 0 8px 28px rgba(44, 36, 28, 0.08);
  --radius: 14px;
  --font-serif: "Libre Baskerville", "Georgia", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header / Nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span { color: var(--olive); }
.logo:hover { color: var(--terracotta-dark); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.95rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--terracotta); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1.1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .header-inner { position: relative; }
}

/* Ad placeholders */
.ad-slot {
  background: repeating-linear-gradient(
    -45deg,
    var(--cream-dark),
    var(--cream-dark) 8px,
    #ebe3d6 8px,
    #ebe3d6 16px
  );
  border: 1px dashed var(--muted);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  padding: 1.25rem 1rem;
  margin: 1.25rem auto;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: var(--max);
}
.ad-slot--header { min-height: 90px; width: min(100% - 2rem, 728px); }
.ad-slot--incontent { min-height: 250px; width: min(100%, 336px); margin-block: 2rem; }
.ad-slot--footer { min-height: 90px; width: min(100% - 2rem, 728px); margin-bottom: 2rem; }

/* Hero */
.hero {
  position: relative;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background: var(--olive-dark);
  color: var(--white);
  margin-bottom: 2.5rem;
}
.hero-media {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  opacity: 0.72;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: linear-gradient(transparent 20%, rgba(44, 36, 28, 0.78));
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta-soft);
  margin-bottom: 0.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 0.4rem; }
.hero p {
  max-width: 34rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.2rem;
}
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--terracotta-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
}
.btn-outline:hover { background: var(--terracotta); color: var(--white); }

/* Sections */
.section { padding: 2.25rem 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.35rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44, 36, 28, 0.12);
}
.card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--cream-dark);
}
.card-body { padding: 1.1rem 1.15rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--olive);
  margin-bottom: 0.35rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--terracotta); }
.card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-footer {
  display: flex;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Categories chips */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.cat-card:hover {
  border-color: var(--terracotta-soft);
  background: #fff9f6;
  color: var(--terracotta-dark);
}
.cat-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.cat-card span { color: var(--muted); font-size: 0.9rem; }

/* About snippet */
.about-band {
  background: var(--olive);
  color: var(--white);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
}
.about-band h2 { color: var(--white); }
.about-band p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.about-band .btn { background: var(--white); color: var(--olive-dark); }
.about-band .btn:hover { background: var(--cream); color: var(--olive-dark); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.stat {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
}
.stat span { font-size: 0.85rem; opacity: 0.9; }
@media (max-width: 700px) {
  .about-band { grid-template-columns: 1fr; }
}

/* Recipe page */
.recipe-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 2rem;
}
.recipe-hero img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.recipe-badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--olive-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.meta-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}
.meta-box span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.meta-box strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
@media (max-width: 800px) {
  .recipe-hero { grid-template-columns: 1fr; }
}

.recipe-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.ingredients, .steps, .tips, .related {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}
.ingredients ul, .steps ol, .tips ul {
  margin: 0;
  padding-left: 1.2rem;
}
.ingredients li, .steps li, .tips li { margin-bottom: 0.55rem; }
.steps li { padding-left: 0.25rem; }
@media (max-width: 800px) {
  .recipe-layout { grid-template-columns: 1fr; }
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1rem 0 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }

/* Category filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-btn.is-active,
.filter-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.card[hidden] { display: none !important; }

/* Static pages */
.page-header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-header p { color: var(--ink-soft); max-width: 40rem; margin: 0; }
.prose {
  max-width: 42rem;
  margin-bottom: 3rem;
}
.prose h2 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 32rem;
}
.contact-box a.btn { margin-top: 0.75rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--terracotta-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Misc */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
