/**
 * Botón "Comprar ahora" del catálogo con los colores oficiales de Mercado Libre.
 * Amarillo #FFE600 sobre azul marino #2D3277 (contraste ~10:1, AA y AAA).
 *
 * Vive en el tema hijo y no en el plugin a propósito: es identidad de ESTE sitio,
 * no un default del catálogo, y así sobrevive a una actualización del plugin.
 * (La instalación corre spe-catalogo v1.0.0, donde los ajustes de color del CTA
 * existen en el panel pero no están cableados a ningún CSS.)
 */

:root {
    --ml-amarillo: #ffe600;
    --ml-amarillo-hover: #f2d900;
    --ml-azul: #2d3277;
}

/* --------------------------------------------------- Tarjetas del catálogo */
/* El plugin fuerza `color: var(--spe-white) !important`, de ahí el !important. */
.spe-card__cta {
    background: var(--ml-amarillo);
    color: var(--ml-azul) !important;
    font-weight: 700;
}

.spe-card__cta:hover,
.spe-card__cta:focus {
    background: var(--ml-amarillo-hover);
    color: var(--ml-azul) !important;
}

/* ------------------------------------------------------ Ficha de producto */
/* .spe-btn--primary no trae NINGUNA regla en el plugin: se estiliza aquí. */
.spe-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    border: none;
    border-radius: 8px;
    background: var(--ml-amarillo);
    color: var(--ml-azul) !important;
    cursor: pointer;
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.spe-btn--primary:hover,
.spe-btn--primary:focus {
    background: var(--ml-amarillo-hover);
    color: var(--ml-azul) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

.spe-btn--primary:focus-visible {
    outline: 2px solid var(--ml-azul);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .spe-btn--primary {
        transition: none;
    }

    .spe-btn--primary:hover,
    .spe-btn--primary:focus {
        transform: none;
    }
}
