/* =========================================================
   ACEM / Instituto Nueva Visión — Sistema visual
   Enfoque: educación, accesibilidad, responsive, WCAG 2.2 AA
   ========================================================= */

:root {
  --brand-900: #123047;
  --brand-800: #174765;
  --brand-700: #1c5f83;
  --brand-600: #247aa5;
  --accent: #f3b33d;
  --accent-dark: #c9820c;
  --ink: #17212b;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --border: #dbe5ec;
  --success: #157347;
  --danger: #b42318;
  --shadow-sm: 0 6px 20px rgba(18, 48, 71, .08);
  --shadow-lg: 0 18px 50px rgba(18, 48, 71, .14);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--brand-700);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(243, 179, 61, .75);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.site-nav {
  background: rgba(18, 48, 71, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
}

.site-nav .navbar-brand {
  font-weight: 800;
  letter-spacing: -.02em;
}

.site-nav .navbar-brand img {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, .86);
  font-weight: 600;
  padding: .75rem .85rem !important;
  border-radius: 10px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-platform {
  background: var(--accent);
  color: #1c2730 !important;
  margin-left: .35rem;
}

.nav-platform:hover {
  background: #ffc65d !important;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(110deg, rgba(18, 48, 71, .95), rgba(28, 95, 131, .72)),
    url("imagenes/imagen1.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -170px;
  height: 320px;
  background: #fff;
  transform: rotate(-4deg);
  z-index: -1;
}

.hero-content {
  width: min(1120px, 92%);
  padding: 5rem 0 7rem;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 850;
}

.hero p {
  max-width: 690px;
  margin-bottom: 1.7rem;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.btn-acem {
  border: 0;
  border-radius: 12px;
  padding: .8rem 1.15rem;
  background: var(--accent);
  color: #1c2730;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.btn-acem:hover {
  background: #ffc65d;
  color: #1c2730;
  transform: translateY(-1px);
}

.btn-outline-light {
  border-radius: 12px;
  padding: .8rem 1.15rem;
  font-weight: 700;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading .eyebrow {
  color: var(--brand-700);
  border-color: var(--border);
  background: #fff;
}

.section-heading h2 {
  margin: .4rem 0 .8rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.program-card,
.info-card,
.contact-card,
.login-card,
.value-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.program-card {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.program-card .program-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(36, 122, 165, .1);
  color: var(--brand-700);
  font-size: 1.35rem;
}

.program-card .card-body {
  padding: 1.45rem;
}

.program-card h3 {
  margin: 1rem 0 .55rem;
  font-size: 1.15rem;
}

.program-card p {
  min-height: 54px;
  color: var(--muted);
}

.program-link {
  border: 0;
  background: transparent;
  color: var(--brand-700);
  font-weight: 800;
  padding: 0;
}

.feature-strip {
  margin-top: -2.5rem;
  position: relative;
  z-index: 3;
}

.feature-card {
  height: 100%;
  padding: 1.25rem;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.feature-card i {
  color: var(--brand-700);
  font-size: 1.5rem;
}

.feature-card strong {
  display: block;
  margin-top: .6rem;
}

.feature-card span {
  color: var(--muted);
  font-size: .92rem;
}

.about-hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
}

.about-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  letter-spacing: -.04em;
}

.about-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.1rem;
}

.value-card {
  padding: 1.4rem;
}

.value-card i {
  color: var(--accent-dark);
  font-size: 1.45rem;
}

.value-card h3 {
  margin-top: .8rem;
  font-size: 1.05rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
}

.contact-hero,
.login-hero {
  padding: 4.5rem 0 3rem;
  background: var(--surface-soft);
}

.contact-panel {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.contact-card {
  padding: 1.6rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item .icon {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(36, 122, 165, .1);
  color: var(--brand-700);
}

.form-control {
  min-height: 48px;
  border-color: var(--border);
  border-radius: 12px;
}

textarea.form-control {
  min-height: 150px;
}

.form-control:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 .2rem rgba(36, 122, 165, .14);
}

.login-page {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  background:
    radial-gradient(circle at top right, rgba(36, 122, 165, .16), transparent 35%),
    var(--surface-soft);
}

.login-card {
  width: min(460px, 100%);
  padding: 2rem;
}

.login-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer {
  margin-top: auto;
  background: var(--brand-900);
  color: rgba(255, 255, 255, .78);
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.modal-header {
  background: var(--brand-900);
  color: #fff;
}

.modal-header .btn-close {
  filter: invert(1);
}

.status-message {
  border-radius: 12px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: .75rem 1rem;
  background: #fff;
  color: var(--brand-900);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 1rem;
}

@media (max-width: 991.98px) {
  .site-nav .nav-platform {
    margin: .35rem 0 0;
  }

  .hero {
    min-height: 520px;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-content {
    padding: 4rem 0 6rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .feature-strip {
    margin-top: -1rem;
  }

  .contact-panel {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
