/* ===== Layout general timeline, limpio y corporativo ===== */

.pcap-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

/* Tarjeta */
.pcap-item {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Contenedor interno con timeline lateral */
.pcap-inner {
    position: relative;
    padding: 20px 24px 22px 40px;
}

/* Línea vertical */
.pcap-inner::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

/* Punto de la línea (aprox. a la altura del centro de la imagen) */
.pcap-inner::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 120px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--pcap-primary, #002c54);
    box-shadow: 0 0 0 4px rgba(0, 44, 84, 0.12);
}

/* ===== Imagen destacada ===== */

.pcap-thumb-wrapper {
    width: 100%;
    height: 160px; /* misma altura para todas */
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pcap-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Header ===== */

.pcap-header {
    margin-bottom: 8px;
}

.pcap-titulo {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #111827;
}

.pcap-fecha-hora {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.pcap-fecha {
    font-weight: 500;
    margin-right: 4px;
}

.pcap-hora {
    opacity: 0.9;
}

/* ===== Texto y countdown ===== */

.pcap-contenido {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 10px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.pcap-contenido p {
    margin-top: 0;
}

.pcap-countdown {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #eef2ff;
    color: var(--pcap-primary, #002c54);
}

/* ===== Botones ===== */

.pcap-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.pcap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.18s ease-out;
    cursor: pointer;
}

/* Unirse */
.pcap-btn-join {
    background: var(--pcap-primary, #002c54);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.pcap-btn-join:hover {
    background: #013864;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

/* Google Calendar */
.pcap-btn-gcal {
    background: #f9fafb;
    color: var(--pcap-primary, #002c54);
    border-color: #e5e7eb;
}

.pcap-btn-gcal:hover {
    background: #e5f0ff;
    border-color: var(--pcap-primary, #002c54);
}

/* Responsive */
@media (max-width: 768px) {
    .pcap-lista {
        grid-template-columns: 1fr;
    }

    .pcap-inner {
        padding-left: 32px;
    }

    .pcap-inner::before {
        left: 14px;
    }

    .pcap-inner::after {
        left: 9px;
    }
}
