/* ==================== nosotros.css ==================== */
@import "./variables.css";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/** TABLE OF CONTENTS PC
------------------------------------------------------------/

1 - Nosotros Principal................................ 18-26
2 - Nosotros Header.................................. 28-107
3 - Nosotros Mision................................. 109-214
4 - Nosotros Vision................................. 216-277
5 - Nosotros Logros................................. 279-315
6 - Nosotros Convenios.............................. 317-413
7 - Nosotros Equipo................................. 415-507
    
/// END TABLE OF CONTENTS PC
------------------------------------------------------------*/

/* ==================== 1 - Nosotros Principal ==================== */
.nosotros-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: white;
}

/* ==================== 2 - Nosotros Header ==================== */
.nosotros-header-content {
  background-color: var(--primary-color);
  background-image: url('/images/home/Elipse.webp');
  background-repeat: no-repeat;
  background-position: center calc(100% + 500px);
  background-size: 100% auto;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10rem 5rem 3rem 5rem;
  color: white;
}

.nosotros-header-text {
  flex: 1.2;
  color: #fff;
}

.nosotros-header-text h1 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-top: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.15;
  padding-top: 2rem;
}

.nosotros-header-text p {
  color: #fff;
  font-size: 1.08rem;
  margin: 0;
  max-width: 700px;
}

/* Breadcrumb */
.breadcrumb {
  color: #eaf6fa;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: "Montserrat", Arial, sans-serif;
  opacity: 0.95;
}

.breadcrumb-link {
  color: #eaf6fa;
  transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
  opacity: 0.7;
}

.breadcrumb-current {
  font-weight: 700;

}

.nosotros-header-image {
  justify-content: end;
  align-items: end;
}

.nosotros-header-image img {
  width: 420px;
  height: auto;
  display: block;
}

/* ==================== 3 - Nosotros Mision ==================== */
.nosotros-mision {
  display: flex;
  width: 100%;
  justify-content: space-between;
  background-color: none;
  padding: 3rem 3rem;
  align-items: center;
}

.nosotros-mision-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 1rem;
  padding: 2rem 4rem;
  color: var(--primary-color);
  font-family: var(--font-family);
  width: 50%;
}

.nosotros-mision-title {
  font-size: 1.5rem;
  padding-top: 1rem;
}

.nosotros-mision-text-general1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  padding-right: 1rem;
  color: var(--primary-color);
  font-weight: bold;
}

.nosotros-mision-text-general2 {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  color: var(--primary-color);
  text-align: left;
  padding-left: 0rem;
}

.nosotros-mision-image {
  width: 50%;
  max-width: 700px;
  display: flex;
  justify-content: center;
  padding-right: 3rem;
  padding-top: 5rem;
  position: relative;
}

/* Circulo con porcentaje */
.nosotros-mision-porcentaje {
  background-color: var(--secundary-color);
  border-radius: 50%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 130px;
  height: 130px;
  text-align: center;
  padding: 0.75rem;
  position: absolute;
  /* ¡Clave! */
  top: 70px;
  /* Ajusta según lo que necesites */
  left: -40px;
  /* Ajusta según lo que necesites */
  z-index: 2;
  /* Asegura que esté encima de la imagen */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  /* Sombra para destacar */
}

.nosotros-mision-porcentaje .nosotros-mision-porcentaje-text {
  font-size: 2.7rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 15px;
  padding-top: 1.5rem;
}

.nosotros-mision-porcentaje .nosotros-porcentaje-subtext {
  font-size: 1rem;
  margin-top: 0.25rem;
}

.nosotros-mision-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.nosotros-mision-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: left;
}

/* ==================== 4 - Nosotros Vision ==================== */
.nosotros-vision {
  display: flex;
  width: 100%;
  justify-content: space-between;
  /* Asegura que el texto y la imagen estén distribuidos correctamente */
  background-color: white;
  padding: 3rem 5rem;
  /* Aumentamos el relleno superior para dar más espacio */
}

.nosotros-vision-text {
  font-size: 1.1rem;
  line-height: 1.5;
  padding: 3rem;
  text-align: end;
  color: var(--primary-color);
  font-family: var(--font-family);
  width: 50%;
  /* Ajustamos para que el texto no ocupe todo el espacio */
}

.nosotros-vision-title {
  font-size: 1.5rem !important;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  /* Agregamos un poco de espacio debajo del título */
  text-align: ends;
}

