* { box-sizing: border-box; }

:root {
  --ae-ink: #172033;
  --ae-muted: #637083;
  --ae-line: #dfe6ee;
  --ae-bg: #f5f8fb;
  --ae-panel: #ffffff;
  --ae-primary: #0f766e;
  --ae-primary-dark: #0b534e;
  --ae-accent: #f2b705;
  --ae-blue: #2563eb;
  --ae-radius: 8px;
  --ae-shadow: 0 18px 42px rgba(23, 32, 51, .09);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ae-bg);
  color: var(--ae-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ae-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ae-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  padding: 0 max(16px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(223, 230, 238, .9);
  backdrop-filter: blur(16px);
}

.ae-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ae-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--ae-radius);
  background: var(--ae-primary);
  color: white;
  font-weight: 900;
}

.ae-brand strong,
.ae-brand small {
  display: block;
  line-height: 1.05;
}

.ae-brand strong { font-size: 1rem; }
.ae-brand small { color: var(--ae-muted); font-size: .78rem; margin-top: 3px; }

.ae-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 750;
}

.ae-nav a {
  padding: 10px 12px;
  border-radius: var(--ae-radius);
  color: #334155;
}

.ae-nav a:hover { background: #eef6f5; color: var(--ae-primary-dark); }
.ae-nav .ae-nav-cta { background: var(--ae-primary); color: white; }
.ae-nav .ae-nav-cta:hover { background: var(--ae-primary-dark); color: white; }

.ae-messages { position: fixed; top: 82px; right: 16px; z-index: 50; }
.ae-message { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 12px 14px; border-radius: var(--ae-radius); box-shadow: var(--ae-shadow); }

.ae-hero {
  padding: 72px 0 46px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .94), rgba(23, 32, 51, .96)),
    url("/static/auto_ecole/img/placeholder-school.e20907551bb3.svg");
  color: white;
}

.ae-hero-grid,
.ae-detail-grid,
.ae-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
}

.ae-kicker {
  display: inline-block;
  color: var(--ae-accent);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  margin-bottom: 12px;
}

.ae-hero h1,
.ae-detail-hero h1,
.ae-form-page h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.ae-hero p,
.ae-detail-hero p,
.ae-form-page aside p {
  margin: 18px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, .84);
  font-size: 1.08rem;
  line-height: 1.7;
}

