/* ------------------------------
   BASE & TIPOGRAFÍA
------------------------------ */
/* ------------------------------
   RESET BÁSICO
------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

/* ------------------------------
   UTILIDADES
------------------------------ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ------------------------------
   NAVBAR
------------------------------ */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Flex container del navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* LOGO */
.logo {
  display: inline-flex;
  align-items: center;
  height: 48px;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0070f3;
}

/* CTA BUTTON */
.nav-cta {
  background-color: #0070f3;
  color: #ffffff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 1.5rem;
  transition: background-color 0.3s ease;
}

.nav-cta:hover {
  background-color: #005dc1;
}

/* ------------------------------
   RESPONSIVE (opcional)
------------------------------ */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
}

  
  /* Botón de menú hamburguesa */
  .menu-toggle {
    background: none;
    border: none;
    display: none;
    cursor: pointer;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      position: absolute;
      top: 100%;
      right: 0;
      flex-direction: column;
      background: #ffffff;
      width: 100%;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }
  
    .nav-links.active {
      max-height: 500px;
      padding: 1rem 0;
    }
  
    .nav-links a,
    .nav-cta {
      width: 100%;
      padding: 0.75rem 1.5rem;
      text-align: left;
    }
  }
  
  /* ------------------------------
     CONTENIDO PRINCIPAL
  ------------------------------ */
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
  }
  
  .card-convenio {
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .convenio-logo {
    max-width: 220px;
    margin-bottom: 1.5rem;
  }
  
  .convenio-nombre {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }
  
  .convenio-descripcion {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
  }
  
  /* ------------------------------
     BOTONES
  ------------------------------ */
  .btn-primary,
  .btn-secondary {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-hover);
  }
  
  .btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
  }
  
  .btn-secondary:hover {
    background-color: #e0f2fe;
  }
  
  /* ------------------------------
     CTA FINAL
  ------------------------------ */
  .cta {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #e5f2ff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 112, 243, 0.05);
    text-align: center;
  }
  
  .cta p {
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  /* ------------------------------
     FOOTER
  ------------------------------ */
  .site-footer {
    background-color: #002c54;
    color: #e5e7eb;
    padding: 3rem 1rem 2rem;
    font-size: 0.95rem;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .footer-col {
    flex: 1 1 260px;
    max-width: 320px;
  }
  
  .footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
  }
  
  .footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
  }
  
  .footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f9fafb;
  }
  
  .footer-links,
  .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links li,
  .footer-contact li {
    margin-bottom: 0.5rem;
  }
  
  .footer-links a,
  .footer-contact a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-links a:hover,
  .footer-contact a:hover {
    color: #facc15;
  }
  
  .footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .footer-col {
      width: 100%;
    }
  
    .footer-bottom {
      text-align: left;
    }
  }
  
  /* ------------------------------
     RESPONSIVE
  ------------------------------ */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      gap: 1rem;
    }
  
    .nav-links {
      flex-direction: column;
      gap: 0.8rem;
    }
  
    .btn-primary,
    .btn-secondary {
      width: 100%;
      text-align: center;
    }
  
    .section-title {
      font-size: 1.75rem;
    }
  
    .card-convenio {
      padding: 1.5rem;
    }
  }
  