/* ============================================================ */
/* ===== BANNER PRINCIPAL ===== */
/* ============================================================ */

.cdn-banner {
  background: linear-gradient(135deg, #005198 0%, #26314d 100%);
  color: #ffffff;
  padding: 70px 25px;
  text-align: center;
}

.cdn-banner-inner {
  max-width: 950px;
  margin: 0 auto;
}

.cdn-banner-super {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B8CDDE;
  margin-bottom: 10px;
}

.cdn-banner h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.cdn-banner-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  max-width: 820px;
}

/* ============================================================ */
/* ===== SECCIÓN PRINCIPAL ===== */
/* ============================================================ */

.cdn-section {
  padding: 55px 25px;
  background: #f0f7ff;
}

.cdn-container {
  max-width: 1000px;
  margin: 0 auto;
}

.cdn-heading {
  text-align: center;
  margin-bottom: 35px;
}

.cdn-heading .cdn-super {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B8CDDE;
  background: #005198;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.cdn-heading h2 {
  color: #005198;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cdn-heading-sub {
  color: #555555;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 auto;
}

.cdn-cdn {
  display: block;
}

.cdn-cdn-image img {
  display: block;
  width: 100%;
  max-width: 900px;
  max-height: 460px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  border-top: 4px solid #005198;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.cdn-cdn-image img:hover {
  transform: scale(1.01);
}

.cdn-cdn-text {
  max-width: 880px;
  margin: 30px auto 0;
  text-align: justify;
}

.cdn-cdn-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 18px;
}

.cdn-image-caption {
  text-align: center;
  font-size: 13px;
  color: #888888;
  margin-top: 10px;
  font-style: italic;
}

/* ============================================================ */
/* ===== MIEMBROS DEL CONSEJO DIRECTIVO NACIONAL ===== */
/* ============================================================ */

.cdn-members-section {
  background: #f8fafc;
}

.cdn-members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.member-block {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.member-block::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #005198, #00a8e8, #00d4a8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.member-block:hover {
  box-shadow: 0 10px 40px rgba(0,81,152,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-4px);
  border-color: #dce6f2;
}

.member-block:hover::after {
  transform: scaleX(1);
}

.member-photo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px #f1f5f9, 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.member-block:hover .member-photo {
  box-shadow: 0 0 0 4px #005198, 0 8px 28px rgba(0,81,152,0.18);
  transform: scale(1.06);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.member-block:hover .member-photo img {
  transform: scale(1.08);
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-role {
  display: inline-block;
  background: linear-gradient(135deg, #eef6ff, #dbeafe);
  color: #005198;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.member-info h3 {
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.member-cv-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-cv {
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
  text-align: justify;
  margin-bottom: 6px;
}

.member-full {
  display: none;
}

.member-block.open .member-full {
  display: block;
  padding-top: 6px;
}

.member-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #0f172a;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.member-toggle:hover {
  background: #005198;
  color: #ffffff;
}

.member-toggle i {
  transition: transform 0.3s ease;
  font-size: 10px;
}

.member-block.open .member-toggle i {
  transform: rotate(180deg);
}

.cdn-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 28px;
}

.cdn-section-divider::before,
.cdn-section-divider::after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  flex: 1;
}

.cdn-section-divider span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
}

/* ============================================================ */
/* ===== LIGHTBOX ===== */
/* ============================================================ */

.cdn-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.cdn-lightbox.active {
  display: flex;
}

.cdn-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.cdn-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s;
}

.cdn-lightbox-close:hover {
  color: #B8CDDE;
}

/* ============================================================ */
/* ===== RESPONSIVE ===== */
/* ============================================================ */

@media (max-width: 768px) {
  .cdn-banner {
    padding: 45px 18px;
  }

  .cdn-banner h2 {
    font-size: 26px;
  }

  .cdn-section {
    padding: 35px 14px;
  }

  .cdn-heading h2 {
    font-size: 24px;
  }

  .cdn-cdn-image img {
    max-height: 320px;
  }

  .cdn-members-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .member-block {
    flex-direction: column;
    gap: 18px;
    padding: 24px 20px;
    text-align: center;
  }

  .member-block:hover {
    transform: none;
  }

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

  .member-photo {
    width: 88px;
    height: 88px;
  }

  .member-info h3 {
    font-size: 16px;
  }

  .member-cv {
    text-align: left;
  }
}
