/* =======================================================
  CSS3 BASE STRUCTURE
  Modular, scalable, and maintainable stylesheet.
  ======================================================= */

/* ==============================
  1. VARIABLES & RESET
  ============================== */

/* --- 1.1 CSS Variables --- */
:root {
  /* Colors */
  --primary-color: #0056b3;
  --secondary-color: #ff6f61;
  --accent-color: #2ecc71;
  --white-color: #fff;
  --dark-color: #222;
  --heading-color: var(--dark-color);
  --text-color: #444;
  --text-muted: #777;
  --light-gray-color: #f7f7f7;
  --border-color: #ddd;
  --light-border: #eee;

  /* Typography */
  --font-title: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Layout & Spacing */
  --max-width: 1200px;
  --section-padding: 4rem;
  --spacing-lg: 3rem;
  --spacing-md: 1.5rem;
  --spacing-sm: 0.75rem;
  --spacing-xs: 0.25rem;

  /* Components */
  --border-radius-lg: 10px;
  --border-radius-sm: 6px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- 1.2 Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================
  2. TYPOGRAPHY & CONTAINER
  ============================== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--white-color);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* --- 2.1 Headings --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--heading-color);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

p {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

/* --- 2.2 Links --- */
a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* ==============================
  3. ACCESSIBILITY & FOCUS
  ============================== */
button:focus:not(:focus-visible),
input:focus,
textarea:focus,
select:focus,
a:focus,
.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.2);
}

.team-member:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(0, 86, 179, 0.3);
}

/* ==============================
  4. BUTTONS
  ============================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: #00418a;
  border-color: #00418a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background: #e85c50;
  border-color: #e85c50;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-primary-outline:hover {
  background: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ==============================
  5. HEADER & NAVIGATION
  ============================== */
.main-header {
  background: var(--white-color);
  border-bottom: 1px solid var(--light-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  transition: height 0.3s ease;
  display: block;
}

.main-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--dark-color);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  display: inline-block;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--dark-color);
  padding: 0.5rem;
  cursor: pointer;
  outline: none;
  z-index: 1001;
}
/* ========================================= */
/* Estilos para la Sección "Nuestro Equipo"  */
/* ========================================= */

/* Contenedor principal de la sección */
.seccion-equipo {
    padding: 80px 0; /* Espaciado superior e inferior para la sección */
    background-color: #f8f9fa; /* Un fondo gris muy claro para diferenciar la sección */
    font-family: 'Arial', sans-serif; /* Fuente general, puedes cambiarla por una Google Font */
    color: #343336; /* Color de texto principal */
}

/* Contenedor para centrar el contenido y limitar el ancho */
.contenedor {
    max-width: 1200px; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrar el contenedor */
    padding: 0 20px; /* Espaciado lateral */
}

/* Cabecera de la sección (Título y descripción) */
.cabecera-seccion {
    text-align: center; /* Centrar todo el texto de la cabecera */
    margin-bottom: 60px; /* Espacio debajo de la cabecera */
}

.titulo-seccion {
    font-size: 2.8em; /* Tamaño grande para el título */
    color: #212529; /* Un color oscuro para el título */
    margin-bottom: 15px;
    position: relative; /* Para el pseudo-elemento de la línea */
    display: inline-block; /* Para que la línea se centre correctamente */
}

/* Opcional: Línea decorativa debajo del título */
.titulo-seccion::after {
    content: '';
    display: block;
    width: 70px; /* Ancho de la línea */
    height: 4px; /* Grosor de la línea */
    background-color: #007bff; /* Color de acento (azul) */
    margin: 15px auto 0; /* Centrar la línea y espacio superior */
    border-radius: 2px; /* Bordes ligeramente redondeados */
}

.descripcion-seccion {
    font-size: 1.15em; /* Tamaño de fuente para la descripción */
    color: #6c757d; /* Un color gris más suave para la descripción */
    max-width: 700px; /* Limitar el ancho de la descripción para mejor legibilidad */
    margin: 0 auto; /* Centrar la descripción */
    line-height: 1.6; /* Espaciado entre líneas */
}

/* Contenedor de la lista de miembros */
.contenedor-miembros {
    margin-top: 40px; /* Espacio superior para el contenedor de los miembros */
}

.lista-miembros {
    display: grid; /* Usar CSS Grid para el layout */
    /* Columnas responsivas: auto-fit crea tantas columnas como quepan,
       minmax(280px, 1fr) asegura que cada columna tenga al menos 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Espacio entre las tarjetas de los miembros */
    list-style: none; /* Eliminar los estilos de lista por defecto */
    padding: 0; /* Eliminar padding por defecto */
    margin: 0; /* Eliminar margin por defecto */
    justify-content: center; /* Centrar las tarjetas si no llenan la última fila */
}

