/*
Theme Name: Maluma 2k27
Theme URI: https://malumaogrove.lan/
Author: Daniel "Cancrexo" Prol
Author URI: mailto:cancrexo@gmail.com
Description: Tema de Asociación Maluma-Ogrove. Hogar juvenil.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maluma2k27
*/

/*
 * Inter Tight y Lato, licencia OFL.
 * Textos de licencia: assets/fonts/inter-tight-OFL.txt y lato-OFL.txt.
 */

@font-face {
    font-family: "Inter Tight";
    src: url("assets/fonts/inter-tight-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("assets/fonts/lato-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("assets/fonts/lato-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --maluma-brand: #090431;
    --maluma-peach: #FFCA82;
    --maluma-dark: #3D2B2B;
    --maluma-text: #111827;
    --maluma-heading: #090431;
    --maluma-header-bg: #F8F7F7;
    --maluma-bg: #EAE8E8;
    --maluma-white: #FFFFFF;
    --maluma-gold: #b29301;
    --maluma-gold-soft: #e9e1b8;
    --maluma-font-display: "Inter Tight", system-ui, sans-serif;
    --maluma-font-body: "Lato", system-ui, sans-serif;
    --maluma-topbar-h: 36px;
    --maluma-header-bar: 90px;
    --maluma-header-bar-compact: 68px;
    --maluma-logo-w: 130px;
    --maluma-header-h: calc(var(--maluma-topbar-h) + var(--maluma-header-bar));
    --maluma-hero-h: 864px;
    --maluma-section-pad: 128px;
    --maluma-cut: 95px;
    --maluma-radius: 8px;
    --maluma-col: 704px;
    --maluma-content: 1232px;
    --maluma-form-w: 960px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: var(--maluma-text);
    background: var(--maluma-white);
    font-family: var(--maluma-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--maluma-brand);
}

:focus-visible {
    outline: 2px solid var(--maluma-peach);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    white-space: normal;
}

h1,
h2,
h3,
.maluma-header__logo,
.maluma-footer__logo,
.maluma-footer__title {
    font-family: var(--maluma-font-display);
    font-weight: 700;
}

h1,
h2,
h3 {
    color: var(--maluma-heading);
}

.maluma-hero h1,
.maluma-hero h2,
.maluma-hero h3,
.maluma-section--brand h1,
.maluma-section--brand h2,
.maluma-section--brand h3,
.maluma-section--dark h1,
.maluma-section--dark h2,
.maluma-section--dark h3 {
    color: inherit;
}

h1 {
    margin: 0 0 1rem;
    font-size: 48px;
    line-height: 56px;
}

h2 {
    margin: 0 0 1rem;
    font-size: 36px;
    line-height: 44px;
}

h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 2vw, 24px);
    line-height: 1.33;
}

p {
    margin: 0 0 1rem;
}

.maluma-container {
    width: min(100% - 48px, var(--maluma-content));
    margin-inline: auto;
}

.maluma-container--narrow {
    width: min(100% - 48px, var(--maluma-col));
}

/* Tope del formulario. En un padre más estrecho se reduce con él. */
.maluma-form {
    width: min(100%, var(--maluma-form-w));
    margin-inline: auto;
}

/* Título de sección y bloque que le sigue (Durable: 64 px entre ambos). */
.maluma-container + .maluma-container {
    margin-top: 3rem;
}

/* Cabecera
   ========================================================================== */

.maluma-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    color: var(--maluma-text);
}

.maluma-header__topbar {
    background: var(--maluma-gold);
    color: var(--maluma-brand);
    height: var(--maluma-topbar-h);
}

.maluma-header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: min(100% - 48px, var(--maluma-content));
    height: 100%;
    margin-inline: auto;
}

