:root {
  --navy: #0b1f44;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #eaf2ff;
  --text: #1e2b45;
  --muted: #55627d;
  --border: #d9e3f3;
  --white: #fff;
  --wa: #128c4a;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(11, 31, 68, .08);
  --shadow-lg: 0 10px 28px rgba(11, 31, 68, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(800px, 100% - 2rem); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.4rem; border-radius: 999px; font: 600 .95rem/1.2 inherit; font-family: inherit; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #0e7340; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.icon { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; letter-spacing: .5px; }
.logo-text { display: flex; flex-direction: column; color: var(--navy); font-weight: 700; line-height: 1.15; font-size: 1.05rem; }
.logo-text small { font-weight: 500; font-size: .72rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { color: var(--blue); border-color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: var(--blue-light); padding: clamp(2rem, 6vw, 4.5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.hero-media img, .about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--blue-light); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.2rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.note { text-align: center; color: var(--muted); font-size: .85rem; margin: 1.5rem 0 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Cards */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.course-card, .feature { display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); font-size: .95rem; }
.course-card .btn { margin-top: auto; align-self: flex-start; padding: .6rem 1.1rem; font-size: .88rem; }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 28px; height: 28px; }
.section-alt .card-icon { background: var(--blue-light); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem; color: #fff; font-weight: 500; font-size: .9rem; background: linear-gradient(transparent, rgba(11,31,68,.85)); }

/* Testimonials */
.testimonial-placeholder { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 2px dashed var(--border); border-radius: var(--radius); padding: 2.2rem 1.5rem; }
.testimonial-placeholder p { color: var(--muted); }
.icon-lg { width: 40px; height: 40px; color: var(--blue); margin: 0 auto .6rem; }

/* Social */
.social-row { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.social-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.6rem; min-width: 260px; text-decoration: none; color: var(--navy); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.social-card small { display: block; color: var(--muted); }
.social-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.social-icon svg { width: 28px; height: 28px; }
.social-icon.yt { background: #c4170c; }
.social-icon.fb { background: #1877f2; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.contact-grid .card:hover { transform: none; }
.info-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.info-list li { display: flex; gap: .8rem; margin-bottom: .9rem; align-items: flex-start; }
.info-list .icon { color: var(--blue); margin-top: 3px; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .3rem; color: var(--navy); }
input, select, textarea { width: 100%; padding: .7rem .9rem; border: 1.5px solid #b9c7e0; border-radius: 10px; font: inherit; font-size: 1rem; color: var(--text); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.18); }
.field.invalid input { border-color: #b42318; }
.error { display: block; color: #b42318; font-size: .82rem; min-height: 0; margin-top: .25rem; }
.form-status { margin: .9rem 0 0; font-size: .92rem; color: #0e7340; font-weight: 500; }
.map-wrap { margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: .8rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 1.2rem 1rem; margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6ef; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .92rem; }
.site-footer a { color: #c9d6ef; }
.site-footer a:hover { color: #fff; }
.logo-light .logo-text, .logo-light .logo-text small { color: #fff; }
.footer-about { margin: 1rem 0; font-size: .92rem; }
.footer-social { display: flex; gap: .7rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .85rem; text-align: center; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 90; }
.wa-float svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { order: -1; }
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1.2rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 1rem; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .logo-text { font-size: .95rem; }
  .map-wrap iframe { height: 300px; }
  .social-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
