.wpml-language-switcher-block {
	width: auto !important;
}

/* menu de idiomas espacio */

/* ==========================================================
   HMM · CSS común de halfmarathonmagaluf.com
   Se pega una sola vez en Apariencia > Editor > Estilos > CSS adicional.
   Sirve para todas las páginas y para sus traducciones.
   ========================================================== */


/* Etiquetas de distancias y lugar */
.hmm-hero .hmm-hero__datos {
    gap: 0.5rem;
    margin-block: 1.25rem;
}
.hmm-hero .hmm-hero__datos p {
    margin: 0;
    padding: 0.4em 1em;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(16, 19, 35, 0.35);
    font-size: 0.95rem;
}

/* Botones: zona táctil de al menos 48 px */
.hmm-hero .hmm-hero__botones .wp-block-button__link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.75em;
    font-weight: 700;
}

/* Móvil: botones a todo el ancho, uno encima de otro */
@media (max-width: 599px) {
    .hmm-hero .hmm-hero__botones {
        flex-direction: column;
        align-items: stretch;
    }
    .hmm-hero .hmm-hero__botones .wp-block-button,
    .hmm-hero .hmm-hero__botones .wp-block-button__link {
        width: 100%;
    }
}


/* Rejillas de tarjetas */
.hmm-rejilla {
    gap: 1.25rem;
    margin-block: 2rem;
}

/* Tarjetas */
.hmm-tarjeta {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}
.hmm-tarjeta > * {
    margin-block: 0 0.75rem;
}
.hmm-tarjeta > .wp-block-image:first-child {
    margin: -1.5rem -1.5rem 1.25rem;
}
.hmm-tarjeta > .wp-block-image img {
    width: 100%;
    display: block;
}
.hmm-tarjeta > .wp-block-buttons {
    margin-top: auto;
    padding-top: 0.75rem;
}
.hmm-tarjeta .wp-block-button,
.hmm-tarjeta .wp-block-button__link {
    width: 100%;
}
.hmm-tarjeta--linea {
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.hmm-premios {
    height: auto;
    margin-top: 1.25rem;
}

/* Textos */
.hmm-antetitulo {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}
.hmm-precio {
    font-weight: 700;
}
.hmm-lista {
    list-style: none;
    padding: 0;
}
.hmm-lista li {
    padding: 0.5rem 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.hmm-lista li:last-child {
    border-bottom: 0;
}
.hmm-enlace a {
    color: inherit;
    font-weight: 700;
}
.hmm-enlace a::after {
    content: " →";
}

/* Fotos */
.hmm-foto img,
.hmm-tarjeta-foto {
    border-radius: 16px;
    overflow: hidden;
}
.hmm-galatzo .wp-block-image img {
    max-width: 220px;
    height: auto;
}

/* Logotipos */
.hmm-logos {
    gap: 1.5rem 2.5rem;
    align-items: center;
    margin-top: 2rem;
}
.hmm-logos .wp-block-image {
    margin: 0;
}
.hmm-logos img {
    max-height: 60px;
    width: auto;
}
.hmm-its img {
    max-width: 420px;
    width: 100%;
    height: auto;
}

/* Botones: zona táctil de al menos 48 px en toda la portada */
.hmm-seccion .wp-block-button__link,
.hmm-tarjeta-foto .wp-block-button__link,
.hmm-galatzo .wp-block-button__link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.5em;
    text-align: center;
}

/* HMM · Circuitos */
.hmm-seccion[id] {
    scroll-margin-top: 1rem;
}
.hmm-dato__valor {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
}

/* Recorrido paso a paso: lista numerada con línea de unión */
.hmm-pasos {
    list-style: none;
    counter-reset: paso;
    padding: 0;
    margin-top: 1.25rem;
}
.hmm-pasos li {
    counter-increment: paso;
    position: relative;
    padding: 0 0 1.25rem 3.25rem;
}
.hmm-pasos li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: -0.15em;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--contrast);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hmm-pasos li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1.125rem - 1px);
    top: 2.4rem;
    bottom: 0.3rem;
    width: 2px;
    background: color-mix(in srgb, currentColor 20%, transparent);
}
.hmm-pasos a {
    color: inherit;
}