.maluma-header__email {
    color: inherit;
    font-family: var(--maluma-font-body);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.maluma-header__email:hover {
    text-decoration: underline;
}

.maluma-header__main {
    background: var(--maluma-header-bg);
    box-shadow: 0 2px 10px rgb(0 0 0 / 18%);
}

.maluma-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    width: min(100% - 48px, var(--maluma-content));
    min-height: var(--maluma-header-bar);
    margin-inline: auto;
    padding-left: calc(var(--maluma-logo-w) + 1.5rem);
    transition: min-height 0.3s ease;
}

.maluma-header__logo {
    position: absolute;
    z-index: 2;
    top: calc(var(--maluma-topbar-h) * -1);
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: var(--maluma-logo-w);
    padding: 0.4rem 0.45rem 0.7rem;
    background: var(--maluma-white);
    line-height: 0;
    box-shadow: 0 8px 18px -6px rgb(0 0 0 / 28%);
    transition: top 0.3s ease, width 0.3s ease, padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.maluma-header__logo img {
    width: 100%;
    height: auto;
}

.maluma-header.is-scrolled .maluma-header__inner {
    min-height: var(--maluma-header-bar-compact);
    padding-left: calc(64px + 1rem);
}

.maluma-header.is-scrolled .maluma-header__logo {
    top: 6px;
    bottom: 6px;
    align-items: center;
    width: 64px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.maluma-header.is-scrolled .maluma-header__logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.maluma-footer__logo {
    color: inherit;
    font-size: clamp(1rem, 2.2vw, 24px);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.maluma-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.maluma-nav__list,
.maluma-footer__list,
.maluma-lang {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.maluma-nav__list a,
.maluma-lang a {
    color: var(--maluma-text);
    font-family: var(--maluma-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}

.maluma-lang {
    gap: 0.75rem;
}

.maluma-lang ul {
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.maluma-lang li {
    list-style: none;
}

.maluma-header__topbar .maluma-lang a {
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.maluma-nav__list .current-menu-item > a,
.maluma-nav__list .current_page_item > a,
.maluma-lang .current-lang > a {
    box-shadow: inset 0 -2px 0 currentColor;
}

@media (min-width: 769px) {
    .maluma-nav__list a {
        padding: 0.5rem 0.875rem;
        border-radius: var(--maluma-radius);
        transition: color 0.25s ease, background-color 0.25s ease;
    }

    .maluma-nav__list a:hover,
    .maluma-nav__list a:focus-visible,
    .maluma-nav__list .current-menu-item > a,
    .maluma-nav__list .current_page_item > a,
    .maluma-nav__list .current_page_parent > a {
        color: var(--maluma-brand);
        background-color: var(--maluma-gold-soft);
        box-shadow: none;
    }
}

.maluma-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.maluma-nav-toggle__bar,
.maluma-nav-toggle__bar::before,
.maluma-nav-toggle__bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
}

.maluma-nav-toggle__bar {
    position: relative;
    margin-inline: auto;
}

.maluma-nav-toggle__bar::before,
.maluma-nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.maluma-nav-toggle__bar::before {
    top: -7px;
}

.maluma-nav-toggle__bar::after {
    top: 7px;
}

.site-main {
    flex: 1 0 auto;
    padding-top: var(--maluma-header-h);
}

.site-main--404 {
    display: flex;
    flex-direction: column;
}

.maluma-404 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.maluma-404 .maluma-container {
    transform: translateY(5vh);
}

.maluma-404__code {
    margin: 0 0 0.5rem;
    font-family: var(--maluma-font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

.maluma-404 p {
    max-width: 36rem;
    margin-inline: auto;
}

.maluma-404 .maluma-btn {
    margin-top: 8px;
}

.maluma-404 .maluma-btn--ghost:hover,
.maluma-404 .maluma-btn--ghost:focus-visible {
    background: var(--maluma-white);
    border-color: var(--maluma-white);
    color: var(--maluma-brand);
}

.maluma-logo-cierre {
    width: 260px;
    margin-inline: auto;
}

.maluma-logo-cierre img {
    display: block;
    width: 260px;
    height: auto;
    max-width: 100%;
}

/* Pie
   ========================================================================== */

.maluma-footer {
    background: var(--maluma-dark);
    color: var(--maluma-white);
}

.maluma-footer a {
    color: inherit;
    text-decoration: none;
}

.maluma-footer a:hover {
    color: var(--maluma-peach);
}

.maluma-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    width: min(100% - 48px, var(--maluma-content));
    margin-inline: auto;
    padding: 3rem 0;
}

.maluma-footer__title {
    margin: 0 0 1rem;
    font-size: 24px;
    line-height: 1.2;
}

.maluma-footer__list {
    flex-direction: column;
    gap: 0.5rem;
}

.maluma-footer__address {
    margin-top: 1rem;
    font-style: normal;
}

.maluma-footer__address a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.maluma-footer__icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

.maluma-footer__patrocinadores {
    background: var(--maluma-white);
    padding: 28px 0;
}

.maluma-footer__patrocinadores-lista {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 40px;
    align-items: center;
    justify-items: center;
    width: min(100% - 48px, var(--maluma-content));
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.maluma-footer__patrocinadores img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 56px;
}

/* Botones
   ========================================================================== */

.maluma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--maluma-radius);
    font-family: var(--maluma-font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
    cursor: pointer;
}

.maluma-btn--ghost {
    background: transparent;
    border-color: var(--maluma-white);
    color: var(--maluma-white);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.maluma-hero .maluma-btn--ghost:hover,
.maluma-hero .maluma-btn--ghost:focus-visible {
    background: var(--maluma-white);
    border-color: var(--maluma-white);
    color: var(--maluma-brand);
}

.maluma-btn--peach {
    background: var(--maluma-peach);
    border-color: var(--maluma-peach);
    color: var(--maluma-text);
}

.maluma-btn--brand {
    background: var(--maluma-brand);
    border-color: var(--maluma-brand);
    color: var(--maluma-white);
}

.maluma-btn--send {
    padding: 8px 16px;
    background: transparent;
    border-color: var(--maluma-white);
    color: var(--maluma-white);
    font-size: 16px;
}

/* Secciones y recortes. Inicio y la cabecera de Quen somos llevan el corte en dos tramos.
   La sección recortada queda por encima de la siguiente (z-index decreciente)
   y la siguiente sube 95 px para verse a través del corte.
   ========================================================================== */

.maluma-section {
    position: relative;
    padding: var(--maluma-section-pad) 0;
}

.maluma-section--compact {
    --maluma-section-pad: 80px;
}

.maluma-section--soft {
    background: var(--maluma-header-bg);
}

.maluma-section--muted {
    background: var(--maluma-bg);
}

.maluma-section--brand {
    background: var(--maluma-brand);
    color: var(--maluma-white);
}

.maluma-section--dark {
    background: var(--maluma-dark);
    color: var(--maluma-white);
}

.maluma-section--brand a:not(.maluma-btn),
.maluma-section--dark a:not(.maluma-btn) {
    color: inherit;
}

.maluma-section--jagged-right,
.maluma-section--slant-right,
.maluma-section--slant-left {
    padding-bottom: calc(var(--maluma-section-pad) + var(--maluma-cut));
}

.maluma-section--jagged-right {
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--maluma-cut)),
        66.667% 100%,
        33.333% calc(100% - var(--maluma-cut)),
        0 100%
    );
}

.maluma-section--slant-right {
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 calc(100% - var(--maluma-cut))
    );
}

.maluma-section--slant-left {
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--maluma-cut)),
        0 100%
    );
}

