/* ============================================================
   SCLHH.org — Estilos del contenido de las páginas internas
   Adapta las clases del sitio original (WordPress/Joomla-like)
   al diseño moderno, manteniendo la paleta corporativa.
   ============================================================ */

/* ---------- Banner de página + migas ---------- */
.page_title2 {
  background:
    linear-gradient(120deg, rgba(92, 0, 1, .96), rgba(159, 0, 2, .9)),
    var(--brand);
  color: #fff;
  padding: 120px 0 46px;
  margin-top: -0.5rem;
}
.page_title2 h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 8px;
}
.pagenation {
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
}
.pagenation a { color: #fff; font-weight: 600; }
.pagenation a:hover { color: var(--gold); }
.pagenation i { color: var(--gold); font-style: normal; padding: 0 6px; }

/* ---------- Contenedor de contenido ---------- */
.content_fullwidth { padding: clamp(38px, 5vw, 64px) 0; }
.content_fullwidth p,
.content_fullwidth li { color: var(--body); }
.content_fullwidth h2,
.content_fullwidth h3,
.content_fullwidth h4,
.content_fullwidth h5 { color: var(--ink); }

/* Título de sección con subtítulo y línea */
.stcode_title9 h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}
.stcode_title9 h2 em,
.stcode_title9 h2 strong { font-style: normal; }
.stcode_title9 h2 em {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 6px;
}
.stcode_title9 h2 strong { color: var(--brand); }
.stcode_title9 h2 .line {
  display: block;
  width: 68px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold);
  margin: 16px 0 24px;
}
.stcode_title9 h3 { font-size: 1.15rem; font-weight: 700; }
.stcode_title9 > p:first-of-type { font-size: 1.02rem; }

/* Separadores */
.divider_line1,
.divider_dashed10,
.content_fullwidth hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.content_fullwidth hr.dashed { border-top-style: dashed; }
.line-sep { height: 1px; background: var(--line); margin: 26px 0; }

/* ---------- Rejillas de columnas (clases del original) ---------- */
.one_full { width: 100%; }
.one_half,
.one_third,
.one_fourth,
.one_fourth_less,
.one_third_less,
.onecol_sixty,
.onecol_forty { float: left; }

.one_half { width: 48%; margin-right: 4%; }
.one_half.last { margin-right: 0; }

.one_third,
.one_third_less { width: 32%; margin-right: 2%; }
.one_fourth,
.one_fourth_less { width: 23.5%; margin-right: 2%; }

.one_third_less:nth-of-type(3n),
.one_fourth_less:nth-of-type(4n),
.one_fourth:nth-of-type(4n),
.one_third:nth-of-type(3n),
.one_fourth_less.last,
.one_fourth.last,
.one_third.last { margin-right: 0; }

/* El original abusa de <br> de separación en columnas: los neutralizamos
   dentro de la retícula para que el grid moderno no se rompa. */
.one_fourth_less br,
.one_third_less br { display: none; }