/* Mapas */
.hmm-mapa {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #e5e5e5;
}
.hmm-mapa iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}
.hmm-mapa-tarjeta {
    height: auto;
}
@media (min-width: 782px) {
    .hmm-mapa-tarjeta {
        position: sticky;
        top: 1.5rem;
    }
}

/* Fotos verticales: encuadre por abajo */
.hmm-foto--abajo img {
    object-position: center 85%;
}

/* HMM · Precios y servicios */
.hmm-nota {
    font-size: 0.9rem;
    opacity: 0.85;
}
.hmm-condiciones {
    height: auto;
    max-width: 720px;
    margin-top: 2rem;
}

/* Tabla de devoluciones */
.hmm-tabla {
    margin-top: 2rem;
}
.hmm-tabla table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: var(--wp--preset--color--tertiary);
}
.hmm-tabla th,
.hmm-tabla td {
    padding: 0.9rem 1.1rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}
.hmm-tabla thead th {
    background: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    font-weight: 700;
}
.hmm-tabla td:last-child,
.hmm-tabla th:last-child {
    text-align: right;
    white-space: nowrap;
}
.hmm-tabla td:last-child {
    font-weight: 700;
    font-size: 1.15rem;
}
.hmm-tabla tbody tr:last-child td {
    border-bottom: 0;
}
.hmm-tabla figcaption {
    text-transform: none;
    font-size: 0.9rem;
    opacity: 0.85;
    text-align: center;
    margin-top: 0.75rem;
}
@media (max-width: 599px) {
    .hmm-tabla th,
    .hmm-tabla td {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }
}

/* Enlaces de texto: mismo color que el texto que los rodea, subrayados */
.hmm-seccion a:not(.wp-element-button),
.hmm-tarjeta a:not(.wp-element-button) {
    color: inherit;
    text-decoration: underline;
}

