/*
Theme Name: GO Child
Theme URI: https://ibone.unne.edu.ar/
Description: Tema hijo del theme GO para el sitio institucional del IBONE.
Author: Equipo de Desarrollo IBONE
Template: go
Version: 1.0.2
*/

/* Importa estilos del tema padre */
@import url("../go/style.css");

/* ==========================================================================
   Redefine variables del tema padre GO
   ========================================================================== */

:root {
  --go--max-width--alignwide: 1170px;
  --go-button-interactive--color--background: #07a4eb;
}



/* ==========================================================================
   Estilos de Tipografía Avanzados (Estilo Referencia)
   ========================================================================== */

/* 1. Aplicación global con optimización de renderizado */
body, html, p, span, li, a, div {
    font-family: "Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important;
    font-weight: 300 !important;           /* Grosor regular y limpio */
    /*color: #333333;*/               /* Gris oscuro suave, idéntico a la imagen */
    line-height: 1.6 !important;               /* Interlineado cómodo para lectura */
    letter-spacing: 0.2px !important;          /* Espaciado sutil entre letras */
    -webkit-font-smoothing: antialiased;       /* Suavizado de fuente para Chrome/Safari */
    -moz-osx-font-smoothing: grayscale;        /* Suavizado de fuente para Firefox en Mac */
	font-size: 1.1rem;
}

/* 2. Encabezados y títulos con el mismo estilo limpio */
h1, h2, h3, h4, h5, h6, .site-title {
    font-family: "Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important;
    font-weight: 500 !important;              /* Un toque más firme para los títulos */
    color: #353536 !important;
}

/* 3. Viñetas e items de lista (como los de las áreas del conocimiento de tu imagen) */
ul li, ol li {
    margin-bottom: 8px !important;             /* Separa las viñetas como en la referencia */
}

/* 4. Forzar herencia en formularios */
input, select, textarea, button, .button, .wp-block-button__link {
    font-family: inherit !important;
}



/* ==========================================================================
   Personalizaciones del tema hijo 
   ========================================================================== */

.custom-header img {
    width: 100%;
    height: auto;
    display: block;
}

.custom-header {
    position: relative;
    overflow: hidden;
}

.custom-header img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.custom-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 0, 0.25); /* superposición verde oscura translúcida */
}
.header-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}



.site-header {
    border-bottom: 3px solid #ededed;
    width: 100%;
}

#site-header > .header-in {
  max-width: var(--go--max-width--alignwide); /* o el mismo ancho que uses en main */
  margin: 0 auto;
  padding: 0 0px; /* opcional para algo de espacio lateral */
  box-sizing: border-box;
}

.header__titles h1, .site-title{
    font-size: 1.2rem !important;
    color: hsl(0deg 0% 48.82%) !important;
	margin-left: 0px !important;
	font-weight: 400 !important;
}

.header__inner{
    padding-bottom: 5px;
    border-bottom: 1px solid #ededed;
    padding: 0;
}

.entry-content>:first-child
 {
    /*margin-top:1rem !important;*/
    padding-bottom: 0px;
    margin-bottom: 0px;
}


.site-content {
    background-color: #F9F9F9;
}

.site-footer > *:last-child {
  padding-bottom: 1rem !important; 
}

/* ==========================================================================
  Enalce ICON
   ========================================================================== */

.enlace-content > .enlace-icon {
	display:inline-block !important;
}

/* ==========================================================================
  Ofertas tecnológicas
   ========================================================================== */

.ot-lista {
   gap: .25rem !important;
}

.ot-filtro-grupo input[type="text"], .ot-filtro-grupo select {
	height: 3rem !important;
}
.ot-ficha-titulo-principal {
	color: #fff !important;
}

/* ==========================================================================
  Gestion de Documentos
   ========================================================================== */

.ibone-docs-lista {
   gap: .25rem !important;
}

.content-area ol li, .content-area ul li {
	margin-bottom: 0px !important;
}


/* ==========================================================================
  CF7 -Formularios
   ========================================================================== */

/*  para control antispam en formularios */
.campo-extra {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}

.campo-extra p {
  margin: 0 !important;
}

