/*
 Theme Name: Twenty Sixteen Child
 Template: twentysixteen
 Author: José Andreu
 Description: Tema personalizado para WordPress.
 Version: 1.0
 License: GNU General Public License v2 or later
*/

.grid-entradas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.grid-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

/*.grid-item:hover {
    transform: translateY(-4px);
}*/

.grid-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Contenedor de la imagen con overflow oculto */
.grid-thumb {
    position: relative;
    overflow: hidden;
}

/* Imagen con transición suave */
.grid-thumb img {
    transition: transform 0.9s ease-out;; /* duración + suavidad */
}

/* Efecto zoom progresivo al hover */
.grid-thumb:hover img {
    transform: scale(1.08); /* zoom muy suave */
}


.grid-title {
    font-size: 1.1em;
    margin-top: 12px;
    text-align: center;
}

.thumb-with-date {
    position: relative;
}

.fecha-etiqueta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.85em;
    border-radius: 4px;
    z-index: 3;
    font-weight: 600;
}

.thumb-with-date {
    position: relative;
}

/* Caja que contiene la fecha */
.date-box {
    position: absolute;
    top: 10px;
    right: 10px; /* pon left: 10px si lo quieres en la izquierda */
    background: #fff;
    padding: 8px 12px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 55px;
    z-index: 10;
}

/* Mes */
.date-month {
    display: block;
    font-size: 0.75em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 2px;
}

/* Día grande */
.date-day {
    display: block;
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1;
    color: #000;
    margin-bottom: 2px;
}

/* Año */
.date-year {
    display: block;
    font-size: 0.75em;
    color: #777;
}

/* Móviles pequeños */
@media screen and (max-width: 480px) {
 }

/* Móviles comunes */
@media screen and (max-width: 576px) { 
}

/* Tablets vertical */
@media screen and (max-width: 768px) {
 }

/* Tablets horizontal */
@media screen and (max-width: 992px) {
 }

/* Laptops */
@media screen and (max-width: 1200px) {
}

/* Pantallas grandes */
@media screen and (max-width: 1400px) {

    .grid-item {
        border: 2px solid rgba(0,0,0,0.25);  /* Más grueso y más visible */
        border-radius: 10px;
        margin-left: 14px;                       /* Le da aire para que se vea el borde */
        margin-right: 14px;
        margin-top: 7px;
        margin-bottom: 7px; 
        background: #fff;                     /* Evita que el borde se mezcle con el fondo */
    }
 }