/*
CTC Separate Stylesheet
Updated: 2026-01-16 15:29:36
Theme Name: Customizr Child
Theme URI: https://presscustomizr.com/customizr
Template: customizr
Author: nikeo
Author URI: https://presscustomizr.com/
Description: Customizr is a simple and fast WordPress theme designed to help you attract and engage more visitors. Provides a perfect user experience on smartphones. Powers more than 100K active sites around the world. Hundreds of 5-stars reviews received on WordPress.org.
Tags: one-column,two-columns,three-columns,left-sidebar,right-sidebar,buddypress,custom-menu,custom-colors,featured-images,full-width-template,theme-options,threaded-comments,translation-ready,sticky-post,post-formats,rtl-language-support,editor-style
Version: 4.4.24.1768577376
*/
/* Estilos base para la grilla */
.posts-grid-shortcode {
    display: grid;
    gap: 25px;
    margin: 40px 0;
}

/* Clases para diferentes configuraciones por fila */
.posts-grid-1-per-row { grid-template-columns: 1fr; }
.posts-grid-2-per-row { grid-template-columns: repeat(2, 1fr); }
.posts-grid-3-per-row { grid-template-columns: repeat(3, 1fr); }
.posts-grid-4-per-row { grid-template-columns: repeat(4, 1fr); }

/* Item individual de post */
.post-grid-item {
    display: flex;
    flex-direction: column;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
    
    /* Sombreado mejorado */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Ajustar altura según número por fila */
.posts-grid-1-per-row .post-grid-item { height: 420px; }
.posts-grid-2-per-row .post-grid-item { height: 400px; }
.posts-grid-3-per-row .post-grid-item { height: 380px; }
.posts-grid-4-per-row .post-grid-item { height: 360px; }

.post-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15),
                0 5px 15px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Efecto de brillo al hover */
.post-grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.post-grid-item:hover::after {
    opacity: 1;
}

/* Contenedor de la imagen cuadrada con enlace COMPLETO */
.post-grid-image {
    flex: 0 0 50%; /* REDUCIDO para hacer espacio cuadrado */
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1; /* HACE LA IMAGEN CUADRADA */
    width: 100%;
}

/* El enlace ocupa toda la imagen */
.post-grid-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Ajustar porcentaje de imagen según número por fila (manteniendo cuadrado) */
.posts-grid-1-per-row .post-grid-image { 
    flex: 0 0 55%; /* Más grande para 1 por fila */
    aspect-ratio: 1/1;
}
.posts-grid-2-per-row .post-grid-image { 
    flex: 0 0 52%; 
    aspect-ratio: 1/1;
}
.posts-grid-3-per-row .post-grid-image { 
    flex: 0 0 50%; 
    aspect-ratio: 1/1;
}
.posts-grid-4-per-row .post-grid-image { 
    flex: 0 0 48%; 
    aspect-ratio: 1/1;
}

/* Capa oscura sobre la imagen */
.post-grid-image a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0));
    z-index: 1;
    transition: background 0.3s ease;
}

.post-grid-item:hover .post-grid-image a::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0));
}

/* IMAGEN CUADRADA - cubre completamente el contenedor */
.post-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el área manteniendo proporciones */
    display: block;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0.95);
}

.post-grid-item:hover .post-grid-image img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Contenedor del texto */
.post-grid-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

/* Ajustar padding según número por fila */
.posts-grid-1-per-row .post-grid-content { 
    padding: 25px; 
    justify-content: flex-start;
    padding-top: 30px;
}
.posts-grid-2-per-row .post-grid-content { 
    padding: 22px; 
    justify-content: flex-start;
}
.posts-grid-3-per-row .post-grid-content { 
    padding: 20px; 
    justify-content: flex-start;
}
.posts-grid-4-per-row .post-grid-content { 
    padding: 18px; 
    justify-content: flex-start;
}

.post-grid-title {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* Ajustar tamaño de fuente según número por fila */
.posts-grid-1-per-row .post-grid-title { 
    font-size: 20px; 
    margin-bottom: 15px;
}
.posts-grid-2-per-row .post-grid-title { 
    font-size: 18px; 
    margin-bottom: 12px;
}
.posts-grid-3-per-row .post-grid-title { 
    font-size: 17px; 
    margin-bottom: 10px;
}
.posts-grid-4-per-row .post-grid-title { 
    font-size: 16px; 
    margin-bottom: 8px;
}

.post-grid-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-grid-title a:hover {
    color: #0073aa;
}

/* Extracto limitado a 100 caracteres visualmente */
.post-grid-excerpt {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
    max-height: 4.5em; /* Aprox 3 líneas */
    overflow: hidden;
    position: relative;
}

/* Añadir puntos suspensivos al final del extracto */
.post-grid-excerpt:after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding-left: 5px;
}