.maluma-section--jagged-right + .maluma-section,
.maluma-section--slant-right + .maluma-section,
.maluma-section--slant-left + .maluma-section {
    margin-top: calc(var(--maluma-cut) * -1);
    padding-top: calc(var(--maluma-section-pad) + var(--maluma-cut));
}

/* Sección del mapa: la imagen llega hasta el recorte inferior. */
.maluma-section--map {
    padding-bottom: 0;
}

.maluma-entry__content > .maluma-section:nth-child(1) { z-index: 12; }
.maluma-entry__content > .maluma-section:nth-child(2) { z-index: 11; }
.maluma-entry__content > .maluma-section:nth-child(3) { z-index: 10; }
.maluma-entry__content > .maluma-section:nth-child(4) { z-index: 9; }
.maluma-entry__content > .maluma-section:nth-child(5) { z-index: 8; }
.maluma-entry__content > .maluma-section:nth-child(6) { z-index: 7; }
.maluma-entry__content > .maluma-section:nth-child(7) { z-index: 6; }
.maluma-entry__content > .maluma-section:nth-child(8) { z-index: 5; }
.maluma-entry__content > .maluma-section:nth-child(9) { z-index: 4; }
.maluma-entry__content > .maluma-section:nth-child(10) { z-index: 3; }
.maluma-entry__content > .maluma-section:nth-child(11) { z-index: 2; }
.maluma-entry__content > .maluma-section:nth-child(12) { z-index: 1; }

