/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f8f5f0;
  --bg-2:      #efe9dd;
  --paper:     #ffffff;
  --ink:       #1a1714;
  --ink-soft:  #3a342e;
  --ink-mute:  #6e6760;
  --accent:    #a02824;   /* rojo pañuelo */
  --accent-2:  #6e4a1f;   /* faja / tierra */
  --gold:      #c49a5b;
  --line:      rgba(26,23,20,0.14);
  --cream:     #f2ebda;

  --serif: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --body:  "Source Serif 4", "Georgia", serif;
  --sans:  "Inter", "Founders Grotesk", -apple-system, sans-serif;

  --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%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 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 { font-family: var(--serif); text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 4px; font-family: var(--sans); font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 800px; margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.hairline { border: 0; border-top: 1px solid var(--line); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Masthead / Nav
   ============================================================= */
.masthead {
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.masthead-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 0; font-family: var(--sans); font-size: .78rem;
  color: var(--ink-mute); letter-spacing: .04em;
}
.lang-switch { display: flex; gap: .5rem; }
.lang-switch a { padding: .1rem .3rem; }
.lang-switch a.is-active { color: var(--accent); font-weight: 700; }
.lang-switch a:hover { color: var(--accent); }
.masthead-main {
  display: flex; flex-direction: column; align-items: center;
  padding: .6rem 0 1rem; text-align: center;
  border-top: 1px solid var(--line);
}
.brand {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.01em;
  color: var(--accent);
}
.brand em { font-style: italic; }
.masthead-sub { font-family: var(--sans); font-size: .82rem; color: var(--ink-mute); margin-top: .2rem; }
.masthead-nav {
  display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap;
  padding: .7rem 0; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.masthead-nav a { position: relative; padding-bottom: 2px; }
.masthead-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .3s var(--ease-out);
}
.masthead-nav a:hover::after { right: 0; }

/* =============================================================
   5. Hero article (cover)
   ============================================================= */
.hero-article { padding: 3rem 0 2.5rem; text-align: center; }
.hero-article .kicker { display: block; margin-bottom: .8rem; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 20ch; margin-inline: auto;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft); max-width: 60ch; margin: 1.2rem auto 0;
}
.hero-figure { margin-top: 2.2rem; position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 16/8; object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}
.hero-caption {
  font-family: var(--sans); font-size: .78rem; color: var(--ink-mute);
  font-style: italic; margin-top: .5rem; text-align: right;
}
.hero-cta-row { display: flex; gap: 1rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .88rem;
  padding: .8rem 1.5rem; border: 1px solid var(--ink);
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* =============================================================
   6. Calendar strip
   ============================================================= */
.section { padding: 3.4rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: .4rem; }
.section-head p { color: var(--ink-mute); margin-top: .5rem; max-width: 55ch; margin-inline: auto; }

.calendar-list { border-top: 1px solid var(--ink); }
.calendar-item {
  display: grid; grid-template-columns: 110px 90px 1fr; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.calendar-item .dia { font-family: var(--sans); font-weight: 700; color: var(--accent); }
.calendar-item .hora { font-family: var(--sans); font-size: .82rem; color: var(--ink-mute); }
.calendar-item h3 { font-size: 1.2rem; }
.calendar-item .lugar { font-family: var(--sans); font-size: .8rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }
.calendar-item p.desc { margin-top: .3rem; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 719px) {
  .calendar-item { grid-template-columns: 1fr; gap: .2rem; }
}

/* =============================================================
   7. Guide cards grid
   ============================================================= */
.guides-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.2rem;
}
@media (min-width: 720px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
.guide-card { display: block; }
.guide-card figure { overflow: hidden; aspect-ratio: 4/3; background: var(--bg-2); }
.guide-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.guide-card:hover img { transform: scale(1.06); }
.guide-card .kicker { display: block; margin-top: 1rem; }
.guide-card h3 { font-size: 1.4rem; margin-top: .4rem; }
.guide-card p { color: var(--ink-mute); margin-top: .5rem; font-size: .95rem; }

/* =============================================================
   8. Affiliate box
   ============================================================= */
.affiliate-block {
  background: var(--ink); color: var(--cream); padding: 3rem 0;
}
.affiliate-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px) { .affiliate-grid { grid-template-columns: repeat(3, 1fr); } }
.affiliate-card {
  border: 1px solid rgba(242,235,218,.25); padding: 1.6rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.affiliate-card h3 { color: var(--cream); font-size: 1.15rem; }
.affiliate-card p { color: rgba(242,235,218,.7); font-size: .85rem; font-family: var(--sans); }
.affiliate-card .btn { align-self: flex-start; border-color: var(--cream); color: var(--cream); }
.affiliate-card .btn:hover { background: var(--cream); color: var(--ink); }
.affiliate-disclosure {
  font-family: var(--sans); font-size: .74rem; color: rgba(242,235,218,.5);
  margin-top: 1.6rem; text-align: center;
}

/* =============================================================
   9. FAQ
   ============================================================= */
.faq-list { border-top: 1px solid var(--ink); max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 0; font-family: var(--sans); font-weight: 600;
  font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1.1rem; color: var(--ink-soft); }

/* =============================================================
   10. Newsletter CTA
   ============================================================= */
.cta-final { text-align: center; padding: 3.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-final p { color: var(--ink-mute); margin: .8rem 0 1.6rem; }
.newsletter-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; max-width: 460px; margin-inline: auto; }
.newsletter-form input {
  flex: 1 1 220px; padding: .8rem 1rem; border: 1px solid var(--ink);
  font-family: var(--sans); background: var(--paper); color: var(--ink);
}
.newsletter-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =============================================================
   11. Footer
   ============================================================= */
footer { padding: 2.6rem 0; font-family: var(--sans); font-size: .84rem; color: var(--ink-mute); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: .6rem; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* =============================================================
   12. Article page
   ============================================================= */
.article-hero { padding: 2.4rem 0 1.6rem; text-align: center; }
.article-hero .kicker { display: block; margin-bottom: .7rem; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 22ch; margin-inline: auto; }
.article-meta { font-family: var(--sans); font-size: .82rem; color: var(--ink-mute); margin-top: 1rem; }
.article-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin: 2rem 0; }
.article-body { max-width: 700px; margin-inline: auto; font-size: 1.08rem; }
.article-body p { margin-bottom: 1.3rem; }
.article-body h2 { font-size: 1.6rem; margin: 2.2rem 0 1rem; }
.article-body .dropcap:first-letter {
  float: left; font-family: var(--serif); font-size: 4.4rem; line-height: .8;
  padding-right: .5rem; padding-top: .3rem; color: var(--accent);
}
.pullquote {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  border-left: 3px solid var(--accent); padding-left: 1.3rem; margin: 2rem 0;
  color: var(--ink-soft);
}
.callout {
  background: var(--bg-2); border: 1px solid var(--line); padding: 1.4rem 1.6rem;
  margin: 2rem 0; font-family: var(--sans); font-size: .92rem;
}
.callout h4 { font-family: var(--sans); font-weight: 700; margin-bottom: .5rem; }

/* =============================================================
   13. Gallery + lightbox
   ============================================================= */
.gallery-grid {
  columns: 1; column-gap: 1rem;
}
@media (min-width: 720px) { .gallery-grid { columns: 2; } }
@media (min-width: 1024px) { .gallery-grid { columns: 3; } }
.gallery-item {
  display: block; width: 100%; break-inside: avoid; margin-bottom: 1rem;
  border: 0; background: none; cursor: zoom-in; text-align: left; padding: 0;
}
.gallery-item img {
  width: 100%; border-radius: 2px; transition: transform .4s var(--ease-out), filter .4s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.02); filter: saturate(1.08); }
.gallery-caption {
  font-family: var(--sans); font-size: .74rem; color: var(--ink-mute);
  padding: .4rem .1rem .1rem;
}
.gallery-caption .credito a { text-decoration: underline; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh;
}
dialog.lightbox::backdrop { background: rgba(26,23,20,.92); }
dialog.lightbox .lightbox-inner {
  background: var(--paper); max-width: min(92vw, 1100px); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
}
dialog.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
dialog.lightbox .lightbox-caption {
  padding: .9rem 1.2rem; font-family: var(--sans); font-size: .82rem; color: var(--ink-mute);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center;
}
dialog.lightbox .lightbox-caption strong { color: var(--ink); font-weight: 600; }
dialog.lightbox .lightbox-close {
  position: absolute; top: .6rem; right: .6rem; width: 2.2rem; height: 2.2rem;
  background: var(--ink); color: var(--cream); border-radius: 50%; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}

/* =============================================================
   14. Breakpoints already used inline (mobile-first)
   ============================================================= */
@media (min-width: 540px) {}
@media (min-width: 960px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) {}
