/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f1e6;
  --bg-2:      #ece2cd;
  --paper:     #ffffff;
  --ink:       #1b1f2a;
  --ink-soft:  #2c3242;
  --ink-mute:  #686c78;
  --accent:    #1f3f73;   /* fachada azul */
  --accent-2:  #c2432c;   /* rojo cartel / bandera */
  --gold:      #d99a3d;
  --line:      rgba(27,31,42,0.12);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 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; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -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 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent-2); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(1180px, 92%); margin-inline: auto; }
.tag { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out); }
.btn-primary { background: var(--accent-2); color: #fff; box-shadow: 0 14px 30px -12px rgba(194,67,44,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(194,67,44,.65); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* =============================================================
   4. Nav
   ============================================================= */
.site-nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; padding: 18px 0; transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out), padding .3s var(--ease-out); }
.site-nav.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-mark { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.brand-mark em { color: var(--accent-2); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; font-weight: 600; }
.nav-links a { padding: 4px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s var(--ease-out); }
.nav-links a:hover { border-color: var(--accent-2); }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }
.nav-toggle { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
@media (min-width: 720px) { .nav-toggle { display: none; } .nav-links { display: flex; } }
@media (max-width: 719px) { .nav-links { display: none; } }

/* =============================================================
   5. Hero
   ============================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(27,31,42,.35) 0%, rgba(20,28,48,.55) 55%, rgba(15,22,40,.86) 100%); }
.hero-content { position: relative; z-index: 2; width: min(1180px, 92%); margin-inline: auto; color: #f4efe2; }
.hero-kicker { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #f0c48a; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 26px; height: 1px; background: #f0c48a; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); color: #fbf7ee; max-width: 16ch; }
.hero-title em { font-style: italic; color: #f0c48a; }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 42ch; color: rgba(251,247,238,.86); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn-ghost { color: #fbf7ee; border-color: rgba(251,247,238,.4); }
.hero-actions .btn-ghost:hover { border-color: #fbf7ee; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(251,247,238,.7); font-size: 1.4rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* =============================================================
   6. Manifesto
   ============================================================= */
.manifesto { padding: clamp(4rem, 9vw, 7rem) 0; }
.manifesto-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .manifesto-grid { grid-template-columns: 0.9fr 1.4fr; gap: 4rem; align-items: start; } }
.manifesto-num { font-family: var(--font-display); font-style: italic; font-size: clamp(3rem, 6vw, 4.5rem); color: var(--accent); line-height: 1; }
.manifesto-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1.1rem; }
.manifesto-text p { font-size: 1.05rem; max-width: 60ch; }
.manifesto-text p + p { margin-top: 1rem; }

/* =============================================================
   7. Categorías (bento)
   ============================================================= */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 10px; }
.section-head p { margin-top: 12px; font-size: 1.02rem; color: var(--ink-mute); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento-card {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); padding: 26px 24px; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 220px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(31,63,115,.35); }
.bento-card.has-photo { color: #fbf7ee; min-height: 320px; }
.bento-card.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s var(--ease-out); }
.bento-card.has-photo:hover img { transform: scale(1.08); }
.bento-card.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(27,31,42,0) 30%, rgba(20,24,36,.85) 100%); }
.bento-card > * { position: relative; z-index: 2; }
.bento-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.bento-card.has-photo h3 { color: #fbf7ee; }
.bento-card p { font-size: 0.9rem; color: var(--ink-mute); }
.bento-card.has-photo p { color: rgba(251,247,238,.82); }
.bento-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-card:nth-child(2) { grid-column: span 2; }
.bento-card:nth-child(3) { grid-column: span 2; }
.bento-card:nth-child(4) { grid-column: span 2; }
.bento-card:nth-child(5) { grid-column: span 4; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card:nth-child(1) { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .bento-card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card:nth-child(1), .bento-card:nth-child(5) { grid-column: span 1; }
}

/* =============================================================
   8. Colocolo section
   ============================================================= */
.colocolo { background: var(--accent); color: #f4efe2; position: relative; overflow: hidden; }
.colocolo::before { content: ""; position: absolute; inset: -40% -10% -60% -10%; background: radial-gradient(45% 45% at 70% 20%, rgba(240,196,138,.28), transparent 70%); pointer-events: none; }
.colocolo-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; position: relative; z-index: 1; }
@media (min-width: 860px) { .colocolo-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; } }
.colocolo-text .tag { color: #f0c48a; }
.colocolo-text h2 { color: #fbf7ee; font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 10px; }
.colocolo-text h2 em { font-style: italic; color: #f0c48a; }
.colocolo-text p { color: rgba(251,247,238,.85); font-size: 1.05rem; margin-top: 14px; max-width: 52ch; }
.colocolo-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.colocolo-photos img { border-radius: 16px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
.colocolo-photos .ph-2 { margin-top: 2.5rem; }

/* =============================================================
   9. Horarios / ubicación
   ============================================================= */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 860px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hours-list li { display: flex; justify-content: space-between; font-size: 0.96rem; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child { border-bottom: none; padding-bottom: 0; }
.hours-list span:first-child { color: var(--ink-mute); }
.hours-list span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }
.address-line { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; margin-bottom: 8px; }
.whatsapp-block { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* =============================================================
   10. FAQ
   ============================================================= */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.faq-q .plus { font-size: 1.4rem; color: var(--accent-2); transition: transform .3s var(--ease-out); flex-shrink: 0; }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-item.is-open .faq-answer { max-height: 220px; }
.faq-answer p { padding: 0 4px 22px; font-size: 0.98rem; max-width: 60ch; }

/* =============================================================
   11. CTA final + footer
   ============================================================= */
.final-cta { background: var(--ink); color: #f4efe2; border-radius: 24px; padding: clamp(2.4rem, 6vw, 4rem); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin: clamp(3rem, 8vw, 5rem) auto; }
.final-cta h2 { color: #fbf7ee; font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 18ch; }
.final-cta h2 em { color: #f0c48a; font-style: italic; }

footer { padding: 2.4rem 0 3.2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.85rem; color: var(--ink-mute); }
.footer-inner a:hover { color: var(--accent-2); }

/* =============================================================
   12. Mobile nav sheet
   ============================================================= */
.mobile-sheet { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; padding: 24px; transform: translateY(-100%); transition: transform .35s var(--ease-out); }
.mobile-sheet.is-open { transform: translateY(0); }
.mobile-sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-sheet a { font-family: var(--font-display); font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* =============================================================
   13. Reduced motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}