/* Contenedor de columnas */
.content_fullwidth .one_fourth_less,
.content_fullwidth .one_third_less {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 12px;
  margin-bottom: 18px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.content_fullwidth .one_fourth_less:hover,
.content_fullwidth .one_third_less:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.content_fullwidth .one_fourth_less h4,
.content_fullwidth .one_third_less h4 {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.content_fullwidth .one_fourth_less h5,
.content_fullwidth .one_third_less h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.content_fullwidth .one_fourth_less p,
.content_fullwidth .one_third_less p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Limpieza de floats dentro del contenido */
.content_fullwidth::after,
.content_fullwidth .container::after,
.featured_section63 .container::after { content: ""; display: table; clear: both; }

/* ---------- Secciones destacadas antiguas ---------- */
.featured_section63,
.featured_section134,
.featured_section132 { padding: 8px 0 30px; }
.featured_section135,
.featured_section136 { padding: 0; }

.title30 {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--brand);
  border-left: 5px solid var(--gold);
  padding-left: 14px;
  margin: 34px 0 20px;
  clear: both;
}
.redHeader1Center {
  color: var(--brand);
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
}
.TitularOrganigrama {
  font-weight: 700;
  color: var(--brand);
}

/* ---------- Botones del original ---------- */
.content_fullwidth .button,
a.button {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, transform .18s ease;
  border: 2px solid transparent;
}
.content_fullwidth .button:hover,
a.button:hover { background: var(--brand-700); transform: translateY(-2px); color: #fff !important; }
.content_fullwidth .button.seven { background: var(--ink); }
.content_fullwidth .button.seven:hover { background: #000; }
.content_fullwidth .button.two { background: var(--gold); color: #3a2a00 !important; }
.but_bookmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Tablas ---------- */
.content_fullwidth table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: .95rem;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.content_fullwidth table td,
.content_fullwidth table th {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.content_fullwidth table th {
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-head);
  font-weight: 700;
}
.content_fullwidth table tr:nth-child(even) td { background: var(--soft); }
.table-pass td { border-color: var(--line) !important; }

/* ---------- Texto y enlaces ---------- */
.maintext, .maintextIzquierda { font-size: 1rem; line-height: 1.7; }
.maintextIzquierda { text-align: justify; }
.content_fullwidth a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.content_fullwidth a:hover { color: var(--brand-700); }
.content_fullwidth a.button,
.content_fullwidth a.button:hover,
.content_fullwidth .box a { text-decoration: none; }
.vinculo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.vinculo:hover { color: var(--brand-700); }

/* Estilos "EstiloN" heredados de Word */
.Estilo1, .Estilo3, .Estilo4, .Estilo7 { font-family: inherit; }
.Estilo1 { color: var(--brand); font-weight: 700; }
.Estilo3 { color: var(--muted); }
.Estilo4 { background: var(--soft); }
.Estilo7 { color: var(--brand); font-weight: 600; }

/* Alertas */
.alertymes3 {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--body);
}

/* ---------- Iconos Font Awesome dentro del contenido ---------- */
.content_fullwidth .fa,
.content_fullwidth .fati13,
.content_fullwidth .fati14,
.content_fullwidth .fati16 {
  color: var(--brand);
  margin-right: 6px;
}

/* Listas */
.content_fullwidth ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.content_fullwidth ul li { margin-bottom: 6px; }
.content_fullwidth ol { padding-left: 22px; margin: 0 0 1em; }

/* Imágenes dentro del contenido */
.content_fullwidth img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.content_fullwidth img.rounded { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Bloques de "cajas" reutilizados del original */
.content_fullwidth .box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.content_fullwidth .box h4 { margin-bottom: 8px; }
.content_fullwidth .box-cnt img { border-radius: var(--radius-sm); }

/* Utilidades heredadas */
.margin_top1 { margin-top: 10px; }
.margin_top2 { margin-top: 20px; }
.margin_top3 { margin-top: 30px; }
.margin_top8 { margin-top: 40px; }
.margin_top12 { margin-top: 60px; }
.clearfix { clear: both; }

/* Colapsar espacios vacíos que arrastra el contenido original */
.content_fullwidth p:empty,
.content_fullwidth p > br:only-child { display: none; }
.content_fullwidth > .container > br { display: none; }

/* ---------- Cajetines (tarjetas de contenido) ---------- */
.cajetines {
  display: grid;
  gap: 18px;
  margin: 20px 0 28px;
}
.cajetines--1 { grid-template-columns: minmax(0, 1fr); }
.cajetines--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cajetines--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cajetines--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cajetines__heading {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--brand);
  border-left: 5px solid var(--gold);
  padding-left: 14px;
  margin: 34px 0 18px;
}

.cajetin {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cajetin:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.cajetin__rol {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 8px;
}
.cajetin__nombre {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}
.cajetin__nombre a { color: inherit; text-decoration: none; }
.cajetin__nombre a:hover { color: var(--brand); }
.cajetin__org {
  font-size: .9rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 8px;
}
.cajetin__dato {
  font-size: .88rem;
  margin: 0 0 6px;
  word-break: break-word;
}
.cajetin__dato .fa,
.cajetin__dato svg { color: var(--brand); margin-right: 6px; }
.cajetin__dato a { text-decoration: none; }
.cajetin__dato a:hover { text-decoration: underline; }

/* ---------- Responsive del contenido ---------- */
@media (max-width: 900px) {
  .page_title2 { padding-top: 90px; }
  .one_half, .one_third, .one_fourth, .one_third_less, .one_fourth_less {
    width: 48%;
    margin-right: 4%;
  }
  .one_fourth_less:nth-of-type(2n),
  .one_third_less:nth-of-type(2n) { margin-right: 0; }
  .cajetines--3, .cajetines--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .one_half, .one_third, .one_fourth, .one_third_less, .one_fourth_less,
  .onecol_sixty, .onecol_forty {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  .content_fullwidth table { font-size: .86rem; }
  .cajetines--2, .cajetines--3, .cajetines--4 { grid-template-columns: minmax(0, 1fr); }
}
