/* Chiriquí Wushu Connection — brand palette measured from the official logo (CWC logo.jpeg)
   and matching CW3: Navy #00194D | Red #FC0100 | Royal Blue #003DC8 | Gold #FDDB01 | White #FFFFFF */
:root {
  --navy: #00194D;
  --navy-deep: #000E2B;
  --red: #FC0100;
  --red-hover: #D00000;
  --blue: #003DC8;
  --blue-hover: #002B90;
  --gold: #FDDB01;
  --white: #FFFFFF;
  --soft: #F4F6FC;
  --line: #D8DFEE;
  --text: #00194D;
  --muted: #3A4A6B;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 25, 77, 0.10);
  --shadow-lg: 0 10px 30px rgba(0, 25, 77, 0.16);
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--white); }
body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); font-weight: 700; text-underline-offset: 4px; }
a:hover, a:focus-visible { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

h1, h2, h3 { line-height: 1.2; font-weight: 900; letter-spacing: -0.015em; color: var(--navy); }
h1 { font-size: clamp(2rem, 3.6vw + 1rem, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.65rem, 2.4vw + 0.6rem, 2.35rem); margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.2rem, 1.2vw + 0.6rem, 1.45rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.12rem, 0.6vw + 1rem, 1.3rem); font-weight: 500; }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.6rem;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 760px; margin-bottom: 2rem; }

.skip-link {
  position: absolute; left: 1rem; top: -80px; z-index: 2000; background: var(--navy); color: var(--white);
  padding: 0.8rem 1.2rem; border-radius: 0 0 8px 8px; text-decoration: none; border: 2px solid var(--gold);
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Header ---------- */
.stripe { height: 6px; background: linear-gradient(90deg, var(--navy) 0 25%, var(--blue) 25% 50%, var(--red) 50% 75%, var(--gold) 75% 100%); }
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.97);
  border-bottom: 3px solid var(--navy); box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 58px; height: auto; flex-shrink: 0; }
.brand-name { font-size: 1.15rem; font-weight: 900; line-height: 1.15; display: block; }
.brand-tag { font-size: 0.8rem; font-weight: 800; color: var(--blue); display: block; }

.nav ul { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.nav a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 6px; text-decoration: none; color: var(--navy);
  font-weight: 800; font-size: 0.98rem; white-space: nowrap;
}
.nav a:hover { background: var(--soft); color: var(--blue); }
.nav a.is-current { background: var(--navy); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.nav .nav-cta { background: var(--red); color: var(--white); margin-left: 0.35rem; }
.nav .nav-cta:hover { background: var(--red-hover); color: var(--white); }
.menu-btn {
  display: none; background: var(--white); color: var(--navy); border: 2px solid var(--navy); border-radius: 8px;
  font: inherit; font-weight: 800; font-size: 1rem; padding: 0.5rem 0.9rem; min-height: 48px; cursor: pointer;
}

/* Language switch: always visible, beside the menu */
.brand { order: 1; margin-right: auto; flex-shrink: 0; }
.nav { order: 2; }
.lang-switch { order: 3; }
.menu-btn { order: 4; }
.lang-switch {
  display: inline-flex; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; flex-shrink: 0;
}
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.85rem; text-decoration: none;
  font-size: 0.92rem; font-weight: 800; color: var(--navy); background: var(--white);
}
.lang-switch a + a { border-left: 2px solid var(--navy); }
.lang-switch a:hover { background: var(--soft); color: var(--blue); }
.lang-switch a.is-active { background: var(--navy); color: var(--gold); }
.brand-name, .brand-tag { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 1261px) { .brand-tag { display: none; } .nav a { padding: 0.55rem 0.6rem; } }
@media (max-width: 1260px) { .brand { flex-shrink: 1; min-width: 0; } }
@media (max-width: 560px) { .brand-name { white-space: normal; } }
@media (max-width: 359px) { .brand-name { display: none; } }
@media (max-width: 820px) { .brand-tag { display: none; } }
@media (max-width: 560px) {
  .header-inner { gap: 0.5rem; }
  .lang-switch a { padding: 0 0.6rem; min-height: 44px; font-size: 0.85rem; }
  .lang-switch .long { display: none; }
  .menu-btn { padding: 0.5rem 0.65rem; }
  .menu-btn .menu-word { display: none; }
}

