/* ============================================================
   1. ENLACES DE TEXTO (Etiquetas <a>)
   ============================================================ */

/* Estilo base del enlace en el cuerpo del texto */
a.amz-intl-link {
    color: #007185;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 113, 133, 0.15);
    font-weight: 500;
    position: relative;
    display: inline;
    transition: all 0.25s ease;
}

a.amz-intl-link:hover {
    color: #c45500;
    border-bottom-color: #c45500;
}

/* Icono de flecha minimalista para enlaces de texto */
a.amz-intl-link::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 4px;
    opacity: 0.4;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23007185" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

a.amz-intl-link:hover::after {
    opacity: 1;
    transform: translate(1px, -1px);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c45500" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg>');
}

/* Tooltip Elegante SOLO para enlaces de texto */
a.amz-intl-link::before {
    content: "Enlace patrocinado de Amazon";
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: #232f3e;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

a.amz-intl-link:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   2. BOTONES DE FICHAS (Etiquetas <button>)
   ============================================================ */

/* Reset total para que amz-intl-link no rompa el botón de la ficha */
button.amz-intl-link {
    position: relative;
    overflow: visible; /* Para que el title nativo funcione bien */
}

/* Anulamos los pseudo-elementos del tooltip para que prevalezcan 
   los iconos de amazon y tapa definidos en fichas_hj.css */
button.amz-intl-link::before,
button.amz-intl-link::after {
    display: none !important; /* El botón usará sus propios ::before de fichas_hj.css */
}

/* Re-habilitamos los selectores específicos de tus fichas que 
   estaban siendo bloqueados por la clase amz-intl-link */
.ficha_hj .descripcion button.amazon.amz-intl-link::before {
    display: inline-block !important;
    content: url('/svg/amz_long.svg') !important;
}

.ficha_hj .descripcion button.tapa_blanda.amz-intl-link::after {
    display: inline-block !important;
    content: url('/svg/tapa_blanda.svg') !important;
}