:root {
  --azul-profundo: #082f52;
  --azul-marino: #0b3f68;
  --azul: #106b9a;
  --celeste: #dff5ff;
  --celeste-2: #eefaff;
  --blanco: #ffffff;
  --gris: #627284;
  --gris-claro: #eef3f7;
  --sombra: 0 22px 60px rgba(8, 47, 82, 0.16);
  --radio: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #102033;
  background: linear-gradient(180deg, #f7fcff 0%, #ffffff 48%, #f4fbff 100%);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 34px, var(--max));
  margin-inline: auto;
}

.section-space {
  padding: 90px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11, 63, 104, 0.12);
}

.navbar {
  width: min(100% - 30px, 1240px);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.brand-logo {
  width: 88px;
  height: 62px;
  border-radius: 18px;
  overflow: hidden;
  background: #082f52;
  box-shadow: 0 12px 28px rgba(8, 47, 82, 0.22);
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #082f52;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--azul-profundo);
  font-size: 1.05rem;
}

.brand-copy small {
  color: var(--gris);
  font-size: 0.86rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.95rem;
  color: #263e55;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--azul);
  transform: translateY(-1px);
}

.nav-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-button,
.btn-primary {
  color: var(--blanco) !important;
  background: linear-gradient(135deg, var(--azul-marino), var(--azul));
  box-shadow: 0 14px 30px rgba(16, 107, 154, 0.28);
}

.btn-secondary {
  color: var(--azul-profundo);
  background: var(--blanco);
  border: 1px solid rgba(16, 107, 154, 0.18);
  box-shadow: 0 14px 30px rgba(8, 47, 82, 0.09);
}

.nav-button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(16, 107, 154, 0.24);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: var(--azul-marino);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--blanco);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 86px;
  background:
    radial-gradient(circle at top left, rgba(97, 204, 239, 0.30), transparent 30%),
    linear-gradient(135deg, #f7fcff 0%, #ffffff 52%, #e9f9ff 100%);
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-shape-one {
  width: 320px;
  height: 320px;
  right: -120px;
  top: 120px;
  background: rgba(16, 107, 154, 0.18);
}

.hero-shape-two {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: 20px;
  background: rgba(113, 206, 235, 0.28);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(16, 107, 154, 0.10);
  color: var(--azul-marino);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.label.light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--blanco);
}

h1,
h2,
h3 {
  line-height: 1.12;
  color: var(--azul-profundo);
}

h1 {
  max-width: 680px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  letter-spacing: -0.06em;
}

.hero-subtitle {
  margin-top: 18px;
  color: var(--azul-marino);
  font-size: clamp(1.24rem, 2vw, 1.65rem);
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin-top: 16px;
  color: var(--gris);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero-data article {
  padding: 20px;
  border: 1px solid rgba(16, 107, 154, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(8, 47, 82, 0.07);
}

.hero-data span,
.floating-card span,
.contact-grid span {
  display: block;
  color: var(--gris);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-data strong,
.floating-card strong {
  display: block;
  margin-top: 6px;
  color: var(--azul-profundo);
}

.hero-photo-card {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  background: var(--celeste);
  box-shadow: var(--sombra);
  border: 12px solid var(--blanco);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 47, 82, 0.16));
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  min-height: 520px;
  max-height: 650px;
  object-fit: cover;
  object-position: center top;
}

.floating-card {
  position: absolute;
  left: -24px;
  bottom: 34px;
  width: min(280px, 72%);
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 46px rgba(8, 47, 82, 0.18);
}

.section-title {
  margin-bottom: 36px;
  text-align: center;
}

.section-title.compact {
  margin-bottom: 0;
  text-align: left;
}

.section-title h2,
.diploma-panel h2,
.location-card h2,
.contact-header h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.04em;
}

.profile {
  background: var(--blanco);
}