/* HMM · Reglamento */
html {
    scroll-behavior: smooth;
}
#indice,
.hmm-articulo h2[id] {
    scroll-margin-top: 1rem;
}
.hmm-caja {
    height: auto;
    margin-block: 1.25rem;
}
.hmm-caja--borde {
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.hmm-indice-caja {
    margin-top: 2.5rem;
}
.hmm-indice {
    list-style: none;
    padding: 0;
    columns: 2 16rem;
    column-gap: 2rem;
}
.hmm-indice li {
    break-inside: avoid;
    padding: 0.35rem 0;
}
.hmm-articulo {
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.hmm-articulo:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}
.hmm-articulo > .hmm-antetitulo {
    margin-bottom: 0.25rem;
    color: var(--wp--preset--color--secondary);
    opacity: 1;
    filter: brightness(0.7);
}
.hmm-articulo h2 {
    margin-top: 0;
}
.hmm-articulo h3,
.hmm-articulo h4 {
    margin-top: 2rem;
}
.hmm-articulo .hmm-rejilla {
    margin-block: 1.25rem;
}
.hmm-volver {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}
.hmm-volver a::before {
    content: "↑ ";
}
.hmm-articulo .hmm-tarjeta h3 {
    margin-top: 0;
}
.hmm-tabla--precios th:not(:first-child),
.hmm-tabla--precios td:not(:first-child) {
    text-align: right;
    font-weight: 700;
}
.hmm-tabla--precios th:not(:first-child) {
    white-space: nowrap;
}
@media (max-width: 599px) {
    .hmm-tabla th:last-child,
    .hmm-tabla td:last-child {
        white-space: normal;
    }
    .hmm-tabla td:last-child {
        font-size: 1rem;
    }
}

/* HMM · Cancelaciones */
.hmm-tarjeta h2[id] {
    scroll-margin-top: 1rem;
}
.hmm-seccion > .hmm-antetitulo {
    margin-bottom: 0.25rem;
}
.hmm-seccion > h2 {
    margin-top: 0;
}
.hmm-seccion > h3 {
    margin-top: 2rem;
}
.hmm-seccion > .hmm-pasos {
    margin-top: 1rem;
}
.hmm-seccion.has-tertiary-background-color .hmm-tabla table {
    background: var(--wp--preset--color--base);
}
.hmm-seccion > .hmm-nota {
    margin-top: 0.75rem;
}
.hmm-enlace--abajo {
    margin-top: auto !important;
    padding-top: 0.5rem;
}

/* HMM · Patrocinadores */
.hmm-logo-tarjeta {
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.2s;
}
.hmm-logo-tarjeta:hover {
    border-color: var(--wp--preset--color--secondary);
}
.hmm-tarjeta > .hmm-logo:first-child,
.hmm-logo {
    margin: 0 0 0.75rem;
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hmm-logo a {
    display: block;
    width: 100%;
    height: 100%;
}
.hmm-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hmm-logo--fondo img {
    object-fit: cover;
    border-radius: 8px;
}
.hmm-logo__nombre {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}
.hmm-logo__texto {
    font-size: 2.5rem;
    font-weight: 700;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.75rem;
}
.hmm-logo__texto a {
    text-decoration: none !important;
}
@media (max-width: 599px) {
    .hmm-logo-tarjeta {
        padding: 1rem;
    }
    .hmm-logo,
    .hmm-tarjeta > .hmm-logo:first-child,
    .hmm-logo__texto {
        height: 90px;
    }
    .hmm-logo__texto {
        font-size: 1.75rem;
    }
    .hmm-logo__nombre {
        font-size: 0.8rem;
    }
}

/* Titular principal: que las palabras largas quepan en el móvil */
.hmm-hero h1 {
    overflow-wrap: break-word;
    hyphens: auto;
}
@media (max-width: 599px) {
    .hmm-hero h1.has-xxxx-large-font-size {
        font-size: min(3rem, 8.5vw) !important;
    }
}

/* HMM · Agenda */
.hmm-dia {
    height: auto;
    margin-block: 1.25rem;
}
.hmm-dia h3[id] {
    scroll-margin-top: 1rem;
    margin-top: 0;
}
.hmm-horario {
    list-style: none;
    padding: 0;
    margin-top: 0.75rem;
}
.hmm-horario li {
    position: relative;
    margin-left: 0.4rem;
    padding: 0 0 1.25rem 1.75rem;
    border-left: 2px solid color-mix(in srgb, currentColor 20%, transparent);
}
.hmm-horario li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.hmm-horario li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.3em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wp--preset--color--secondary);
}
.hmm-horario li > strong:first-child {
    font-size: 1.1rem;
}
.hmm-botones-par {
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.hmm-tarjeta .hmm-botones-par .wp-block-button {
    flex: 1 1 0;
    width: auto;
}
.hmm-botones-par .wp-block-button__link {
    white-space: nowrap;
    padding-inline: 0.75em;
}

/* HMM · Pasta Party */
.hmm-zonas a {
    font-weight: 700;
}
.hmm-restaurantes h3[id] {
    scroll-margin-top: 1rem;
    margin-top: 3rem;
    margin-bottom: 0;
}
.hmm-restaurantes h3[id] + .hmm-nota {
    margin-top: 0.25rem;
}
.hmm-restaurantes > .hmm-rejilla {
    margin-top: 1rem;
}
.hmm-resto h4 {
    margin: 0 0 0.35rem;
}
.hmm-resto > .hmm-antetitulo {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.hmm-resto > p {
    margin-block: 0 0.5rem;
}
.hmm-resto__enlaces {
    margin-top: auto !important;
    padding-top: 0.5rem;
    font-size: 0.9rem;
}
.hmm-restaurantes > h3,
.hmm-restaurantes > h3 + .hmm-nota {
    max-width: var(--wp--style--global--wide-size, 1080px) !important;
}

/* HMM · Voluntarios */
.hmm-funcion {
    padding: 1.25rem;
}
.hmm-funcion__num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--secondary);
    filter: brightness(0.7);
    margin-bottom: 0.25rem !important;
}
.hmm-funcion p:last-child {
    margin-bottom: 0;
}
@media (max-width: 599px) {
    .hmm-funcion {
        padding: 1rem;
    }
    .hmm-funcion p {
        font-size: 0.95rem;
    }
}

