@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&display=swap');

/* AulaGlobal - Home PRO real basada en mockup aprobado */

:root {
  --navy: #050b1c;
  --navy-2: #081225;
  --navy-3: #0c1730;
  --white: #ffffff;
  --soft: #eef4fb;
  --text: #101828;
  --muted: #667085;
  --purple: #7c3aed;
  --violet: #a855f7;
  --blue: #238bff;
  --cyan: #06b6d4;
  --line: rgba(255,255,255,.13);
  --shadow: 0 24px 70px rgba(5, 11, 28, .18);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--text);
  background: var(--soft);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Tipografía madre AulaGlobal */
h1, h2, h3, h4, h5, h6,
.ag-brand,
.ag-nav-links,
.ag-nav-actions,
.ag-btn,
.ag-create,
.ag-login,
.ag-lang,
.ag-hero-copy h1,
.ag-hero-copy p,
.ag-hero-benefits strong,
.ag-section-head,
.ag-course-body,
.ag-stats-grid,
.ag-creator-copy,
.ag-institutions,
.ag-final,
.ag-footer {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

h1, h2, h3,
.ag-brand,
.ag-hero-copy h1,
.ag-section-head h2,
.ag-creator-copy h2,
.ag-institutions h2,
.ag-final h2 {
  font-weight: 900;
}

p, small, a, span, li, button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}



.ag-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.ag-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 28, .96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ag-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.ag-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.ag-logo-mark {
  width: 44px;
  height: 44px;
  position: relative;
  display: inline-block;
}

.ag-logo-mark:before,
.ag-logo-mark:after,
.ag-logo-mark span {
  content: "";
  position: absolute;
  border-radius: 10px;
  background: linear-gradient(135deg, #d946ef, #3b82f6);
  box-shadow: 0 0 18px rgba(124,58,237,.35);
}

.ag-logo-mark:before {
  width: 12px;
  height: 40px;
  left: 6px;
  top: 2px;
  transform: skew(-28deg);
}

.ag-logo-mark:after {
  width: 12px;
  height: 33px;
  left: 20px;
  top: 8px;
  transform: skew(-28deg);
}

.ag-logo-mark span {
  width: 20px;
  height: 20px;
  right: 0;
  bottom: 5px;
  border-radius: 7px 14px 7px 14px;
}

.ag-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 800;
}

.ag-nav-links a {
  opacity: .92;
}

.ag-nav-links a:hover {
  opacity: 1;
}

.ag-nav-links em {
  margin-left: 5px;
  font-style: normal;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.ag-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ag-search {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.ag-search svg {
  width: 26px;
  height: 26px;
  stroke: #dbeafe;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.ag-lang {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 13px;
  color: #f8fafc;
  background: rgba(255,255,255,.10);
  font-weight: 900;
}

.ag-lang svg {
  width: 21px;
  height: 21px;
  stroke: #dbeafe;
  fill: none;
  stroke-width: 2;
}

.ag-lang small {
  color: #cbd5e1;
}

.ag-login {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}

.ag-create {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 18px 40px rgba(124,58,237,.25);
}

.ag-menu-button {
  display: none;
}

/* Hero */

.ag-hero {
  color: white;
  padding: 86px 0 72px;
  background:
    radial-gradient(circle at 82% 28%, rgba(35,139,255,.28), transparent 35%),
    radial-gradient(circle at 28% 42%, rgba(124,58,237,.24), transparent 34%),
    linear-gradient(135deg, #050b1c 0%, #081225 55%, #06081a 100%);
  overflow: hidden;
}

.ag-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 64px;
  align-items: center;
}

.ag-hero-copy {
  padding-top: 18px;
}

.ag-hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 5.35vw, 76px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 950;
}

.ag-hero-copy h1 span {
  color: transparent;
  background: linear-gradient(135deg, #a855f7 0%, #3982f6 85%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ag-hero-copy p {
  margin: 30px 0 0;
  max-width: 620px;
  color: #d6dbe8;
  font-size: 20px;
  line-height: 1.58;
}

.ag-hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 44px;
  max-width: 640px;
}

.ag-hero-benefits div {
  min-width: 0;
}

.ag-hero-benefits strong {
  display: block;
  margin-top: 15px;
  max-width: 160px;
  color: white;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 850;
}

.ag-benefit-icon {
  width: 46px;
  height: 46px;
  display: block;
  position: relative;
  color: #8b5cf6;
}

.ag-benefit-icon:before,
.ag-benefit-icon:after {
  content: "";
  position: absolute;
  border: 3px solid currentColor;
}

.ag-benefit-icon.user:before {
  width: 18px;
  height: 18px;
  left: 12px;
  top: 2px;
  border-radius: 50%;
}

.ag-benefit-icon.user:after {
  width: 34px;
  height: 18px;
  left: 4px;
  bottom: 2px;
  border-radius: 24px 24px 6px 6px;
}

.ag-benefit-icon.globe:before {
  inset: 2px;
  border-radius: 50%;
}

.ag-benefit-icon.globe:after {
  left: 20px;
  top: 3px;
  height: 38px;
  border-width: 0 3px 0 0;
  box-shadow: -12px 18px 0 -15px currentColor, 12px 18px 0 -15px currentColor;
}

.ag-benefit-icon.money:before {
  inset: 2px;
  border-radius: 50%;
}

.ag-benefit-icon.money:after {
  content: "$";
  border: 0;
  inset: 4px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}

.ag-hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 46px;
}