/* Estilo para cada tarjeta de miembro del equipo */
.miembro-equipo {
    background-color: #ffffff; /* Fondo blanco para las tarjetas */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Sombra suave para un efecto elevado */
    padding: 30px; /* Espaciado interno de la tarjeta */
    text-align: center; /* Centrar el contenido de la tarjeta */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición suave para efectos hover */
    cursor: pointer; /* Indicar que la tarjeta es interactiva */
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura si el contenido lo permite */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Efecto hover en la tarjeta */
.miembro-equipo:hover {
    transform: translateY(-8px); /* Levantar la tarjeta ligeramente */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); /* Aumentar la sombra */
}

/* Estilo para la figura (imagen y leyenda) */
.miembro-equipo figure {
    margin: 0; /* Eliminar márgenes por defecto de figure */
    padding: 0; /* Eliminar padding por defecto de figure */
    display: flex; /* Usar flexbox para alinear imagen y texto */
    flex-direction: column; /* Apilar imagen y texto */
    align-items: center; /* Centrar horizontalmente */
}

/* Estilo para la imagen del retrato */
.retrato-miembro {
    width: 160px; /* Ancho del retrato */
    height: 160px; /* Alto del retrato (igual que el ancho para hacerlo redondo) */
    border-radius: 50%; /* Hacer la imagen perfectamente redonda */
    object-fit: cover; /* Asegurar que la imagen cubra el área sin distorsionarse */
    border: 5px solid #007bff; /* Borde de color de acento alrededor de la imagen */
    margin-bottom: 25px; /* Espacio debajo de la imagen */
    box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.15); /* Un segundo "anillo" de sombra suave */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Transición para el borde y sombra */
}

/* Efecto hover en la imagen dentro de la tarjeta */
.miembro-equipo:hover .retrato-miembro {
    border-color: #0056b3; /* Cambiar el color del borde al pasar el ratón */
    box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.25);
}

/* Nombre del miembro */
.nombre-miembro {
    font-size: 1.7em; /* Tamaño del nombre */
    color: #212529; /* Color oscuro para el nombre */
    margin-bottom: 8px; /* Espacio debajo del nombre */
    font-weight: 600; /* Negrita */
}

/* Cargo del miembro */
.cargo-miembro {
    font-size: 1.1em; /* Tamaño del cargo */
    color: #6c757d; /* Color gris suave para el cargo */
    font-style: italic; /* Texto en cursiva */
    margin: 0; /* Eliminar márgenes por defecto */
}

/* Estilos de enfoque para accesibilidad (navegación por teclado) */
.miembro-equipo:focus {
    outline: 3px solid #007bff; /* Borde azul para indicar el foco */
    outline-offset: 5px; /* Separación del borde de enfoque del elemento */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 5px rgba(0, 123, 255, 0.4); /* Combinar sombra con un anillo de foco */
    transform: translateY(-4px); /* También un ligero levantamiento al enfocar */
}

/* ============================ */
/* Media Queries para Responsividad */
/* ============================ */

/* Tabletas y pantallas medianas */
@media (max-width: 992px) {
    .seccion-equipo {
        padding: 70px 0;
    }

    .titulo-seccion {
        font-size: 2.4em;
    }

    .descripcion-seccion {
        font-size: 1.05em;
    }

    .lista-miembros {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adaptar columnas */
        gap: 25px;
    }

    .miembro-equipo {
        padding: 25px;
    }

    .retrato-miembro {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
        border-width: 4px; /* Ajustar el grosor del borde */
    }

    .nombre-miembro {
        font-size: 1.5em;
    }

    .cargo-miembro {
        font-size: 1em;
    }
}

/* Teléfonos móviles y pantallas pequeñas */
@media (max-width: 768px) {
    .seccion-equipo {
        padding: 50px 0;
    }

    .cabecera-seccion {
        margin-bottom: 40px;
    }

    .titulo-seccion {
        font-size: 2em;
    }

    .titulo-seccion::after {
        width: 50px;
        height: 3px;
        margin-top: 10px;
    }

    .descripcion-seccion {
        font-size: 0.95em;
        max-width: 90%;
    }

    .lista-miembros {
        grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
        gap: 20px;
    }

    .miembro-equipo {
        padding: 20px;
    }

    .retrato-miembro {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
        border-width: 3px;
    }

    .nombre-miembro {
        font-size: 1.4em;
    }

    .cargo-miembro {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .contenedor {
        padding: 0 15px;
    }

    .seccion-equipo {
        padding: 40px 0;
    }

    .titulo-seccion {
        font-size: 1.7em;
    }

    .descripcion-seccion {
        font-size: 0.9em;
    }
}

/* ==============================
  6. SECTIONS & LAYOUT
  ============================== */
section {
  padding: var(--section-padding) 0;
}

section:nth-child(even) {
  background-color: var(--light-gray-color);
}

section h2 {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--heading-color);
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg) auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- 6.1 Hero Section --- */
.hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../img/hero-bg.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white-color);
  text-align: center;
  padding: 8rem 1rem;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 900px;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--white-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* --- 6.2 Grid Utilities --- */
