/**
 * Estilos para el listado de packs - shortcode [isptarifaspacks]
 */

.isp-packs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 0;
}

.isp-pack-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 28px 22px 22px;
    width: 280px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.isp-pack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.isp-pack-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2474C8;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.isp-pack-card__imagen {
    margin: 0 auto 16px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isp-pack-card__imagen img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.isp-pack-card__title {
    font-size: 18px;
        
    font-weight: 700;
    color: #333;
    margin: 12px 0 12px;
    line-height: 1.3;
    min-height: 48px;
}

.isp-pack-card__desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
    min-height: 20px;
}

.isp-pack-card__incluye {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
    font-size: 14px;
    color: #444;
}

.isp-pack-card__incluye li {
    padding: 6px 0 6px 24px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.isp-pack-card__incluye li:last-child {
    border-bottom: none;
}

.isp-pack-card__incluye li::before {
    content: "✓";
    position: absolute;
    left: 4px;
    color: #2ecc71;
    font-weight: 700;
}

.isp-pack-card__extra {
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}

.isp-pack-card__precio {
    margin: 16px 0;
    line-height: 1;
}

.isp-pack-card__precio .entero {
    font-size: 44px;
    font-weight: 700;
    color: #2474C8;
}

.isp-pack-card__precio .decimales {
    font-size: 18px;
    font-weight: 600;
    color: #2474C8;
    margin-left: 2px;
}

.isp-pack-card__precio .iva-info {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    font-weight: 400;
}

.isp-pack-card__btn {
    display: inline-block;
    background: #2474C8;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: auto;
}

.isp-pack-card__btn:hover {
    background: #141414 !important;
    color: #fff !important;
    text-decoration: none;
}

.isp-packs-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .isp-pack-card {
        width: 100%;
        max-width: 360px;
    }
}

/* 1. Todas las filas con la misma altura y tarjetas estiradas */
.isp-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    grid-auto-rows: 1fr;          /* todas las filas igual de altas */
    gap: 24px;
    justify-content: center;
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 2. Título siempre con espacio para 2 líneas */
.isp-pack-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 12px 0;
    line-height: 1.3;
    min-height: calc(18px * 1.3 * 2);   /* 2 líneas */
}

/* 3. Descripción siempre con espacio para 3 líneas */
.isp-pack-card__desc {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 14px;
    min-height: calc(14px * 1.4 * 3);   /* 3 líneas */
}

/* 4. La lista ocupa el hueco libre y empuja precio + botón al fondo */
.isp-pack-card__incluye {
    flex-grow: 1;
}

/* 5. El precio ya no necesita margen automático, lo hace la lista */
.isp-pack-card__btn {
    margin-top: 0;
}
@media (max-width: 768px) {
    .isp-packs-grid {
        grid-template-columns: minmax(0, 360px);
    }
    .isp-pack-card {
        width: 100%;
    }
}