/* =========================================================
   OIC - COMITÉ DE ÉTICA Y CONDUCTA (OPTIMIZADO AL 100%)
   Archivo: public/css/oic.comite-etica.css
   Scope: .oic-cec
========================================================= */

.oic-cec {
  --wrap: 1180px;
  --pad-x: clamp(16px, 2.8vw, 32px);
  --hero-h: clamp(450px, 50vw, 620px);
  --radius-card: 30px;
  --violet-deep: rgba(94, 100, 185, 0.75);
  --violet-card: rgba(115, 122, 195, 0.98);

  color: var(--oic-text);
  background: #fff;
  overflow-x: hidden;
}

.oic-cec .oic-cec-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* =========================================================
   1. HERO SECTION (MATA-MAGENTA: Blanco Puro)
========================================================= */
.oic-cec .oic-cec-hero {
  position: relative;
  min-height: var(--hero-h);
  background-size: cover;
  background-position: center;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.oic-cec .oic-cec-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--violet-deep);
  z-index: 1;
}

.oic-cec .oic-cec-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: clamp(70px, 10vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oic-cec .oic-cec-badge {
  width: clamp(65px, 8vw, 90px);
  height: auto;
  margin-bottom: 20px;
}

/* Forzamos blanco con máxima prioridad para ignorar el theme */
.oic-skin .oic-cec .oic-cec-title {
  color: #ffffff !important; 
  font-weight: 900 !important;
  font-size: clamp(34px, 5.8vw, 70px);
  text-transform: uppercase !important;
  line-height: 0.95;
  text-shadow: 0 10px 30px rgba(0,0,0,0.25);
  margin: 0;
}

.oic-skin .oic-cec .oic-cec-subtitle {
  color: #ffffff !important;
  opacity: 0.95;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 600;
  margin-top: 10px;
}

/* =========================================================
   2. TARJETA FLOTANTE (VIOLETA)
========================================================= */
.oic-cec .oic-cec-hero-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -45px;
  z-index: 10;
  width: min(900px, 92%);
  background: var(--violet-card);
  border-radius: var(--radius-card);
  padding: clamp(25px, 3.5vw, 40px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(10px);
}

.oic-cec .oic-cec-hero-card p {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.6;
  color: #ffffff !important;
}

.oic-cec .oic-cec-hero-card strong {
  color: #fff !important;
  font-weight: 900;
}

/* =========================================================
   3. QUICKLINKS (ICONOS PREMIUM OPTIMIZADOS)
========================================================= */
.oic-cec .oic-cec-quicklinks {
  /* Padding extra para que la tarjeta de arriba no encime los iconos */
  padding: clamp(120px, 15vw, 160px) 0 40px;
}

.oic-cec .oic-cec-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

@media (max-width: 820px) {
  .oic-cec .oic-cec-links { grid-template-columns: 1fr; gap: 50px; }
}

/* Limpieza absoluta de subrayados y bordes de enlace */
.oic-cec .oic-cec-link {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* El Círculo (Tamaño Pro 120px) */
.oic-cec .oic-cec-link-icon {
  width: 120px; 
  height: 120px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--oic-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.oic-cec .oic-cec-link-icon img {
  width: 55px; /* Icono interno más grande */
  height: 55px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.oic-cec .oic-cec-link-label {
  font-weight: 800;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

/* ESTADOS HOVER */
.oic-cec .oic-cec-link:hover {
  transform: translateY(-12px);
}

.oic-cec .oic-cec-link:hover .oic-cec-link-icon {
  border-color: var(--oic-magenta-2);
  box-shadow: 0 15px 35px rgba(176, 18, 113, 0.2);
}

.oic-cec .oic-cec-link:hover .oic-cec-link-icon img {
  transform: scale(1.15) rotate(5deg);
}

.oic-cec .oic-cec-link:hover .oic-cec-link-label {
  color: var(--oic-magenta);
  text-decoration: none !important;
}

/* =========================================================
   4. INTRO SECCIÓN (TITULO H2)
========================================================= */
.oic-cec .oic-cec-intro {
  padding: 30px 0 60px;
}

.oic-cec .oic-cec-h2 {
  text-align: center;
  font-weight: 900;
  color: #6b7280;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.1;
  margin: 0;
}

.oic-cec .oic-cec-h2 strong { color: var(--oic-magenta); }

.oic-cec .oic-cec-intro-text {
  max-width: 900px;
  margin: 15px auto 0;
  text-align: center;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   5. SLOT (MÓDULO DINÁMICO)
========================================================= */
.oic-cec .oic-cec-slot {
  padding: 20px 0 80px;
}

.oic-cec .oic-cec-slot-box {
  border: 2px dashed var(--oic-border);
  border-radius: 26px;
  padding: 50px;
  background: #fcfcfc;
  text-align: center;
}
/* =========================================================
   OIC - CEC: FIXES PRO (append-only)
   - Hero full-bleed sin scroll horizontal
   - Hero pegado al header (quita padding-top del main-content solo aquí)
   - Ajuste fino responsive para la card flotante
========================================================= */

/* 1) Quitar padding-top del main-content SOLO en esta página */
@supports selector(body:has(.oic-cec)){
  body.oic-skin:has(.oic-cec) .oic-shell > .main-content{
    padding-top: 0 !important;
  }
}

/* 2) HERO full-bleed SIN usar 100vw (usa dvw si existe) */
.oic-cec .oic-cec-hero{
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* Full-bleed real (no cuenta scrollbar) */
@supports (width: 100dvw){
  .oic-cec .oic-cec-hero{
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}

/* Fallback */
@supports not (width: 100dvw){
  .oic-cec .oic-cec-hero{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* 3) Limitar ancho del grid y centrarlo (se ve más “mock”) */
.oic-cec .oic-cec-links{
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* 4) Ajuste fino de la card flotante en pantallas chicas */
@media (max-width: 576px){
  .oic-cec .oic-cec-hero-card{
    bottom: -34px; /* un poco menos agresivo en móvil */
    border-radius: 24px;
  }

  .oic-cec .oic-cec-quicklinks{
    padding-top: 130px; /* compensa el overlap en móvil */
  }
}
/* =========================================================
   5. SLOT / TABS DINÁMICOS
========================================================= */
.oic-cec .oic-cec-slot {
  padding: 20px 0 90px;
}

.oic-cec .oic-cec-tabs {
  background: #fff;
  border-radius: 30px;
}

/* NAV */
.oic-cec .oic-cec-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.oic-cec .oic-cec-tab {
  appearance: none;
  border: 1.5px solid #ddd6fe;
  background: #ece7f6;
  color: #6b7280;
  min-width: 190px;
  padding: 16px 24px;
  border-radius: 18px 18px 0 0;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all .28s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.oic-cec .oic-cec-tab:hover {
  transform: translateY(-2px);
  background: #f3effb;
  color: var(--oic-magenta);
}

.oic-cec .oic-cec-tab.is-active {
  background: #fff;
  color: var(--oic-magenta);
  border-color: var(--oic-magenta);
  box-shadow: 0 10px 26px rgba(176, 18, 113, 0.12);
}

.oic-cec .oic-cec-tab-icon {
  font-size: 18px;
  line-height: 1;
}

/* PANELS */
.oic-cec .oic-cec-panel {
  animation: oicCecFade .28s ease;
}

@keyframes oicCecFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   INTEGRANTES
========================================================= */
.oic-cec .oic-cec-members-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

.oic-cec .oic-cec-member-card {
  background: linear-gradient(180deg, #b01271 0%, #b2197b 100%);
  border-radius: 24px;
  padding: 22px 18px 18px;
  box-shadow: 0 16px 34px rgba(176, 18, 113, 0.16);
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease;
}

.oic-cec .oic-cec-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(176, 18, 113, 0.22);
}

.oic-cec .oic-cec-member-name {
  margin: 0 0 14px;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oic-cec .oic-cec-member-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0 14px;
}

.oic-cec .oic-cec-member-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #ffffff;
  border: 4px solid rgba(255,255,255,0.96);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.oic-cec .oic-cec-member-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b01271;
  font-size: 38px;
}

.oic-cec .oic-cec-member-role {
  color: rgba(255,255,255,0.94);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oic-cec .oic-cec-member-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.oic-cec .oic-cec-doc-item {
  width: 100%;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 12px;
}

.oic-cec .oic-cec-doc-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.oic-cec .oic-cec-doc-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.oic-cec .oic-cec-doc-btn,
.oic-cec .oic-cec-action-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.oic-cec .oic-cec-doc-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  color: #b01271;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.oic-cec .oic-cec-doc-btn:hover {
  transform: translateY(-1px);
  background: #fff7fb;
  color: #8d0e5b;
}

.oic-cec .oic-cec-doc-btn i {
  font-size: 14px;
  line-height: 1;
}

.oic-cec .oic-cec-table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.oic-cec .oic-cec-action-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  color: #b01271;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.oic-cec .oic-cec-action-btn:hover {
  transform: translateY(-1px);
  background: #fff7fb;
  color: #8d0e5b;
}

.oic-cec .oic-cec-action-btn i {
  font-size: 16px;
  line-height: 1;
}

.oic-cec .oic-cec-action-btn.is-disabled {
  opacity: .5;
  pointer-events: none;
}
/* =========================================================
   TABLAS
========================================================= */
.oic-cec .oic-cec-table-card {
  background: #fff;
  border-radius: 24px;
  padding: 20px 0 8px;
}

.oic-cec .oic-cec-table-top,
.oic-cec .oic-cec-table-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
}

.oic-cec .oic-cec-table-top {
  border-bottom: 1px solid #ececec;
  margin-bottom: 14px;
}

.oic-cec .oic-cec-table-length {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oic-cec .oic-cec-table-length select,
.oic-cec .oic-cec-table-search input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  padding: 7px 10px;
  font-size: 14px;
  color: #374151;
}

.oic-cec .oic-cec-table-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oic-cec .oic-cec-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.oic-cec .oic-cec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  overflow: hidden;
  border-radius: 14px;
}

.oic-cec .oic-cec-table thead th {
  background: #f7f7fb;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  padding: 14px 12px;
  border: 1px solid #e5e7eb;
}

.oic-cec .oic-cec-table tbody td {
  padding: 12px;
  font-size: 14px;
  color: #374151;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

.oic-cec .oic-cec-table tbody tr:hover {
  background: #fcf7fb;
}

.oic-cec .oic-cec-table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.oic-cec .oic-cec-action-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4c2aa8;
  color: #fff;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 14px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.oic-cec .oic-cec-action-btn:hover {
  transform: translateY(-1px);
  opacity: .94;
  background: #3f238c;
}

.oic-cec .oic-cec-table-bottom {
  margin-top: 14px;
  padding-top: 8px;
  color: #4b5563;
  font-size: 14px;
}

.oic-cec .oic-cec-pagination {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
}

.oic-cec .oic-cec-pagination span {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 8px 14px;
  line-height: 1;
}

.oic-cec .oic-cec-pagination .is-current {
  background: #4c2aa8;
  color: #fff;
  border-color: #4c2aa8;
}

.oic-cec .oic-cec-pagination .is-disabled {
  color: #6b7280;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
  .oic-cec .oic-cec-members-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (max-width: 992px) {
  .oic-cec .oic-cec-members-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .oic-cec .oic-cec-tabs-nav {
    gap: 10px;
  }

  .oic-cec .oic-cec-tab {
    min-width: unset;
    width: 100%;
    border-radius: 14px;
  }

  .oic-cec .oic-cec-members-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .oic-cec .oic-cec-table-top,
  .oic-cec .oic-cec-table-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .oic-cec .oic-cec-table-search {
    width: 100%;
  }

  .oic-cec .oic-cec-table-search input {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .oic-cec .oic-cec-members-grid {
    grid-template-columns: 1fr;
  }

  .oic-cec .oic-cec-member-card {
    min-height: auto;
  }
}
.oic-cec .oic-cec-tab-icon i {
  font-size: 18px;
  line-height: 1;
}

.oic-cec .oic-cec-doc-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.oic-cec .oic-cec-doc-icons i {
  line-height: 1;
}

.oic-cec .oic-cec-action-btn i {
  font-size: 14px;
  line-height: 1;
}

/* =========================================================
   FIX FINAL - TIPO DE INTEGRANTE
   Debe ir al final para no ser pisado por otros estilos
========================================================= */
.oic-cec .oic-cec-member-card .oic-cec-member-role {
  margin-bottom: 10px !important;
}

.oic-cec .oic-cec-member-card .oic-cec-member-type {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin: -2px auto 18px !important;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.oic-cec .oic-cec-member-card .oic-cec-member-type.is-integrante-titular {
  background: rgba(255, 255, 255, 0.20);
}

.oic-cec .oic-cec-member-card .oic-cec-member-type.is-suplente {
  background: rgba(255, 255, 255, 0.30);
}