* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #ffffff;
  color: #333;
}

/* HEADER */
.top-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.top-header-inner {
  max-width: 1400px;
  margin: auto;
  padding: 26px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header img {
  height: 48px;
}

/* NAV */
.main-nav {
  background: #eef6fb;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  color: red;
}

.nav-links a {
  text-decoration: none;
  color: #4a4a4a;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-actions input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 18px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  max-width: 230px;
}

.logo-right img {
    height: 80px;
}

.btn-primary {
  background: #5fa6bd;
}

.btn-secondary {
  background: #4c9bb2;
}

/* MAIN */
.main-content {
  max-width: 1400px;
  margin: 60px auto;
  text-align: center;
}

.main-content h1 {
  margin-bottom: 40px;
  font-size: 32px;
  color: #555;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
  min-width: 179px;
}

.card:hover {
  transform: translateY(-6px);
}

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

.card span {
  display: block;
  padding: 18px;
  font-weight: bold;
}

/* FOOTER */
.footer {
  background: linear-gradient(180deg, #1c2630, #111820);
  color: #fff;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1400px;
  margin: auto;
  padding: 50px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 48px;
}

.footer-social p {
  margin-bottom: 12px;
  font-weight: bold;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.footer-copy {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  background: #0c1218;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons .icon {
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Hover institucional sutil */
.social-icons .icon:hover {
  background: rgba(255,255,255,0.1);
}


/* =========================
   RESPONSIVE - CARDS
   ========================= */

/* Tablets grandes / laptops pequeñas */
@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    min-width: 230px;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móviles */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 0 16px;
  }

  .card img {
    height: 180px;
  }
}

/* =========================
   RESPONSIVE - HEADER
   ========================= */

/* Tablets pequeñas y móviles */
@media (max-width: 768px) {
  .top-header-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .top-header img {
    height: 42px;
  }

  .logo-right img {
    height: 80px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .top-header img {
    height: 36px;
  }

  .logo-right img {
    height: 50px;
  }
}


/* ===== RESPONSIVE TOP NAV ===== */

/* Tablets */
@media (max-width: 900px) {
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .nav-links {
    order: 1;
    margin-bottom: 12px;
    justify-content: center;
  }

  .nav-actions {
    order: 2;
    justify-content: center;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .nav-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-colegios {
    width: 100%;
  }
}


/* ===== MODAL ===== */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#modal-box {
  position: relative;
  background: #fff;
  max-width: 620px;
  width: 90%;
  padding: 50px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
  font-family: Arial, sans-serif;
}

#modal-box ul{
  text-align: justify;
  padding: 0 30px;
}

#modal-box ul li{
  padding: 10px 15px;
}

#modal-box h2 {
  margin-top: 0;
}

#modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #d7d7d7;
}

.download-list li span {
  font-style: italic;
}

.download-list a {
  color: #ffffff;
  text-decoration: none;
}

.download-icon {
  width: 28px;
  height: 25px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: #000;
  background-color: #37d737;
  border-radius: 4px;
  padding: 2px;
}


.download-list a:hover .download-icon {
  transform: scale(1.1);
  opacity: 0.8;
}

.hidden {
  display: none !important;
}

.btn-colegios {
    cursor: pointer;
    border: 1px;
    border-radius: 10px;
    min-height: 60px;
    min-width: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-colegios:hover {
    background-color: #1c66c3; /* un poco más oscuro */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.card-item {
  width: 100%; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-item card {
    width: 100%; 
}

.card-desc {
    margin-top: 20px;
    font-size: 16px;
    color: #000;
    text-align: center;
    font-weight: bold;
}

.card-item a span {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

.cards > .card-item {
  justify-self: stretch; 
}

.card-header {
  padding: 8px 10px;
  font-weight: bold;
  text-align: center;
  background: #fff;
  font-size: 14px;
}

.card-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.card-actions {
  display: flex;
}

.card-btn {
  flex: 1;
  padding: 24px 0;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  background: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 14px;
}

.card-btn + .card-btn {
  border-left: 1px solid #ddd;
}

.card-btn:hover {
  background: #5fa6bd;
  color: #ffffff;
}