* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: #333;
  overflow-x: hidden;
}

main {
  flex: 1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

nav {
  display: flex;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.carousel {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay oscuro */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
}

/* TEXTO IZQUIERDA */
.text {
  color: white;
  max-width: 500px;
  margin-left: 80px;
}

.text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.text p {
  font-size: 1.2rem;
  opacity: 0.8;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  margin-top: 20px;

  display: flex;
  flex-direction: row; /* 👈 en fila */
  align-items: center;
  justify-content: flex-start; /* alineados a la izquierda */
  gap: 12px;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BOTON INSTAGRAM */
.btn-instagram-circle {
  width: 45px;
  height: 45px;
  min-width: 45px;

  background: #558f6c;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-instagram-circle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.btn-instagram-circle:hover {
  transform: scale(1.1);
  background: #3e6f52;
}

/* BOTON HANDING */
.btn-handing {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 45px;
  padding: 0 18px;

  background: #558f6c;
  color: white;
  text-decoration: none;
  border-radius: 8px;

  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-handing:hover {
  background: #3e6f52;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .text {
    margin-left: 20px;
    margin-right: 20px;
  }

  .text h2 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    justify-content: flex-start; /* mantiene alineación en mobile */
  }
}

.btn {
  padding: 14px 28px;
  border-radius: 50px;
  background: #00aaff;
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #0088cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.section {
  padding: 60px 40px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: left;
}

.card img {
  width: 100%;
  height: auto;
}

.card h3 {
  padding: 20px;
  font-size: 20px;
}

.card p {
  padding: 0 20px 20px;
  font-size: 14px;
  color: #555;
  flex-grow: 1;
}

.card .btn {
  display: inline-block;
  width: auto;
  margin: 20px;
  margin-top: auto;
  padding: 10px 18px;
  background: #1e4d78;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.nivel-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.cta {
  background: #558f6c;
  color: white;
  padding: 40px 20px;
}

.cta-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* TEXTO */
.cta-text h2 {
  font-size: 28px;
  margin-bottom: 5px;
}

.cta-text p {
  font-size: 16px;
  opacity: 0.9;
}

/* BOTÓN */
.cta-action .btn {
  background: white;
  color: #558f6c;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
}

.cta-action .btn:hover {
  background: #f0f0f0;
}

/* TABLET */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    text-align: center;
  }
}

/* CELULAR */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  /* ocultar columna enlaces */
  .footer-col:last-child {
    display: none;
  }

  /* logos más chicos */
  .footer-col.center img {
    width: 90px;
  }
}

.contact-form {
  max-width: 500px;
  margin: auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

iframe {
  width: 100%;
  height: 300px;
  border: 0;
  margin-top: 20px;
}

.btn-admisiones {
  background: #0066cc;
  color: white !important;
  padding: 8px 15px;
  border-radius: 6px;
  margin-left: 15px;
}

.btn-admisiones:hover {
  background: #004999;
}

.footer {
  background: #0a2540;
  color: white;
  padding: 50px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-col p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
}

/* CENTRO (logos) */
.footer-col.center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-col.center img {
  width: 110px;
  height: auto;
}

/* LINKS */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    padding: 20px;
  }

  nav.active {
    display: flex;
  }

  #menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    padding: 20px;
  }

  #menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 24px;
  }
}
