:root {
    --blue: #160333;
    --green: #95c11f;
    --white: #e8e6f4;
    --muted: rgba(22,3,51,.68);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: var(--blue);
    font-family: "Roboto", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(22,3,51,.08);
}

.nav {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: .95rem clamp(1rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    letter-spacing: -.03em;
    font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.logo span {
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(.6rem, 2.5vw, 1.4rem);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    font-family: "Space Mono", monospace;
    font-size: .78rem;
    font-weight: 700;
    opacity: .88;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
    opacity: 1;
}

.cta-link {
    border: 1.5px solid var(--green);
    border-radius: 999px;
    padding: .45rem .8rem;
}

.site-footer {
    border-top: 1px solid rgba(22,3,51,.1);
    background: #fafafa;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem clamp(1rem,5vw,3rem);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.6;
}

.footer-inner strong {
    color: var(--blue);
}

.button-row {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.button {
    display: inline-block;
    background: var(--green);
    color: var(--blue);
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: .84rem;
    padding: .8rem 1.05rem;
    border-radius: 999px;
}

.button.secondary {
    background: var(--white);
}

@media (max-width:640px){
    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }
}

/* Página Consultoría */
:root {
    --blue: #160333;
    --green: #95c11f;
    --white: #e8e6f4;
}

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

body {
    background: #fff;
    color: var(--blue);
    font-family: 'Roboto', sans-serif;
}

/* ── PAGE WRAPPER — fluid, centred, with side padding ── */
.page {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem) clamp(3rem, 8vw, 6rem);
}

/* ── HERO TITLE ── */
.hero-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(2rem, 9vw, 4.2rem);
    line-height: 1.06;
    color: var(--blue);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* ── INTRO ── */
.intro {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    line-height: 1.7;
    color: var(--blue);
    margin-bottom: clamp(1.5rem, 4vw, 2.8rem);
}

.intro strong {
    font-style: italic;
    font-weight: 700;
}

/* ── QUÉ OFRECEMOS ── */
.que-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.2rem, 5vw, 1.9rem);
    line-height: 1.1;
    color: var(--blue);
    margin-bottom: clamp(0.6rem, 2vw, 1rem);
}

.que-p {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    line-height: 1.7;
    color: var(--blue);
    margin-bottom: clamp(1.5rem, 5vw, 3rem);
}

.que-p strong {
    font-style: italic;
    font-weight: 700;
}

/* ── CARD ── */
.card {
    background: var(--white);
    border-radius: clamp(10px, 2.5vw, 18px);
    padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.8rem) clamp(0.3rem, 1vw, 0.5rem);
}

.card-title {
    font-family: 'Space Mono', monospace;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.8vw, 1.15rem);
    color: var(--blue);
    margin-bottom: clamp(0.8rem, 2.5vw, 1.4rem);
}

/* ── ROW ── */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 2vw, 1rem);
    padding: clamp(0.6rem, 2vw, 0.9rem) 0;
    border-bottom: 1px solid rgba(22,3,51,0.18);
}

.row:last-child {
    border-bottom: none;
}

.row-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(0.62rem, 1.8vw, 0.75rem);
    line-height: 1.6;
    color: var(--blue);
    flex: 1;

    /* allow text to wrap naturally — remove forced <br> effect on small screens */
}

.row-text em {
    font-style: italic;
}

