/* Escuela en Línea INSUNTE — modern lightweight UI */
:root {
  --blue-950: #0a1628;
  --blue-900: #0f2744;
  --blue-800: #153a5c;
  --blue-700: #1e4976;
  --blue-600: #2563a8;
  --blue-500: #3b7fc4;
  --gold-600: #b8860b;
  --gold-500: #c9a227;
  --gold-400: #d4af37;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --white: #fafbfc;
  --gray-100: #eef2f6;
  --gray-200: #dde4ec;
  --gray-500: #5c6b7a;
  --gray-700: #334155;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.08);
  --radius: 12px;
  --radius-lg: 18px;
  --font: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-600);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--blue-900);
  color: var(--white);
  z-index: 9999;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  min-height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--blue-950);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--blue-800);
}

.brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  justify-content: flex-end;
}

.nav-main a {
  display: block;
  padding: 0.45rem 0.65rem;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  background: var(--gray-100);
  color: var(--blue-800);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--blue-900);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-main {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 1.25rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-main.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-main ul {
    flex-direction: column;
    gap: 0.2rem;
  }
  .nav-main a {
    padding: 0.65rem 0.75rem;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 45%, var(--blue-700) 100%);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(45, 106, 79, 0.2), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 4rem 1.25rem 4.25rem;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  opacity: 0.94;
  max-width: 38ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--blue-950);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  background: var(--gold-400);
  color: var(--blue-950);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-ghost {
  background: var(--gray-100);
  color: var(--blue-900);
}

.btn-ghost:hover {
  background: var(--gray-200);
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: 3.25rem 1.25rem;
}

.section-alt {
  background: var(--gray-100);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 52ch;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-950);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--gray-500);
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--blue-900);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--gray-500);
}

.card a.stretched {
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}

.card a.stretched:hover {
  text-decoration: underline;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-800);
  background: rgba(45, 106, 79, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.65rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.quote {
  font-style: italic;
  color: var(--gray-700);
  margin: 0 0 1rem;
}

.quote-footer {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-800);
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  background: var(--white);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border: none;
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item button::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--gold-600);
  flex-shrink: 0;
}

.faq-item button[aria-expanded="true"]::after {
  content: "−";
}

.faq-panel {
  padding: 0 1.15rem 1rem;
  display: none;
}

.faq-panel.is-open {
  display: block;
}

.faq-panel p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.98rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: var(--white);
  padding: 2.75rem 1.25rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.cta-band p {
  margin: 0 auto 1.25rem;
  max-width: 46ch;
  opacity: 0.95;
}

.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 1.25rem 2rem;
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--gold-400);
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

/* Inner pages */
.page-hero {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 2.5rem 1.25rem 2.75rem;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 840px) {
  .page-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  opacity: 0.93;
  max-width: 50ch;
}

.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0.85rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero .breadcrumbs ol {
  color: rgba(255, 255, 255, 0.7);
}

.page-banner img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.prose {
  max-width: 65ch;
}

.prose h2 {
  margin-top: 2rem;
  color: var(--blue-950);
  font-size: 1.35rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--blue-900);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.note-small {
  font-size: 0.88rem;
  color: var(--gray-500);
}

.blog-list article {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.blog-list h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.blog-list h2 a {
  color: var(--blue-900);
  text-decoration: none;
}

.blog-list h2 a:hover {
  text-decoration: underline;
}

.meta {
  font-size: 0.85rem;
  color: var(--gray-500);
}
