:root {
  --purple-950: #16051f;
  --purple-900: #250735;
  --purple-800: #35104d;
  --purple-700: #4b1769;
  --purple-100: #f5ecfb;
  --ink: #1f1726;
  --muted: #6d6276;
  --line: #e8deef;
  --white: #ffffff;
  --teal: #19a7a8;
  --gold: #f4b942;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  padding-top: var(--header-height, 132px);
}

a {
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1040;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(22, 5, 31, 0.08);
}

.top-strip {
  color: rgba(255, 255, 255, 0.86);
  background: var(--purple-950);
  font-size: 0.9rem;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  min-height: 38px;
  padding: 0.35rem 0;
}

.top-strip span,
.top-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-location {
  flex: 1 1 620px;
  justify-content: center;
  max-width: 980px;
  line-height: 1.35;
  text-align: center;
}

.top-phone {
  flex: 0 0 auto;
  white-space: nowrap;
}

.top-info-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.top-strip a {
  color: var(--gold);
  font-weight: 800;
}

.site-navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--purple-950);
  font-weight: 800;
  letter-spacing: 0;
}

.navbar-brand {
  padding: 0.45rem 0;
}

.brand-logo {
  display: block;
  width: min(250px, 52vw);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  background: transparent;
}

.footer-logo {
  display: block;
  width: min(390px, 78vw);
  height: auto;
  max-height: 145px;
  object-fit: contain;
  background: transparent;
}

.nav-link {
  color: var(--ink);
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple-700);
}

.dropdown-menu {
  min-width: 290px;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(53, 16, 77, 0.14);
}

.dropdown-menu-wide {
  min-width: min(430px, calc(100vw - 2rem));
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
  white-space: normal;
}

.dropdown-item i {
  color: var(--purple-700);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--purple-950);
  background: var(--purple-100);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  --bs-btn-bg: var(--purple-800);
  --bs-btn-border-color: var(--purple-800);
  --bs-btn-hover-bg: var(--purple-950);
  --bs-btn-hover-border-color: var(--purple-950);
  --bs-btn-active-bg: var(--purple-950);
  --bs-btn-active-border-color: var(--purple-950);
}

.btn-outline-primary {
  --bs-btn-color: var(--purple-800);
  --bs-btn-border-color: var(--purple-800);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--purple-800);
  --bs-btn-hover-border-color: var(--purple-800);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--purple-950);
  --bs-btn-active-border-color: var(--purple-950);
}

.btn-outline-light {
  --bs-btn-color: var(--white);
  --bs-btn-border-color: rgba(255, 255, 255, 0.65);
  --bs-btn-hover-color: var(--purple-950);
  --bs-btn-hover-bg: var(--white);
  --bs-btn-hover-border-color: var(--white);
}

.nav-cta {
  padding: 0.6rem 1rem;
}

.admission-slider {
  color: var(--white);
  background: var(--purple-950);
}

.hero-slide {
  min-height: 690px;
  padding: 5.5rem 0 6rem;
  background-position: center;
  background-size: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 5, 31, 0.95), rgba(53, 16, 77, 0.76), rgba(22, 5, 31, 0.3)),
    linear-gradient(0deg, rgba(22, 5, 31, 0.48), transparent 45%);
}

.hero-slide > .container {
  position: relative;
  z-index: 2;
}

.hero-slide-one {
  background-image: url("../img/fotos/colegio-cambridge.jpg");
}

.hero-slide-two {
  background-image: url("../img/fotos/clase-ingles.jpg");
}

.hero-slide-three {
  background-image: url("../img/fotos/cambridge-certificado.jpg");
}

.admission-slider .carousel-item {
  position: relative;
}

.admission-slider .carousel-indicators {
  bottom: 1.35rem;
}

.admission-slider .carousel-indicators [data-bs-target] {
  width: 42px;
  height: 5px;
  border-radius: 999px;
}

.admission-slider .carousel-control-prev,
.admission-slider .carousel-control-next {
  width: 6%;
}

