.elementor-kit-5{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-color-b5aeb33:#FAF0E6;--e-global-color-c58817e:#23160B;--e-global-color-5420d44:#C05125;--e-global-color-58be983:#ffffff;--e-global-color-09cc561:#0d141a;--e-global-color-a495fd4:#878c95;--e-global-color-dff8941:#FAF0E6;--e-global-color-d1856c1:#641723;--e-global-color-e3b0e50:#641723;--e-global-color-f2e39f7:#212529;--e-global-color-8521f37:#FAFAFA;--e-global-typography-primary-font-family:"Playfair";--e-global-typography-primary-font-weight:700;--e-global-typography-primary-font-style:italic;--e-global-typography-primary-line-height:1.2px;--e-global-typography-secondary-font-family:"Playfair Display";--e-global-typography-secondary-font-weight:500;--e-global-typography-secondary-font-style:italic;--e-global-typography-secondary-line-height:1.2px;--e-global-typography-text-font-family:"Playfair";--e-global-typography-text-font-weight:400;--e-global-typography-text-line-height:1.5px;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;--e-global-typography-5535e8e-font-family:"Montserrat";--e-global-typography-5535e8e-font-size:3rem;--e-global-typography-5535e8e-font-weight:700;--e-global-typography-c83476d-font-family:"Montserrat";--e-global-typography-c83476d-font-size:2.5rem;--e-global-typography-c83476d-font-weight:bold;--e-global-typography-ff8f921-font-family:"Montserrat";--e-global-typography-ff8f921-font-size:2.3rem;--e-global-typography-ff8f921-font-weight:bold;--e-global-typography-887fca2-font-family:"Open Sans";--e-global-typography-887fca2-font-size:1rem;--e-global-typography-887fca2-font-weight:400;--e-global-typography-2142591-font-family:"Open Sans";--e-global-typography-2142591-font-size:1rem;--e-global-typography-2142591-font-weight:700;--e-global-typography-6e52843-font-family:"Open Sans";--e-global-typography-6e52843-font-size:1rem;--e-global-typography-6e52843-font-weight:500;--e-global-typography-7cb1fe7-font-family:"Playfair Display";--e-global-typography-7cb1fe7-font-size:1em;--e-global-typography-7cb1fe7-font-weight:400;--e-global-typography-7cb1fe7-letter-spacing:1.2px;--e-global-typography-2465706-font-family:"Playfair";--e-global-typography-2465706-font-size:3em;--e-global-typography-2465706-font-weight:900;--e-global-typography-2465706-font-style:italic;--e-global-typography-2465706-letter-spacing:1.2px;--e-global-typography-87e2aa4-font-family:"Playfair";--e-global-typography-87e2aa4-font-size:2em;--e-global-typography-87e2aa4-font-weight:400;--e-global-typography-87e2aa4-font-style:italic;}.elementor-kit-5 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}.entry-title, .wp-block-post-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-5{--e-global-typography-c83476d-font-size:1.9rem;--e-global-typography-ff8f921-font-size:1.9rem;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS *//* Contenedor principal alineado y con espaciado entre ítems */
.wine-scores-container {
    display: flex;
    gap: 12px;
    align-items: center;
    font-family: 'Playfair Display';
}

/* Estructura base de la píldora de puntuación */
.score-badge {
    position: relative; /* Esencial para que el tooltip se posicione respecto a la píldora */
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Sección izquierda: Siglas de las revistas */
.score-label {
    background-color: #fff;
    color: #000; /* Tono azul para las letras */
    padding: 4px 8px;
    font-weight: 500;
    border-radius: 5px 0 0 5px;
}

/* Sección derecha: Fondo gris y número de la nota */
.score-value {
    background-color: #e5e5e5;
    color: #5a1818; /* Tono vino/marrón oscuro para los números */
    padding: 4px 8px;
    font-weight: bold;
    border-left: 1px solid #ccc;
    border-radius: 0 5px 5px 0;
}

/* ==========================================
   ESTILOS DEL TOOLTIP FLOTANTE (ESTILO OSCURO)
   ========================================== */

/* 1. Cuerpo del Tooltip (Caja negra) */
.score-badge::before {
    content: attr(data-tooltip); /* Extrae el texto del atributo data-tooltip de PHP */
    position: absolute;
    top: 130%; /* Lo ubica justo debajo del badge */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    
    /* Diseño visual exacto a tu imagen */
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

/* 2. Flecha indicadora superior (Triángulo) */
.score-badge::after {
    content: "";
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    
    /* Construcción geométrica del triángulo apuntando arriba */
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #1a1a1a transparent;
    margin-top: -6px; /* Ajusta la posición para acoplarse perfectamente a la caja negra */
    z-index: 99;
}

/* 3. Activación del Hover (Aparece de forma fluida al pasar el mouse) */
.score-badge:hover::before,
.score-badge:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Desplazamiento sutil hacia abajo */
}/* End custom CSS */