/* Estilos básicos para el grid tipo Ticketplus
 * Puedes ajustar colores para que calcen con tu marca.
 */

.ticketplus-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.ticketplus-event-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ticketplus-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.ticketplus-event-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

.ticketplus-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.ticketplus-event-card:hover .ticketplus-event-thumb img {
    transform: scale(1.04);
}

.ticketplus-event-thumb--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    background: linear-gradient(135deg, #f5f5f5, #e7e7e7);
}

/* Cuerpo de la tarjeta */
.ticketplus-event-body {
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1rem 1rem;
    gap: .5rem;
    flex: 1 1 auto;
}

.ticketplus-event-meta-top {
    font-size: 0.82rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.ticketplus-event-title {
    font-size: 1.03rem;
    line-height: 1.35;
    margin: 0;
    font-weight: 700;
    color: #111827;
}

.ticketplus-event-title a {
    color: inherit;
    text-decoration: none;
}

.ticketplus-event-title a:hover {
    text-decoration: underline;
}

.ticketplus-event-location {
    font-size: 0.88rem;
    color: #4b5563;
}

/* Footer con precio + botón */
.ticketplus-event-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: .5rem;
}

.ticketplus-event-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
    white-space: nowrap;
}

.ticketplus-event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem .9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #1d4ed8, #9333ea);
    color: #ffffff;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 7px 14px rgba(79, 70, 229, 0.35);
}

.ticketplus-event-button:hover {
    background: linear-gradient(135deg, #1e40af, #7e22ce);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.45);
}

/* Texto cuando no hay eventos */
.ticketplus-events-empty {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
    font-size: .95rem;
}

/* Columnas explícitas si quieres controlar el layout desde el shortcode */
.ticketplus-cols-1 {
    grid-template-columns: 1fr;
}
.ticketplus-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ticketplus-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ticketplus-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .ticketplus-cols-3,
    .ticketplus-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ticketplus-events-grid,
    .ticketplus-cols-2,
    .ticketplus-cols-3,
    .ticketplus-cols-4 {
        grid-template-columns: 1fr;
    }
}