.hero-slide h1 {
  max-width: 760px;
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.4rem, 5.6vw, 4.75rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  animation: riseIn 650ms ease both;
}

.hero-slide p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
  line-height: 1.7;
  animation: riseIn 750ms ease both;
}

.hero-slide .hero-actions,
.hero-slide .admission-card {
  animation: riseIn 850ms ease both;
}

.admission-card {
  max-width: 430px;
  margin-left: auto;
  padding: 2rem;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.admission-card > span {
  color: var(--purple-700);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.admission-card h2 {
  margin: 0.6rem 0;
  color: var(--purple-950);
  font-weight: 900;
}

.admission-card p {
  color: var(--muted);
  font-size: 1rem;
}

.admission-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.admission-steps div {
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--purple-100);
}

.admission-steps strong,
.admission-steps span {
  display: block;
}

.admission-steps strong {
  color: var(--purple-800);
  font-size: 1.35rem;
}

.admission-steps span {
  color: var(--muted);
  font-size: 0.88rem;
}

.levels-strip {
  position: relative;
  z-index: 2;
  margin-top: -2.6rem;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(53, 16, 77, 0.15);
}

.levels-grid a {
  min-height: 150px;
  padding: 1.35rem;
  color: var(--purple-950);
  background: var(--white);
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.levels-grid a:last-child {
  border-right: 0;
}

.levels-grid a:hover {
  background: var(--purple-100);
  transform: translateY(-4px);
}

.levels-grid span,
.levels-grid strong,
.levels-grid small {
  display: block;
}

.levels-grid span {
  color: var(--purple-700);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.levels-grid strong {
  margin: 0.55rem 0;
  font-size: 1.3rem;
}

.levels-grid small {
  color: var(--muted);
  font-weight: 700;
}

.hero-section {
  position: relative;
  padding: 6.5rem 0 4.5rem;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(22, 5, 31, 0.98), rgba(75, 23, 105, 0.92)),
    radial-gradient(circle at 78% 15%, rgba(25, 167, 168, 0.42), transparent 32%);
  overflow: hidden;
}

.hero-section h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.55rem, 6vw, 4.9rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-copy,
.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--purple-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0;
}

.hero-actions .btn,
.contact-form .btn,
.cta-panel .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 560px;
}

.hero-stats div {
  min-height: 86px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.28rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-media {
  position: relative;
  min-height: 500px;
}

.hero-media img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.floating-note {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  gap: 0.7rem;
  max-width: 320px;
  padding: 1rem;
  border-radius: 8px;
  color: var(--purple-950);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.floating-note i {
  color: var(--teal);
  font-size: 1.45rem;
}

.section-band {
  padding: 5rem 0;
  background: #fbf8fd;
}

.content-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.institution-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.institution-intro h2 {
  max-width: 850px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.impact-grid div {
  min-height: 132px;
  padding: 1.4rem;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple-950), var(--purple-700));
}

.impact-grid strong,
.impact-grid span {
  display: block;
}

.impact-grid strong {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
}

.impact-grid span {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2,
.content-section h2,
.cta-panel h2 {
  color: var(--purple-950);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
}

.section-heading p,
.content-section p,
.cta-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.program-card,
.step-card,
.program-detail,
.contact-panel,
.contact-form {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.program-card {
  padding: 1.5rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 45px rgba(53, 16, 77, 0.12);
}

.program-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  background: var(--purple-100);
  color: var(--purple-800);
  font-size: 1.55rem;
}

.program-card h3,
.program-detail h2,
.contact-panel h2 {
  color: var(--purple-950);
  font-weight: 850;
}

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

.program-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--purple-800);
  font-weight: 800;
}

.reason-card {
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(53, 16, 77, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reason-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(53, 16, 77, 0.16);
}

.reason-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.reason-card div {
  padding: 1.35rem;
}

.reason-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  color: var(--white);
  background: var(--purple-800);
  font-weight: 900;
}

.reason-card h3 {
  color: var(--purple-950);
  font-weight: 850;
}