.maluma-split,
.wp-block-columns.maluma-split,
.wp-block-group.maluma-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    align-items: center;
}

.maluma-split img,
.maluma-intro img {
    width: 100%;
    border-radius: var(--maluma-radius);
}

.maluma-split img,
.maluma-split .maluma-card img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* El dibujo del organigrama se ve entero: el recorte 3/2 lo cortaría. */
.maluma-section--brand .maluma-split img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

/* Escritorio: la foto de Normativa y la de Legislación miden un 60 % del texto y arrancan arriba. */
@media (min-width: 769px) {
    .maluma-foto-alta {
        align-self: stretch;
        display: grid;
        grid-template-rows: 60% 1fr;
    }

    .maluma-foto-alta > .wp-block-image {
        grid-row: 1;
        height: 100%;
        min-height: 0;
        margin: 0;
    }

    .maluma-foto-alta img,
    .maluma-section--brand .maluma-split .maluma-foto-alta img {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center;
    }
}

.maluma-grid,
.wp-block-group.maluma-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 40px;
}

.maluma-grid--testimonials {
    gap: 16px;
}

.maluma-prosa h2:not(:first-child) {
    margin-top: 3rem;
}

/* Botones de Transparencia y de Normativa interna. Aún no enlazan. */
.maluma-accions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.maluma-accions--pila {
    grid-template-columns: 1fr;
}

.maluma-accions .maluma-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
}

/* Organigrama de Quen somos: tres caixas e unha frecha entre cada unha. */
.maluma-organigrama {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}

.maluma-organigrama__caja {
    width: min(100%, 280px);
    margin: 0;
    padding: 0.85rem 1.25rem;
    border-radius: var(--maluma-radius);
    text-align: center;
    font-family: var(--maluma-font-display);
    font-weight: 700;
    line-height: 1.3;
}

.maluma-organigrama__caja--marca {
    background: var(--maluma-brand);
    color: var(--maluma-white);
}

.maluma-organigrama__caja--oro {
    background: var(--maluma-gold);
    color: var(--maluma-heading);
}

.maluma-organigrama__caja--melocoton {
    background: var(--maluma-peach);
    color: var(--maluma-heading);
}

.maluma-organigrama__caja--blanca {
    background: var(--maluma-white);
    color: var(--maluma-heading);
}

.maluma-organigrama__flecha {
    width: 0;
    height: 0;
    margin: 10px 0;
    border-right: 9px solid transparent;
    border-left: 9px solid transparent;
    border-top: 12px solid var(--maluma-brand);
}

.maluma-section--brand .maluma-organigrama__flecha {
    border-top-color: var(--maluma-white);
}

/* Equipo de Recursos humanos: cuatro círculos enlazados, como en el montaje. */
.maluma-equipo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
}

.maluma-equipo__circulo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 210px;
    margin: 0;
    padding: 1.25rem;
    border: 3px solid var(--maluma-gold);
    border-radius: 50%;
    background: var(--maluma-gold-soft);
    color: var(--maluma-heading);
    text-align: center;
    font-family: var(--maluma-font-display);
    font-weight: 700;
    line-height: 1.25;
}

