* {
  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;
}

.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;
}

.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);
  }
}

/* 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;
  }
}