/* --- ESTILOS PARA CASA DE LA CULTURA --- */

.cultura-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.taller-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* La imagen de fondo de cada taller */
.taller-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Título visible siempre en la parte inferior */
.taller-titulo-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 30px 20px 20px 20px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* La Cortina Guinda que sube */
.taller-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(97, 18, 50, 0.9); /* Nuestro color vino con transparencia */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    transform: translateY(100%); /* Oculto abajo inicialmente */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
    z-index: 2;
}

/* Efectos al pasar el mouse */
.taller-card:hover .taller-img {
    transform: scale(1.1); /* La foto hace un ligero zoom */
}

.taller-card:hover .taller-titulo-base {
    opacity: 0; /* Ocultamos el título base */
}

.taller-card:hover .taller-overlay {
    transform: translateY(0); /* La cortina sube */
}

/* Textos dentro de la cortina */
.taller-overlay h3 {
    color: var(--dorado);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.taller-overlay p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
    width: 100%;
}

.taller-btn {
    margin-top: 15px;
    background: transparent;
    color: white;
    border: 2px solid var(--dorado);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.taller-btn:hover {
    background: var(--dorado);
    color: white;
}