.maluma-equipo__circulo + .maluma-equipo__circulo {
    margin-left: -28px;
}

/* Poste de direccións. Cada listón mide o seu texto. No móbil o pao vai á esquerda. */
.maluma-poste {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 4px 0 12px;
}

.maluma-poste__palo {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 10px;
    transform: translateX(-50%);
    background: var(--maluma-brand);
    border-radius: 2px;
}

.maluma-poste ul {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.maluma-poste li {
    width: max-content;
    max-width: calc(50% - 4px);
    margin: 0;
    padding: 6px 14px;
    background: var(--maluma-brand);
    color: var(--maluma-white);
    font-family: var(--maluma-font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.maluma-poste li:nth-child(odd) {
    align-self: flex-start;
    margin-left: auto;
    margin-right: calc(50% - 6px);
    padding-right: 16px;
    padding-left: 20px;
    text-align: right;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}

.maluma-poste li:nth-child(even) {
    align-self: flex-start;
    margin-left: calc(50% - 6px);
    margin-right: auto;
    padding-left: 16px;
    padding-right: 20px;
    text-align: left;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

@media (max-width: 768px) {
    .maluma-poste {
        align-items: flex-start;
        max-width: none;
        padding-left: 6px;
    }

    .maluma-poste__palo {
        left: 0;
        transform: none;
    }

    .maluma-poste ul {
        align-items: flex-start;
    }

    .maluma-poste li,
    .maluma-poste li:nth-child(odd),
    .maluma-poste li:nth-child(even) {
        align-self: flex-start;
        width: max-content;
        max-width: 100%;
        margin-right: 0;
        margin-left: 4px;
        padding: 6px 18px 6px 12px;
        text-align: left;
        clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    }
}

.maluma-card figure {
    margin: 0;
}

.maluma-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0;
}

.maluma-card h3 {
    margin: 24px 0 16px;
    font-size: 32px;
    line-height: 40px;
}

/* Testimonios: tarjeta gris translúcida y cita en negrita. */
.maluma-testimonial {
    padding: 80px 48px;
    border-radius: var(--maluma-radius);
    background: rgba(0, 0, 0, 0.05);
}

.maluma-testimonial .maluma-avatar {
    margin-bottom: 24px;
}

.maluma-testimonial p:not(:last-child) {
    font-family: var(--maluma-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.maluma-testimonial strong {
    font-weight: 400;
}

.maluma-hero {
    min-height: var(--maluma-hero-h);
    padding: 0;
    color: var(--maluma-white);
    background: var(--maluma-dark);
}

.maluma-hero__content {
    position: absolute;
    z-index: 2;
    top: 192px;
    left: 0;
    right: 0;
}

.maluma-hero__content .maluma-container > * {
    max-width: 672px;
}

.maluma-hero__content p + p {
    margin-top: 32px;
}

.maluma-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(61, 43, 43, 0.45);
    pointer-events: none;
}

.maluma-heading--sm {
    font-size: 32px;
    line-height: 40px;
}

/* Carrusel
   ========================================================================== */

.maluma-carousel {
    position: relative;
    overflow: hidden;
}

.maluma-hero .maluma-carousel,
.maluma-hero .maluma-carousel__slide {
    min-height: var(--maluma-hero-h);
}

body:not(.home) .maluma-hero,
body:not(.home) .maluma-hero .maluma-carousel,
body:not(.home) .maluma-hero .maluma-carousel__slide {
    min-height: 560px;
}

.maluma-section:not(.maluma-hero) .maluma-carousel__slide {
    height: 520px;
}

.maluma-carousel__track {
    display: flex;
    transition: transform 0.45s ease;
}

.maluma-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.maluma-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maluma-carousel__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--maluma-text);
    cursor: pointer;
    transform: translateY(-50%);
}

.maluma-carousel__nav--prev {
    left: 1rem;
}

.maluma-carousel__nav--next {
    right: 1rem;
}

.maluma-carousel__dots {
    position: absolute;
    z-index: 3;
    left: calc((100% - min(100% - 48px, var(--maluma-content))) / 2);
    bottom: 30%;
    display: flex;
    align-items: center;
    gap: 0;
}

.maluma-carousel__dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.maluma-carousel__dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transform: translate(-50%, -50%);
}

.maluma-carousel__dot.is-active::before {
    width: 24px;
    background: var(--maluma-white);
}

.maluma-avatar,
.maluma-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.maluma-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: center;
}

