/* ==================================================
   ASISTENTES VIRTUALES EN ACCIÓN (AVEA)
   ESTILOS GENERALES DE LA WEB
   Versión reorganizada: 20/10/2026
   ================================================== */


/* ==================================================
   1. CONFIGURACIÓN GENERAL
   ================================================== */

/* Ocultar fecha de actualización duplicada */
time.updated:not(.published) {
    display: none;
}

/* Ocultar información adicional del tema */
.site-info {
    display: none;
}

/* Ocultar identidad del sitio generada por el tema */
.site-branding {
    display: none;
}

/* Ocultar encabezado predeterminado de la portada */
body.home.page .entry-header {
    display: none;
}

/* Separación inferior del primer grupo de la portada */
body.home .entry-content > .wp-block-group:first-child {
    padding-bottom: 32px !important;
}


/* ==================================================
   2. TARJETAS DE CATEGORÍAS DE LA PORTADA
   ================================================== */

/* Diseño de las tarjetas */
.avea-categorias .wp-block-column {
    background: #ffffff;
    border: 1px solid #d8e2e5;
    border-radius: 14px;
    padding: 24px;

    box-shadow: 0 4px 12px rgba(35, 79, 87, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Efecto al pasar el ratón */
.avea-categorias .wp-block-column:hover {
    transform: translateY(-5px) scale(1.025);

    box-shadow: 0 12px 24px rgba(35, 79, 87, 0.18);
}

/* Separación entre filas */
.avea-categorias .wp-block-columns {
    margin-bottom: 24px;
}

/* Enlaces de las tarjetas */
.avea-categorias .wp-block-column a {
    display: inline-block;

    color: #2f6670;
    font-weight: 700;
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

/* Efecto de los enlaces */
.avea-categorias .wp-block-column a:hover {
    color: #25aeb5;
    transform: translateX(4px);
    text-decoration: none;
}


/* ==================================================
   3. SECCIÓN «LO ÚLTIMO EN AVEA»
   ================================================== */

/* Separación general */
.avea-ultimos {
    margin-top: 36px;
    margin-bottom: 48px;
}

/* Encabezado de la sección */
.avea-ultimos > h2,
.avea-ultimos .wp-block-heading {
    margin-bottom: 28px;

    color: #234f57;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}


/* ==================================================
   4. DISTRIBUCIÓN DE LOS ARTÍCULOS
   ================================================== */

/* Artículos amplios, uno por fila */
.avea-ultimos .wp-block-latest-posts,
.avea-ultimos .wp-block-post-template {
    display: grid;

    grid-template-columns: 1fr !important;
    gap: 28px !important;

    margin: 0;
    padding: 0;
    list-style: none;
}


/* ==================================================
   5. TARJETAS DE LOS ARTÍCULOS
   ================================================== */

/* Diseño individual */
.avea-ultimos .wp-block-latest-posts > li,
.avea-ultimos .wp-block-post-template > li {
    overflow: hidden;

    margin: 0;
    padding: 0 0 22px;

    background: #ffffff;
    border: 1px solid #d8e2e5;
    border-radius: 14px;

    box-shadow: 0 4px 12px rgba(35, 79, 87, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Efecto de elevación */
.avea-ultimos .wp-block-latest-posts > li:hover,
.avea-ultimos .wp-block-post-template > li:hover {
    transform: translateY(-5px);

    border-color: #9bcbd0;

    box-shadow: 0 14px 28px rgba(35, 79, 87, 0.16);
}


/* ==================================================
   6. IMÁGENES DESTACADAS
   ================================================== */

/* Contenedor de imagen */
.avea-ultimos .wp-block-latest-posts__featured-image,
.avea-ultimos .wp-block-post-featured-image {
    overflow: hidden;

    margin: 0 0 18px;

    border-radius: 14px 14px 0 0;
}

/* Enlace de la imagen */
.avea-ultimos .wp-block-latest-posts__featured-image a,
.avea-ultimos .wp-block-post-featured-image a {
    display: block;
}

/* Mostrar imagen completa sin recortes */
.avea-ultimos .wp-block-latest-posts__featured-image img,
.avea-ultimos .wp-block-post-featured-image img {
    display: block;

    width: 100% !important;
    height: auto !important;

    margin: 0;

    object-fit: contain !important;

    transition: transform 0.35s ease;
}

/* Zoom suave */
.avea-ultimos li:hover
.wp-block-latest-posts__featured-image img,
.avea-ultimos li:hover
.wp-block-post-featured-image img {
    transform: scale(1.035);
}


/* ==================================================
   7. TÍTULOS DE LOS ARTÍCULOS
   ================================================== */

.avea-ultimos .wp-block-latest-posts__post-title,
.avea-ultimos .wp-block-post-title a {
    display: block;

    margin: 0;
    padding: 0 22px;

    color: #234f57;

    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}

/* Cambio de color al pasar el ratón */
.avea-ultimos .wp-block-latest-posts__post-title:hover,
.avea-ultimos .wp-block-post-title a:hover {
    color: #25aeb5;
    text-decoration: none;
}


/* ==================================================
   8. FECHA DE PUBLICACIÓN
   ================================================== */

.avea-ultimos .wp-block-latest-posts__post-date,
.avea-ultimos .wp-block-post-date {
    display: block;

    margin: 12px 0 0;
    padding: 0 22px;

    color: #62757b;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}


/* ==================================================
   9. RESUMEN DE LOS ARTÍCULOS
   ================================================== */

.avea-ultimos .wp-block-latest-posts__post-excerpt,
.avea-ultimos .wp-block-post-excerpt {
    margin: 14px 0 0;
    padding: 0 22px;

    color: #465b61;

    font-size: 16px;
    line-height: 1.65;
}


/* ==================================================
   10. ENLACE «LEER MÁS»
   ================================================== */

.avea-ultimos .wp-block-post-excerpt__more-link,
.avea-ultimos .wp-block-latest-posts__post-excerpt a {
    display: inline-block;

    margin-top: 12px;

    color: #2f6670;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

/* Efecto al pasar el ratón */
.avea-ultimos .wp-block-post-excerpt__more-link:hover,
.avea-ultimos .wp-block-latest-posts__post-excerpt a:hover {
    color: #25aeb5;
    text-decoration: none;
    transform: translateX(4px);
}


/* ==================================================
   11. ADAPTACIÓN A TABLETAS
   ================================================== */

@media (max-width: 900px) {

    /* Se conserva la separación final de 28px */
    /* Las imágenes mantienen su altura automática */

}


/* ==================================================
   12. ADAPTACIÓN A MÓVILES
   ================================================== */

@media (max-width: 781px) {

    /* Desactivar elevación de categorías */
    .avea-categorias .wp-block-column:hover {
        transform: none;
    }

    /* Espaciado general de últimos artículos */
    .avea-ultimos {
        margin-top: 28px;
        margin-bottom: 36px;
    }

    /* Encabezado de últimos artículos */
    .avea-ultimos > h2,
    .avea-ultimos .wp-block-heading {
        margin-bottom: 22px;
        font-size: 27px;
    }

    /* Títulos de los artículos */
    .avea-ultimos .wp-block-latest-posts__post-title,
    .avea-ultimos .wp-block-post-title a {
        padding: 0 18px;
        font-size: 19px;
    }

    /* Ajustar márgenes interiores */
    .avea-ultimos .wp-block-latest-posts__post-date,
    .avea-ultimos .wp-block-post-date,
    .avea-ultimos .wp-block-latest-posts__post-excerpt,
    .avea-ultimos .wp-block-post-excerpt {
        padding-right: 18px;
        padding-left: 18px;
    }

    /* Desactivar elevación de artículos */
    .avea-ultimos .wp-block-latest-posts > li:hover,
    .avea-ultimos .wp-block-post-template > li:hover {
        transform: none;
    }

}


/* ==================================================
   13. BARRA LATERAL EN MÓVILES
   ================================================== */

@media (max-width: 781px) {

    /* Separación entre widgets */
    .widget-area .widget {
        margin-bottom: 20px;
    }

    /* Publicaciones recientes */
    .widget-area .wp-block-latest-posts {
        margin-bottom: 12px;
    }

    /* Desplegable de categorías */
    .widget-area .wp-block-categories {
        margin-bottom: 0;
    }

}
/* ==========================================
   AVEA - TÍTULOS DE ARTÍCULOS EN MÓVIL
   ========================================== */

@media (max-width: 781px) {

    /* Título principal de cada artículo */
    body.single-post .entry-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}
    /* Evitar desbordamientos del contenido */
    body.single-post .entry-content {
        max-width: 100%;
        overflow-wrap: break-word;
    }

}
/* AVEA - Ajustes de artículos en móviles */

@media (max-width: 781px) {

    /* Títulos principales */
    body.single-post .entry-title {
        font-size: 30px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere;
    }

    /* Encabezados dentro de los artículos */
    body.single-post .entry-content h1,
    body.single-post .entry-content h2 {
        font-size: 26px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    /* Evitar que las imágenes desborden */
    body.single-post .entry-content img {
        max-width: 100%;
        height: auto;
    }

}

/* ==========================================
   AVEA - TÍTULOS DE ARTÍCULOS EN MÓVIL
   20/10/2026
   ========================================== */

@media (max-width: 781px) {

    body.single-post .entry-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
        font-weight: 700;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: none;
    }

}

/* AVEA: contraste accesible del menú activo */
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    color: #123B40;
    opacity: 1;
}