.ecc-master-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 72px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: stretch;
}

.ecc-master-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecc-master-card__image {
    display: block;
    height: 195px;
    overflow: hidden;
    flex-shrink: 0;
}

.ecc-master-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cuerpo flexible para alinear todos los botones */
.ecc-master-card__body {
    padding: 14px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ecc-master-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ecc-master-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.ecc-master-card__badge--filled {
    background: #ff4054;
    color: #fff;
}

.ecc-master-card__badge--outline {
    border: 1px solid #ff4054;
    color: #ff4054;
    background: #fff;
}

.ecc-master-card__title {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.28;
    font-weight: 800;
    min-height: 40px;
}

.ecc-master-card__title a {
    color: #111;
    text-decoration: none;
}

.ecc-master-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #777;
    font-size: 13px;
}

.ecc-master-card__meta span {
    color: #ff4054;
    font-size: 17px;
    line-height: 1;
}

/* Botón siempre abajo */
.ecc-master-card__button {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    height: 42px;
    border: 1px solid #999;
    border-radius: 14px;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s ease;
    box-sizing: border-box;
}

.ecc-master-card__button span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 0 !important;
    margin: 0 !important;
    background: #ff4054;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px !important;
    text-align: center;
    flex-shrink: 0;
    transform: translateY(0);
}

.ecc-master-card__button span::before,
.ecc-master-card__button span::after {
    line-height: 1 !important;
}

.ecc-master-card__button:hover {
    border-color: #ff4054;
    color: #ff4054;
}

/* Tablet */
@media (max-width: 1024px) {
    .ecc-master-cards {
        gap: 28px;
    }

    .ecc-master-card__body {
        padding: 14px 18px 20px;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .ecc-master-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ecc-master-card__image {
        height: 210px;
    }

    .ecc-master-card__title {
        min-height: auto;
    }
}