.nosotros-vision-subtext {
  font-size: 2.5rem;
  line-height: 1.5;
  margin-top: 1rem;
  color: var(--primary-color);
  text-align: end;
  font-weight: bold;

}

.nosotros-vision-subtext2 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 1rem;
  color: var(--primary-color);
  text-align: end;
}

.vision-image {
  width: 50%;
  max-width: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vision-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

/* ==================== 5 - Nosotros Logros ==================== */
.nosotros-logros {
  text-align: center;
  background-color: var(--primary-color);
  color: white !important;
  width: 100%;
  padding: 4rem 2rem;
  /* Ajustamos el relleno para dar más espacio */
  margin-bottom: 6rem;
  /* Espacio debajo del bloque de logros */
}

.nosotros-logros-text {
  line-height: 50px;
}

.nosotros-logros-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.nosotros-logros-text h2 {
  font-size: 1.5rem;
  color: white;
}

.nosotros-logros-text h1 {
  color: white;
}

.nosotros-logros-subtext {
  font-size: 1.2rem;
  color: white;
  padding: 0 15rem;
  line-height: 25px;
}

/* ==================== 6 - Nosotros Convenios ==================== */
.alianzas-eventos-section {
  padding: 30px 30px;
  background: var(--bg-gradient3);
  width: 100%;
  border-radius: 1%;
}

.section-header {
  margin-bottom: 30px;
}
.section-tagline-nosotros {
  color: var(--terciary-color);
  font-size: 1.5em;
  font-weight: bold;
}

/* Título y descripción (unificado) */
.section-header .over-text-nosotros {
  font-size: 2.5em;
  color: white;
}

.section-description-nosotros {
  color: #dce7ee;
  max-width: 700px;
  margin: 0 auto;
}

/* =========================================
ESTILOS DE LAS TARJETAS DE ALIANZAS
========================================= */

.alliance-card {
  position: relative;
  width: 100%;
  height: 480px;
  background: var(--bg-color); /* Usando variable */
  border-radius: 3rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.logo-circle-container {
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-background); /* Usando el fondo gris claro del panel */
  padding: 2rem;
  position: relative;
}

.logo-circle {
  width: 220px;
  height: 220px;
  background: var(--bg-color); /* Blanco */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(2, 48, 71, 0.12); /* Sombra adaptada al primary-color */
  border: 8px solid var(--bg-color); /* Blanco */
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 5;
}

.alliance-card:hover .logo-circle {
  transform: scale(1.08);
  box-shadow: 0 25px 50px rgba(2, 48, 71, 0.2); /* Sombra adaptada al primary-color */
}

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

.front-footer {
  height: 30%;
  background: var(--bg-color); /* Blanco */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--secundary-color2); /* Línea divisoria suave */
}

.alliance-name-front {
  font-family: 'Montserrat', var(--font-family); /* Fusión con tus fuentes */
  color: var(--primary-color); /* Azul oscuro principal */
  font-weight: var(--font-bold); /* Usando variable 700 */
  font-size: 1.05rem;       
  line-height: 1.3;
  letter-spacing: 0.02em;   
  text-align: center;
  margin-bottom: 1rem;
  padding: 0 15px;
}

.detail-layer {
  position: absolute;
  inset: 0;
  background: var(--bg-color); /* Blanco */
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
}

.alliance-card.is-active .detail-layer {
  transform: translateY(0);
}

.detail-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  object-fit: contain;
  opacity: 0.20;
  filter: grayscale(1);
  pointer-events: none;
  z-index: 1;
}