.maluma-logos img {
    width: auto;
    max-height: 48px;
}

.maluma-mapa img,
.maluma-mapa .sjb-leaflet-map {
    display: block;
    width: 100%;
    height: calc(560px + var(--maluma-cut));
    object-fit: cover;
}

.maluma-mapa .sjb-leaflet-map {
    width: 100% !important;
    height: calc(560px + var(--maluma-cut)) !important;
}

.maluma-mapa--curto img,
.maluma-mapa--curto .sjb-leaflet-map {
    height: 500px;
}

.maluma-mapa--curto .sjb-leaflet-map {
    height: 500px !important;
}

.maluma-section--map .maluma-container {
    margin-bottom: 2rem;
}

/* Contacto: el título va sobre el mapa y la sección no deja franja encima.
   El contenedor no captura el ratón, para no tapar el zoom de Leaflet. */
.maluma-section--map-title {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.maluma-section--map-title .maluma-container {
    position: absolute;
    z-index: 500;
    top: 4.5rem;
    left: 0;
    right: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.maluma-section--map-title .maluma-heading--sm {
    display: inline-block;
    margin: 0;
    padding: 0.35rem 0.85rem;
    background: rgb(248 247 247 / 92%);
}

div.wpforms-container-full .wpforms-form textarea {
    resize: none;
}

/* Formulario sobre el azul de marca.
   ========================================================================== */

.maluma-section--brand div.wpforms-container-full .wpforms-field-label,
.maluma-section--brand div.wpforms-container-full .wpforms-field-sublabel,
.maluma-section--brand div.wpforms-container-full .wpforms-required-label,
.maluma-section--brand .wpforms-field-checkbox label,
.maluma-section--brand .wpforms-field-checkbox a,
.maluma-section--brand div.wpforms-container-full .wpforms-field-description,
.maluma-section--brand div.wpforms-container-full .wpforms-field-description li,
.maluma-section--brand div.wpforms-container-full .wpforms-field-description a,
.maluma-section--brand div.wpforms-container-full .wpforms-field-limit-text,
.maluma-section--brand .maluma-container > p,
.maluma-section--brand .maluma-container > p a {
    color: var(--maluma-white);
}

.maluma-section--brand div.wpforms-container-full textarea,
.maluma-section--brand div.wpforms-container-full .wpforms-field textarea {
    min-height: 136px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background-color: var(--maluma-white);
    color: rgba(0, 0, 0, 0.7);
    resize: none;
}

.maluma-section--brand div.wpforms-container-full button[type="submit"],
.maluma-section--brand div.wpforms-container-full button[type="submit"]:hover,
.maluma-section--brand div.wpforms-container-full button[type="submit"]:not(:hover):not(:active),
.maluma-section--brand div.wpforms-container-full input[type="submit"],
.maluma-section--brand div.wpforms-container-full input[type="submit"]:hover,
.maluma-section--brand div.wpforms-container-full input[type="submit"]:not(:hover):not(:active),
.maluma-form div.wpforms-container-full button[type="submit"],
.maluma-form div.wpforms-container-full button[type="submit"]:hover,
.maluma-form div.wpforms-container-full button[type="submit"]:not(:hover):not(:active),
.maluma-form div.wpforms-container-full input[type="submit"],
.maluma-form div.wpforms-container-full input[type="submit"]:hover,
.maluma-form div.wpforms-container-full input[type="submit"]:not(:hover):not(:active) {
    height: auto;
    padding: 12px 24px;
    border: 2px solid var(--maluma-peach);
    border-radius: var(--maluma-radius);
    background-color: var(--maluma-peach);
    color: var(--maluma-text);
    font-family: var(--maluma-font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .maluma-carousel__track,
    .maluma-header,
    .maluma-header__inner,
    .maluma-header__logo,
    .maluma-btn--ghost {
        transition: none;
    }
}

@media (max-width: 1279px) {
    :root {
        --maluma-hero-h: 724px;
    }

    h1 {
        font-size: 40px;
        line-height: 48px;
    }

    h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .maluma-card h3 {
        font-size: 28px;
        line-height: 36px;
    }

    .maluma-testimonial p:not(:last-child) {
        font-size: 21px;
        line-height: 28px;
    }
}

@media (max-width: 1023px) {
    .maluma-grid,
    .wp-block-group.maluma-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --maluma-topbar-h: 32px;
        --maluma-header-bar: 64px;
        --maluma-logo-w: 64px;
        --maluma-hero-h: 490px;
        --maluma-section-pad: 64px;
    }

    h1 {
        font-size: 32px;
        line-height: 40px;
    }

    h2 {
        font-size: 26px;
        line-height: 34px;
    }

    .maluma-section--compact {
        --maluma-section-pad: 48px;
    }

    .maluma-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .maluma-nav {
        position: fixed;
        z-index: 90;
        inset: var(--maluma-header-h) 0 0 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        background: var(--maluma-header-bg);
        color: var(--maluma-text);
        overflow: auto;
    }

    body.maluma-nav-is-open .maluma-nav {
        display: flex;
    }

    .maluma-nav__list {
        flex-direction: column;
        align-items: flex-start;
    }

    .maluma-split,
    .wp-block-columns.maluma-split,
    .wp-block-group.maluma-split,
    .maluma-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .maluma-footer__patrocinadores-lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
    }

    .maluma-footer__patrocinadores img {
        max-height: 48px;
    }

    .maluma-header__logo {
        top: 4px;
        bottom: 4px;
        align-items: center;
        width: var(--maluma-logo-w);
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .maluma-header__logo img {
        width: auto;
        height: 100%;
        object-fit: contain;
    }

    .maluma-header__email {
        font-size: 12px;
    }

    .maluma-hero__content {
        top: 80px;
    }

    .maluma-carousel__dots {
        bottom: calc(var(--maluma-cut) + 1rem);
    }

    .maluma-card h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .maluma-grid--testimonials,
    .wp-block-group.maluma-grid--testimonials {
        grid-template-columns: 1fr;
    }

    .maluma-testimonial {
        padding: 48px 16px;
    }

    .maluma-testimonial p:not(:last-child) {
        font-size: 20px;
    }

    .maluma-mapa img,
    .maluma-mapa .sjb-leaflet-map {
        height: calc(360px + var(--maluma-cut));
    }

    .maluma-mapa .sjb-leaflet-map {
        height: calc(360px + var(--maluma-cut)) !important;
    }

    .maluma-mapa--curto img,
    .maluma-mapa--curto .sjb-leaflet-map {
        height: 280px;
    }

    .maluma-mapa--curto .sjb-leaflet-map {
        height: 280px !important;
    }

    .maluma-equipo {
        display: grid;
        grid-template-columns: repeat(2, 148px);
        justify-content: center;
        gap: 12px;
    }

    .maluma-equipo__circulo,
    .maluma-equipo__circulo + .maluma-equipo__circulo {
        width: 148px;
        height: 148px;
        margin: 0;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .maluma-container,
    .maluma-header__inner,
    .maluma-header__topbar-inner,
    .maluma-footer__inner {
        width: min(100% - 40px, var(--maluma-content));
    }

    .maluma-grid,
    .wp-block-group.maluma-grid {
        grid-template-columns: 1fr;
    }
}
