/**
Theme Name: TRESALFA
Author: Arantxa Abad de Modo Creativo
Author URI: https://modocreativo.es/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: TRESALFA
Template: astra
*/

/*
 * 1. Estilos para el banner del Blog: Imagen, Ancho Completo y Posición para Overlay
 */
.ast-archive-entry-banner {
    /* Fondo de imagen con !important para anular estilos del tema */
    background-image: url('https://tresalfa.com/wp-content/uploads/2025/11/mantenimiento-viviendas-tresalfa-1920.jpg') !important;
    background-color: transparent !important;
    background: url('https://tresalfa.com/wp-content/uploads/2025/11/mantenimiento-viviendas-tresalfa-1920.jpg') center center / cover no-repeat !important;
    
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    /* Configuración de Altura/Relleno */
    padding-top: 50px; 
    padding-bottom: 50px; 
    
    /* HACER EL BANNER RESPONSIVE A FULL-WIDTH: 
       Astra suele limitar el ancho por defecto, estas líneas lo fuerzan. */
    width: 100%;
    max-width: none; 
    
    /* NECESARIO para que el overlay (::before) se posicione correctamente */
    position: relative; 
    
    /* Asegurar que el título esté por encima del overlay */
    z-index: 10;
}

/* 2. Creación del Overlay (Capa Semitransparente) */
.ast-archive-entry-banner::before {
    /* Propiedades que definiste para el overlay */
    content: "";
    position: absolute;
    pointer-events: none;
    top: 0; /* Ajustado a 0 */
    left: 0; /* Ajustado a 0 */
    width: 100%; /* Ajustado a 100% */
    height: 100%; /* Ajustado a 100% */
    
    /* Color de fondo y Opacidad */
    background: var(--ast-global-color-6); /* Usando tu variable global de Astra */
    opacity: 0.6;
    
    /* Poner el overlay DENTRO de la imagen (bajo el título) */
    z-index: 1;
}

/* 3. Estilos del Título (BLOG) */
.ast-archive-entry-banner h1 {
    color: #ffffff; /* Color de texto blanco sobre el overlay */
    text-align: center;
    margin: 0;
    font-size: 3em;
    /* Asegurar que el título siempre esté visible sobre el overlay */
    position: relative; 
    z-index: 2; 
}