/* ============================================================
   Trueno — Tipografía oficial UCR
   Licencia: SIL Open Font License v1.1
   Diseñadora: Julieta Ulanovsky
   Repo oficial: https://github.com/julietaula/trueno

   Self-hosted en: /wp-content/plugins/home-inie/assets/fonts/
   ============================================================ */

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoLt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoLtIt.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoRg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoRgIt.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoSBd.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoSBdIt.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoBd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoBdIt.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoBlk.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trueno';
  src: url('../fonts/trueno/TruenoBlkIt.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Aplicación de Trueno a toda la home INIE
   El stack de fallback usa fuentes del sistema por si Trueno no carga */
.home-inie-wrapper,
.home-inie-wrapper *,
.home-inie-header,
.home-inie-header *,
.home-inie-cintillo,
.home-inie-cintillo *,
.home-inie-footer,
.home-inie-footer * {
  font-family: 'Trueno', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Fin Trueno (declaraciones y aplicación) ===== */

/* ================================================================
   Home INIE - CSS v1.1
   v1.1: Acerca del INIE en 2 columnas (texto + media)
   ================================================================ */

.home-inie-wrapper {
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
}

.home-inie-wrapper *,
.home-inie-wrapper *::before,
.home-inie-wrapper *::after {
  box-sizing: border-box;
}

.home-inie-wrapper img,
.home-inie-wrapper video {
  max-width: 100%;
  height: auto;
  display: block;
}

.home-inie-wrapper a {
  color: #005da4;
  text-decoration: none;
}

.home-inie-wrapper a:hover {
  text-decoration: underline;
}

/* ===== Títulos de sección ===== */

.home-inie-section-title {
  color: #005da4;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.home-inie-section-title-center {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ===== Acerca del INIE — 2 columnas ===== */

.home-inie-acerca {
  background: #ffffff;
  padding: 3rem 1rem;
}

.home-inie-acerca-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.home-inie-acerca-texto-col {
  min-width: 0;
}

.home-inie-acerca-media-col {
  min-width: 0;
}

.home-inie-acerca-texto {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 1.5rem;
}

.home-inie-acerca-texto strong {
  color: #005da4;
  font-weight: 600;
}

.home-inie-acerca-media {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.home-inie-link-mas {
  display: inline-block;
  color: #005da4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.home-inie-link-mas:hover {
  border-bottom-color: #005da4;
  text-decoration: none;
}

/* ===== Banner de podcasts ===== */

.home-inie-podcasts {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.home-inie-podcasts-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-inie-podcasts-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 93, 164, 0.18);
}

.home-inie-podcasts-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Sección de anuncios ===== */

.home-inie-anuncios-section {
  background: #f5f5f0;
  padding: 1rem 0 2rem;
}

/* ===== Accesos rápidos ===== */

.home-inie-accesos {
  padding: 3rem 1rem;
  background: #ffffff;
}

.home-inie-accesos-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Accesos rápidos: 5 columnas desktop, 3 tablet, 2 tablet pequeño, 1 móvil */
.home-inie-wrapper .home-inie-accesos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}






/* fin accesos rápidos */

.home-inie-acceso-card {
  background: #ffffff;
  border: 1px solid #e5e5e0;
  border-top: 4px solid #005da4;
  border-radius: 8px;
  padding: 24px 12px;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
}
.home-inie-acceso-card[data-color="#005da4"] { border-top-color: #005da4; }
.home-inie-acceso-card[data-color="#1d9e75"] { border-top-color: #1d9e75; }
.home-inie-acceso-card[data-color="#BA7517"] { border-top-color: #BA7517; }
.home-inie-acceso-card[data-color="#5d3a87"] { border-top-color: #5d3a87; }
.home-inie-acceso-card[data-color="#444444"] { border-top-color: #444444; }
.home-inie-acceso-card[data-color="#005da4"] .home-inie-acceso-icon,
.home-inie-acceso-card[data-color="#005da4"] .home-inie-acceso-label { color: #005da4; }
.home-inie-acceso-card[data-color="#1d9e75"] .home-inie-acceso-icon,
.home-inie-acceso-card[data-color="#1d9e75"] .home-inie-acceso-label { color: #0f6e56; }
.home-inie-acceso-card[data-color="#BA7517"] .home-inie-acceso-icon,
.home-inie-acceso-card[data-color="#BA7517"] .home-inie-acceso-label { color: #854F0B; }
.home-inie-acceso-card[data-color="#5d3a87"] .home-inie-acceso-icon,
.home-inie-acceso-card[data-color="#5d3a87"] .home-inie-acceso-label { color: #3C3489; }
.home-inie-acceso-card[data-color="#444444"] .home-inie-acceso-icon,
.home-inie-acceso-card[data-color="#444444"] .home-inie-acceso-label { color: #2C2C2A; }
.home-inie-acceso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
}
.home-inie-acceso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-inie-acceso-icon svg {
  display: block;
}
.home-inie-acceso-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* ===== Lupita ===== */

.home-inie-lupita {
  padding: 3rem 1rem;
  background: #f5f5f0;
}

.home-inie-lupita-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.home-inie-lupita-intro {
  font-size: 15px;
  color: #555;
  margin: 0 0 1.5rem;
}

.home-inie-lupita-widget {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e5e5;
  min-height: 200px;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .home-inie-acerca-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .home-inie-acerca-media-col {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .home-inie-section-title {
    font-size: 22px;
  }
  .home-inie-acerca {
    padding: 2rem 1rem;
  }
  .home-inie-acerca-texto {
    font-size: 15px;
    line-height: 1.7;
  }
  .home-inie-accesos {
    padding: 2rem 1rem;
  }
  .home-inie-accesos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .home-inie-acceso-card {
    padding: 16px 10px;
    min-height: 100px;
  }
  .home-inie-acceso-label {
    font-size: 12px;
  }
}


@media (max-width: 768px) {
  .home-inie-wrapper .home-inie-accesos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .home-inie-wrapper .home-inie-accesos-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-inie-acceso-card,
  .home-inie-podcasts-link,
  .home-inie-link-mas {
    transition: none;
  }
}


/* ===== Afinado de pesos tipográficos ===== */
.home-inie-wrapper h1,
.home-inie-wrapper h2,
.home-inie-wrapper h3,
.home-inie-wrapper .home-inie-acerca-titulo,
.home-inie-wrapper .home-inie-anuncios-titulo,
.home-inie-wrapper .home-inie-accesos-titulo {
    font-weight: 900;
    letter-spacing: -0.01em;
}
/* ===== Fin afinado de pesos ===== */

/* ===== Ocultar header del tema Customify en la home INIE ===== */
body.home-inie-active .site-header,
body.home-inie-active header.site-header,
body.home-inie-active header.header-v2,
body.home-inie-active .header-v2,
body.home-inie-active header.elementor-location-header,
body.home-inie-active .elementor-location-header,
body.home-inie-active [data-elementor-type="header"] {
    display: none !important;
}
/* ===== Fin ocultar header ===== */

/* ============================================================
   SECCIÓN: PROGRAMAS DEL INIE
   Cajas blancas con franja institucional UCR a la izquierda +
   ícono SVG inline (hinie_render_icon) en cada tarjeta.
   Reemplaza al banner del podcast (movido al CPT anuncios-inie).
   ============================================================ */
.home-inie-wrapper .home-inie-programas {
    background: #f5f5f0;
    padding: 3rem 0;
    margin: 0 -1rem;
}
.home-inie-wrapper .home-inie-programas-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.home-inie-wrapper .home-inie-programas-head {
    text-align: center;
    margin-bottom: 2rem;
}
.home-inie-wrapper .home-inie-programas-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00395d;
    margin-bottom: 12px;
}
.home-inie-wrapper .home-inie-programas-eyebrow::before,
.home-inie-wrapper .home-inie-programas-eyebrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: #FFC83E;
}
.home-inie-wrapper .home-inie-programas-titulo {
    font-family: 'Trueno', sans-serif;
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 500;
    color: #00395d;
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.home-inie-wrapper .home-inie-programas-titulo em {
    font-style: normal;
    color: #005da4;
    position: relative;
    display: inline-block;
}
.home-inie-wrapper .home-inie-programas-titulo em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 7px;
    background: #FFC83E;
    opacity: 0.35;
    z-index: -1;
}
.home-inie-wrapper .home-inie-programas-subtitulo {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Grid */
.home-inie-wrapper .home-inie-programas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 1.25rem;
}

/* Tarjeta base */
.home-inie-wrapper .hinie-prog-card {
    background: #fff;
    border-radius: 0 10px 10px 0;
    padding: 18px 18px 16px 22px;
    cursor: default;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    border: 0.5px solid #e8e6df;
    border-left: 0;
    box-sizing: border-box;
}
.home-inie-wrapper .hinie-prog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 30, 60, 0.08);
}
.home-inie-wrapper .hinie-prog-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}
.home-inie-wrapper .hinie-prog-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
/* SVG inline (renderizado por hinie_render_icon) — color via currentColor */
.home-inie-wrapper .hinie-prog-icon svg {
    width: 20px;
    height: 20px;
}
.home-inie-wrapper .hinie-prog-name {
    font-family: 'Trueno', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #00395d;
    line-height: 1.3;
    margin: 0 0 12px;
}
.home-inie-wrapper .hinie-prog-lineas-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}
.home-inie-wrapper .hinie-prog-lineas {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    flex: 1;
}
.home-inie-wrapper .hinie-prog-lineas ul {
    margin: 0;
    padding-left: 14px;
}
.home-inie-wrapper .hinie-prog-lineas li {
    margin: 2px 0;
}
.home-inie-wrapper .hinie-prog-link {
    font-size: 11px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    margin-top: 10px;
}
.home-inie-wrapper .hinie-prog-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.18s;
}
.home-inie-wrapper .hinie-prog-card:hover .hinie-prog-link svg {
    transform: translateX(3px);
}

/* Variantes de color por programa — paleta UCR */
.home-inie-wrapper .hinie-prog-c1 .hinie-prog-stripe { background: #005da4; }
.home-inie-wrapper .hinie-prog-c1 .hinie-prog-icon { background: #e6f1fb; color: #005da4; }
.home-inie-wrapper .hinie-prog-c1 .hinie-prog-link { color: #005da4; }

.home-inie-wrapper .hinie-prog-c2 .hinie-prog-stripe { background: #00395d; }
.home-inie-wrapper .hinie-prog-c2 .hinie-prog-icon { background: #dce4eb; color: #00395d; }
.home-inie-wrapper .hinie-prog-c2 .hinie-prog-link { color: #00395d; }

.home-inie-wrapper .hinie-prog-c3 .hinie-prog-stripe { background: #00c0f3; }
.home-inie-wrapper .hinie-prog-c3 .hinie-prog-icon { background: #e6f8fe; color: #008ba8; }
.home-inie-wrapper .hinie-prog-c3 .hinie-prog-link { color: #008ba8; }

.home-inie-wrapper .hinie-prog-c4 .hinie-prog-stripe { background: #0078cc; }
.home-inie-wrapper .hinie-prog-c4 .hinie-prog-icon { background: #e0eef9; color: #0078cc; }
.home-inie-wrapper .hinie-prog-c4 .hinie-prog-link { color: #0078cc; }

.home-inie-wrapper .hinie-prog-c5 .hinie-prog-stripe { background: #1d6fa8; }
.home-inie-wrapper .hinie-prog-c5 .hinie-prog-icon { background: #e3edf5; color: #1d6fa8; }
.home-inie-wrapper .hinie-prog-c5 .hinie-prog-link { color: #1d6fa8; }

.home-inie-wrapper .hinie-prog-c6 .hinie-prog-stripe { background: #FFC83E; }
.home-inie-wrapper .hinie-prog-c6 .hinie-prog-icon { background: #fff5d7; color: #8a6b00; }
.home-inie-wrapper .hinie-prog-c6 .hinie-prog-link { color: #8a6b00; }

/* ============================================================
   ACCIÓN SOCIAL — Caja horizontal con franja verde
   ============================================================ */
.home-inie-wrapper .home-inie-programas-as-row { margin-top: 1rem; }
.home-inie-wrapper .hinie-prog-as-card {
    background: #fff;
    border-radius: 0 12px 12px 0;
    padding: 22px 24px 22px 28px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
    border: 0.5px solid #e8e6df;
    border-left: 0;
    text-decoration: none;
    color: inherit;
}
.home-inie-wrapper .hinie-prog-as-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 153, 34, 0.10);
}
.home-inie-wrapper .hinie-prog-as-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #6dc067;
}
.home-inie-wrapper .hinie-prog-as-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eaf3de;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b6d11;
}
.home-inie-wrapper .hinie-prog-as-icon svg { width: 24px; height: 24px; }
.home-inie-wrapper .hinie-prog-as-content { min-width: 0; }
.home-inie-wrapper .hinie-prog-as-tag {
    display: inline-block;
    background: #eaf3de;
    color: #3b6d11;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.home-inie-wrapper .hinie-prog-as-content h3 {
    font-family: 'Trueno', sans-serif;
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #00395d;
}
.home-inie-wrapper .hinie-prog-as-content p {
    font-size: 13px;
    margin: 0;
    line-height: 1.55;
    color: #555;
    max-width: 580px;
}
.home-inie-wrapper .hinie-prog-as-lineas {
    font-size: 12px;
    margin: 8px 0 0;
    color: #666;
}
.home-inie-wrapper .hinie-prog-as-lineas strong {
    font-weight: 500;
    color: #3b6d11;
}
.home-inie-wrapper .hinie-prog-as-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf3de;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b6d11;
    transition: all 0.18s;
}
.home-inie-wrapper .hinie-prog-as-card:hover .hinie-prog-as-arrow {
    background: #6dc067;
    color: #fff;
    transform: translateX(3px);
}
.home-inie-wrapper .hinie-prog-as-arrow svg { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 980px) {
    .home-inie-wrapper .home-inie-programas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .home-inie-wrapper .home-inie-programas { padding: 2rem 0; }
    .home-inie-wrapper .home-inie-programas-grid { grid-template-columns: 1fr; }
    .home-inie-wrapper .hinie-prog-card { min-height: auto; }
    .home-inie-wrapper .hinie-prog-as-card {
        grid-template-columns: 48px 1fr;
        padding: 18px 18px 18px 22px;
    }
    .home-inie-wrapper .hinie-prog-as-arrow { display: none; }
}
/* ===== Fin sección Programas del INIE ===== */