.row-icon {
    flex-shrink: 0;
    width: clamp(30px, 6vw, 42px);
    height: clamp(30px, 6vw, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

/* ── BREAKPOINT: tablet (≤ 600px) ── */
@media (max-width: 600px) {
    .hero-title {
        line-height: 1.08;
    }

    /* suppress manual line breaks inside row texts — let them reflow */
    .row-text br {
        display: none;
    }
}

/* ── BREAKPOINT: mobile (≤ 400px) ── */
@media (max-width: 400px) {
    .row {
        flex-direction: row;

        /* keep icon on right */
        align-items: flex-start;
        padding: 0.7rem 0;
    }

    .row-icon {
        margin-top: 2px;

        /* align icon top with first line of text */
    }
}

/* Página Quiénes somos */
:root {
    --blue: #160333;
    --green: #95c11f;
    --white: #e8e6f4;
}

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

body {
    background: #fff;
    color: var(--blue);
    font-family: "Roboto", sans-serif;
}

/* ── PAGE WRAPPER ── */
.page {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 4rem) clamp(1.2rem, 5vw, 3rem) clamp(3rem, 8vw, 6rem);
}

/* ══════════════════════════════
       1. TÍTULO PRINCIPAL
    ══════════════════════════════ */
.hero-title {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: clamp(2.2rem, 9vw, 4.4rem);
    line-height: 1.06;
    color: var(--blue);
    margin-bottom: clamp(2rem, 6vw, 4.5rem);
}

/* ══════════════════════════════
       2. PÁRRAFO INTRO
    ══════════════════════════════ */
.intro {
    font-family: "Roboto", sans-serif;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    line-height: 1.75;
    color: var(--blue);
    margin-bottom: clamp(1.8rem, 5vw, 3.5rem);
}

.intro strong {
    font-style: italic;
    font-weight: 700;
}

/* ══════════════════════════════
       3. EXPERTISE CARD
    ══════════════════════════════ */
.expertise-card {
    background: var(--blue);
    border-radius: clamp(10px, 2vw, 16px);
    padding: clamp(1.2rem, 3.5vw, 2.2rem);
    margin-bottom: clamp(2.5rem, 7vw, 5.5rem);
    position: relative;
}

/* decorative lavender strip top-right corner */
.expertise-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 18%;
    height: 100%;
    background: rgba(232,230,244,0.08);
    border-radius: 0 clamp(10px,2vw,16px) clamp(10px,2vw,16px) 0;
    pointer-events: none;
}

.expertise-label {
    font-family: "Space Mono", monospace;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.72rem, 1.8vw, 0.88rem);
    color: var(--blue);
    background: var(--white);
    display: inline-block;
    padding: 0.15rem 0.85rem;
    border-radius: 20px;
    margin-bottom: clamp(0.8rem, 2vw, 1.3rem);
}

.expertise-lead {
    font-family: "Roboto", sans-serif;
    font-size: clamp(0.9rem, 2.4vw, 1.05rem);
    line-height: 1.65;
    color: var(--white);
    margin-bottom: clamp(1rem, 3vw, 1.6rem);
}

.expertise-lead strong {
    font-weight: 700;
    color: #fff;
}

.expertise-subtitle {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    color: #fff;
    margin-bottom: 0.4rem;
}

.expertise-list {
    list-style: none;
    margin-bottom: clamp(0.8rem, 2.5vw, 1.4rem);
}

.expertise-list li {
    font-family: "Roboto", sans-serif;
    font-size: clamp(0.75rem, 1.9vw, 0.85rem);
    line-height: 1.65;
    color: rgba(232,230,244,0.85);
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.45rem;
}

.expertise-list li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--green);
}

/* ══════════════════════════════
       4. OBJETIVO
       Layout: "Objetivo" label left, text+image right
    ══════════════════════════════ */
.objetivo-section {
    margin-bottom: clamp(2rem, 6vw, 4.5rem);
}

.objetivo-wrap {
    display: grid;
    grid-template-columns: minmax(90px, 140px) 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
}

.objetivo-label {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: clamp(1.2rem, 4vw, 2rem);
    line-height: 1.1;
    color: var(--blue);
    padding-top: 0.15em;
}

.objetivo-text {
    font-family: "Roboto", sans-serif;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    line-height: 1.7;
    color: var(--blue);
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
}

.objetivo-text strong {
    font-style: italic;
    font-weight: 700;
}

.objetivo-img {
    width: 100%;
    border-radius: clamp(8px, 1.5vw, 14px);
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 8;
}

/* ══════════════════════════════
       5. TRES ITEMS VERDES
    ══════════════════════════════ */
.items-section {
    border-top: 1.5px solid rgba(22,3,51,0.12);
    margin-bottom: clamp(2rem, 6vw, 4.5rem);
}

.item-row {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.2rem);
    padding: clamp(0.9rem, 2.5vw, 1.4rem) 0;
    border-bottom: 1.5px solid rgba(22,3,51,0.12);
}

