/* Estilos de las páginas propias (calendario, blog, inscripción, junta, panel).
   Imitan la cabecera, la portada y el pie de las páginas de Tilda, con su misma paleta. */
:root {
  --navy: #07215f;
  --navy-deep: #001c5e;
  --blue: #0a3087;
  --accent: #2015ff;
  --coral: #ff8562;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #0b1430;
  --muted: #5b6480;
  --line: #dde2ee;
  --radius: 1rem;
  --shadow: 0 6px 24px rgba(7, 33, 95, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* que .btn o input{display:block} no anulen el atributo hidden */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter Tight", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--blue); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Cabecera (igual que la de Tilda: menú a los lados, logo en el centro) ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--blue); color: #fff; }
.site-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px; min-height: 92px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.site-header__logo img { display: block; width: 150px; height: auto; }
.nav-side { display: flex; gap: 6px 26px; flex-wrap: wrap; }
.nav-side--left { justify-content: flex-end; }
.nav-side--right { justify-content: flex-start; }
.nav-side a, .nav-mobile a {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  opacity: .9; transition: opacity .15s;
}
.nav-side a:hover, .nav-side a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; font-size: 28px; line-height: 1; }
.nav-mobile { display: none; }

@media (max-width: 980px) {
  .site-header { background: #000; }
  .site-header__inner { grid-template-columns: 1fr auto; min-height: 72px; padding: 8px 16px; }
  .site-header__logo img { width: 120px; }
  .nav-side { display: none; }
  .menu-toggle { display: block; }
  .nav-mobile.is-open { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px 24px; background: var(--blue); }
  .nav-mobile a { padding: 10px; font-size: 16px; }
}

/* ---- Banda de título (como la portada de Tilda) ---- */
.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%); color: #fff; text-align: center;
  padding: clamp(48px, 9vw, 96px) 20px clamp(40px, 7vw, 72px);
}
.hero__eyebrow { margin: 0 0 14px; font-size: clamp(13px, 2vw, 18px); letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.hero__title { margin: 0 auto; max-width: 900px; font-size: clamp(36px, 7vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -.02em; }
.hero__lead { margin: 18px auto 0; max-width: 680px; font-size: clamp(16px, 2.4vw, 20px); opacity: .85; }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 72px; }
.section-title { margin: 0 0 18px; font-size: clamp(26px, 4vw, 40px); line-height: 1.1; color: var(--navy); font-weight: 600; letter-spacing: -.01em; }
.page-title { font-size: clamp(32px, 6vw, 56px); line-height: 1.05; margin: 0 0 8px; color: var(--navy); font-weight: 700; }
.page-lead { color: var(--muted); margin: 0 0 28px; max-width: 640px; font-size: clamp(16px, 2.2vw, 18px); }

/* ---- Botones (los nombres btn-* los usa también el JS del panel) ---- */
.btn, .btn-blue, .btn-ghost, .btn-danger, .btn-coral {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer; font-weight: 600;
  background: var(--blue); color: #fff; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover, .btn-blue:hover, .btn-ghost:hover, .btn-danger:hover, .btn-coral:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-ghost { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.btn-danger { background: #c62f3b; }
.btn-coral { background: var(--coral); }
.btn--small { padding: 6px 14px; font-size: 14px; }
.muted { color: var(--muted); }

/* ---- Pie (como el de Tilda) ---- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); font-size: 14px; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 28px; display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand img { width: 160px; display: block; margin-bottom: 14px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); max-width: 1200px; margin: 0 auto; padding: 16px 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; }
@media (max-width: 820px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }
