/*
Theme Name:   Municipalidad SJM - Divi Child
Theme URI:    https://www.munisjm.gob.pe
Description:  Tema hijo de Divi para la Municipalidad de San Juan de Miraflores. Contiene personalizaciones de CSS (header/menú) a prueba de actualizaciones de Divi.
Author:       MDSJM
Template:     Divi
Version:      1.0.1
Text Domain:  munisjm-child
*/

/* =====================================================================
   HEADER · MENÚ PRINCIPAL (ESCRITORIO) — una sola fila
   El menú vive en una columna estrecha (3/5) del header de Divi, por lo
   que 6 ítems se partían en dos filas. Ensanchamos la fila del header y
   repartimos las columnas con flexbox para darle todo el espacio sobrante
   al menú, con letra legible (13px). En laptops angostas baja a 12px.
   ===================================================================== */
@media (min-width: 981px) {
  .et_pb_row_1_tb_header {
    max-width: 1300px !important;
    width: 94% !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  .et_pb_row_1_tb_header > .et_pb_column {
    margin: 0 !important;
    float: none !important;
  }
  /* Logo y botón: solo el ancho que necesitan */
  .et_pb_row_1_tb_header > .et_pb_column_5_tb_header,
  .et_pb_row_1_tb_header > .et_pb_column_7_tb_header {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  /* Columna del menú: ocupa todo el espacio restante */
  .et_pb_row_1_tb_header > .et_pb_column_6_tb_header {
    flex: 1 1 auto !important;
    width: auto !important;
  }
  .et_pb_menu_0_tb_header ul.et-menu {
    justify-content: flex-end !important;
  }
  .et_pb_menu_0_tb_header ul.et-menu > li > a {
    font-size: 13px !important;
    letter-spacing: 0 !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

/* Quitar las flechitas (˅) de los ítems con submenú en el menú de escritorio */
.et_pb_menu_0_tb_header .et-menu li.menu-item-has-children > a:after {
  display: none !important;
}

/* Laptops más angostas (981–1280px): letra un poco menor para mantener 1 fila */
@media (min-width: 981px) and (max-width: 1280px) {
  .et_pb_menu_0_tb_header ul.et-menu > li > a {
    font-size: 12px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* =====================================================================
   HEADER · MÓVIL (≤ 980px) — barra compacta SIEMPRE
   Logo (izq) · botón Plataforma Digital · ícono de menú (der), en una
   sola fila, tanto en reposo como al hacer scroll. Sin buscador.
   ===================================================================== */
@media (max-width: 980px) {
  /* La sección/fila deben crecer con el contenido (Divi pone overflow:hidden
     al cerrar el menú; lo forzamos visible para que no recorte columnas). */
  .et_pb_section_1_tb_header:not(.et_pb_sticky),
  .et_pb_section_1_tb_header:not(.et_pb_sticky) .et_pb_row_1_tb_header { overflow: visible !important; }

  .et_pb_section_1_tb_header { position: relative; padding-top: 8px !important; padding-bottom: 8px !important; }
  .et_pb_section_1_tb_header.et_pb_sticky { padding-top: 6px !important; padding-bottom: 6px !important; }

  /* Una sola fila: logo · botón · menú */
  .et_pb_section_1_tb_header .et_pb_row_1_tb_header {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: space-between !important; flex-wrap: nowrap !important;
    width: 92% !important; max-width: 100% !important;
  }
  .et_pb_section_1_tb_header .et_pb_column { margin: 0 !important; width: auto !important; position: static !important; }
  .et_pb_section_1_tb_header .et_pb_column_5_tb_header { order: 1 !important; }  /* logo */
  .et_pb_section_1_tb_header .et_pb_column_7_tb_header { order: 2 !important; }  /* botón */
  .et_pb_section_1_tb_header .et_pb_column_6_tb_header { order: 3 !important; }  /* menú */

  /* Logo a la izquierda */
  .et_pb_section_1_tb_header .et_pb_image_1_tb_header { text-align: left !important; margin: 0 !important; }
  .et_pb_section_1_tb_header .et_pb_image_1_tb_header img { max-width: 112px !important; }
  .et_pb_section_1_tb_header.et_pb_sticky .et_pb_image_1_tb_header img { max-width: 95px !important; }

  /* Botón Plataforma Digital compacto */
  .et_pb_section_1_tb_header .et_pb_menu_0_tb_header { margin: 0 !important; padding: 0 !important; position: static !important; }
  .et_pb_section_1_tb_header .et_pb_text_0_tb_header { margin: 0 !important; }
  .et_pb_section_1_tb_header .et_pb_text_0_tb_header a,
  .et_pb_section_1_tb_header .et_pb_text_0_tb_header .et_pb_button { padding: 8px 14px !important; font-size: 12.5px !important; }

  /* Ocultar el buscador en móvil */
  .et_pb_menu__search-button,
  .et_pb_menu__search-container { display: none !important; }

  /* Menú desplegable a TODO el ancho (fixed). El 'top' exacto (justo bajo el
     header) lo fija el script de functions.php; aquí va un valor de respaldo. */
  .et_pb_section_1_tb_header .et_mobile_menu {
    position: fixed !important; left: 0 !important; right: 0 !important; width: 100vw !important;
    top: 86px;
    max-height: 78vh !important; overflow-y: auto !important;
    overscroll-behavior: contain !important; -webkit-overflow-scrolling: touch;
    padding-bottom: 80px !important; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }
  .et_mobile_menu li a { padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
}

/* =====================================================================
   HEADER · DESKTOP · separar el buscador del botón Plataforma Digital
   ===================================================================== */
@media (min-width: 981px) {
  .et_pb_menu_0_tb_header .et_pb_menu__search-button { margin-right: 8px !important; }
  .et_pb_row_1_tb_header > .et_pb_column_7_tb_header { margin-left: 24px !important; }
}

/* =====================================================================
   FOOTER · que crezca con el contenido en móvil (evita que el bloque de
   contacto se desborde y se encime con el copyright).
   ===================================================================== */
@media (max-width: 980px) {
  .et-l--footer .et_pb_section,
  .et-l--footer .et_pb_section_0_tb_footer,
  .et-l--footer .et_pb_section_1_tb_footer,
  .et-l--footer .et_builder_inner_content,
  .et-l--footer .et_pb_row,
  .et-l--footer .et_pb_column {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* =====================================================================
   FOOTER · bloque de contacto (logo + datos)
   Migrado desde un módulo de código que tenía un documento HTML COMPLETO
   inválido (<!DOCTYPE>, <head>, <title>, <body>) con un 'body{}' global.
   Ahora el CSS vive aquí (versionado) y el módulo solo lleva el HTML.
   ===================================================================== */
.mcna-footer { padding: 20px; color: #ffffff; }
.mcna-footer .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.mcna-footer .footer-column { flex: 1; margin: 10px; min-width: 250px; }
.mcna-footer .footer-image { max-width: 100%; height: auto; display: block; }
.mcna-footer .footer-column p,
.mcna-footer .footer-column a { margin: 5px 0; color: #ffffff; text-decoration: none; }
.mcna-footer .footer-column a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .mcna-footer .footer-container { flex-direction: column; align-items: center; }
  .mcna-footer .footer-column { margin: 10px 0; text-align: center; }
}

/* =====================================================================
   SERVICIOS AL CIUDADANO · tarjetas modernas
   Secciones con clase 'mcna-servicios' (6 servicios + 4 accesos).
   ===================================================================== */
/* Fondo claro unificado para ambas secciones (alta especificidad para vencer
   el azul que Divi pone en la sección de accesos) */
.et_pb_section.mcna-servicios,
.et_pb_section.mcna-servicios.et_pb_with_background {
  background: #f4f7fb !important;
  background-color: #f4f7fb !important;
  background-image: none !important;
  padding-top: 42px !important;
  padding-bottom: 30px !important;
}
/* La 2ª sección de servicios va pegada a la 1ª (sin doble espacio entre ellas) */
.mcna-servicios + .mcna-servicios { padding-top: 0 !important; }

/* Cada blurb se convierte en una tarjeta */
.mcna-servicios .et_pb_blurb {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 16px !important;
  box-shadow: 0 6px 20px rgba(11, 61, 140, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.mcna-servicios .et_pb_blurb:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 61, 140, 0.18);
}

/* Igualar alturas de las tarjetas en la fila */
.mcna-servicios .et_pb_row { display: flex; flex-wrap: wrap; }
.mcna-servicios .et_pb_column { display: flex; margin-bottom: 24px !important; }

/* Icono */
.mcna-servicios .et_pb_main_blurb_image { margin-bottom: 12px; }
.mcna-servicios .et_pb_main_blurb_image img { max-width: 84px; height: auto; }
/* Los iconos BLANCOS (4 accesos) necesitan un círculo azul detrás para verse */
.mcna-servicios .et_pb_main_blurb_image img[src*="_white"] {
  background: #1e54a7;
  border-radius: 50%;
  padding: 16px;
  box-sizing: border-box;
  max-width: 84px;
}

/* Título */
.mcna-servicios .et_pb_blurb .et_pb_module_header,
.mcna-servicios .et_pb_blurb h4 {
  color: #0b3d8c !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 4px;
}
.mcna-servicios .et_pb_blurb a { color: inherit; text-decoration: none; }

/* =====================================================================
   BUSCADOR · barra "¿Qué trámite o servicio necesitas?"
   Sección con clase 'mcna-buscador' (justo bajo el hero). Responsive.
   ===================================================================== */
.et_pb_section.mcna-buscador {
  background: #eaf1fb !important;
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}
.mcna-search { max-width: 780px; margin: 0 auto; text-align: center; }
.mcna-search__title {
  color: #0b3d8c;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.25;
}
.mcna-search__form {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 7px;
  border-radius: 44px;
  box-shadow: 0 8px 24px rgba(11, 61, 140, 0.14);
}
.mcna-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 22px;
  font-size: 16px;
  color: #333;
}
.mcna-search__btn {
  flex: 0 0 auto;
  border: 0;
  background: #1e54a7;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 0 30px;
  border-radius: 40px;
  cursor: pointer;
  transition: background .15s ease;
}
.mcna-search__btn:hover { background: #0b3d8c; }

@media (max-width: 600px) {
  .mcna-search__title { font-size: 20px; }
  .mcna-search__form { flex-direction: column; border-radius: 18px; padding: 10px; gap: 10px; }
  .mcna-search__input { padding: 13px 16px; text-align: center; }
  .mcna-search__btn { padding: 14px; border-radius: 14px; width: 100%; }
}

/* =====================================================================
   ACCESOS RÁPIDOS · 4 destacados (con color) + grilla de 6. Responsive.
   ===================================================================== */
.et_pb_section.mcna-accesos-sec { background: #f4f7fb !important; }
.mcna-accesos { max-width: 1200px; margin: 0 auto; }
.mcna-accesos__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px; flex-wrap: wrap; gap: 6px;
}
.mcna-accesos__head h2 { color: #0b3d8c; font-size: 27px; font-weight: 800; margin: 0; }
.mcna-accesos__all { color: #1e54a7; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mcna-accesos__all:hover { text-decoration: underline; }

.mcna-accesos__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: stretch; }
.mcna-accesos__featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* tarjetas destacadas */
.mcna-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px 16px; border-radius: 16px; color: #fff; text-decoration: none;
  box-shadow: 0 8px 22px rgba(11, 61, 140, .16);
  transition: transform .18s ease, box-shadow .18s ease; min-height: 210px;
}
.mcna-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(11, 61, 140, .26); }
.mcna-card__icon { display: block; margin-bottom: 4px; }
.mcna-card__icon svg { width: 36px; height: 36px; }
.mcna-card h3 { font-size: 16px; font-weight: 800; margin: 4px 0 0; color: #fff; line-height: 1.25; }
.mcna-card p { font-size: 13px; line-height: 1.4; opacity: .94; margin: 0; flex: 1 1 auto; }
.mcna-card__btn {
  margin-top: 8px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .55); padding: 8px 16px;
  border-radius: 22px; font-size: 13px; font-weight: 700;
}

/* caja de accesos rápidos (6) */
.mcna-accesos__quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 6px 20px rgba(11, 61, 140, .08); align-content: center;
}
.mcna-quick {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 12px 6px; border-radius: 12px; color: #0b3d8c;
  text-decoration: none; font-size: 12.5px; font-weight: 600; line-height: 1.25;
  transition: background .15s ease;
}
.mcna-quick:hover { background: #eef3fb; }
.mcna-quick__icon {
  width: 48px; height: 48px; border-radius: 50%; background: #eaf1fb;
  display: flex; align-items: center; justify-content: center; color: #1e54a7;
}
.mcna-quick__icon svg { width: 22px; height: 22px; }

/* responsive */
@media (max-width: 980px) {
  .mcna-accesos__grid { grid-template-columns: 1fr; }
  .mcna-accesos__featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mcna-accesos__head h2 { font-size: 22px; }
  .mcna-accesos__featured { grid-template-columns: 1fr; }
  .mcna-card { min-height: auto; }
  .mcna-accesos__quick { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   NOTICIAS · grilla dinámica (shortcode [mcna_noticias]). Responsive.
   ===================================================================== */
.et_pb_section.mcna-noticias-sec { background: #ffffff !important; }
.mcna-noticias-head {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: 1200px; margin: 0 auto 22px; flex-wrap: wrap; gap: 6px;
}
.mcna-noticias-head h2 { color: #0b3d8c; font-size: 27px; font-weight: 800; margin: 0; }
.mcna-noticias-all { color: #1e54a7; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mcna-noticias-all:hover { text-decoration: underline; }

.mcna-news-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.mcna-news {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(11, 61, 140, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mcna-news:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(11, 61, 140, .18); }
.mcna-news__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.mcna-news__media {
  position: relative; height: 156px; overflow: hidden;
  background: linear-gradient(135deg, var(--c, #1e54a7), #0b3d8c);
  display: flex; align-items: center; justify-content: center;
}
.mcna-news__media img { width: 100%; height: 100%; object-fit: cover; }
.mcna-news__ph { color: rgba(255, 255, 255, .55); font-size: 58px; font-weight: 800; }
.mcna-news__tag {
  position: absolute; top: 12px; left: 12px; color: #fff; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 5px 12px; border-radius: 20px;
}
.mcna-news__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.mcna-news__date { color: #7a8aa3; font-size: 12px; margin-bottom: 6px; }
.mcna-news__title { color: #15315e; font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 12px; flex: 1; }
.mcna-news__more { color: #1e54a7; font-weight: 700; font-size: 13px; }

@media (max-width: 980px) { .mcna-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .mcna-noticias-head h2 { font-size: 22px; }
  .mcna-news-grid { grid-template-columns: 1fr; }
}

/* Variante estática de 2 tarjetas (más grandes, centradas) */
.mcna-news-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.mcna-news-grid--2 .mcna-news__title { flex: none; }
.mcna-news__excerpt { color: #5a6b80; font-size: 13px; line-height: 1.45; margin: 6px 0 12px; flex: 1; }
/* imágenes tipo gráfico/logo: se muestran completas sobre fondo claro */
.mcna-news__media--graphic { background: #eef7f0 !important; }
.mcna-news__media--graphic img { object-fit: contain !important; padding: 16px; }
@media (max-width: 700px) { .mcna-news-grid--2 { grid-template-columns: 1fr; } }

/* =====================================================================
   INSCRIPCIONES GRATUITAS · promo (texto + video). Responsive.
   ===================================================================== */
.et_pb_section.mcna-inscripciones {
  background: linear-gradient(135deg, #eaf1fb 0%, #f4f7fb 100%) !important;
}
.mcna-insc {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.mcna-insc__badge {
  display: inline-block; background: #1e54a7; color: #fff; font-size: 12px;
  font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 14px;
}
.mcna-insc__title { color: #0b3d8c; font-size: 32px; font-weight: 800; line-height: 1.15; margin: 0 0 10px; }
.mcna-insc__lead { color: #1e54a7; font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.mcna-insc__desc { color: #46566c; font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.mcna-insc__contact {
  display: inline-flex; align-items: center; gap: 10px; background: #fff;
  padding: 12px 18px; border-radius: 30px; box-shadow: 0 6px 18px rgba(11, 61, 140, .12);
  color: #0b3d8c; font-size: 15px;
}
.mcna-insc__contact svg { width: 20px; height: 20px; color: #1e54a7; flex: 0 0 auto; }
.mcna-insc__video { display: flex; justify-content: center; }
.mcna-insc__videoframe {
  border-radius: 18px; overflow: hidden; line-height: 0; background: #000;
  box-shadow: 0 18px 44px rgba(11, 61, 140, .24);
}
.mcna-insc__videoframe iframe { display: block; border: 0; max-width: 100%; }

@media (max-width: 860px) {
  .mcna-insc { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .mcna-insc__contact { margin: 0 auto; }
  .mcna-insc__title { font-size: 26px; }
}

/* =====================================================================
   PARTICIPACIÓN CIUDADANA + BIBLIOTECA DE DOCUMENTOS. Responsive.
   ===================================================================== */
.et_pb_section.mcna-partbib-sec { background: #ffffff !important; }
.mcna-partbib { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: start; }
.mcna-pb-col__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; flex-wrap: wrap; gap: 4px; }
.mcna-pb-col__head h2 { color: #0b3d8c; font-size: 23px; font-weight: 800; margin: 0; }
.mcna-pb-col__more { color: #1e54a7; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.mcna-pb-col__more:hover { text-decoration: underline; }

/* Participación: lista */
.mcna-part { background: #f7f9fc; border-radius: 16px; padding: 6px 10px; }
.mcna-part__item { display: flex; align-items: center; gap: 14px; padding: 15px 8px; text-decoration: none; transition: background .15s ease; border-radius: 10px; }
.mcna-part__item:not(:last-child) { border-bottom: 1px solid #e9eef5; }
.mcna-part__item:hover { background: #eef3fb; }
.mcna-part__icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: #eaf1fb; color: #1e54a7; display: flex; align-items: center; justify-content: center; }
.mcna-part__icon svg { width: 22px; height: 22px; }
.mcna-part__txt { flex: 1; min-width: 0; }
.mcna-part__txt b { display: block; color: #15315e; font-size: 14.5px; line-height: 1.3; }
.mcna-part__txt > span { color: #7a8aa3; font-size: 12.5px; }
.mcna-part__chev { color: #9bb0cf; flex: 0 0 auto; }
.mcna-part__chev svg { width: 18px; height: 18px; }

/* Biblioteca: tarjetas */
.mcna-bib__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mcna-bib__card { background: #fff; border: 1px solid #e7eef7; border-radius: 14px; padding: 20px 14px; text-align: center; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.mcna-bib__card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(11, 61, 140, .12); }
.mcna-bib__ic { width: 50px; height: 50px; margin: 0 auto 10px; border-radius: 50%; background: #eaf1fb; color: #1e54a7; display: flex; align-items: center; justify-content: center; }
.mcna-bib__ic svg { width: 24px; height: 24px; }
.mcna-bib__card h3 { color: #0b3d8c; font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.mcna-bib__card span { color: #1e54a7; font-size: 12px; }
.mcna-bib__pte { display: flex; align-items: center; gap: 14px; margin-top: 14px; background: linear-gradient(135deg, #1e54a7, #0b3d8c); color: #fff; padding: 16px 20px; border-radius: 14px; text-decoration: none; }
.mcna-bib__pte .ic { width: 40px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.mcna-bib__pte .ic svg { width: 26px; height: 26px; }
.mcna-bib__pte .t b { display: block; font-size: 15px; }
.mcna-bib__pte .t span { font-size: 12.5px; opacity: .9; }
.mcna-bib__pte .arrow { margin-left: auto; }
.mcna-bib__pte .arrow svg { width: 18px; height: 18px; }

@media (max-width: 880px) { .mcna-partbib { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .mcna-bib__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   ALCALDESA · foto + bio + botón. Responsive.
   ===================================================================== */
.et_pb_section.mcna-alc-sec { background: #f4f7fb !important; }
.mcna-alc {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 340px 1fr; gap: 0; align-items: stretch;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 34px rgba(11, 61, 140, .10);
}
.mcna-alc__photo { background: linear-gradient(135deg, #1e54a7, #0b3d8c); }
.mcna-alc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mcna-alc__info { padding: 40px 44px; align-self: center; }
.mcna-alc__label { color: #1e54a7; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px; }
.mcna-alc__name { color: #0b3d8c; font-size: 34px; font-weight: 800; margin: 4px 0 8px; }
.mcna-alc__name::after { content: ""; display: block; width: 54px; height: 4px; background: #1e54a7; border-radius: 4px; margin-top: 12px; }
.mcna-alc__bio { color: #46566c; font-size: 15px; line-height: 1.7; margin: 18px 0 24px; max-width: 600px; }
.mcna-alc__btn { display: inline-flex; align-items: center; gap: 8px; background: #1e54a7; color: #fff; font-weight: 700; font-size: 14px; padding: 13px 26px; border-radius: 30px; text-decoration: none; transition: background .15s ease; }
.mcna-alc__btn:hover { background: #0b3d8c; }
@media (max-width: 820px) {
  .mcna-alc { grid-template-columns: 1fr; }
  .mcna-alc__photo { min-height: 320px; }
  .mcna-alc__info { padding: 30px 26px; }
  .mcna-alc__name { font-size: 28px; }
}

/* =====================================================================
   VIDEOS · grilla de miniaturas de YouTube. Responsive.
   ===================================================================== */
.et_pb_section.mcna-videos-sec { background: #ffffff !important; }
.mcna-ytcta {
  max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 26px;
  background: linear-gradient(135deg, #1e54a7, #0b3d8c); border-radius: 20px;
  padding: 34px 40px; color: #fff; flex-wrap: wrap;
  box-shadow: 0 14px 36px rgba(11, 61, 140, .2);
}
.mcna-ytcta__icon {
  width: 64px; height: 64px; flex: 0 0 auto; color: #ff3b3b; background: #fff;
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
}
.mcna-ytcta__icon svg { width: 38px; height: 38px; }
.mcna-ytcta__text { flex: 1; min-width: 240px; }
.mcna-ytcta__text h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #fff; }
.mcna-ytcta__text p { margin: 0; font-size: 14.5px; line-height: 1.6; opacity: .92; }
.mcna-ytcta__btn {
  flex: 0 0 auto; background: #fff; color: #0b3d8c; font-weight: 800;
  padding: 14px 26px; border-radius: 30px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mcna-ytcta__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
@media (max-width: 760px) {
  .mcna-ytcta { flex-direction: column; text-align: center; padding: 28px 24px; }
  .mcna-ytcta__text { min-width: 0; }
}