.item-icon-wrap {
    flex-shrink: 0;
    width: clamp(56px, 11vw, 80px);
    height: clamp(56px, 11vw, 80px);
    background: var(--green);
    border-radius: clamp(12px, 2.5vw, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon-wrap svg {
    width: 54%;
    height: 54%;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.item-text {
    font-family: "Space Mono", monospace;
    font-size: clamp(0.95rem, 3vw, 1.5rem);
    line-height: 1.3;
    color: var(--blue);
}

.item-text em {
    font-style: italic;
    font-weight: 700;
}

/* ══════════════════════════════
       6. VISIÓN / MISIÓN
    ══════════════════════════════ */
.vm-section {
    margin-bottom: clamp(2rem, 6vw, 4.5rem);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.vm-title {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: clamp(1.3rem, 4vw, 2.1rem);
    color: var(--blue);
    margin-bottom: clamp(0.7rem, 2vw, 1.1rem);
}

.vm-text {
    font-family: "Roboto", sans-serif;
    font-size: clamp(0.78rem, 2vw, 0.9rem);
    line-height: 1.72;
    color: var(--blue);
    margin-bottom: clamp(0.6rem, 1.5vw, 0.9rem);
}

.vm-text strong {
    font-style: italic;
    font-weight: 700;
}

.mision-img {
    width: 100%;
    border-radius: clamp(8px, 1.5vw, 14px);
    display: block;
    object-fit: cover;
    margin-top: clamp(0.8rem, 2vw, 1.2rem);
    aspect-ratio: 4 / 3;
}

/* ══════════════════════════════
       7. NUESTROS VALORES
    ══════════════════════════════ */
.valores-title {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: clamp(1.5rem, 5.5vw, 2.6rem);
    line-height: 1.08;
    color: var(--blue);
    margin-bottom: clamp(1.5rem, 4vw, 2.8rem);
}

/* column headers row */
.valores-headers {
    display: grid;
    grid-template-columns: minmax(80px,130px) 1fr 1fr 1fr;
    gap: clamp(0.6rem, 2vw, 1.2rem);
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
}

.valores-headers-spacer {
    /* empty cell under title */
}

.valor-col-title {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    line-height: 1.3;
    color: var(--blue);
}

/* icons row */
.valores-icons {
    display: grid;
    grid-template-columns: minmax(80px,130px) 1fr 1fr 1fr;
    gap: clamp(0.6rem, 2vw, 1.2rem);
    margin-bottom: clamp(0.6rem, 2vw, 1rem);
    align-items: start;
}

.valores-icons-label {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: clamp(1.5rem, 5.5vw, 2.6rem);
    line-height: 1.08;
    color: var(--blue);

    /* "Nuestros valores:" spans down as a side label visually —
         in the PDF the title is separate; here we keep the grid simpler */
}

.valor-icon-wrap {
    aspect-ratio: 1;
    background: var(--green);
    border-radius: clamp(14px, 3vw, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 160px;
}

.valor-icon-wrap svg {
    width: 56%;
    height: 56%;
    stroke: #fff;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* text row */
.valores-texts {
    display: grid;
    grid-template-columns: minmax(80px,130px) 1fr 1fr 1fr;
    gap: clamp(0.6rem, 2vw, 1.2rem);
}

.valores-texts-spacer {
}

.valor-text {
    font-family: "Roboto", sans-serif;
    font-size: clamp(0.65rem, 1.6vw, 0.78rem);
    line-height: 1.65;
    color: var(--blue);
}

.valor-text strong {
    font-weight: 700;
}

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
    .objetivo-wrap {
        grid-template-columns: 1fr;
    }

    .objetivo-label {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .valores-headers,
    .valores-icons,
    .valores-texts {
        grid-template-columns: 1fr;
    }

    .valores-headers-spacer,
    .valores-icons-label,
    .valores-texts-spacer {
        display: none;
    }

    .valor-icon-wrap {
        max-width: 120px;
    }
}

@media (max-width: 380px) {
    .item-text {
        font-size: 0.88rem;
    }
}

.logo img {
    display: block;
    max-height: 48px;
    width: auto;
}

.registered-mark {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    opacity: 0.75;
}

/* Ajustes one-page y redes sociales */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 5vw, 3rem);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(22,3,51,0.10);
}

.logo img {
    display: block;
    height: 48px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 3vw, 1.8rem);
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: 0.85rem;
}

.site-nav a {
    color: var(--blue);
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.one-page-site {
    width: 100%;
}

.scroll-section {
    scroll-margin-top: 90px;
    padding-bottom: clamp(1.5rem, 5vw, 4rem);
    border-bottom: 1px solid rgba(22,3,51,0.08);
}

.scroll-section + .scroll-section {
    padding-top: clamp(1rem, 4vw, 3rem);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem clamp(1rem, 5vw, 3rem);
    color: var(--blue);
    border-top: 1px solid rgba(22,3,51,0.12);
    font-size: 0.82rem;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

.footer-right a {
    color: var(--blue);
    text-decoration: none;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22,3,51,0.25);
    border-radius: 999px;
    color: var(--blue);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: var(--white);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.registered-mark {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0.25rem;
    font-size: 0.76rem;
    opacity: 0.72;
}

@media (max-width: 680px){
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
        font-size: 0.78rem;
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }
}

/* Contacto visible y móvil en footer */
.header-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
}

.header-contact svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-phone {
    margin-top: 0.28rem;
    font-size: 0.82rem;
}

.footer-phone a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.footer-phone a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

/* Selector idioma y contacto múltiple */
.language-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

.language-switch a {
    color: var(--blue);
    text-decoration: none;
    border: 1px solid rgba(22,3,51,0.22);
    border-radius: 999px;
    padding: 0.34rem 0.52rem;
    line-height: 1;
}

.language-switch a.active {
    background: var(--blue);
    color: #fff;
}

.header-contact-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.header-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
}

.header-contact.contact-email {
    background: var(--blue);
}

.header-contact svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 760px){
    .site-header {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }

    .site-nav {
        grid-column: 1 / -1;
        order: 4;
    }

    .language-switch {
        margin-left: 0;
    }

    .header-contact-group {
        gap: 0.35rem;
    }

    .header-contact {
        font-size: 0;
        padding: 0;
        width: 40px;
        height: 40px;
    }

    .header-contact span {
        display: none;
    }

    .header-contact svg {
        width: 22px;
        height: 22px;
    }
}

/* Refinamiento cabecera: iconos circulares y selector de idioma discreto */
.header-contact-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.header-contact {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-contact span {
    display: none !important;
}

.header-contact svg {
    width: 21px;
    height: 21px;
}

.language-switch {
    display: none !important;
}

.language-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.language-button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(22,3,51,0.18);
    background: #fff;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.language-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 74px;
    padding: 0.35rem;
    border: 1px solid rgba(22,3,51,0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(22,3,51,0.12);
    display: none;
    z-index: 2000;
}

.language-dropdown:hover .language-menu,
.language-dropdown:focus-within .language-menu {
    display: grid;
    gap: 0.25rem;
}

.language-menu a {
    display: block;
    text-align: center;
    padding: 0.42rem 0.55rem;
    border-radius: 8px;
    color: var(--blue);
    text-decoration: none;
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: 0.78rem;
}

.language-menu a:hover,
.language-menu a.active {
    background: var(--white);
}

@media (max-width: 760px){
    .site-header {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }

    .site-nav {
        grid-column: 1 / -1;
        order: 4;
    }

    .language-dropdown {
        margin-left: 0;
    }

    .header-contact {
        width: 40px;
        height: 40px;
    }
}

/* Ajuste final cabecera: botones iguales y menú centrado verticalmente */
.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    column-gap: 0.85rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    align-self: center;
    margin: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.language-dropdown,
.header-contact-group {
    align-self: center;
}

.language-button,
.header-contact {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}

.language-button svg,
.header-contact svg {
    width: 21px !important;
    height: 21px !important;
    display: block;
}

.header-contact-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

@media (max-width: 760px){
    .site-header {
        grid-template-columns: 1fr auto auto;
        align-items: center;
        row-gap: 0.75rem;
    }

    .site-nav {
        grid-column: 1 / -1;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-right: 0;
    }

    .site-nav a {
        min-height: 36px;
        align-items: center;
    }

    .language-button,
    .header-contact {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
}