.ae-searchbar {
  display: flex;
  gap: 10px;
  width: min(640px, 100%);
  margin-top: 28px;
  padding: 7px;
  background: white;
  border-radius: var(--ae-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.ae-searchbar input,
.ae-field {
  width: 100%;
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
  padding: 12px 13px;
  font: inherit;
  color: var(--ae-ink);
  background: white;
}

.ae-searchbar input { border: 0; outline: 0; }
.ae-searchbar button,
.ae-hero-panel a,
.ae-owner-band a,
.ae-submit,
.ae-empty a,
.ae-detail-actions a {
  border: 0;
  border-radius: var(--ae-radius);
  background: var(--ae-primary);
  color: white;
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.ae-quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ae-quick-cities a {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--ae-radius);
  color: rgba(255, 255, 255, .9);
  font-size: .88rem;
}

.ae-quick-cities .is-active,
.ae-quick-cities a:hover {
  background: white;
  color: var(--ae-primary-dark);
}

.ae-hero-panel,
.ae-info-panel,
.ae-form-card,
.ae-school-card,
.ae-course-card,
.ae-owner-band,
.ae-empty {
  background: var(--ae-panel);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
  box-shadow: var(--ae-shadow);
}

.ae-hero-panel {
  padding: 28px;
  color: var(--ae-ink);
}

.ae-hero-panel span {
  display: block;
  font-size: 4.5rem;
  line-height: .9;
  color: var(--ae-primary);
  font-weight: 950;
}

.ae-hero-panel strong { display: block; margin-top: 12px; font-size: 1.35rem; }
.ae-hero-panel p { color: var(--ae-muted); font-size: .98rem; }
.ae-hero-panel a { display: inline-flex; margin-top: 18px; }

.ae-section { padding: 54px 0; }
.ae-muted { background: #edf3f6; }

.ae-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.ae-section-head h2,
.ae-owner-band h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.ae-link {
  color: var(--ae-primary);
  font-weight: 850;
}

.ae-school-grid,
.ae-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ae-school-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ae-school-media {
  height: 170px;
  background: #e8eff3;
  display: grid;
  place-items: center;
}

.ae-school-media img { width: 100%; height: 100%; object-fit: cover; }
.ae-card-body { padding: 18px; flex: 1; }
.ae-card-body h3, .ae-course-card h3 { margin: 7px 0 8px; font-size: 1.08rem; }
.ae-card-body p, .ae-course-card p, .ae-owner-band p, .ae-empty p { color: var(--ae-muted); line-height: 1.6; }

.ae-badges { min-height: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.ae-badges span { background: #e0f2fe; color: #075985; padding: 4px 7px; border-radius: var(--ae-radius); font-size: .72rem; font-weight: 850; }

.ae-card-body dl,
.ae-info-panel dl {
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.ae-card-body dl { grid-template-columns: repeat(2, 1fr); }
.ae-card-body dt, .ae-info-panel dt { color: var(--ae-muted); font-size: .72rem; text-transform: uppercase; font-weight: 850; }
.ae-card-body dd, .ae-info-panel dd { margin: 2px 0 0; font-weight: 800; }

.ae-card-actions {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
}

.ae-card-actions a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
  font-weight: 850;
  color: var(--ae-primary-dark);
}

.ae-card-actions .ae-whatsapp { background: #16a34a; color: white; border-color: #16a34a; }

.ae-course-card { padding: 20px; }
.ae-course-card span { color: var(--ae-blue); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.ae-course-card > a { color: var(--ae-primary); font-weight: 850; }

.ae-owner-band {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ae-detail-hero,
.ae-form-page {
  padding: 66px 0;
  background: linear-gradient(135deg, #172033, #0f766e);
  color: white;
}

.ae-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ae-detail-actions a:not(.ae-primary) { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }

.ae-info-panel { padding: 20px; color: var(--ae-ink); }
.ae-info-panel img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--ae-radius); background: #eef3f7; margin-bottom: 16px; }

.ae-article { padding: 54px 0; }
.ae-back { color: var(--ae-primary); font-weight: 850; }
.ae-article h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; margin: 18px 0 12px; }
.ae-article-lead { color: var(--ae-muted); font-size: 1.1rem; line-height: 1.7; }
.ae-article-body { margin-top: 28px; padding: 28px; background: white; border: 1px solid var(--ae-line); border-radius: var(--ae-radius); line-height: 1.75; box-shadow: var(--ae-shadow); }

.ae-form-grid { align-items: start; }
.ae-form-card { padding: 24px; color: var(--ae-ink); }
.ae-form-section { display: grid; gap: 14px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--ae-line); }
.ae-form-section h2 { margin: 0; font-size: 1rem; }
.ae-form-card label { display: grid; gap: 7px; font-size: .88rem; font-weight: 850; color: #334155; }
.ae-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ae-form-note { margin: 0; color: var(--ae-muted); }
.ae-form-errors, .errorlist { color: #b91c1c; font-size: .84rem; margin: 6px 0 0; padding-left: 18px; }
.ae-submit { width: 100%; font-size: 1rem; }

.ae-checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ae-checks li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--ae-radius); padding: 11px 12px; color: rgba(255, 255, 255, .9); }

.ae-empty { grid-column: 1 / -1; padding: 28px; text-align: center; }
.ae-empty h3 { margin: 0 0 8px; }
.ae-empty a { display: inline-flex; margin-top: 12px; }

.ae-footer {
  padding: 34px max(16px, calc((100vw - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 22px;
  background: #111827;
  color: white;
}

.ae-footer p { margin: 8px 0 0; color: rgba(255, 255, 255, .68); max-width: 520px; line-height: 1.6; }
.ae-footer-links { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.ae-footer-links a { color: rgba(255, 255, 255, .78); font-weight: 750; }

@media (max-width: 900px) {
  .ae-topbar { height: auto; min-height: 64px; align-items: flex-start; padding: 12px 16px; flex-direction: column; }
  .ae-nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .ae-hero-grid, .ae-detail-grid, .ae-form-grid { grid-template-columns: 1fr; }
  .ae-school-grid, .ae-course-grid { grid-template-columns: 1fr; }
  .ae-section-head, .ae-owner-band, .ae-footer { flex-direction: column; align-items: flex-start; }
  .ae-searchbar, .ae-two { grid-template-columns: 1fr; display: grid; }
}
