:root{
  --orange:#ff7800;
  --green:#69cd21;
  --blue:#004cc9;
  --bg:#f4f7fb;
  --text:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --border:#e6edf6;
  --radius:18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow2: 0 12px 40px rgba(15, 23, 42, .12);
  --container: 1200px;
  --focus: 0 0 0 4px rgba(0, 76, 201, .18);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:var(--bg);
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--container); margin:0 auto; padding:0 28px;}

.skip-link{
  position:absolute; left:-999px; top:10px;
  background:#fff; border:1px solid var(--border);
  padding:10px 12px; border-radius:12px;
  box-shadow:var(--shadow);
  z-index:9999;
}
.skip-link:focus{left:12px; outline:none; box-shadow:var(--focus), var(--shadow);}
:focus-visible{outline:none; box-shadow:var(--focus); border-radius:12px}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(244,247,251,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(230,237,246,.9);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:18px;
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:800;
  letter-spacing:.2px;
}
.brand__logo{
  width:36px;height:36px;border-radius:10px;
  background:linear-gradient(135deg,var(--orange),#ffa45a);
  box-shadow: 0 10px 20px rgba(255,120,0,.25);
  flex:0 0 auto;
}

nav ul{display:flex; gap:10px; list-style:none; padding:0; margin:0;}
nav a{
  padding:10px 12px; border-radius:12px; color:#1f2a44;
  font-weight:800;
  transition:.18s ease;
}
nav a:hover{background:#eaf0fb}
nav a.is-active{background:#eaf0fb}

.header__actions{display:flex; gap:10px; align-items:center;}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  transition:.18s ease;
  user-select:none;
  white-space:nowrap;
}
.btn--primary{background:var(--blue); color:#fff;}
.btn--primary:hover{transform: translateY(-1px); box-shadow: var(--shadow2);}
.btn--accent{background:var(--green); color:#0b1b07;}
.btn--accent:hover{transform: translateY(-1px); box-shadow: 0 14px 30px rgba(105,205,33,.25);}
.btn--ghost{background:#fff; border-color:var(--border); color:#1f2a44;}
.btn--ghost:hover{transform: translateY(-1px); box-shadow: var(--shadow);}

/* Mobile menu */
.burger{
  display:none;
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  cursor:pointer;
}
.burger svg{width:22px;height:22px}
.mnav{
  position:fixed; inset:0;
  background:rgba(15,23,42,.45);
  display:none;
  z-index:60;
}
.mnav[aria-hidden="false"]{display:block}
.mnav__panel{
  position:absolute; right:0; top:0; height:100%; width:min(380px, 92vw);
  background:rgba(244,247,251,.96);
  backdrop-filter: blur(14px);
  border-left:1px solid rgba(230,237,246,.9);
  padding:16px;
  box-shadow: var(--shadow2);
}
.mnav__top{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px;}
.mnav__list{list-style:none; padding:0; margin:10px 0 16px;}
.mnav__list a{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px; border-radius:14px;
  background:#fff; border:1px solid var(--border);
  margin-bottom:10px;
  font-weight:900;
}
.mnav__list a:hover{box-shadow: var(--shadow); transform: translateY(-1px); transition:.18s ease;}

/* Page */
main{padding: 24px 0 60px;}
.page-hero{
  background: linear-gradient(180deg, var(--orange) 0%, #ff8e28 60%, rgba(255,120,0,0) 100%);
  padding:28px 0 18px;
}
.page-hero__card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.55);
  border-radius:24px;
  box-shadow: var(--shadow);
  padding:22px 22px;
}
.h1{margin:0 0 8px; font-size:34px; letter-spacing:-.4px}
.p{margin:0; color:#334155; font-weight:650; max-width:70ch}
.section-title{margin:22px 0 12px; font-size:20px; letter-spacing:-.2px;}
.section-sub{margin:0 0 16px; color:var(--muted); font-weight:650;}
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

/* Quick cards (home) */
.quick{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  margin-top:14px;
}
.quick a{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px 16px;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  transition:.18s ease;
  display:flex; justify-content:space-between; gap:10px;
  min-height:82px;
}
.quick a:hover{transform: translateY(-2px); box-shadow: var(--shadow);}
.qleft{display:flex; gap:12px; align-items:flex-start;}
.icon{
  width:40px;height:40px;border-radius:14px;
  display:grid; place-items:center;
  border:1px solid var(--border);
  background:#f7fbff;
  font-weight:900;
  flex:0 0 auto;
}
.icon svg{width:20px;height:20px}
.qtitle{font-weight:950; margin:1px 0 3px;}
.qdesc{margin:0; color:var(--muted); font-weight:650; font-size:13px;}
.qarrow{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:#eef4ff; border:1px solid #dbe7ff;
  font-weight:900;
}

/* Bono */
.bono{
  margin-top:22px;
  background: linear-gradient(135deg, rgba(105,205,33,.98), rgba(105,205,33,.85));
  border-radius:24px;
  border:1px solid rgba(255,255,255,.35);
  box-shadow: 0 18px 45px rgba(105,205,33,.25);
  overflow:hidden;
}
.bono__inner{
  padding:22px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:stretch;
}
.bono h3{margin:0 0 8px; font-size:20px;}
.bono p{margin:0 0 12px; font-weight:800; color:#0b1b07; max-width:65ch;}
.bono ul{margin:0; padding-left:18px; font-weight:900; color:#0b1b07;}
.bono li{margin:8px 0;}
.bono__side{
  background: rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.35);
  border-radius:18px;
  padding:16px;
  display:flex; flex-direction:column; justify-content:space-between;
  gap:12px;
}
.stat{background:rgba(255,255,255,.35); border-radius:14px; padding:12px; font-weight:950; color:#0b1b07;}
.stat small{display:block; font-weight:900; opacity:.85}

/* Footer */
footer{
  border-top:1px solid rgba(230,237,246,.9);
  padding:26px 0;
  color:var(--muted);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:18px;
}
.footer__title{color:#1f2a44; font-weight:950; margin:0 0 10px;}

/* WhatsApp */
.wa{
  position:fixed; right:18px; bottom:18px; z-index:70;
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid var(--border);
  box-shadow: var(--shadow2);
  font-weight:950;
}
.wa svg{width:18px;height:18px}
.wa:hover{transform: translateY(-1px); transition:.18s ease}
.wa small{display:none; color:var(--muted); font-weight:800}
@media (min-width: 860px){
  .wa small{display:inline}
}

/* Responsive */
@media (max-width: 1000px){
  .quick{grid-template-columns: repeat(2, 1fr);}
  .bono__inner{grid-template-columns: 1fr;}
  nav{display:none;}
  .burger{display:inline-grid; place-items:center;}
}
@media (max-width: 560px){
  .container{padding:0 16px;}
  .quick{grid-template-columns: 1fr;}
  .h1{font-size:28px;}
  .header__actions a.btn--ghost{display:none;}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none !important; animation:none !important}
}
@media (max-width: 1000px){
  .grid-3{grid-template-columns: repeat(2, 1fr) !important;}
}
@media (max-width: 560px){
  .grid-3{grid-template-columns: 1fr !important;}
}
/* ===== Nosotros (layout tipo screenshot, optimizado desktop) ===== */

.nos-hero{
  background: linear-gradient(180deg, rgba(105,205,33,.98) 0%, rgba(105,205,33,.92) 65%, rgba(105,205,33,0) 100%);
  padding: 18px 0 16px;
}

.nos-topbar{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding: 10px 0 6px;
}

.nos-back{
  position:absolute;
  left:0;
  top:50%;
  transform: translateY(-50%);
  width:42px;
  height:42px;
  border-radius:14px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.45);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 20px rgba(15,23,42,.10);
  transition:.18s ease;
}
.nos-back:hover{ transform: translateY(-52%); box-shadow: 0 14px 28px rgba(15,23,42,.14); }

.nos-back svg{ width:18px; height:18px; }

.nos-title{
  margin:0;
  font-size:20px;
  font-weight:950;
  color:#0b1b07;
  letter-spacing:-.2px;
}

.nos-wrap{
  max-width: 1060px; /* más estrecho que el container para un look “card centrada” */
  margin: 0 auto;
  padding: 0 28px;
}

.nos-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items:start;
  margin-top: 14px;
}

.nos-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(230,237,246,.95);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

.nos-text p{
  margin: 0 0 10px;
  color:#334155;
  font-weight:650;
  line-height:1.55;
}
.nos-text p:last-child{ margin-bottom:0; }

.nos-section-title{
  margin:0 0 8px;
  font-weight:950;
  letter-spacing:-.2px;
  color:#0f172a;
}

.nos-sub{
  margin:0 0 12px;
  color: var(--muted);
  font-weight:700;
}

.offer-list{
  display:grid;
  gap:10px;
  margin-top:12px;
}

.offer-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  background:#f7fbff;
  border:1px solid rgba(230,237,246,.95);
  transition:.18s ease;
}
.offer-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  background:#ffffff;
}

.offer-ico{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(230,237,246,.95);
  background:#ffffff;
  flex:0 0 auto;
}
.offer-ico svg{ width:20px; height:20px; }

.offer-title{
  margin:0;
  font-weight:950;
  color:#0f172a;
  line-height:1.15;
}
.offer-desc{
  margin:2px 0 0;
  color: var(--muted);
  font-weight:750;
  font-size:13px;
}

.nos-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 1000px){
  .nos-grid{ grid-template-columns: 1fr; }
  .nos-wrap{ padding: 0 16px; }
  .nos-back{ left: 0; }
}
/* ===== Horarios / Oferta (desde BD) ===== */
.courses-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.course-card{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(230,237,246,.95);
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.course-head{
  padding:16px 16px 12px;
  border-bottom:1px solid rgba(230,237,246,.95);
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
}

.course-title{
  margin:0;
  font-weight:950;
  letter-spacing:-.2px;
}
.course-desc{
  margin:6px 0 0;
  color:var(--muted);
  font-weight:700;
  max-width: 90ch;
}

.groups{
  padding:14px 16px 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.group{
  background:#fff;
  border:1px solid rgba(230,237,246,.95);
  border-radius:18px;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 220px;
}

.group-img{
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,76,201,.18), transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(105,205,33,.18), transparent 45%),
    radial-gradient(circle at 60% 85%, rgba(255,120,0,.18), transparent 50%),
    linear-gradient(180deg,#ffffff,#f2f6ff);
  border-bottom:1px solid rgba(230,237,246,.95);
}
.group-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.group-body{
  padding:12px 12px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}

.group-name{
  margin:0;
  font-weight:950;
  letter-spacing:-.2px;
}
.group-short{
  margin:0;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
  line-height:1.35;
}

.badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(230,237,246,.95);
  background:#f7fbff;
  font-weight:900;
  font-size:12px;
  color:#1f2a44;
}

.group-foot{
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid rgba(230,237,246,.95);
  background:#fbfdff;
}
.price{
  font-weight:950;
}
.price small{
  display:block;
  color:var(--muted);
  font-weight:800;
}

@media (max-width: 1100px){
  .groups{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .groups{ grid-template-columns: 1fr; }
}
