/*
Theme Name: Astra Child
Template: astra
Version: 1.1
*/

@import url("../astra/style.css");

/* ================================================ */
/* HOME - Quitar título "Inicio" y espacio blanco   */
/* ================================================ */
.home .entry-title,
.home h1.entry-title,
.home .entry-header {
    display: none !important;
}

.home .site-content,
.home .ast-main-header-wrap {
    padding-top: 0 !important;
}

/* ================================================ */
/* HERO - Texto grande y blanco fuerte             */
/* ================================================ */
.wp-block-cover h1 {
    font-size: 3.8rem !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.85) !important;
}

.wp-block-cover p {
    font-size: 1.55rem !important;
    color: #ffffff !important;
    text-shadow: 0 3px 12px rgba(0,0,0,0.8) !important;
}

/* ================================================ */
/* TARJETAS - Hover bonito                          */
/* ================================================ */
.wp-block-column a img {
    transition: all 0.35s ease;
    border-radius: 14px;
}

.wp-block-column a img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25) !important;
}

/* ================================================ */
/* CATEGORÍAS - Fondo gris claro + texto grande     */
/* ================================================ */
.archive.category .ast-archive-description,
.tax-category .ast-archive-description {
    background: #f8f9fa !important;
    padding: 45px 20px 55px 20px !important;
}

.archive.category .ast-archive-title,
.tax-category .ast-archive-title {
    font-size: 2.55rem !important;
}

.archive.category .taxonomy-description,
.tax-category .taxonomy-description {
    font-size: 1.25rem !important;
    line-height: 1.78 !important;
    color: #333 !important;
}

/* ================================================ */
/* Miniaturas de posts - Corregir deformación       */
/* ================================================ */
.ast-blog-featured-section .post-thumbnail img {
    object-fit: cover !important;
    height: 220px !important;
}

/* ================================================ */
/* Ocultar descripción en página 2, 3, 4...         */
/* ================================================ */
body.paged .taxonomy-description,
body.paged .ast-archive-description p {
    display: none !important;
}
/* Menú principal más pequeño */
.main-header-bar .main-header-menu a {
    font-size: 12px !important;        /* ← Cambia este número */
    font-weight: 500 !important;
}
/* ================================================ */
/* MEJORA DE ARTÍCULOS INDIVIDUALES                */
/* ================================================ */

.single-post .entry-content {
    font-size: 18px !important;           /* Texto principal más grande */
    line-height: 1.60 !important;         /* Espaciado cómodo */
    color: #333 !important;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Títulos dentro del artículo */
.single-post .entry-content h2 {
    font-size: 28px !important;
    margin-top: 55px !important;
    margin-bottom: 20px !important;
}

.single-post .entry-content h3 {
    font-size: 23px !important;
    margin-top: 45px !important;
    margin-bottom: 18px !important;
}

/* Imágenes dentro del artículo */
.single-post .entry-content img {
    border-radius: 10px;
    margin: 35px auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Tabla de contenidos automática (si usas plugin) */
.single-post .wp-block-table-of-contents {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 40px 0;
}

/* Mejor separación entre párrafos */
.single-post .entry-content p {
    margin-bottom: 24px !important;
}