.ag-btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  border: 1px solid transparent;
}

.ag-btn.small {
  min-height: 42px;
  padding: 0 22px;
  font-size: 13px;
}

.ag-btn-primary {
  color: white;
  background: linear-gradient(135deg, #a855f7, #1da1ff);
  box-shadow: 0 18px 45px rgba(35,139,255,.26);
}

.ag-btn-ghost,
.ag-btn-outline-dark {
  color: white;
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.05);
}

.ag-watch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: white;
  font-size: 15px;
  font-weight: 850;
}

.ag-watch span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  border: 3px solid rgba(168,85,247,.85);
  font-size: 12px;
}

/* Hero visual */

.ag-hero-art {
  min-height: 450px;
  position: relative;
}

.ag-laptop-real {
  position: absolute;
  left: 30px;
  top: 54px;
  width: 610px;
  z-index: 1;
}

.ag-laptop-screen {
  position: relative;
  height: 346px;
  padding: 24px;
  border-radius: 30px;
  border: 4px solid #1f2937;
  background: #080d1b;
  box-shadow: 0 45px 95px rgba(0,0,0,.45);
  overflow: hidden;
}

.ag-laptop-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(236,72,153,.24), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  pointer-events: none;
}

.ag-screen-top {
  position: relative;
  z-index: 2;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbeafe;
  font-size: 12px;
}

.ag-screen-top em {
  margin-left: auto;
  padding: 7px 14px;
  border-radius: 999px;
  color: #8090ae;
  background: rgba(255,255,255,.07);
  font-style: normal;
}

.ag-mini-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d946ef, #3b82f6);
}

.ag-feature-course {
  position: relative;
  z-index: 2;
  height: 178px;
  margin-top: 22px;
  padding: 28px;
  display: flex;
  align-items: center;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(14,18,36,.82), rgba(14,18,36,.18)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1200&auto=format&fit=crop") center/cover;
  overflow: hidden;
}

.ag-feature-course h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.ag-feature-course small {
  display: block;
  color: #d7def0;
  font-size: 13px;
  margin-bottom: 14px;
}

.ag-feature-course a {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding: 0 17px;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: #2d8cff;
}

.ag-laptop-screen h5 {
  position: relative;
  z-index: 2;
  margin: 22px 0 12px;
  color: white;
  font-size: 13px;
}

.ag-mini-cats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.ag-mini-cats span {
  min-height: 70px;
  padding: 13px 8px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 13px;
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  background: #151c31;
}

.ag-mini-cats i {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 9px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
}

.ag-laptop-base {
  width: 700px;
  height: 32px;
  margin-left: -45px;
  margin-top: -2px;
  border-radius: 0 0 80px 80px;
  background: linear-gradient(90deg, #1f2937, #d1d5db 48%, #1f2937);
  opacity: .8;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.25));
}

.ag-phone-real {
  position: absolute;
  right: 0;
  top: 130px;
  z-index: 4;
  width: 178px;
  height: 350px;
  padding: 21px 13px;
  border-radius: 34px;
  color: white;
  border: 5px solid #202839;
  background: #080d1b;
  box-shadow: 0 35px 80px rgba(0,0,0,.52);
}

