:root {
  --gb-red: #b3312c;
  --gb-red-dark: #8a2521;
  --gb-black: #121212;
  --gb-dark: #1c1c1c;
  --gb-light: #f6f5f3;
  --gb-border: #e4e1db;
  --gb-text: #232323;
  --gb-muted: #6b6b6b;
  --radius: 6px;
  --container: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gb-text);
  background: #ffffff;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: inherit; font-weight: 800; letter-spacing: 0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85em 1.6em; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn--cta { background: var(--gb-red); color: #fff; }
.btn--cta:hover { background: var(--gb-red-dark); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--gb-black); border-color: var(--gb-black); }
.btn--outline:hover { background: var(--gb-black); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--gb-black); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 3px solid var(--gb-black);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__text {
  font-weight: 800; font-size: 1.05rem; letter-spacing: 0.03em; line-height: 1;
  display: flex; flex-direction: column;
}
.brand__text small { font-size: 0.6rem; color: var(--gb-red); letter-spacing: 0.2em; font-weight: 700; margin-top: 3px; }
.brand__text--footer { color: #fff; }
.brand__text--footer small { color: var(--gb-red); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-weight: 600; font-size: 0.92rem; color: var(--gb-text); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--gb-red); color: var(--gb-red); }
.site-nav a.btn--cta { color: #fff; border: none; padding: 0.7em 1.3em; }
.site-nav a.btn--cta:hover { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--gb-black); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--gb-black) 0%, var(--gb-dark) 55%, var(--gb-red-dark) 130%);
  color: #fff; padding: 96px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 720px; }
.hero__eyebrow { color: #e28a85; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin-bottom: 0.4em; }
.hero p.lead { font-size: 1.15rem; color: #d9d6d2; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.hero__stats div strong { display: block; font-size: 1.8rem; color: #fff; }
.hero__stats div span { color: #b9b6b1; font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--gb-light); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__eyebrow { color: var(--gb-red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section__head p { color: var(--gb-muted); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--gb-border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gb-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; font-size: 1.1rem;
}
.card h3 { font-size: 1.1rem; }
.card p { color: var(--gb-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gb-black); color: #fff; padding: 56px 0; text-align: center;
}
.cta-band h2 { font-size: 1.8rem; margin-bottom: 0.3em; }
.cta-band p { color: #cfcac5; margin-bottom: 26px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Schedule (horarios) ---------- */
.schedule-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.schedule-tabs button {
  border: 2px solid var(--gb-black); background: #fff; color: var(--gb-black);
  padding: 10px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
.schedule-tabs button.is-active { background: var(--gb-black); color: #fff; }
.schedule-tabs button:hover { border-color: var(--gb-red); }

.schedule-day { display: none; }
.schedule-day.is-active { display: block; }

.mats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.mat h4 {
  text-align: center; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem;
  background: var(--gb-black); color: #fff; padding: 8px; border-radius: var(--radius) var(--radius) 0 0; margin: 0;
}
.mat-slots { border: 2px solid var(--gb-black); border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 80px; }
.slot { border: 2px solid var(--slot-color, var(--gb-red)); border-radius: 4px; padding: 8px 10px; text-align: center; }
.slot__time { font-weight: 800; font-size: 0.95rem; }
.slot__turma { font-weight: 700; font-size: 0.85rem; margin-top: 2px; }
.mat-slots .empty { color: #b9b6b1; text-align: center; font-size: 0.85rem; padding: 16px 0; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 36px; }
.legend span { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gb-muted); }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; background: var(--dot-color); }

.schedule-note {
  background: #fff8e6; border: 1px solid #f1dca0; color: #6b5a1e;
  padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 32px;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.contact-info__item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info__icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gb-red); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800;
}
.map-frame { border: 0; width: 100%; height: 260px; border-radius: var(--radius); margin-top: 24px; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--gb-light); border: 1px solid var(--gb-border); padding: 28px; border-radius: var(--radius); }
form.contact-form label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 6px; }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gb-border); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
}
form.contact-form textarea { resize: vertical; min-height: 110px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; }
.form-msg--ok { background: #e7f5ea; color: #1f6d33; border: 1px solid #b9dfc3; }
.form-msg--err { background: #fdeaea; color: #a3271f; border: 1px solid #f2bcb8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gb-black); color: #cfcac5; padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a:hover { color: var(--gb-red); }
.footer-social a { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; font-size: 0.8rem; color: #8d8a86; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 3px solid var(--gb-black);
    display: none; padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; }
  .site-nav a.btn--cta { margin-top: 10px; text-align: center; justify-content: center; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