.detail-content {
  position: relative;
  z-index: 60;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-base {
  font-family: var(--font-family); /* Inter */
  padding: 0.75rem 1.8rem;
  border-radius: 99px;
  font-weight: var(--font-semibold); /* Usando variable 600 */
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  transition: var(--transition); /* Usando tu transición global */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

/* Botón de "Ver detalles" */
.btn-more {
  background: var(--secundary-color); /* Celeste vibrante */
  color: var(--white);
  box-shadow: 0 10px 20px rgba(33, 158, 188, 0.2); /* Sombra adaptada al secundary-color */
}

.btn-more:hover {
  background: var(--primary-color); /* Azul oscuro en hover */
  transform: translateY(-2px);
}

/* Botón de "Visitar sitio oficial" */
.btn-visit {
  background: var(--secundary-color); /* Celeste vibrante */
  color: var(--white);
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 10px 25px rgba(33, 158, 188, 0.2);
}

.btn-visit:hover {
  background: var(--primary-color); /* Azul oscuro en hover */
  transform: translateY(-2px);
}

/* Botón de "Regresar" */
.btn-return {
  background: var(--panel-background); /* Gris claro */
  color: var(--primary-color); /* Texto en azul oscuro */
  font-size: 0.7rem;
  margin: 0 auto;
}

.btn-return:hover {
  background: var(--secundary-color2); /* Un gris/celeste sutil al pasar el mouse */
  color: var(--primary-color);
}

.description-text {
  font-family: var(--font-family); /* Inter */
  color: #475569;           
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1.5rem 0;
  font-style: normal;       
  font-weight: var(--font-regular); /* Usando variable 400 */
  max-height: 150px;
  overflow-y: auto;
  padding: 0 10px;
}

.detail-tag {
  color: var(--terciary-color); /* El celeste claro/terciario de tu paleta */
  font-weight: var(--font-extrabold); /* Usando variable 800 */
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 5px;
}

/* Reemplazo de las clases grid de Tailwind en CSS puro */
.grid {
  display: grid;
  gap: 3rem; 
  max-width: var(--max-width); 
  margin-left: auto;
  margin-right: auto;
}

/* 1 columna por defecto (móviles) */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* 2 columnas en pantallas medianas (tablets) */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 columnas en pantallas grandes (computadoras) */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- RESPONSIVE (unificado) --- */
@media (max-width: 768px) {
  .alianzas-eventos-section { padding: 20px; }
  .alianzas-eventos-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem; justify-items: center; }
  .section-header { padding-bottom: 20px; }

}


/* ==================== 7 - Nosotros Equipo ==================== */
/* Estilos base para dispositivos móviles (ancho < 768px) */
/* -------------------------------------------------------- */
/* =============================*/

.team-section {
  padding: 40px 20px;
  max-width: 1300px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.team-header {
  text-align: center;
  margin-bottom: 2rem;
}

.team-title {
  font-size: 2rem;
  /* Tamaño de fuente para móviles */
  font-weight: 800;
  color: #023047;
  margin-bottom: 0.5rem;
}

.team-subtitle {
  font-size: 1rem;
  color: #666;
  max-width: 48rem;
  margin: 0 auto;
}

/* Clase para el CEO (Orden 1) */
.team-row-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

/* Flexbox */
.team-grid {
  display: flex;             
  flex-wrap: wrap;           
  justify-content: center;    
  gap: 30px;                  
  width: 100%;
  max-width: 1200px;          
  margin: 0 auto;           
}

.team-member {
  /* Controlamos el ancho de cada tarjeta */
  flex: 0 0 auto;             
  width: 250px;               
  text-align: center;
  position: relative; 
}

/* Ajuste responsivo para móviles: que ocupen todo el ancho si la pantalla es muy pequeña */
@media (max-width: 600px) {
  .team-member {
      width: 100%;
      max-width: 300px;
  }
}

.member-item {
  position: relative; 
  display: inline-block; 
  margin-bottom: 15px;
}

/* 1. El contenedor del enlace */
.member-link {
  position: absolute;
  bottom: 0;
  right: 0; 
  width: 40px; 
  height: 40px;
  background-color: #ffffff; 
  border-radius: 50%; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  text-decoration: none;
  z-index: 10;
  overflow: hidden; 
}

.member-item:hover .member-link {
  opacity: 1;
  transform: scale(1);
}

.member-item:hover .member-photo {
  filter: grayscale(0%) contrast(1);
}

.member-link:hover {
  transform: translateY(-3px) scale(1.1);
}

/* 2. La imagen del logo */
.arrow-icon {
  width: 80%; 
  height: 80%;
  object-fit: cover; 
  border-radius: 50%; 
  padding: 2px; 
  background: transparent !important; 
  display: block;
}

/* Estilos de la foto de perfil */
.member-photo-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.3s ease;
}

.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.member-title {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}


/* -------------------------------------------------------- */
/* Media Query para Tablets (ancho >= 768px) */
/* -------------------------------------------------------- */

@media (min-width: 768px) {
  .team-section {
    padding: 4rem 1rem;
  }

  .team-header {
    margin-bottom: 3rem;
  }

  .team-title {
    font-size: 3rem;
  }

  .team-subtitle {
    font-size: 1.125rem;
  }

}


/* =================== home-tablets.css =================== */
/* home-tablet.css: Estilos responsivos para tablets (max-width: 900px) */

@media (max-width: 900px) {
  .nosotros-header-content {
    flex-direction: column;
    padding: 2rem 1rem 1.5rem 1rem;
  }

  .nosotros-header-image img {
    margin-left: 0;
    margin-top: 2rem;
    width: 160px;
  }
}
@media (max-width: 820px) {
  .nosotros-header-content {
        flex-direction: row;
        padding: 2rem 1rem 1.5rem 1rem;
  }
  /*nosotros*/
  .nosotros-mision {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .nosotros-mision-text {
    width: 80%;
    padding: 1rem 0rem;
    text-align: center;
  }
  .nosotros-mision-text-general1 {
    text-align: start;
  }
  /*vision*/
  .nosotros-vision {
    flex-direction: column-reverse;
    padding: 2rem 4rem;
    align-items: center;
  }
  .nosotros-vision-text {
    width: 80%;
    padding: 1rem 0rem;
    text-align: end;
  }
  .nosotros-vision-title {
    text-align: end;
  }
  .nosotros-vision-text-general1 {
    text-align: justify;
  }

}


/* =================== home-mobile.css =================== */
/* home-mobile.css: Estilos responsivos para móvil (max-width: 768px) */

@media (max-width: 767px) {


  .nosotros-card .card {
    width: 90%;
    /* Reducimos el ancho para móviles */
  }

  .nosotros-header-content {
    padding: 6rem 2rem 2rem 2rem;
  }

  .nosotros-header-content h1 {
    padding: 0rem;
  }

  /*====== NOSOTROS =========*/
  .nosotros-mision {
    padding: 0rem;
    display: flex;
    flex-flow: column wrap;
    padding: 1rem 0rem;
    justify-content: center;
    text-align: center;

  }

  .nosotros-mision-text {
    padding: 0rem;
    display: flex;
    flex-flow: column wrap;
    margin: 0rem;
  }

  .nosotros-mision-title {
    padding: 0rem;
    margin: 0rem;
    text-align: center;
  }

  .nosotros-mision-text-general1 {
    padding: 0rem;
    margin: 0rem;
    text-align: center;
    padding-right: 0rem;
    font-size: 1.5rem;
    line-height: 30px;
    font-style: italic;
  }

  .nosotros-mision-text-general2 {
    padding: 0rem;
    text-align: center;
  }

  /* ====== VISION =====*/

  .nosotros-vision {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    text-align: center;
    padding: 1rem 0rem;
  }

  .nosotros-vision-text {
    padding: 0rem 0rem 0rem 7rem;
    display: flex;
    flex-flow: column wrap;
    margin: 0rem;
  }

  .nosotros-vision-title {
    margin: 0rem;
    text-align: center;
    font-size: 2rem !important;

  }

  .nosotros-vision .vision-image {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centra la imagen */
  }

  .nosotros-vision-subtext {
    padding: 0rem;
    margin: 0rem;
    text-align: center;
    padding-left: 0rem;
    font-size: 1.5rem;
    line-height: 30px;
    font-style: italic;
  }

  .nosotros-vision-subtext2 {
    padding: 0rem;
    text-align: center;
  }

  .nosotros-mision,
  .nosotros-vision {
    width: 100vw;
    /* ocupa todo el ancho del móvil */
    margin: 0;
    padding: 1.5rem 0;
    /* agrega espacio arriba y abajo */
    flex-direction: column;
  }
  .nosotros-mision-image,
  .vision-image {
    display: block;
  }

  .nosotros-mision-text,
  .nosotros-vision-text {
    width: 100%;
    padding: 0 0.8rem;
    /* pequeño espacio lateral */
    margin: 0;
    text-align: left !important;
  }

  .nosotros-mision-title,
  .nosotros-mision-text-general1,
  .nosotros-mision-text-general2,
  .nosotros-vision-title,
  .nosotros-vision-subtext,
  .nosotros-vision-subtext2 {
    text-align: left !important;
    margin: 0.6rem 0;
    /* espacio entre líneas y títulos */
    padding: 0 0.8rem;
    line-height: 1.4em;
    word-break: break-word;
  }

  /* Permite que los textos respiren dentro del flex */
  .nosotros-mision-text,
  .nosotros-vision-text {
    flex: 1 1 auto;
  }

  /* ====== LOGROS ===== */
  .nosotros-logros {
    padding: 0rem;
    display: flex;
    flex-flow: column wrap;
  }

  .nosotros-logros-subtext {
    padding: 0rem 0rem;
  }

}