.ag-phone-notch {
  width: 64px;
  height: 7px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #2b354a;
}

.ag-phone-real h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.03em;
}

.ag-phone-real p {
  margin: 2px 0 14px;
  color: #dbeafe;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.ag-phone-real small {
  display: block;
  margin: 10px 0 8px;
  color: #aab6cc;
  font-size: 9px;
  font-weight: 900;
}

.ag-phone-course {
  min-height: 68px;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
  background: #111827;
}

.ag-phone-course + small {
  margin-top: 15px;
}

.ag-phone-course i {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
}

.ag-phone-course.purple i {
  background: linear-gradient(135deg, #ec4899, #7c3aed);
}

.ag-phone-course.green i {
  background: linear-gradient(135deg, #34d399, #06b6d4);
}

.ag-phone-course b {
  display: block;
  font-size: 10px;
}

.ag-phone-course span {
  display: block;
  color: #b6c1d4;
  font-size: 8px;
}

.ag-phone-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  display: flex;
  justify-content: space-around;
}

.ag-phone-nav span {
  width: 13px;
  height: 13px;
  border-radius: 5px;
  background: #344055;
}

.ag-language-card {
  position: absolute;
  right: 120px;
  top: 0;
  z-index: 6;
  width: 270px;
  padding: 22px;
  border-radius: 16px;
  color: #1f2937;
  background: white;
  box-shadow: 0 25px 70px rgba(0,0,0,.26);
}

.ag-language-card h4 {
  margin: 0 0 14px;
  font-size: 14px;
}

.ag-language-card div {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  padding: 8px 0;
}

.ag-language-card span {
  font-size: 20px;
}

.ag-language-card b {
  font-size: 14px;
}

.ag-language-card small {
  grid-column: 2;
  color: #7a8495;
  font-size: 10px;
  font-weight: 700;
}

/* Trust */

.ag-trust {
  background: white;
  border-bottom: 1px solid rgba(16,24,40,.08);
}

.ag-trust-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.ag-trust-row span {
  color: #475467;
  font-size: 13px;
  font-weight: 850;
}

.ag-trust-row b {
  color: #475467;
  font-size: 21px;
  line-height: .9;
  font-weight: 850;
}

.ag-trust-row small {
  font-size: 12px;
  font-weight: 700;
}

.google { color: #4285f4 !important; }
.santander { color: #e11d48 !important; }
.bbva { color: #1d4ed8 !important; }
.ml { color: #164e9f !important; }
.andes { color: #123a70 !important; }

/* Courses */

.ag-courses-section {
  padding: 50px 0 66px;
  background: #edf4fb;
}

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

.ag-section-head span,
.ag-creator-copy span,
.ag-institutions span {
  color: #8b5cf6;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
}

.ag-section-head h2,
.ag-creator-copy h2,
.ag-institutions h2,
.ag-final h2 {
  margin: 8px 0 5px;
  color: #101828;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.ag-section-head p,
.ag-creator-copy p,
.ag-institutions p,
.ag-final p {
  margin: 0;
  color: #667085;
  font-size: 15px;
}

.ag-section-head > a {
  color: #7c3aed;
  font-size: 14px;
  font-weight: 900;
}

.ag-course-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.ag-course-card {
  overflow: hidden;
  border-radius: 15px;
  background: white;
  border: 1px solid rgba(16,24,40,.06);
  box-shadow: 0 16px 42px rgba(16,24,40,.10);
}

.ag-course-image {
  height: 160px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.ag-course-image button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
  font-size: 17px;
}

.img-code {
  background-image: url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=900&auto=format&fit=crop");
}

.img-marketing {
  background-image: url("https://images.unsplash.com/photo-1543269865-cbf427effbad?q=80&w=900&auto=format&fit=crop");
}

.img-business {
  background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=900&auto=format&fit=crop");
}

.img-design {
  background-image: url("https://images.unsplash.com/photo-1558655146-9f40138edfeb?q=80&w=900&auto=format&fit=crop");
}

.img-wellness {
  background-image: url("https://images.unsplash.com/photo-1506126613408-eca07ce68773?q=80&w=900&auto=format&fit=crop");
}

.ag-course-body {
  padding: 16px;
}

.ag-course-body > span {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  color: #7c3aed;
  background: #f1e8ff;
  font-size: 10px;
  font-weight: 900;
}

.ag-course-body h3 {
  min-height: 41px;
  margin: 12px 0 7px;
  color: #101828;
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.ag-course-body p {
  margin: 0 0 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.ag-course-body p b {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #7c3aed);
}

.ag-course-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #f59e0b;
  font-size: 11px;
}

.ag-course-bottom strong {
  color: #101828;
  font-size: 14px;
}

/* Stats */

.ag-stats-band {
  padding: 38px 0;
  color: white;
  background: #070f24;
}

.ag-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.8fr;
  gap: 30px;
  align-items: center;
}

.ag-stats-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 43px;
  line-height: 1;
  letter-spacing: -.06em;
  color: transparent;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
}

.ag-stats-grid span {
  color: #dbeafe;
  font-size: 15px;
  font-weight: 850;
}

.ag-world-map {
  min-height: 115px;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 42%, #255ccf 0 2px, transparent 3px),
    radial-gradient(circle at 23% 48%, #255ccf 0 2px, transparent 3px),
    radial-gradient(circle at 28% 40%, #255ccf 0 2px, transparent 3px),
    radial-gradient(circle at 45% 38%, #255ccf 0 2px, transparent 3px),
    radial-gradient(circle at 49% 45%, #255ccf 0 2px, transparent 3px),
    radial-gradient(circle at 56% 50%, #255ccf 0 2px, transparent 3px),
    radial-gradient(circle at 68% 34%, #255ccf 0 2px, transparent 3px),
    radial-gradient(circle at 75% 47%, #255ccf 0 2px, transparent 3px),
    rgba(255,255,255,.03);
}

.pin {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid white;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.pin.one { left: 10%; top: 18%; }
.pin.two { left: 36%; top: 52%; background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.pin.three { right: 24%; top: 18%; background: linear-gradient(135deg, #a855f7, #3b82f6); }
.pin.four { right: 8%; bottom: 14%; }

/* Creator */

.ag-creator {
  padding: 58px 0;
  background: #edf4fb;
}

.ag-creator-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr .78fr;
  gap: 36px;
  align-items: center;
}

.ag-creator-photo {
  min-height: 285px;
  position: relative;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.2)),
    url("https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?q=80&w=1000&auto=format&fit=crop") center/cover;
  box-shadow: var(--shadow);
}

.ag-income {
  position: absolute;
  right: 26px;
  top: 36px;
  width: 170px;
  padding: 18px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 20px 55px rgba(16,24,40,.18);
}

.ag-income small {
  color: #667085;
  font-size: 11px;
  font-weight: 850;
}

.ag-income strong {
  display: block;
  margin: 6px 0 15px;
  font-size: 19px;
}

.ag-income span {
  height: 52px;
  display: block;
  border-radius: 12px;
  background:
    linear-gradient(145deg, transparent 48%, #1da1ff 49% 53%, transparent 54%),
    linear-gradient(135deg, rgba(6,182,212,.14), rgba(124,58,237,.16));
}

.ag-creator-copy h2 {
  font-size: 36px;
}

.ag-creator-copy ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
}

.ag-creator-copy li {
  margin: 8px 0;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.ag-creator-copy li:before {
  content: "✓";
  margin-right: 8px;
  color: #7c3aed;
}

.ag-rank-card {
  padding: 25px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.ag-rank-card h4 {
  margin: 0 0 16px;
}

.ag-rank-card div {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(16,24,40,.08);
  font-size: 12px;
}

.ag-rank-card span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #f59e0b;
  font-weight: 900;
}

.ag-rank-card small {
  font-weight: 900;
  color: #344054;
}

.ag-rank-card > a {
  display: block;
  margin-top: 15px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 900;
}

/* Institutions */

.ag-institutions {
  padding: 62px 0 64px;
  color: white;
  background: linear-gradient(135deg, #08091d, #0a1027 54%, #180d3d);
}

.ag-institution-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 58px;
  align-items: center;
}

.ag-institutions h2 {
  color: white;
  max-width: 580px;
}

.ag-institutions p {
  max-width: 560px;
  color: #cbd5e1;
}

.ag-institution-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 38px 0 30px;
}

.ag-institution-icons i {
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: 11px;
  border-radius: 12px;
  border: 2px solid #a855f7;
}

.ag-institution-icons small {
  display: block;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.ag-university {
  display: grid;
  grid-template-columns: .58fr 1fr;
  align-items: center;
}

.ag-university-person {
  height: 260px;
  border-radius: 26px 0 0 26px;
  background:
    linear-gradient(135deg, rgba(6,182,212,.28), rgba(124,58,237,.22)),
    url("https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?q=80&w=900&auto=format&fit=crop") center/cover;
}

.ag-university-card {
  min-height: 220px;
  padding: 26px;
  border-radius: 0 22px 22px 0;
  color: #101828;
  background: white;
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
}

.ag-university-card h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.ag-university-card > small {
  color: #06b6d4;
  font-weight: 850;
}

.ag-uni-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 23px 0;
}

.ag-uni-metrics b {
  display: block;
  font-size: 18px;
}

.ag-uni-metrics span {
  display: block;
  color: #667085;
  font-size: 11px;
  line-height: 1.2;
}

.ag-bars {
  height: 62px;
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, #38bdf8 0 5px, transparent 5px 12px);
}

/* Final */

.ag-final {
  padding: 34px 0 38px;
  color: white;
  text-align: center;
  background: #122036;
}

.ag-final h2 {
  color: white;
  font-size: 34px;
}

.ag-final p {
  color: #dbeafe;
  margin-bottom: 24px;
}

.ag-final .ag-btn {
  margin: 0 6px;
}

/* Footer */

.ag-footer {
  padding: 36px 0 38px;
  color: white;
  background: #050b1c;
}

.ag-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 13px;
}

.ag-footer small {
  color: #8d99ad;
}

.ag-footer b {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.ag-footer a {
  display: block;
  margin: 7px 0;
  color: #b8c2d6;
  font-size: 13px;
}

.ag-social {
  margin: 0;
  color: #dbeafe;
  letter-spacing: .2em;
}

/* Compatibility for internal pages */

.page-hero {
  padding: 80px 0;
  color: white;
  background: linear-gradient(135deg, #050b1c, #111b3c);
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -.06em;
}

.auth-section {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 60px 16px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 32px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.auth-card.wide {
  width: min(680px, 100%);
}

label {
  display: block;
  margin: 16px 0 7px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(16,24,40,.14);
  border-radius: 14px;
  font: inherit;
}

textarea {
  min-height: 120px;
  padding: 14px;
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 800;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

/* Responsive */

@media (max-width: 1100px) {
  .ag-nav-links {
    gap: 16px;
  }

  .ag-hero-grid,
  .ag-creator-grid,
  .ag-institution-grid {
    grid-template-columns: 1fr;
  }

  .ag-hero-art {
    min-height: 550px;
  }

  .ag-laptop-real {
    left: 0;
    right: auto;
  }

  .ag-course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ag-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ag-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .ag-container {
    width: min(100% - 28px, 1180px);
  }

  .ag-menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    gap: 4px;
    place-content: center;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.09);
  }

  .ag-menu-button span {
    width: 20px;
    height: 2px;
    display: block;
    background: white;
  }

  .ag-nav-links,
  .ag-nav-actions {
    display: none;
  }

  .menu-open .ag-nav-links,
  .menu-open .ag-nav-actions {
    position: absolute;
    left: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 20px;
    background: #071028;
    box-shadow: var(--shadow);
  }

  .menu-open .ag-nav-links {
    top: 72px;
  }

  .menu-open .ag-nav-actions {
    top: 270px;
  }

  .ag-hero {
    padding: 56px 0 50px;
  }

  .ag-hero-copy h1 {
    font-size: 46px;
  }

  .ag-hero-benefits,
  .ag-course-grid,
  .ag-stats-grid,
  .ag-institution-icons,
  .ag-footer-grid {
    grid-template-columns: 1fr;
  }

  .ag-hero-buttons {
    flex-direction: column;
  }

  .ag-hero-art {
    min-height: 470px;
  }

  .ag-laptop-real {
    width: 100%;
    top: 35px;
  }

  .ag-laptop-screen {
    height: 310px;
  }

  .ag-language-card,
  .ag-phone-real {
    display: none;
  }

  .ag-section-head,
  .ag-university {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ag-university-person {
    border-radius: 22px 22px 0 0;
  }

  .ag-university-card {
    border-radius: 0 0 22px 22px;
  }
}


/* =========================================================
   HEADER PRO v2 - alineado, compacto y responsive
   ========================================================= */

.ag-header {
  background: rgba(5, 11, 28, .985);
  border-bottom: 1px solid rgba(56, 130, 246, .16);
}

.ag-nav {
  min-height: 68px;
  height: 68px;
  gap: 18px;
  display: flex;
  align-items: center;
}

/* Logo real */
.ag-brand {
  width: 188px;
  min-width: 188px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.ag-brand .ag-logo-mark {
  width: 188px;
  height: 48px;
  display: block;
  background: url('../img/logo-aulaglobal.png') left center / contain no-repeat !important;
}

.ag-brand .ag-logo-mark:before,
.ag-brand .ag-logo-mark:after,
.ag-brand .ag-logo-mark span {
  display: none !important;
}

.ag-brand strong {
  display: none !important;
}

/* Links centrales */
.ag-nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  color: #eef2ff;
  white-space: nowrap;
}

.ag-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #eef2ff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
  opacity: .92;
}

.ag-nav-links a:hover {
  opacity: 1;
  color: #ffffff;
}

.ag-nav-links em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  transform: translateY(-1px);
}

/* Acciones derecha */
.ag-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ag-search {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.ag-search svg {
  width: 23px;
  height: 23px;
  stroke: #e0e7ff;
  stroke-width: 2.2;
}

.ag-lang {
  height: 40px;
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, .105);
  font-size: 13px;
  font-weight: 800;
}

.ag-lang svg {
  width: 19px;
  height: 19px;
}

.ag-lang small {
  font-size: 11px;
  color: #cbd5e1;
  transform: translateY(-1px);
}

.ag-login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.ag-create {
  min-width: 124px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #7c3aed, #238bff);
  box-shadow: 0 15px 35px rgba(35, 139, 255, .22);
}

/* Ajuste de ancho para pantallas medianas */
@media (max-width: 1220px) {
  .ag-container {
    width: min(100% - 28px, 1180px);
  }

  .ag-brand {
    width: 176px;
    min-width: 176px;
  }

  .ag-brand .ag-logo-mark {
    width: 176px;
  }

  .ag-nav-links {
    gap: 18px;
  }

  .ag-nav-links a {
    font-size: 12.5px;
  }

  .ag-nav-actions {
    gap: 10px;
  }

  .ag-lang {
    min-width: 76px;
  }

  .ag-create {
    min-width: 112px;
    padding: 0 14px;
  }
}

@media (max-width: 1060px) {
  .ag-nav-links a[href="#precios"],
  .ag-nav-links a[href="#empresas"] {
    display: none;
  }

  .ag-brand {
    width: 170px;
    min-width: 170px;
  }

  .ag-brand .ag-logo-mark {
    width: 170px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .ag-header {
    position: sticky;
  }

  .ag-nav {
    min-height: 66px;
    height: 66px;
    padding: 8px 0;
  }

  .ag-brand {
    width: 172px;
    min-width: 172px;
    height: 46px;
  }

  .ag-brand .ag-logo-mark {
    width: 172px;
    height: 46px;
  }

  .ag-menu-button {
    width: 44px;
    height: 44px;
    margin-left: auto;
    display: grid;
    gap: 5px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .085);
  }

  .ag-menu-button span {
    width: 21px;
    height: 2px;
    display: block;
    border-radius: 99px;
    background: #ffffff;
  }

  .ag-nav-links,
  .ag-nav-actions {
    display: none;
  }

  .menu-open .ag-nav-links {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background: rgba(7, 16, 40, .98);
    box-shadow: 0 30px 80px rgba(0,0,0,.38);
  }

  .menu-open .ag-nav-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    color: #f8fafc;
    font-size: 14px;
  }

  .menu-open .ag-nav-links a:hover {
    background: rgba(255,255,255,.08);
  }

  .menu-open .ag-nav-actions {
    position: absolute;
    top: 326px;
    left: 14px;
    right: 14px;
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background: rgba(7, 16, 40, .98);
    box-shadow: 0 30px 80px rgba(0,0,0,.38);
  }

  .menu-open .ag-search {
    display: none;
  }

  .menu-open .ag-lang,
  .menu-open .ag-login,
  .menu-open .ag-create {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .menu-open .ag-login {
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 13px;
  }
}

@media (max-width: 390px) {
  .ag-brand {
    width: 154px;
    min-width: 154px;
  }

  .ag-brand .ag-logo-mark {
    width: 154px;
  }
}
