/* Winora — winora.pro — AR-HIST-4-rebrand (Rosario / Muelle Dorado origin) */
:root {
  --color-teal: #0E3B43;
  --color-brass: #C98A3B;
  --color-cream: #F4EDE2;
  --color-ink: #1F2421;
  --font-head: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--color-teal);
  line-height: 1.2;
  margin-top: 0;
}

a { color: var(--color-brass); text-decoration: underline; }
a:hover { color: var(--color-teal); }

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

/* ---------- Age gate ---------- */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14, 59, 67, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.age-gate-box {
  background: var(--color-cream);
  border-top: 6px solid var(--color-brass);
  border-radius: 6px;
  max-width: 480px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.age-gate-box h2 { margin-bottom: 0.75rem; }
.age-gate-legal { font-size: 0.85rem; color: #4a524d; }
.age-gate-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.age-gate-actions button {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  border: 2px solid var(--color-teal);
  cursor: pointer;
  font-size: 0.95rem;
}
#age-gate-accept {
  background: var(--color-teal);
  color: var(--color-cream);
}
#age-gate-accept:hover { background: #0a2a30; }
#age-gate-reject {
  background: transparent;
  color: var(--color-teal);
}
#age-gate-reject:hover { background: rgba(14,59,67,0.08); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--color-teal);
  border-bottom: 4px solid var(--color-brass);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-cream);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
}
.brand-mark { color: var(--color-brass); font-size: 1.3rem; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-brass);
  color: var(--color-cream);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-body);
  cursor: pointer;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.main-nav a:hover { border-bottom-color: var(--color-brass); color: var(--color-cream); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .main-nav { width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.6rem; padding: 0.75rem 0; }
}

/* ---------- Main / sections ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 3rem; }

.hero {
  background: linear-gradient(135deg, var(--color-teal) 0%, #124d57 100%);
  color: var(--color-cream);
  margin: 0 -1.25rem 2.5rem;
  padding: 3.5rem 1.25rem;
  border-bottom: 5px solid var(--color-brass);
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--color-brass);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.hero h1 {
  color: var(--color-cream);
  font-size: 2.1rem;
  margin-bottom: 1rem;
}
.hero-lead { font-size: 1.05rem; max-width: 720px; }

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 2px solid rgba(201,138,59,0.35);
  margin-bottom: 2rem;
}
.page-header h1 { font-size: 1.9rem; }
.page-lead { font-size: 1.02rem; max-width: 760px; color: #3a423d; }

.section { margin-bottom: 2.75rem; }
.section h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }

.prose p, .prose li { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.fuente { font-size: 0.85rem; color: #5a635e; border-left: 3px solid var(--color-brass); padding-left: 0.8rem; }

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .section-split { grid-template-columns: 1fr; } }

/* ---------- Timeline preview cards (index) ---------- */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}
.timeline-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(14,59,67,0.15);
  border-top: 4px solid var(--color-brass);
  border-radius: 4px;
  padding: 1rem;
  text-decoration: none;
  color: var(--color-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(14,59,67,0.12); }
.timeline-card-year {
  display: block;
  font-size: 0.75rem;
  color: var(--color-brass);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.timeline-card-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-teal);
}
.timeline-cta { margin-top: 1.25rem; font-weight: 600; }

/* ---------- Responsible gaming callout ---------- */
.rg-callout {
  background: #fff;
  border: 2px solid var(--color-brass);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 640px;
}
.rg-callout h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.rg-phone { font-size: 1.15rem; margin: 0.5rem 0; }
.rg-phone-big { font-size: 1.5rem; font-weight: 700; color: var(--color-teal); }
.rg-link { font-weight: 600; }

/* ---------- Escala del Dique (cronologia.html) ---------- */
.escala-section { }
.escala-wrap {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(14,59,67,0.15);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .escala-wrap { grid-template-columns: 70px 1fr; }
}
.escala-dique { display: flex; justify-content: center; }
.escala-track {
  position: relative;
  width: 36px;
  height: 320px;
  background: repeating-linear-gradient(0deg, #e4dcca 0, #e4dcca 2px, transparent 2px, transparent 18px), var(--color-teal);
  border-radius: 18px;
  cursor: pointer;
  outline-offset: 3px;
}
.escala-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-brass);
  border-radius: 0 0 18px 18px;
  height: 5%;
  transition: height 0.2s ease;
}
.escala-marker {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 28px;
  height: 28px;
  background: var(--color-cream);
  border: 3px solid var(--color-teal);
  border-radius: 50%;
  transform: translate(-50%, 50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: bottom 0.2s ease;
}
.escala-ticks {
  position: absolute;
  left: 46px;
  top: 0;
  bottom: 0;
  width: 60px;
}
.escala-ticks span {
  position: absolute;
  font-size: 0.72rem;
  color: #5a635e;
  white-space: nowrap;
  transform: translateY(50%);
}
.escala-ticks span[data-pos="5"] { bottom: 5%; }
.escala-ticks span[data-pos="25"] { bottom: 25%; }
.escala-ticks span[data-pos="48"] { bottom: 48%; }
.escala-ticks span[data-pos="65"] { bottom: 65%; }
.escala-ticks span[data-pos="82"] { bottom: 82%; }
.escala-ticks span[data-pos="96"] { bottom: 96%; }

.escala-readout-year {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--color-teal);
  margin: 0 0 0.5rem;
}
.escala-readout-fact { font-size: 1.02rem; max-width: 520px; }

.crono-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.crono-card {
  background: #fff;
  border: 1px solid rgba(14,59,67,0.15);
  border-radius: 5px;
  padding: 1.1rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.crono-card.active { border-color: var(--color-brass); box-shadow: 0 8px 20px rgba(201,138,59,0.25); }
.crono-card-year { display: block; font-size: 0.75rem; font-weight: 700; color: var(--color-brass); margin-bottom: 0.3rem; }
.crono-card h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.crono-card p { font-size: 0.92rem; }

.crono-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(14,59,67,0.15);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- Personajes ---------- */
.persona-card {
  background: #fff;
  border-left: 4px solid var(--color-brass);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.1rem;
}
.persona-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-teal);
  background: rgba(14,59,67,0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid rgba(14,59,67,0.15);
  border-radius: 5px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.7rem;
}
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--color-teal); }
.faq-item p { margin-top: 0.6rem; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; max-width: 480px; gap: 0.3rem; }
.contact-form label { font-weight: 600; margin-top: 0.8rem; font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(14,59,67,0.3);
  border-radius: 4px;
}
.btn-submit {
  margin-top: 1.1rem;
  background: var(--color-teal);
  color: var(--color-cream);
  border: none;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}
.btn-submit:hover { background: #0a2a30; }
.form-note { font-size: 0.8rem; color: #5a635e; margin-top: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-teal);
  color: var(--color-cream);
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; color: var(--color-brass); margin-bottom: 0.5rem; }
.footer-heading { font-weight: 600; color: var(--color-brass); margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { color: var(--color-cream); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-brass); }
.footer-disclaimer {
  border-top: 1px solid rgba(244,237,226,0.2);
  padding: 1.25rem 1.25rem 1.75rem;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: rgba(244,237,226,0.85);
}
.footer-disclaimer a { color: var(--color-brass); }