.grid-2-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.grid-3-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* ==============================
  7. CONTENT MODULES
  ============================== */
.features-grid,
.impact-metrics,
.team-grid,
.donation-options,
.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  align-items: stretch;
}

.feature-item,
.metric-item,
.program-card,
.donation-card {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.feature-item i,
.program-card i,
.donation-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.feature-item:hover,
.metric-item:hover,
.program-card:hover,
.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- 7.1 Testimonials --- */
.testimonials {
  background: var(--light-gray-color);
  padding: var(--section-padding);
}

.testimonial-item {
  background: var(--white-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-style: italic;
}

.testimonial-item p {
  color: var(--text-color);
}

.testimonial-item h4 {
  margin-top: 1rem;
  color: var(--primary-color);
  font-style: normal;
  font-weight: 600;
}

/* --- 7.2 Team --- */
.our-team {
  background: var(--light-gray-color);
}

.team-member {
  background: var(--white-color);
  border: none;
  padding: 0;
  text-align: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.member-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.member-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 60%, rgba(34, 34, 34, 0.7));
  opacity: 0;
  transition: opacity 0.3s;
}

.team-member:hover .member-image::before {
  opacity: 1;
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.team-member:hover img {
  transform: scale(1.05);
}

.member-info {
  padding: var(--spacing-md) var(--spacing-sm);
}

.team-member h4 {
  color: var(--dark-color);
  margin: 0;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.team-member:hover h4 {
  color: var(--primary-color);
}

.member-role {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.member-role::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 0.25rem auto 0 auto;
  background: var(--primary-color);
  transition: width 0.3s;
}

.team-member:hover .member-role::after {
  width: 50%;
}

/* ==============================
  8. CONTACT FORM
  ============================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--dark-color);
}

input:not([type="submit"]),
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  color: var(--dark-color);
  transition: border-color 0.3s, box-shadow 0.3s;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 94, 186, 0.2);
  outline: none;
}

/* ==============================
  9. FOOTER
  ============================== */
.main-footer {
  background: var(--dark-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid #444;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--white-color);
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacing-sm);
  justify-content: flex-start;
}

.social-links a {
  color: var(--white-color);
  font-size: 1.4rem;
  transition: color 0.3s, transform 0.3s;
  line-height: 1;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #aaa;
}

/* ==============================
  10. UTILITIES & ANIMATIONS
  ============================== */
/* --- 10.1 Utilities --- */
.text-center {
  text-align: center;
}

.section-padding {
  padding: var(--section-padding);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.px-md {
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* --- 10.2 Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.section-animate.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
  11. RESPONSIVE MEDIA QUERIES
  ============================== */

/* --- 11.1 Tablets & Small Desktops --- */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .features-grid,
  .impact-metrics,
  .team-grid,
  .donation-options,
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: 2;
    margin-top: 2rem;
  }

  .about-text {
    order: 1;
  }
}

/* --- 11.2 Mobiles --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .grid-2-columns,
  .grid-3-columns,
  .contact-us .container,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    padding: 0.8rem 1rem;
  }

  .main-nav .nav-list {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--white-color);
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--light-border);
    z-index: 999;
  }

  .main-nav .nav-list.active {
    display: flex;
  }

  .main-nav .nav-list li {
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 0.8rem 0;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .header-actions {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3 {
    text-align: center;
    margin-top: 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .about-section {
    padding: 2rem 0.5rem;
  }

  .about-content {
    gap: 1.2rem;
  }

  .about-image {
    height: auto;
    margin-top: 1.2rem;
  }

  .about-image img {
    max-height: 220px;
    object-fit: cover;
  }

  .about-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
  }

  .about-text p {
    font-size: 0.98rem;
    margin-bottom: 1rem;
  }
}

/* ==============================
  12. WHATSAPP FLOAT BUTTON
  ============================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 100;
  }
.whatsapp-float img {
  width: 35px;
  margin-top: 12px;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22); 
}

.whatsapp-float:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Estilo para la sección de Convenios Institucionales */
.convenios-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.convenios-header {
    margin-bottom: 40px;
}

.convenios-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.convenios-header p {
    color: #7f8c8d;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.instituciones-title {
    color: #3498db;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.instituciones-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.institucion-item {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    width: calc(33.333% - 30px);
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.institucion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.institucion-logo {
    height: 80px;
    margin-bottom: 20px;
}

.institucion-logo img {
    max-height: 100%;
    max-width: 100%;
}

.institucion-nombre {
    color:#2c3e50; 
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 15px;
}
.instituciones-vinculadas {
  text-align: center;
  font-family: 'Arial', sans-serif;
}
.instituciones-vinculadas ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.instituciones-vinculadas {
  text-align: center;
  font-family: 'Arial', sans-serif;
}
.instituciones-vinculadas ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}