/* Ajustar tamaño de fuente del extracto según número por fila */
.posts-grid-1-per-row .post-grid-excerpt { 
    font-size: 15px; 
    max-height: 5em;
}
.posts-grid-2-per-row .post-grid-excerpt { 
    font-size: 14.5px; 
    max-height: 4.5em;
}
.posts-grid-3-per-row .post-grid-excerpt { 
    font-size: 14px; 
    max-height: 4em;
}
.posts-grid-4-per-row .post-grid-excerpt { 
    font-size: 13.5px; 
    max-height: 3.5em;
}

/* Contador de posts */
.posts-grid-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.posts-grid-count {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.posts-grid-count span {
    color: #0073aa;
    font-weight: 700;
}

/* Paginación */
.posts-grid-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-numbers:hover {
    background: #f0f7ff;
    border-color: #0073aa;
    color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.1);
}

.page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

.page-numbers.dots {
    background: transparent;
    border: none;
    pointer-events: none;
    min-width: auto;
    padding: 8px 5px;
}

/* Navegación anterior/siguiente */
.pagination-nav {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.prev-page, .next-page {
    padding: 8px 20px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.prev-page:hover, .next-page:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.prev-page[disabled], .next-page[disabled] {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1200px) {
    .posts-grid-4-per-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .posts-grid-shortcode {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .posts-grid-4-per-row,
    .posts-grid-3-per-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid-2-per-row {
        grid-template-columns: 1fr;
    }
    
    .posts-grid-shortcode {
        gap: 18px;
    }
    
    .post-grid-item {
        height: 350px;
    }
    
    .posts-grid-1-per-row .post-grid-item { height: 380px; }
    .posts-grid-2-per-row .post-grid-item { height: 360px; }
    .posts-grid-3-per-row .post-grid-item { height: 350px; }
    .posts-grid-4-per-row .post-grid-item { height: 340px; }
}

@media (max-width: 768px) {
    .posts-grid-shortcode {
        gap: 15px;
    }
    
    .posts-grid-4-per-row,
    .posts-grid-3-per-row,
    .posts-grid-2-per-row {
        grid-template-columns: 1fr;
    }
    
    .post-grid-item {
        height: 350px;
        max-width: 450px;
        margin: 0 auto;
    }
    
    /* En móviles, todas las configuraciones son 1 por fila */
    .posts-grid-1-per-row .post-grid-item,
    .posts-grid-2-per-row .post-grid-item,
    .posts-grid-3-per-row .post-grid-item,
    .posts-grid-4-per-row .post-grid-item {
        height: 350px;
        max-width: 400px;
    }
    
    /* Imagen cuadrada en móviles */
    .posts-grid-1-per-row .post-grid-image,
    .posts-grid-2-per-row .post-grid-image,
    .posts-grid-3-per-row .post-grid-image,
    .posts-grid-4-per-row .post-grid-image {
        flex: 0 0 50%;
        aspect-ratio: 1/1;
    }
    
    .posts-grid-1-per-row .post-grid-content,
    .posts-grid-2-per-row .post-grid-content,
    .posts-grid-3-per-row .post-grid-content,
    .posts-grid-4-per-row .post-grid-content {
        padding: 20px;
    }
    
    .posts-grid-1-per-row .post-grid-title,
    .posts-grid-2-per-row .post-grid-title,
    .posts-grid-3-per-row .post-grid-title,
    .posts-grid-4-per-row .post-grid-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .posts-grid-1-per-row .post-grid-excerpt,
    .posts-grid-2-per-row .post-grid-excerpt,
    .posts-grid-3-per-row .post-grid-excerpt,
    .posts-grid-4-per-row .post-grid-excerpt {
        font-size: 14px;
    }
    
    .posts-grid-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .pagination-nav {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .posts-grid-shortcode {
        gap: 15px;
    }
    
    .post-grid-item {
        height: 320px;
        max-width: 100%;
    }
    
    .posts-grid-1-per-row .post-grid-item,
    .posts-grid-2-per-row .post-grid-item,
    .posts-grid-3-per-row .post-grid-item,
    .posts-grid-4-per-row .post-grid-item {
        height: 320px;
        max-width: 100%;
    }
    
    .post-grid-image {
        flex: 0 0 48%;
        aspect-ratio: 1/1;
    }
    
    .post-grid-content {
        padding: 18px;
    }
    
    .post-grid-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .post-grid-excerpt {
        font-size: 14px;
    }
    
    .pagination-numbers {
        gap: 5px;
    }
    
    .page-numbers {
        padding: 6px 12px;
        min-width: 36px;
    }
}

/* Soporte para navegadores antiguos sin aspect-ratio */
@supports not (aspect-ratio: 1/1) {
    .post-grid-image {
        height: 0;
        padding-bottom: 100%; /* Crea un cuadrado con padding */
        position: relative;
    }
    
    .post-grid-image a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .post-grid-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Efecto de carga */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-grid-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.post-grid-item:nth-child(1) { animation-delay: 0.1s; }
.post-grid-item:nth-child(2) { animation-delay: 0.2s; }
.post-grid-item:nth-child(3) { animation-delay: 0.3s; }
.post-grid-item:nth-child(4) { animation-delay: 0.4s; }