:root {
  --blue-950: #102a43;
  --blue-800: #174b7a;
  --blue-650: #1f6fa8;
  --blue-100: #d9ecfb;
  --white: #ffffff;
  --paper: #f7fbff;
  --ink: #15202b;
  --muted: #586b7a;
  --green: #3f7c3a;
  --red: #d71920;
  --line: rgba(23, 75, 122, 0.18);
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
  color: var(--blue-950);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 30px);
  color: var(--blue-950);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--blue-650);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(46px, 7vw, 84px) clamp(18px, 6vw, 76px);
  background:
    linear-gradient(120deg, rgba(16, 42, 67, 0.94), rgba(23, 75, 122, 0.72)),
    url("assets/campus-aereo.jpg") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9f2c3;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  color: var(--blue-950);
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--white);
}

.button.full {
  width: 100%;
  margin-top: 14px;
}

.hero-mark {
  justify-self: center;
  width: min(430px, 88vw);
  padding: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.hero-mark img {
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.28));
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 76px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
  background: var(--white);
}

.intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.about-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
}

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

.about-card.highlight {
  grid-column: span 2;
  background: var(--blue-950);
}

.about-card.highlight h3,
.about-card.highlight p {
  color: var(--white);
}

.levels {
  background: #eef7ff;
}

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

.level-card {
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
}

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

.level-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--blue-650);
  font-size: 0.9rem;
  font-weight: 900;
}

.preschool {
  border-top: 5px solid var(--green);
}

.primary-school {
  border-top: 5px solid var(--blue-650);
}

.secondary-school {
  border-top: 5px solid var(--red);
}

.values {
  background: var(--white);
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.value-list span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue-950);
  font-weight: 800;
}

.services {
  background: var(--paper);
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-grid span {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-950);
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.06);
}

.facilities {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background: #eef7ff;
}

.facilities-photo {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.facilities-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.facilities-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.spaces {
  background: var(--white);
}

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

.space-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
}

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

.space-card div {
  padding: 18px;
}

.space-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.admissions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.93), rgba(23, 75, 122, 0.86)),
    var(--blue-950);
  color: var(--white);
}

.admissions h2 {
  color: var(--white);
}

.admissions p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.promo {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.admissions-panel {
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.phone-link {
  display: block;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--blue-800);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

.requirements {
  background: var(--white);
}

.requirements-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.requirements-list {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.requirements-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.schedules {
  background: #eef7ff;
}

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

.schedule-grid article {
  padding: 24px;
  border-top: 5px solid var(--blue-650);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
}

.schedule-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 900;
}

.gallery {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue-100);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(16, 42, 67, 0.82);
  color: var(--white);
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(22px, 5vw, 70px);
  align-items: stretch;
  background: var(--white);
}

.contact-info p:not(.eyebrow) {
  color: var(--muted);
}

.map-panel {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(247, 251, 255, 0.82), rgba(247, 251, 255, 0.82)),
    linear-gradient(90deg, transparent 48%, rgba(31, 111, 168, 0.22) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(63, 124, 58, 0.22) 49% 51%, transparent 52%);
  background-size: auto, 72px 72px, 72px 72px;
}

.map-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--blue-800);
  color: var(--white);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 6vw, 76px);
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--blue-800);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.22);
}

.floating-contact a:first-child {
  background: #1f8f49;
}

@media (max-width: 860px) {
  .site-header,
  .intro,
  .about-grid,
  .facilities,
  .admissions,
  .requirements-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-card.highlight {
    grid-column: auto;
  }

  .site-header {
    position: static;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
  }

  .hero-mark {
    width: min(300px, 78vw);
  }

  .level-grid,
  .gallery-grid,
  .space-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 0.92rem;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
  }

  .button {
    width: 100%;
  }

  .floating-contact {
    right: 10px;
    bottom: 10px;
  }

  .floating-contact a {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.8rem;
  }
}