.reason-card p {
  color: var(--muted);
  line-height: 1.65;
}

.rounded-image {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.feature-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.feature-list div,
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-list i,
.contact-line i {
  color: var(--teal);
  font-size: 1.25rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.method-grid div {
  min-height: 170px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8fd;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.method-grid div:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 23, 105, 0.3);
  background: var(--white);
}

.method-grid i {
  color: var(--teal);
  font-size: 1.65rem;
}

.method-grid h3 {
  margin-top: 0.85rem;
  color: var(--purple-950);
  font-size: 1.18rem;
  font-weight: 850;
}

.method-grid p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.results-section {
  padding: 5rem 0;
  color: var(--white);
  background: var(--purple-950);
}

.results-section img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.results-section h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  font-weight: 900;
}

.results-section p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.cta-section {
  padding: 0 0 5rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-950), var(--purple-700));
}

.cta-panel h2,
.cta-panel p {
  color: var(--white);
}

.page-hero {
  padding: 5rem 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-950), var(--purple-800));
}

.program-detail {
  margin-bottom: 1.2rem;
  padding: 1.8rem;
}

.program-detail ul {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.program-badge {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  color: var(--purple-950);
  background: var(--purple-100);
  font-weight: 800;
}

.step-card {
  padding: 1.5rem;
}

.step-card span {
  color: var(--teal);
  font-size: 2rem;
  font-weight: 900;
}

.step-card h2 {
  margin-top: 0.75rem;
  font-size: 1.35rem;
}

.contact-panel,
.contact-form {
  padding: 1.7rem;
}

.contact-panel {
  background: #fbf8fd;
}

.contact-line {
  margin-top: 1rem;
  color: var(--muted);
}

.contact-form label {
  margin-bottom: 0.4rem;
  color: var(--purple-950);
  font-weight: 750;
}

.form-control,
.form-select {
  min-height: 48px;
  border-color: var(--line);
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--purple-700);
  box-shadow: 0 0 0 0.2rem rgba(75, 23, 105, 0.12);
}

.site-footer {
  padding: 3rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  background: var(--purple-950);
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 1rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1060;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: #25d366;
  font-weight: 850;
  box-shadow: 0 16px 42px rgba(37, 211, 102, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: var(--white);
  background: #1fb457;
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(37, 211, 102, 0.42);
}

.whatsapp-float i {
  font-size: 1.45rem;
  line-height: 1;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .top-strip-inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.45rem 0;
  }

  .top-location {
    flex-basis: 100%;
    max-width: 100%;
  }

  .admission-card {
    margin-left: 0;
  }

  .levels-grid,
  .impact-grid,
  .institution-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institution-intro {
    align-items: start;
  }

  .hero-section {
    padding-top: 4.5rem;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
    height: 360px;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 1199.98px) {
  .site-navbar .navbar-collapse {
    max-height: calc(100vh - var(--header-height, 132px) + 72px);
    overflow-y: auto;
    padding: 0.75rem 0 1rem;
  }

  .site-navbar .navbar-nav {
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-navbar .nav-cta {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    text-align: center;
  }

  .dropdown-menu,
  .dropdown-menu-wide {
    width: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: #fbf8fd;
  }
}

@media (max-width: 575.98px) {
  .top-strip-inner {
    align-items: center;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0;
    text-align: center;
  }

  .top-strip span,
  .top-strip a {
    justify-content: center;
  }

  .top-location {
    font-size: 0.82rem;
  }

  .top-phone,
  .top-info-link {
    font-size: 0.9rem;
    white-space: normal;
  }

  .whatsapp-float {
    right: 0.9rem;
    bottom: 0.9rem;
    min-height: 52px;
    padding: 0.8rem;
  }

  .whatsapp-float span {
    display: none;
  }

  .hero-slide {
    padding: 4rem 0 5.2rem;
    min-height: 720px;
  }

  .levels-grid,
  .impact-grid,
  .institution-intro,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-note {
    left: 0.8rem;
    right: 0.8rem;
  }
}