.profile-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(16, 107, 154, 0.12);
  border-radius: var(--radio);
  background: linear-gradient(135deg, #ffffff, #f1fbff);
  box-shadow: var(--sombra);
}

.profile-list {
  display: grid;
  gap: 14px;
}

.profile-list p {
  padding: 18px 20px;
  border-left: 5px solid var(--azul);
  border-radius: 18px;
  background: var(--blanco);
  color: #24394f;
  box-shadow: 0 12px 28px rgba(8, 47, 82, 0.06);
}

.services {
  background:
    linear-gradient(180deg, #f7fcff 0%, #ffffff 100%);
}

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

.service-card {
  position: relative;
  min-height: 156px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 107, 154, 0.13);
  border-radius: 24px;
  background: var(--blanco);
  box-shadow: 0 16px 40px rgba(8, 47, 82, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  right: -34px;
  bottom: -34px;
  border-radius: 999px;
  background: rgba(16, 107, 154, 0.08);
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(16, 107, 154, 0.28);
  box-shadow: 0 24px 54px rgba(8, 47, 82, 0.13);
}

.service-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--celeste-2);
  color: var(--azul-marino);
  font-weight: 900;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

.diplomas {
  color: var(--blanco);
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-marino));
}

.diploma-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radio);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
}

.diploma-panel h2 {
  color: var(--blanco);
}

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

.diploma-grid span {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  font-weight: 800;
  text-align: center;
}

.results {
  background: var(--blanco);
}

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

.gallery-item {
  overflow: hidden;
  min-height: 320px;
  border-radius: 28px;
  background: var(--gris-claro);
  box-shadow: var(--sombra);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef7fb;
}

.location {
  background: linear-gradient(180deg, #f6fcff, #ffffff);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.location-card,
.map-card {
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.location-card {
  padding: clamp(30px, 5vw, 56px);
  background: var(--blanco);
  border: 1px solid rgba(16, 107, 154, 0.12);
}

.location-card p {
  margin: 14px 0;
  color: #293f55;
  font-size: 1.05rem;
}

.location-card .btn {
  margin-top: 18px;
}

.map-card {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
  color: var(--blanco);
  background:
    radial-gradient(circle at top, rgba(180, 233, 249, 0.18), transparent 35%),
    linear-gradient(135deg, #092f52, #0e5e87);
}

.map-pin {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2.4rem;
}

.map-card strong {
  display: block;
  font-size: 1.35rem;
}

.map-card span {
  display: block;
  max-width: 360px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.contact {
  padding-bottom: 120px;
  background: var(--azul-profundo);
}

.contact-panel {
  padding: clamp(32px, 5vw, 58px);
  border-radius: var(--radio);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.20);
}

.contact-header h2 {
  color: var(--blanco);
  margin-bottom: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.contact-grid a {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-grid a:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.contact-grid span {
  color: rgba(255, 255, 255, 0.65);
}

.contact-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--blanco);
  word-break: break-word;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blanco);
  background: #1fc267;
  box-shadow: 0 18px 40px rgba(31, 194, 103, 0.32);
  font-weight: 900;
}

.site-footer {
  padding: 28px 0;
  background: #062844;
  color: rgba(255, 255, 255, 0.78);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .navbar {
    min-height: 78px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 74px;
    height: 54px;
    border-radius: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--sombra);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 6px;
  }

  .nav-button {
    width: 100%;
  }

  .hero-grid,
  .profile-card,
  .diploma-panel,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-data,
  .diploma-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-frame img {
    min-height: 420px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .section-space {
    padding: 64px 0;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .brand-copy small {
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 62px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.4rem);
  }

  .hero-actions,
  .hero-data,
  .diploma-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .photo-frame {
    border-width: 8px;
    border-radius: 30px;
  }

  .photo-frame img {
    min-height: 360px;
  }

  .floating-card {
    left: 12px;
    bottom: 16px;
  }

  .gallery-item {
    min-height: 250px;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }
}