/* Lo que te llevas: fondo turquesa y ventajas con marca de verificación */
.hmm-premio .hmm-antetitulo {
    opacity: 1;
}
.hmm-premio .hmm-foto img {
    box-shadow: 0 24px 48px rgba(16, 19, 35, 0.3);
}
.hmm-checks li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    border-bottom-color: rgba(15, 15, 15, 0.18);
    font-weight: 600;
}
.hmm-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* HMM · Magaluf */
.hmm-seccion--pegada {
    padding-top: 0 !important;
}
.hmm-premio .hmm-rejilla {
    margin-top: 2.5rem;
}
.hmm-premio a:not(.wp-element-button) {
    font-weight: 700;
}

/* HMM · Contacto */
.hmm-contacto__valor {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: normal;
}
.hmm-contacto__valor a {
    text-decoration: none !important;
}
.hmm-enlaces-lista a {
    font-weight: 600;
}
.hmm-enlaces-lista a::after {
    content: " →";
}
.hmm-formulario {
    height: auto;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(16, 19, 35, 0.08);
}
.hmm-formulario input,
.hmm-formulario textarea {
    border-radius: 8px !important;
}
.hmm-formulario .wp-block-button__link {
    width: 100%;
    min-height: 48px;
}
.hmm-redes {
    margin-top: 0.5rem;
}

/* HMM · Tráfico */
.hmm-aviso.hmm-caja--borde {
    margin-top: 2rem;
}
.hmm-zona-tarjeta h3 {
    margin: 0 0 0.5rem;
}
.hmm-seccion h2[id] {
    scroll-margin-top: 1rem;
}
.hmm-seccion:has(a[href="#zonas"], .hmm-aviso.hmm-caja--borde) .hmm-tarjeta .hmm-dato__valor {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
}
.hmm-accesos {
    padding: 2rem;
}
.hmm-rejilla > .hmm-accesos {
    margin-block: 0;
}
.hmm-accesos h3 {
    margin-top: 1.5rem;
}
.hmm-accesos h4 {
    margin: 1rem 0 0.75rem;
}
.hmm-accesos .hmm-horario li > strong:first-child {
    font-size: 1rem;
}
.hmm-mapa--trafico iframe {
    height: 520px;
}
.hmm-mapa-ancho > .wp-block-buttons {
    margin-top: 1rem;
}
@media (max-width: 599px) {
    .hmm-accesos {
        padding: 1.25rem;
    }
    .hmm-mapa--trafico iframe {
        height: 420px;
    }
}

/* HMM · Clasificaciones */
.hmm-podios {
    margin-top: 0.25rem;
    border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    padding-top: 0.75rem;
}
.hmm-podios summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.hmm-podios__fotos {
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.hmm-podios__fotos .wp-block-image {
    margin: 0;
}
.hmm-podios__fotos img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}
#edicion-2025 .hmm-tarjeta > .wp-block-image:first-child img {
    aspect-ratio: 1;
    object-fit: cover;
}
.hmm-tarjeta:has(.hmm-podios) > .hmm-botones-par {
    margin-top: 0;
    padding-top: 0.25rem;
}

/* HMM · Racebook */
.hmm-guia > .wp-block-image:first-child img {
    aspect-ratio: 7 / 10;
    object-fit: cover;
    object-position: top;
}
.hmm-aviso:not(.hmm-caja--borde) {
    max-width: 720px;
    margin-inline: auto;
    border-left: 4px solid var(--wp--preset--color--secondary);
}
.hmm-aviso:not(.hmm-caja--borde) p {
    margin: 0;
}