/* Rio Viejo Events — brown on cream, riverfront accents. Mobile-first. */
:root {
  --cream: #f5efe6;
  --cream-2: #ece3d4;
  --paper: #fbf8f3;
  --brown: #6b3a24;
  --brown-deep: #4a2617;
  --ink: #33231a;
  --muted: #6e5a4d;
  --river: #5f8a86;
  --river-glint: #cfe2dd;
  --ridge-far: #c9a98a;
  --ridge-near: #a87a58;
  --bank: #6f7b55;
  --sun: #e8b66f;
  --line: #ddd0bd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 38, 23, 0.08);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
}
img, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--brown-deep); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--brown); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brown); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 0.78rem/1.4 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; justify-content: center;
  background: var(--brown); color: #fff; text-decoration: none;
  font: 600 0.95rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid var(--brown);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--brown-deep); border-color: var(--brown-deep); color: #fff; transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-sm { padding: 0.75em 1.2em; font-size: 0.8rem; }
.btn-ghost { background: transparent; color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: #fff; }
.btn-light { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.btn-light:hover { background: #fff; color: var(--brown-deep); border-color: #fff; }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(245, 239, 230, 0.6); }
.btn-ghost-light:hover { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 239, 230, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; color: var(--brown); }
.brand-row { flex-direction: row; gap: 10px; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.hero-logo { width: clamp(108px, 22vw, 140px); height: auto; margin: 0 auto 18px; border-radius: 50%; box-shadow: var(--shadow); background: #fff; }
.footer-logo { width: 104px; height: 104px; border-radius: 50%; margin-bottom: 16px; background: #fff; }
.brand-name { font: 700 1.65rem/1 var(--display); letter-spacing: -0.01em; }
.brand-sub { font: 500 0.82rem/1 var(--display); margin-top: 2px; }
.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; background: var(--brown); border-radius: 2px; position: relative; transition: transform 0.25s; content: ''; }
.burger::before { position: absolute; top: -7px; }
.burger::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded='true'] .burger { background: transparent; }
.nav-toggle[aria-expanded='true'] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.site-nav a[aria-current='page'] { color: var(--brown); font-weight: 600; }
.site-nav .lang { display: inline-block; margin: 14px 16px 0 4px; font-weight: 500; }
.site-nav .btn { margin-top: 14px; }
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.no-js .nav-toggle { display: none; }
.no-js .bar { flex-wrap: wrap; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; align-items: center; gap: 20px; background: none; border: 0; padding: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: 20px; }
  .site-nav li a { border: 0; padding: 6px 0; font-size: 0.95rem; }
  .site-nav li a:hover, .site-nav a[aria-current='page'] { box-shadow: inset 0 -2px var(--brown); }
  .site-nav .lang, .site-nav .btn { margin: 0; }
  .site-nav .lang { font-size: 0.9rem; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }

/* Hero */
.hero { position: relative; text-align: center; padding: clamp(48px, 9vw, 110px) 0 0; overflow: hidden; }
.hero h1 { margin-bottom: 0.2em; }
.hero .lead { margin: 0 auto 1.6em; }
.hero .btn-row { justify-content: center; }
.hero-art { margin-top: clamp(32px, 6vw, 64px); }
.landscape { width: 100%; height: auto; }
.hero-art .landscape { height: clamp(160px, 26vw, 340px); }
.page-hero { padding: clamp(28px, 6vw, 64px) 0 clamp(20px, 4vw, 40px); }
.page-hero .lead { margin-bottom: 0; }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > :first-child { order: 2; }
}

/* Fact tiles */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.section-alt .facts li { background: var(--cream); }
.facts strong { display: block; font: 700 clamp(1.6rem, 4vw, 2.2rem)/1.1 var(--display); color: var(--brown); }
.facts span { font-size: 0.92rem; color: var(--muted); }

/* Cards */
.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section-alt .card { background: var(--cream); }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body p:last-of-type { flex: 1; }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: ' →'; }
.card .photo { border-radius: 0; }

/* Photos */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); aspect-ratio: 3 / 2; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; align-items: flex-end; background: linear-gradient(#f2e3cc, #f6ece0 55%); }
.ph .ph-art { position: absolute; inset: auto 0 0 0; height: 75%; }
.ph figcaption { position: absolute; top: 12px; left: 12px; font-size: 0.75rem; letter-spacing: 0.04em; background: rgba(251, 248, 243, 0.9); color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.photo.tall { aspect-ratio: 4 / 5; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 1.8em; margin-bottom: 0.55em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.9em; height: 0.5em; border-left: 2px solid var(--river); border-bottom: 2px solid var(--river); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--paper); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: 0.95rem; }

/* Gallery */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* FAQ */
.faq { max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.12rem/1.4 var(--body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font: 400 1.8rem/1 var(--display); color: var(--brown); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* Team + contact */
.team { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0 0 1em; font: 600 1.1rem/1.4 var(--display); color: var(--brown); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; font-weight: 500; word-break: break-all; }
.contact-list svg { width: 20px; height: 20px; flex: none; }

/* Form */
.form { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.form label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--river); outline: none; box-shadow: 0 0 0 3px rgba(95, 138, 134, 0.25); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; cursor: pointer; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-status { margin: 0; font-weight: 500; color: var(--brown); }
.cf-turnstile { min-height: 65px; }
.form-status:empty { display: none; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }

/* CTA band */
.cta-band { background: var(--brown); color: var(--cream); padding: clamp(56px, 8vw, 88px) 0; text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { max-width: 36em; margin: 0 auto 1.6em; color: #ead9c7; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--brown-deep); color: #e9dccd; padding: 56px 0 96px; font-size: 0.97rem; }
@media (min-width: 760px) { .site-footer { padding-bottom: 28px; } }
.site-footer a { color: #f5efe6; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { color: var(--cream); align-items: flex-start; margin-bottom: 14px; }
.footer-h { font: 600 0.8rem/1.4 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: #cdb9a5; margin-bottom: 12px; }
.site-footer address { font-style: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links a { text-decoration: none; line-height: 2; }
.hablamos { font: 600 1.05rem/1.4 var(--display); color: var(--sun); }
.footer-base { border-top: 1px solid rgba(233, 220, 205, 0.18); margin-top: 36px; padding-top: 18px; font-size: 0.85rem; color: #bfa995; }
.footer-base p { margin: 0; }

/* Mobile action bar */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(74, 38, 23, 0.08); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.mobile-bar svg { width: 18px; height: 18px; }
.mobile-bar .primary { background: var(--brown); color: #fff; }
@media (min-width: 760px) { .mobile-bar { display: none; } }

/* 404 */
.notfound { text-align: center; padding: 80px 0 40px; }
.notfound .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
