/* ==========================================================================
   VARIABLES Y ESTILOS GLOBALES
   ========================================================================== */
:root {
  --cope-primario: #002856;
  --cope-oscuro: #001b3a;
  --cope-accent: #007D67;
  --cope-light: #e6f0f8;
}

.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--cope-primario) 0%, var(--cope-oscuro) 100%);
  padding: 100px 20px 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header .decor-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.page-header .c1 {
  bottom: -70px;
  left: -70px;
  width: 320px;
  height: 320px;
}

.page-header .c2 {
  top: -90px;
  right: -90px;
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.04);
}

.page-header .c3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.page-header .contenedor {
  position: relative;
  z-index: 2;
}

.page-header .badge {
  display: inline-block;
  background-color: var(--cope-accent);
  color: #fff;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-header h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 900px;
  margin: 0 auto 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   SECCIÓN PRESENTACIÓN
   ========================================================================== */
.seccion-info {
  padding: 80px 0 60px;
  background: transparent;
}

.grid-presentacion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.texto-intro h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--cope-primario);
  display: flex;
  align-items: center;
  gap: 10px;
}

.texto-intro h2 .icono-cuadro {
  background: var(--cope-primario);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.separador-accent {
  width: 80px;
  height: 4px;
  background: var(--cope-accent);
  border-radius: 2px;
  margin-bottom: 25px;
}

.texto-intro p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

.imagen-intro {
  width: 100%;
}

/* ==========================================================================
   CARRUSEL SWIPER COPE (NUEVO)
   ========================================================================== */
.carrusel-cope {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border: 4px solid #ffffff;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
}

.carrusel-cope .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carrusel-cope img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

/* Flechas de Navegación */
.carrusel-cope .swiper-button-next,
.carrusel-cope .swiper-button-prev {
  color: var(--cope-primario);
  background: rgba(255, 255, 255, 0.88);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.carrusel-cope .swiper-button-next:after,
.carrusel-cope .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.carrusel-cope .swiper-button-next:hover,
.carrusel-cope .swiper-button-prev:hover {
  background: var(--cope-primario);
  color: #ffffff;
  transform: scale(1.08);
}

/* Paginación (Puntos) */
.carrusel-cope .swiper-pagination {
  bottom: 15px !important;
}

.carrusel-cope .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.7;
  width: 10px;
  height: 10px;
  margin: 0 5px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.carrusel-cope .swiper-pagination-bullet-active {
  background: var(--cope-accent) !important;
  opacity: 1;
  width: 26px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   SECCIÓN EQUIPO Y DIRECTORES
   ========================================================================== */
.seccion-equipo {
  padding: 0 0 80px;
}

.text-center {
  text-align: center;
}

.titulo-liderazgo {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.subtitulo-liderazgo {
  max-width: 600px;
  margin: 0 auto;
  color: #555;
  font-size: 1.1rem;
}

.director-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  border-left: 8px solid var(--cope-primario);
}

.director-img-area {
  background: linear-gradient(135deg, var(--cope-primario), var(--cope-oscuro));
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-img-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.doctor-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.director-info {
  padding: 40px;
}

.director-badge {
  background-color: var(--cope-light);
  color: var(--cope-primario);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 15px;
}

.director-info h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cope-primario);
  margin: 15px 0 8px;
}

.director-info .especialidad {
  color: #666;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.director-info .bio {
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
}

.btn-perfil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-size: 0.95rem;
  background: var(--cope-accent);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-perfil:hover {
  background: var(--cope-primario);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  will-change: transform;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--cope-primario);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h4 {
  font-size: 1.3rem;
  color: var(--cope-primario);
  margin-bottom: 8px;
}

.team-card .cargo {
  color: var(--cope-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-card .bio {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-researchgate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  background: #f0f4f8;
  color: var(--cope-primario);
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.btn-researchgate:hover {
  background: var(--cope-primario);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .grid-presentacion {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .page-header {
    padding: 70px 15px 50px;
  }
  
  .director-card {
    grid-template-columns: 1fr;
    border-left: none;
    border-top: 8px solid var(--cope-primario);
  }
  
  .director-img-area {
    padding: 20px;
  }
  
  .doctor-img-wrapper {
    width: 160px;
    height: 160px;
  }
  
  .director-info {
    padding: 25px;
  }
  
  .titulo-liderazgo {
    font-size: 2rem;
  }
}