/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
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: astra-child
Template: astra
*/



.services {
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(54, 65, 81, 0.60); /* Color visible todo el tiempo */
  backdrop-filter: blur(0px); /* sin desenfoque al inicio */
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.4s ease;
  z-index: 1;
}

.services:hover::before {
  backdrop-filter: blur(20px); /* solo al hacer hover */
  -webkit-backdrop-filter: blur(8px);
}

.services > * {
  position: relative;
  z-index: 2;
}




/*Lista Servicios*/

.custom-pages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
    gap: 20px;
    margin-bottom: 40px;
    
}

.custom-pages-grid .page-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #fff;
}

.custom-pages-grid .page-item:hover {
    transform: translateY(-5px);
}

.custom-pages-grid img {
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
}

.custom-pages-grid h2 {
    font-size: 22px;
    font-weight: 600;
    padding: 10px 0 5px;
    margin: 0;
    color: #111;
}

.read-more {
    padding: 12px 24px;
    background-color: #007bff; /* Azul brillante */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.read-more {
    padding: 12px 24px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.read-more:link,
.read-more:visited,
.read-more:hover,
.read-more:focus,
.read-more:active {
    text-decoration: none!important;
    color: #fff;
}

.read-more::after {
    content: "→";
    font-size: 1em;
    transition: transform 0.3s ease;
}

.read-more:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.read-more:hover::after {
    transform: translateX(4px);
}



/* Responsive tablets: 2 columnas */
@media (max-width: 1024px) {
    .custom-pages-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top:50px
    }

    .custom-pages-grid img {
        height: 250px;
    }
}

/* Responsive móviles: 1 columna */
@media (max-width: 600px) {
    .custom-pages-grid {
        grid-template-columns: 1fr;
    }

    .custom-pages-grid img {
        height: 200px;
    }

    .read-more {
        width: auto;
        text-align: center;
    }
}