/* reducir el alto de los textbox*/
.campo-texto-corto {
    min-height: 90px !important;
    height: 90px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    background-color: #c2ffc8;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}


/* ==========================================================================
  CAROUSEL home 
   ========================================================================== */

.carousel-post-title a {
    line-height: 1 !important;
    font-weight: 500 !important;
}
.carousel-post-meta {
    font-size: .8rem !important;
    color: #4c4c4c !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 500 !important;
}

.carousel-post-meta * {
    font-size: inherit !important;
    color: inherit !important;
    text-transform: inherit !important;
    letter-spacing: inherit !important;
    font-weight: inherit !important;
}

/* ==========================================================================
   NAV menu  
   ========================================================================== */

.menu-separator {

    border-bottom: 1px solid #d8e8ed; /* Línea negra de 1px */
    margin: 5px 0;                 /* Espacio arriba y abajo */
    pointer-events: none;          /* Evita que se pueda hacer clic */
    height: 0;                     /* Asegura que no tenga altura de texto */
    display: block;	
}
.menu-separator > a {
    display: none;
}

.header__navigation{
    align-items: unset;
    flex-direction: row-reverse;
    /* padding-top: 5px;
    padding-bottom: 5px;*/
    padding-left: 1rem;
}

.header__navigation a {
    font-size: 1.2rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #337ab7;
    transition: none!important;
}
.header__navigation a:hover {
    text-decoration: none !important;
}

.header__navigation .sub-menu {
    text-align: left;
}

/* ── Ítem de menú superior: fondo al hover/focus ── */
.primary-menu > li {
    position: relative; /* ancla el sub-menu a este ítem */
	margin-bottom:0px !important;
}

.primary-menu > li > a {
    padding: 0 10px;
    display: block;
	line-height: 2.5rem !important;
}

.primary-menu li a {
    font-size: 1rem;
    font-weight: 400 !important;   
}

/* Fondo azul al pasar el mouse o enfocar el ítem */
.primary-menu > li:hover > a,
.primary-menu > li:focus-within > a,
.primary-menu > li > a:focus {
    background-color: #0695d6 !important;
    color: #fff !important;
}

/* ── Sub-menu ── */
.primary-menu .sub-menu {
    background-color: #0695d6;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

/* Eliminar el triángulo/flecha decorativa que genera el hueco */
.primary-menu > li > .sub-menu::before,
.primary-menu > li > .sub-menu::after {
    display: none !important;
    border: none !important;
    content: none !important;
}
.primary-menu .sub-menu .menu-item{
    white-space: nowrap !important;
}

@media only screen and (min-width: 960px) {
    .primary-menu .sub-menu {
        width: auto;
        white-space: nowrap;
        min-width: 250px;
    }

    /* Sub-menu pegado justo debajo del ítem, sin hueco */
    .primary-menu > li > .sub-menu {
        top: 100%;      /* inmediatamente debajo del ítem */
        left: 0;        /* alineado al borde izquierdo del ítem (no centrado) */
        transform: none; /* elimina cualquier transform que lo centrara */
    }
}

.primary-menu .sub-menu a {
    font-size: 1rem;
    padding: 7px 5px;
}
.primary-menu .sub-menu a:hover {
    text-decoration: none;
    background-color: #07a4eb;
}

/* ==========================================================================
   FOOTER 
   ========================================================================== */

.site-footer {
	font-size: .8rem;
}

.site-footer * {
  font-size: inherit !important;
}

.site-footer .site-info { 
    background: #347ab7;
    color: #fff;
 }

.site-footer .site-info a {
     color: #fff;
}

.site-footer--1.site-footer {
    padding-bottom: 0;
}

.site-footer a, .site-footer--1 .footer-navigation a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-footer.has-background {
       padding-top: 0px;;
}

.site-footer--1.site-footer .social-icons {
    margin-bottom: 0px;
}

.image_footer {
    display: block;
    margin: 0 auto; /* Centra la imagen horizontalmente */
    max-width: 100%; /* Asegura que la imagen no exceda el ancho del contenedor */
    max-height: 100px; /* Limita la altura máxima de la imagen */
    height: auto; /* Mantiene la proporción de la imagen */
}

/* ==========================================================================
   Páginas POST 
   ========================================================================== */

.post__title{
    color: #353536;
    font-size: var(--go--type-scale-3);
    font-weight: bold;
}

.post header.entry-header-post{
  position: relative;
  /*z-index: 1000;*/
  /*margin-top: -250px;*/
  /*transform: translateY(-125px);*/
  background-color: #F9F9F9;
  border-radius: 4px;
}

.post__thumbnail {
  position: relative;
  width: 100vw; /* ancho total de la ventana */
  max-width: 100vw;
  height: 250px; /* altura fija */
  max-height: 350px;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  align-items: flex-start; /* alinea la imagen al top */
  justify-content: center; /* centrado horizontal */
  padding-bottom: 0px !important;
  margin-bottom: -100px;
}

.post__thumbnail img {
  height: 250px;   /* forzar altura fija */
  width: auto;     /* ancho adaptable */
  min-width: 100%; /* mínimo ancho para cubrir el contenedor */
  object-fit: cover;
  object-position: top center;
  display: block;
}


/* ==========================================================================
  Página INICIO
   ========================================================================== */

.featured {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0px;
}

.danger {
    background: #D9534F;
}
.success {
    background: #12BC97E0;
}

.warning {
    background: #E8AD29;
}

.info {
    background: #5BC0DE;
}

hr.wp-block-separator{
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 0px;
    padding-bottom: 0px;
    color: #e7e7e7;
}

h6.alignwide, h5.alignwide, h4.alignwide, h3.alignwide{
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 2rem;
    padding-bottom: 0px; 
}

.entry-content .ultp-post-grid-block
 {
    margin-top:1px !important;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

/* ==========================================================================
   SLIDER
   ========================================================================== */

    .wp-block-ultimate-post-post-slider-1 .ultp-block-content-inner {
        background: #ffffffde;
    }

    div.wp-block-group:has(.wp-block-ultimate-post-post-slider-1){
        padding: 0px!important;
        background-image: radial-gradient(ellipse at center, #e7e7e7, #020202);
        margin-bottom: 0px;
        margin-top: 5px;
    }

    .wp-block-group > .wp-block-ultimate-post-post-slider-1 {
        margin: 0px auto !important;
    }


/* ---- END slider ----- */

div.wp-block-group:has(div.enlaces-iconos-grid) {
        padding: 0px!important;
        background-color: #e9e9e9;
        margin-bottom: 5px;
        margin-top: 0px;        
}

/* ==========================================================================
   TEMPLATE header
   ========================================================================== */

.header-above-image {
    position: relative;
    text-align: center;
}
.header-above-image .page-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    z-index: 10;
}


/* ==========================================================================
   Page TEMPLATE - Template Name: Page Institutional
   ========================================================================== */

.post__title .entry-title {
    padding-top: 2rem;
}

.breadcrumb-nav {
    padding-left: 1rem;
    margin-top: 1rem !important;
}
.breadcrumb-nav a,
.breadcrumb-nav span {
    font-size: 0.80rem !important; /* Achica el texto (ajusta el número si lo quieres aún más chico) */
    display: inline-block;        /* Asegura que el navegador procese bien el tamaño */
    font-weight: 500 !important;
    color: var(--go--hyperlink--color--text, var(--go--color--primary));	
}

.block-columns-nav{
    margin-top: 0px;
}
.content-page {
    padding-left: 1rem;
    margin-top: 5px;
    text-align: left;
    text-justify: inter-word;
}

h1.itheme-title{
    margin-bottom: 5px !important;
    font-size: var(--go--type-scale-3);
    color: #303030;
}

/* Filter POST */
/* content excerpt */

.category-title {
    padding: 2rem;
}



.content-excerpt>:last-child:not(.alignfull) {
    margin-bottom: 1rem;
}



/* ============================================================
   POST CARDS — Archivo de categoría
   Grilla responsiva: 1 col → 2 → 3 → 4 → 5 (máx.)
   ============================================================ */

.posts-card-grid {
    display: grid;
    grid-template-columns: repeat( 1, 1fr );
    gap: 1.25rem;
    padding: 1.25rem 0;
    align-items: start;
}

/* 2 columnas desde 480 px */
@media ( min-width: 480px ) {
    .posts-card-grid {
        grid-template-columns: repeat( 2, 1fr );
    }
}

/* 3 columnas desde 768 px */
@media ( min-width: 768px ) {
    .posts-card-grid {
        grid-template-columns: repeat( 3, 1fr );
    }
}

/* 4 columnas desde 1100 px */
@media ( min-width: 1100px ) {
    .posts-card-grid {
        grid-template-columns: repeat( 4, 1fr );
    }
}

/* 5 columnas desde 1400 px */
@media ( min-width: 1400px ) {
    .posts-card-grid {
        grid-template-columns: repeat( 5, 1fr );
    }
}

/* ---- Tarjeta individual ---- */
.post-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    transition: box-shadow .2s ease, transform .2s ease;
    height: 280px;
    max-height: 280px;
}

.post-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
    transform: translateY( -2px );
}

/* Imagen destacada */
.post-card__thumbnail-link {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}

.post-card__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .3s ease;
}

.post-card:hover .post-card__thumbnail img {
    transform: scale( 1.04 );
}

/* Cuerpo de la tarjeta */
.post-card__body {
    padding: .85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Fecha */
.post-card__date {
    margin: 0 0 .4rem;
    font-size: .78rem;
    color: #888;
    letter-spacing: .01em;
}

/* Título */
.post-card__title {
    margin: 0;
    line-height: 1.35;
    color: #222;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Limita a 3 líneas */
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .85rem;    
    font-weight: 400 !important;	
}

.post-card__title a:hover {
    color: #0695d6;
    text-decoration: underline;
}