@media (max-width: 1260px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 3px solid var(--navy); box-shadow: var(--shadow-lg); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem; gap: 0.35rem; }
  .nav a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav .nav-cta { margin: 0.4rem 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .brand img { width: 48px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 50px;
  padding: 0.8rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none;
  font: inherit; font-weight: 800; font-size: 1.04rem; line-height: 1.25; text-align: center; cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover, .btn-red:focus-visible { background: var(--red-hover); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover, .btn-blue:focus-visible { background: var(--blue-hover); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--navy-deep); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--navy); }
.btn-gold:hover, .btn-gold:focus-visible { background: #E2C300; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy); color: var(--white); overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 40%, rgba(253, 219, 1, 0.18), transparent 45%),
              radial-gradient(circle at 10% 100%, rgba(0, 61, 200, 0.55), transparent 50%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero .lead { color: #E6ECFA; max-width: 620px; }
.hero-logo { width: 100%; max-width: 440px; margin: 0 auto; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45)); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; list-style: none; }
.hero-facts li {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.95rem; font-weight: 700;
}
.hero-facts li strong { color: var(--gold); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-logo-wrap { order: -1; }
  .hero-logo { max-width: 280px; }
}

/* ---------- Schedule ---------- */
.schedule {
  background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; margin-top: -2.5rem; z-index: 2;
}
.schedule::before { content: ""; display: block; height: 8px; background: linear-gradient(90deg, var(--blue), var(--red), var(--gold)); }
.schedule-body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.schedule-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.schedule-head h2 { margin-bottom: 0; }
.badge {
  display: inline-block; background: var(--navy); color: var(--gold); border: 1px solid var(--gold);
  font-size: 0.8rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 4px;
}
.badge.red { background: var(--red); color: var(--white); border-color: var(--red); }
.badge.blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.slot { background: var(--soft); border: 1px solid var(--line); border-left: 6px solid var(--navy); border-radius: 8px; padding: 1.1rem 1.25rem; }
.slot.kids { border-left-color: var(--red); }
.slot.place { border-left-color: var(--blue); }
.slot-label { font-size: 0.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.slot-time { font-size: 1.3rem; font-weight: 900; display: block; line-height: 1.3; margin: 0.15rem 0 0.4rem; }
.price {
  display: inline-block; background: var(--gold); color: var(--navy); border: 2px solid var(--navy);
  font-weight: 900; padding: 0.1rem 0.65rem; border-radius: 4px; font-size: 1.05rem;
}
.fine { font-size: 0.95rem; color: var(--muted); }
.note-strong { font-weight: 700; font-style: italic; }
@media (max-width: 760px) { .slots { grid-template-columns: 1fr; } }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card.top-red { border-top: 8px solid var(--red); }
.card.top-navy { border-top: 8px solid var(--navy); }
.card.top-blue { border-top: 8px solid var(--blue); }
.card.top-gold { border-top: 8px solid var(--gold); }
.card .card-foot { margin-top: auto; padding-top: 1.25rem; }
.card dl { margin: 0.25rem 0 0; }
.card dt { font-weight: 900; display: inline; }
.card dd { display: inline; margin: 0; }
.card dd::after { content: ""; display: block; }

.program {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
@media (max-width: 860px) { .program { grid-template-columns: 1fr; } }

/* Numbered reasons */
.reasons { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; counter-reset: r; }
@media (max-width: 680px) { .reasons { grid-template-columns: 1fr; } }
.reasons li {
  counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start;
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.reasons li::before {
  content: counter(r); width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy);
  border: 2px solid var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem;
}
.reasons h3 { font-size: 1.12rem; margin-bottom: 0.2rem; }
.reasons p { font-size: 1rem; margin: 0; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--white); border: 2px solid var(--navy); border-top: 8px solid var(--red); border-radius: var(--radius); padding: 1.3rem; }
.steps .step-n { font-size: 0.85rem; font-weight: 900; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }

/* Callouts */
.callout {
  background: #EEF3FD; border: 1px solid var(--line); border-left: 8px solid var(--blue); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin-top: 2rem;
}
.callout.gold { background: #FFFBE0; border-color: var(--gold); border-left-color: var(--gold); }
.callout-title { font-weight: 900; font-size: 1.1rem; margin-bottom: 0.35rem; }

/* Tabs-like sub nav inside sections */
.subhead { margin: 3rem 0 1.25rem; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 800; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--blue); font-weight: 900; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--soft); }
.faq .answer { padding: 0 1.3rem 1.2rem; }

/* Evidence */
.evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .evidence { grid-template-columns: 1fr; } }
.evidence article { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.evidence .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 4px; margin-bottom: 0.75rem; }
.tag.strong { background: var(--navy); color: var(--gold); }
.tag.emerging { background: var(--gold); color: var(--navy); border: 1px solid var(--navy); }
.evidence .source { margin-top: auto; padding-top: 0.9rem; border-top: 2px solid var(--line); font-size: 0.92rem; }
.evidence .source a { display: inline-block; margin-top: 0.25rem; }

/* Instructor */
.bio { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.bio-card { position: sticky; top: 100px; }
@media (max-width: 860px) { .bio-card { position: static; } }
.fact-list { list-style: none; display: grid; gap: 0.75rem; font-size: 1.02rem; }
.fact-list strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* Emblem band */
.emblem-band { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.emblem-band img { width: 220px; }
@media (max-width: 680px) { .emblem-band { grid-template-columns: 1fr; } .emblem-band img { width: 180px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.channel { padding: 1rem 0; border-bottom: 2px solid var(--line); }
.channel:last-child { border-bottom: 0; padding-bottom: 0; }
.channel-label { display: block; font-size: 0.82rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.channel-value { font-size: 1.25rem; font-weight: 900; word-break: break-word; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 800; margin-bottom: 0.35rem; }
.form-group .req { color: var(--red); }
.form-control {
  width: 100%; min-height: 50px; padding: 0.75rem 0.95rem; font: inherit; font-size: 1.05rem; color: var(--navy);
  background: var(--white); border: 2px solid var(--navy); border-radius: 8px;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 61, 200, 0.28); }
textarea.form-control { min-height: 130px; resize: vertical; }
.hint { font-size: 0.92rem; color: var(--muted); margin-top: 0.3rem; }
.form-status { display: none; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 8px; font-weight: 700; }
.form-status.error { display: block; background: #FFF0F0; color: #B00000; border: 2px solid var(--red); }

/* CTA band */
.cta-band { background: var(--blue); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #E6ECFA; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); border-top: 6px solid var(--gold); padding: 3.5rem 0 2rem; }
.site-footer a { color: var(--white); font-weight: 700; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 84px; }
.site-footer h2 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.9rem; padding-bottom: 0.45rem; position: relative; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; background: var(--gold); }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 1.5rem; font-size: 0.92rem; text-align: center; opacity: 0.95; }

/* ---------- Floating WhatsApp (mobile/tablet) ---------- */
.float-contact {
  position: fixed; right: 16px; bottom: 16px; z-index: 900; display: none;
  box-shadow: 0 8px 22px rgba(0, 25, 77, 0.35); border: 2px solid var(--white);
}
@media (max-width: 1260px) { .float-contact { display: inline-flex; } body { padding-bottom: 84px; } }
