/*
 * Matiu Studio · CSS consolidado
 * Diseño y recursos visuales conservados.
 * Secciones adaptadas al alto disponible en escritorio;
 * contenido accesible y desplazamiento natural en pantallas pequeñas.
 */

:root {
    --bg: #fffef8;
    --cream: #fffef8;
    --charcoal: #24282b;
    --ink: #202326;
    --muted: #666767;
    --yellow: #ffe700;
    --line: rgba(36,40,43,.13);
    --paper: rgba(255,254,248,.70);
    --radius: 8px;
    --wrap: 1220px;
}

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


html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}


body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: "Poppins",Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button,input,textarea,select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: .65;
    cursor: wait;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: #ffe700;
    color: #191a1b;
}

.container {
    width: min(var(--wrap),calc(100% - 92px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    top: -120px;
    left: 12px;
    z-index: 30;
    background: var(--charcoal);
    color: #fff;
    padding: 10px 16px;
}

.skip:focus {
    top: 12px;
}

.site-header {
    position: relative;
    z-index: 10;
    padding: 2px 0 0;
}

.header-brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.header-brand a {
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
}

.header-brand img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(var(--wrap), calc(100% - 92px));
    min-height: 42px;
    margin: 0 auto;
    border-block: 1px solid var(--line);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 3vw, 39px);
    padding: 4px 0;
}

.desktop-nav a {
    position: relative;
    font-size: 12px;
    font-weight: 500;
    color: #3a3d3e;
    transition: color .2s;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    bottom: -12px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--charcoal);
    transition: transform .25s;
}

.desktop-nav a:hover::after,.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.desktop-nav a:focus-visible,.footer-right a:focus-visible,.text-link:focus-visible {
    outline: 2px solid var(--charcoal);
    outline-offset: 5px;
}

.menu-toggle,.mobile-nav {
    display: none;
}

/* La portada es una sola composición: el texto queda delante de la imagen. */
.hero {
    position: relative;
    height: max(410px, calc(100svh - 76px));
    padding-top: clamp(8px, 1.5svh, 18px);
    overflow: hidden;
    background: var(--bg);
}

.hero-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eyebrow {
    margin: 0;
    color: #64645e;
    text-transform: uppercase;
    letter-spacing: .17em;
    font-weight: 600;
    font-size: 10px;
}

.hero h1 {
    margin: 12px 0 0;
    font-size: clamp(22px, 2.5vw, 36px);
    line-height: 1.15;
    letter-spacing: 0em;
    font-weight: 700;
    max-width: 1010px;
    text-wrap: balance;
}

.underline-accent {
    position: relative;
    white-space: nowrap;
}

.underline-accent::after {
    content: "";
    height: 7px;
    position: absolute;
    background: var(--yellow);
    left: 0;
    right: 0;
    bottom: -3px;
    transform: rotate(-1.7deg);
    z-index: -1;
}

.hero-lead {
    max-width: 640px;
    margin: clamp(12px, 2.4svh, 20px) auto clamp(12px, 2.7svh, 22px);
    color: #595e5f;
    line-height: 1.7;
    font-size: 12px;
    text-wrap: balance;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 46px;
    border: 1px solid transparent;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s,color .2s,transform .2s,border-color .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--yellow);
    color: #202326;
}

.button-primary:hover {
    background: #484c4e;
}

.button-primary span {
    font-size: 17px;
    line-height: 1;
}

.section-space {
    min-height: 100svh;
    padding-block: 24px;
    display: flex;
    align-items: center;
}


.about-section {
    padding-top: 40px;
}


.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(56px,8vw,128px);
    align-items: start;
}

.about-copy h2 {
    font-size: clamp(29px, 3.4vw, 43px);
    line-height: 1.12;
    letter-spacing: -0.055em;
    font-weight: 400;
    margin: 10px 0 16px;
    text-wrap: balance;
}

.serif-accent {
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.065em;
}

.about-copy>p:not(.eyebrow) {
    color: #5b5f60;
    font-size: 13px;
    line-height: 1.65;
    max-width: 555px;
}

.about-copy>p:not(.eyebrow)+p {
    margin-top: 12px;
}

.text-link {
    margin-top: 17px;
    display: inline-flex;
    gap: 16px;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 6px;
    transition: gap .2s;
}

.text-link:hover {
    gap: 25px;
}

.text-link span {
    font-size: 16px;
}

.about-visual {
    margin: 0;
    position: relative;
    box-shadow: 0 19px 45px rgba(36,40,43,.09);
}

.about-visual img {
    width: 100%;
    height: min(420px, calc(100svh - 140px));
    object-fit: cover;
    object-position: center;
    border-radius: 3px;
}

.about-visual figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    background: linear-gradient(transparent,rgba(0,0,0,.68));
    padding: 65px 22px 20px;
    font-size: 11px;
    letter-spacing: .06em;
}

.services-section {
    background: rgba(255,254,248,.42);
    border-bottom: 1px solid rgba(36,40,43,.055);
}

.section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 30px;
}

.section-intro h2 {
    font-size: clamp(35px,4.4vw,56px);
    line-height: 1.14;
    letter-spacing: -.068em;
    font-weight: 650;
    margin: 13px 0 0;
}

.dot {
    color: #d2b600;
}

.section-intro>p {
    font-size: 13px;
    line-height: 1.85;
    color: #626364;
    max-width: 325px;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    border-bottom: 1px solid var(--line);
}

.service-card {
    min-height: 290px;
    padding: 24px 27px 29px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:first-child {
    border-left: 0;
    padding-left: 0;
}

.service-card:last-child {
    padding-right: 0;
}

.service-index {
    font-size: 10px;
    color: #93928d;
    letter-spacing: .13em;
}

.service-symbol {
    margin: 31px 0 13px;
    width: 43px;
    height: 43px;
    color: var(--charcoal);
}

.service-symbol svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.03em;
    margin: 0 0 9px;
    font-weight: 600;
}

.service-card p {
    font-size: 11px;
    line-height: 1.85;
    color: #676968;
    margin: 0 0 24px;
    max-width: 215px;
}

.service-link {
    margin-top: auto;
    padding: 0 0 5px;
    border: 0;
    background: none;
    border-bottom: 1px solid var(--charcoal);
    color: var(--charcoal);
    font-weight: 600;
    font-size: 11px;
}

.service-link:hover {
    color: #857300;
}

.projects-heading {
    margin-bottom: 26px;
}

.projects-heading .text-link {
    margin: 0 0 8px;
    flex-shrink: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 25px;
}

.project-card {
    min-width: 0;
}

.project-cover {
    position: relative;
    display: block;
    width: 100%;
    height: 270px;
    padding: 0;
    border: 0;
    background: #fff;
    overflow: hidden;
    border-radius: 4px;
}

.project-cover img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.project-cover:hover img {
    transform: scale(1.045);
}

.project-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    background: #fffef8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 19px;
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
}

.project-meta {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding-top: 19px;
    align-items: flex-end;
}

.project-number {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #8b8b86;
}

.project-meta h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.04em;
    margin: 7px 0 3px;
}

.project-meta p {
    font-size: 11px;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

.project-detail-link {
    border: 0;
    background: none;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 0 5px;
    border-bottom: 1px solid #444;
}

.contact-section {
    padding-top: 24px;
    background: rgba(255,254,248,.45);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px,7vw,108px);
    align-items: center;
}

.contact-visual {
    align-self: stretch;
    position: relative;
    min-height: 510px;
    overflow: hidden;
    background: #e9e6dc;
    border-radius: 4px;
}

.contact-visual>img {
    height: 100%;
    width: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: 50% 48%;
    filter: saturate(.88);
}

.contact-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 25px 23px;
    background: linear-gradient(transparent,rgba(0,0,0,.38));
    color: #fff;
    font-weight: 500;
    font-size: 13px;
}

.contact-panel {
    padding: 12px 0;
}

.contact-panel h2 {
    font-size: clamp(31px,3.65vw,47px);
    line-height: 1.18;
    letter-spacing: -.065em;
    font-weight: 650;
    max-width: 460px;
    margin: 17px 0 14px;
}

.contact-lead {
    max-width: 430px;
    font-size: 12px;
    color: #666;
    line-height: 1.9;
    margin: 0 0 27px;
}

#contact-form {
    display: grid;
    gap: 17px;
}

#contact-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
}

#contact-form label>span {
    color: #8c7610;
}

#contact-form input,#contact-form select,#contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    outline: none;
    border: 1px solid #d9d7c9;
    color: #333;
    background: #fffef9;
    padding: 12px 13px;
    border-radius: 3px;
    font-size: 12px;
    transition: border-color .15s,box-shadow .15s;
}

#contact-form input:focus,#contact-form select:focus,#contact-form textarea:focus {
    border-color: #a9950f;
    box-shadow: 0 0 0 3px rgba(255,231,0,.13);
}

#contact-form textarea {
    resize: vertical;
    min-height: 113px;
}

#contact-form ::placeholder {
    color: #a19f96;
}

#contact-form select {
    appearance: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-notice {
    font-size: 11px;
    color: #5c625b;
    max-width: 265px;
    line-height: 1.6;
}

.site-footer {
    background: var(--bg);
    color: var(--charcoal);
    padding: 55px 0 23px;
    border-top: 1px solid var(--line);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 50px;
    padding-bottom: 54px;
}

.footer-brand img {
    width: 218px;
    height: auto;
    filter: grayscale(0);
}

.footer-brand p {
    font-size: 12px;
    color: #676967;
    max-width: 330px;
    line-height: 1.7;
}

.footer-right {
    display: flex;
    gap: 35px;
    font-size: 12px;
    flex-wrap: wrap;
}

.footer-right a:hover {
    color: #8a7800;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #7d7e78;
    font-size: 10px;
    line-height: 1.8;
}

.project-dialog {
    width: min(880px,calc(100vw - 32px));
    max-height: min(90vh,900px);
    overflow: auto;
    border: 0;
    border-radius: 8px;
    padding: 0;
    background: var(--cream);
    box-shadow: 0 15px 70px rgba(0,0,0,.3);
}

.project-dialog::backdrop {
    background: rgba(16,18,20,.78);
    backdrop-filter: blur(4px);
}

.dialog-shell {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.dialog-media {
    background: #e7e6e0;
    min-height: 380px;
    display: grid;
    place-items: center;
}

.dialog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialog-copy {
    padding: 68px 42px;
    align-self: center;
}

.dialog-copy h2 {
    font-size: 32px;
    letter-spacing: -.06em;
    margin: 13px 0;
}

.dialog-copy>p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.9;
    color: #666;
    margin-bottom: 28px;
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    z-index: 2;
    border: 0;
    background: #fff;
    border-radius: 50%;
    color: #24282b;
    font-size: 26px;
    line-height: 1;
}


.hero .button-primary {
    min-height: 36px;
    padding: 8px 16px;
    gap: 12px;
    background: var(--yellow);
    color: var(--charcoal);
    border-color: transparent;
    font-size: 11px;
}


.hero .button-primary:hover {
    background: #f0d900;
}

.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    pointer-events: none;
    background: var(--bg);
}



.hero-cover {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 30px;
    top: auto;
    display: block;
    height: 60%;
    width: auto;
    max-width: none;
    object-fit: contain;
    transform: translateX(-50%);
}



.hero-halo {
    display: none;
}

.about-grid>*, .contact-grid>* {
    min-width: 0;
}

.hero-art::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(

        to bottom,

        var(--bg) 0%,

        rgba(255, 254, 248, 0.95) 18%,

        rgba(255, 254, 248, 0.75) 42%,

        rgba(255, 254, 248, 0.30) 72%,

        rgba(255, 254, 248, 0) 100%

    );
}

.hero-art::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(

        to top,

        var(--bg) 0%,

        rgba(255, 254, 248, 0.55) 45%,

        rgba(255, 254, 248, 0) 100%

    );
}

@media (max-width: 1100px) {
    .container {
        width: min(var(--wrap),calc(100% - 60px));
    }

    .about-grid,.contact-grid {
        gap: 45px;
    }

    .service-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-cover {
        height: 225px;
    }

}

@media (max-width: 800px) {
    .container {
        width: calc(100% - 48px);
    }

    .hero h1 {
        font-size: clamp(25px, 3.5vw, 36px);
    }

    .section-space {
        padding-block: 48px;
        min-height: auto;
        display: block;
    }

    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .about-visual img {
        height: min(400px, 50svh);
    }

    .service-card {
        padding: 23px 14px;
    }

    .service-card h3 {
        font-size: 15px;
    }

    .project-cover {
        height: 195px;
    }

    .project-meta {
        flex-wrap: wrap;
    }

    .contact-grid {
        gap: 28px;
    }

    .contact-visual {
        min-height: 450px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        gap: 20px;
    }


}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 12px;
    }

    .site-header {
        padding: 4px 0 0;
    }

    .header-brand img {
        width: 160px;
    }

    .desktop-nav {
        display: none;
    }

    .nav-container {
        width: calc(100% - 40px);
        min-height: 44px;
        gap: 16px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: none;
        width: 43px;
        height: 42px;
        padding: 8px;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: var(--charcoal);
    }

    .mobile-nav:not([hidden]) {
        display: flex;
        position: absolute;
        z-index: 20;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--cream);
        flex-direction: column;
        padding: 16px 22px;
        box-shadow: 0 22px 30px rgba(0,0,0,.12);
        border: 1px solid var(--line);
    }

    .mobile-nav a {
        padding: 12px 2px;
        font-size: 13px;
        font-weight: 500;
        border-bottom: 1px solid rgba(36,40,43,.08);
    }

    .mobile-nav a:last-child {
        border-bottom: 0;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding-top: 20px;
    }

    .hero-art {
        position: relative;
        inset: auto;
        height: clamp(225px, 62vw, 420px);
        margin-top: -16px;
    }

    .hero-cover {
        width: 115%;
        height: auto;
        bottom: -1px;
    }

    .hero h1 {
        letter-spacing: -.065em;
    }

    .hero-lead {
        font-size: 12px;
        max-width: 530px;
        line-height: 1.85;
    }

    .about-grid,.contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-copy {
        max-width: 630px;
    }

    .about-copy h2 {
        max-width: 630px;
    }

    .about-visual img {
        height: auto;
        max-height: 380px;
        aspect-ratio: 1.5;
        object-fit: cover;
    }

    .section-intro {
        align-items: start;
    }

    .section-intro>p {
        max-width: 280px;
    }

    .services-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .service-card {
        min-height: 280px;
        padding: 23px 24px;
        border-left: 1px solid var(--line);
        border-top: 1px solid var(--line);
    }

    .service-card:nth-child(odd) {
        border-left: 0;
    }

    .service-card:nth-child(-n/**/+2) {
        border-top: 0;
    }

    .projects-grid {
        gap: 16px;
    }

    .project-cover {
        height: 180px;
    }

    .project-meta h3 {
        font-size: 16px;
    }

    .project-detail-link {
        font-size: 10px;
    }

    .contact-visual {
        min-height: 390px;
    }

    .contact-panel {
        padding: 15px 0;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .section-space {
        min-height: auto;
        display: block;
        padding-block: 48px;
    }

}

@media (max-width: 580px) {
    .container {
        width: calc(100% - 38px);
    }

    .hero {
        padding-top: 16px;
    }

    .hero h1 {
        font-size: clamp(26px, 6.9vw, 36px);
        line-height: 1.2;
    }

    .underline-accent::after {
        height: 4px;
        bottom: -2px;
    }

    .hero-lead {
        margin: 17px 0 22px;
    }

    .section-space {
        padding-block: 40px;
        min-height: auto;
        display: block;
    }

    .about-section {
        padding-top: 24px;
    }

    .about-copy h2 {
        font-size: clamp(28px, 7.6vw, 37px);
    }

    .about-copy>p:not(.eyebrow) {
        font-size: 12px;
    }

    .about-visual img {
        height: auto;
        max-height: 330px;
        aspect-ratio: 1.5;
    }

    .section-intro {
        display: block;
        margin-bottom: 27px;
    }

    .section-intro h2 {
        font-size: 37px;
    }

    .section-intro>p {
        margin-top: 12px;
        max-width: 100%;
        font-size: 12px;
    }

    .services-grid {
        gap: 0;
    }

    .service-card {
        padding: 21px 14px;
        min-height: 295px;
    }

    .service-symbol {
        margin: 24px 0 14px;
        width: 37px;
    }

    .service-card h3 {
        font-size: 15px;
    }

    .service-card p {
        font-size: 11px;
    }

    .service-link {
        font-size: 10px;
    }

    .projects-heading .text-link {
        margin-top: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .project-cover {
        height: clamp(215px,67vw,330px);
    }

    .project-meta {
        flex-wrap: nowrap;
    }

    .project-meta h3 {
        font-size: 20px;
    }

    .contact-grid {
        gap: 28px;
    }

    .contact-visual {
        min-height: 280px;
        max-height: 370px;
        aspect-ratio: auto;
        width: 100%;
    }

    .contact-panel h2 {
        font-size: 35px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        display: block;
    }

    .footer-brand img {
        width: 190px;
    }

    .footer-right {
        margin-top: 24px;
        gap: 20px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin: 4px 0;
    }

    .dialog-shell {
        grid-template-columns: 1fr;
    }

    .dialog-media {
        min-height: 0;
        height: 270px;
    }

    .dialog-copy {
        padding: 27px;
    }

    .dialog-copy h2 {
        font-size: 25px;
    }

    .hero-art {
        height: clamp(210px, 69vw, 345px);
        margin-top: -56px;
    }

    .hero-cover {
        width: 135%;
        bottom: -1px;
    }

}

@media (min-width: 801px) and (max-height: 720px) {
    .section-intro {
        margin-bottom: 20px;
    }

    .service-card {
        min-height: 260px;
        padding-top: 18px;
        padding-bottom: 20px;
    }

    .service-symbol {
        margin: 15px 0 10px;
    }

    .projects-heading {
        margin-bottom: 20px;
    }

    .project-cover {
        height: min(250px, 37svh);
    }

    .contact-visual {
        min-height: 0;
        height: min(440px, calc(100svh - 48px));
    }

    .contact-panel {
        padding: 0;
    }

    .contact-panel h2 {
        font-size: clamp(28px, 3vw, 37px);
        margin: 8px 0 9px;
    }

    .contact-lead {
        margin-bottom: 11px;
        line-height: 1.55;
    }

    #contact-form {
        gap: 9px;
    }

    #contact-form input,#contact-form select,#contact-form textarea {
        padding: 9px 12px;
    }

    #contact-form textarea {
        min-height: 70px;
    }

    .contact-actions .button {
        min-height: 40px;
        padding: 8px 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,*::before,*::after {
        animation-duration: .01ms;
        transition-duration: .01ms;
    }

}

/* Imagen de escritorio en Nosotros, siguiendo la disposición del boceto. */
.about-grid { align-items: center; }
.about-visual { grid-column: 1; grid-row: 1; box-shadow: none; }
.about-copy { grid-column: 2; grid-row: 1; }
.about-visual img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; border-radius: 0; }
@media (max-width: 720px) {
  .about-visual { grid-column: 1; grid-row: 1; }
  .about-copy { grid-column: 1; grid-row: 2; }
  .about-visual img { max-height: 210px; aspect-ratio: auto; object-fit: contain; }
}

/* Parche: título Nosotros en dos líneas, sin cortar la primera frase */
#about-title .about-title-line {
  display: block;
  white-space: nowrap;
}
/* La primera línea completa necesita un tamaño proporcional a su columna. */
#about-title {
  font-size: clamp(18px, 2.6vw, 36px);
}
@media (max-width: 720px) {
  #about-title {
    font-size: clamp(16px, 4.65vw, 28px);
  }
}

/* Navegación inferior de Matiu Studio: solo para teléfonos. */
.mobile-bottom-nav { display: none; }
@media (max-width: 720px) {
  /* Logo permanece arriba como acceso a Inicio; se elimina la navegación superior. */
  .menu-toggle, .mobile-nav, .desktop-nav { display: none !important; }
  .nav-container { justify-content: flex-start; }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 62px;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255, 254, 248, .97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 22px rgba(32, 35, 38, .06);
  }
  .mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 4px 1px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    transition: color .18s, background-color .18s;
  }
  .mobile-bottom-link svg { width: 20px; height: 20px; flex-shrink: 0; }
  .mobile-bottom-link.is-active {
    color: var(--ink);
    font-weight: 700;
    background: rgba(255, 231, 0, .17);
  }
  .mobile-bottom-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  #contacto { scroll-margin-bottom: calc(68px + env(safe-area-inset-bottom)); }
}


/* Portafolio móvil: tarjetas compactas de dos columnas (referencia visual). */
@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .project-card {
    overflow: hidden;
    border: 1px solid rgba(36, 40, 43, .13);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(32, 35, 38, .08);
  }
  .project-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1.38 / 1;
    border-radius: 0;
  }
  .project-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .project-icon { display: none; }
  .project-meta {
    display: block;
    padding: 8px 9px 10px;
  }
  .project-meta h3 {
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.025em;
    margin: 0;
    overflow-wrap: break-word;
  }
  .project-number,
  .project-meta p,
  .project-detail-link { display: none; }
}


/* Ajustes solicitados: titulares centrados, navegación fija de escritorio,
   y tamaño contenido del escritorio en teléfonos. */
.services-section .section-intro,
.portfolio-section .section-intro {
  position: relative;
  justify-content: center;
}
.services-section .section-intro > div,
.portfolio-section .section-intro > div {
  text-align: center;
}
/* La acción de Behance no desplaza el título central. */
@media (min-width: 721px) {
  .portfolio-section .projects-heading .text-link {
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    background: rgba(255, 254, 248, .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  body { padding-top: 48px; }
  html { scroll-padding-top: 58px; }
}
@media (max-width: 720px) {
  .services-section .section-intro,
  .portfolio-section .section-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .portfolio-section .projects-heading .text-link {
    margin: 0;
    align-self: center;
  }
  /* Solo cambia escritorio; la portada conserva sus reglas aprobadas. */
  .about-visual img {
    width: 76%;
    max-width: 260px;
    max-height: 155px;
    height: auto;
    margin-inline: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* Ajuste de posición exclusivo de Nosotros en escritorio. */
@media (min-width: 721px) {
  #nosotros .about-grid {
    transform: translateY(-70px);
  }
}

/* Servicios: tarjetas completas en escritorio y CTA más visible.
   Se limita el ajuste a escritorio para respetar las vistas móviles. */
@media (min-width: 801px) {
  #servicios .container {
    transform: translateY(-34px);
  }

  #servicios .section-intro {
    margin-bottom: 20px;
  }

  #servicios .service-card {
    min-height: 230px;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  #servicios .service-symbol {
    margin-top: 17px;
  }

  #servicios .service-card p {
    margin-bottom: 14px;
  }

  #servicios .service-link {
    margin-bottom: 10px;
  }
}

/* Portafolio: presentación completa en pantallas de escritorio.
   Sin cambios en las tarjetas y la distribución de móvil. */
@media (min-width: 801px) {
  /* Elimina el separador entre Servicios y Portafolio. */
  #servicios { border-bottom: 0; }

  #portafolio .container { transform: translateY(-22px); }
  #portafolio .projects-heading { margin-bottom: 18px; }
  #portafolio .project-cover { height: clamp(170px, 28svh, 225px); }
  #portafolio .project-meta { padding-top: 12px; }
  #portafolio .project-meta h3 { margin-top: 5px; }
}

/* Portafolio: tres tarjetas visibles y flechas para acceder a las siguientes.
   Móvil conserva exactamente su cuadrícula aprobada de dos columnas. */
.projects-carousel{position:relative;min-width:0}
.projects-carousel-arrow{display:none}
@media (min-width:801px){
  .projects-carousel .projects-grid{
    display:flex;gap:25px;overflow-x:auto;scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain;scroll-behavior:smooth;
    scrollbar-width:none;-ms-overflow-style:none;
  }
  .projects-carousel .projects-grid::-webkit-scrollbar{display:none}
  .projects-carousel .project-card{
    flex:0 0 calc((100% - 50px)/3);scroll-snap-align:start;
  }
  .projects-carousel-arrow{
    display:grid;place-items:center;position:absolute;z-index:5;
    top:clamp(70px,14svh,115px);transform:translateY(-50%);
    width:42px;height:42px;border-radius:50%;border:1px solid #e4e1d9;
    background:#FFFEF8;color:#191C1E;box-shadow:0 3px 18px #0002;
    font-size:31px;font-family:Arial,sans-serif;line-height:1;cursor:pointer;
  }
  .projects-carousel-prev{left:-14px}
  .projects-carousel-next{right:-14px}
  .projects-carousel-arrow[hidden]{display:none}
  .projects-carousel-arrow:focus-visible{outline:3px solid #FFE700;outline-offset:3px}
}
@media (min-width:721px) and (max-width:800px){
  .projects-carousel .projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){
  .projects-carousel .projects-grid{scroll-behavior:auto}
}

/* Contacto: icono y placeholder DENTRO del mismo campo, como en la referencia. */
#contact-form { gap: 12px; }
#contact-form .contact-field {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #dad8d0;
  border-radius: 14px;
  background: transparent;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
#contact-form .contact-field:focus-within {
  border-color: #a9950f;
  box-shadow: 0 0 0 3px rgba(255,231,0,.15);
}
#contact-form label.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#contact-form .contact-field > .field-icon {
  position: static;
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  transform: none;
  color: #666b6c;
  pointer-events: none;
}
#contact-form .contact-field > input,
#contact-form .contact-field > select,
#contact-form .contact-field > textarea {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #24282b;
  font-size: 12px;
  font-weight: 400;
  box-sizing: border-box;
}
#contact-form .contact-field > input:focus,
#contact-form .contact-field > select:focus,
#contact-form .contact-field > textarea:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder { color: #666b6c; opacity: 1; }
#contact-form .contact-select-field > select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 26px;
}
#contact-form .contact-select-field > select:invalid { color: #666b6c; }
#contact-form .contact-select-field > select option { color: #24282b; }
#contact-form .contact-select-field > .field-chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  pointer-events: none;
  color: #292d2e;
}
#contact-form .contact-textarea-field { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
#contact-form .contact-textarea-field > .field-icon { margin-top: 1px; }
#contact-form .contact-textarea-field > textarea {
  min-height: 86px;
  padding: 0;
  line-height: 1.55;
  resize: vertical;
}
#contact-form .form-row { gap: 12px; }
@media (max-width: 580px) {
  #contact-form .form-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #contact-form .contact-field { gap: 9px; padding-left: 11px; padding-right: 11px; }
  #contact-form .contact-field > .field-icon { flex-basis: 16px; width: 16px; height: 16px; }
  #contact-form .contact-field > input,
  #contact-form .contact-field > select,
  #contact-form .contact-field > textarea { font-size: 12px; }
}
@media (max-width: 375px) {
  #contact-form .form-row { grid-template-columns: 1fr; }
}


/* Parche 3(6): Organizador utiliza el mismo tratamiento visual que Escritorio.
   No modifica Portada, Nosotros ni la estructura de Contacto. */
#contacto .contact-visual {
  align-self: center;
  min-height: 0;
  max-height: none;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#contacto .contact-visual > img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: none;
}
@media (max-width: 720px) {
  #contacto .contact-visual > img {
    max-height: 210px;
  }
}
@media (max-width: 580px) {
  #contacto .contact-visual > img {
    width: 76%;
    max-width: 260px;
    max-height: 155px;
  }
}


/* Ajuste exclusivo de Organizador: mismo ancho visual aproximado que Escritorio.
   Proporciones originales: Organizador 1312×1199, Escritorio 1536×1024.
   No se alteran las imágenes ni las reglas del formulario. */
#contacto .contact-visual > img {
  width: 100%;
  max-width: 100%;
  max-height: 365px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 720px) {
  #contacto .contact-visual > img {
    width: 100%;
    max-width: 100%;
    max-height: 290px;
  }
}
@media (max-width: 580px) {
  #contacto .contact-visual > img {
    width: 100%;
    max-width: 100%;
    max-height: 215px;
  }
}


/* Footer Matiu: franja de contacto y copyright centrado.
   Se agrega al final para no sobrescribir correcciones aprobadas. */
.site-footer.site-footer-contact {
  padding: 36px 0 22px;
  border-top: 1px solid var(--line);
}
.site-footer-contact .footer-contact-bar {
  display: grid;
  grid-template-columns: 1.15fr 1.3fr 1.15fr auto;
  align-items: center;
  gap: 0;
  padding: 0 0 26px;
}
.site-footer-contact .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  color: var(--charcoal);
  text-decoration: none;
  font-size: 12px;
}
.site-footer-contact .footer-contact-item:first-child { padding-left: 0; }
.site-footer-contact .footer-contact-item:hover { color: #786500; }
.site-footer-contact .footer-contact-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.site-footer-contact .footer-icon-highlight { background: #fff0a7; }
.site-footer-contact .footer-contact-icon svg { width: 18px; height: 18px; }
.site-footer-contact .footer-contact-copy { display: grid; gap: 2px; overflow-wrap: anywhere; line-height: 1.35; }
.site-footer-contact .footer-contact-copy strong { font-size: 12px; font-weight: 600; }
.site-footer-contact .footer-contact-copy small { font-size: 10px; font-weight: 400; }
.site-footer-contact .footer-social-links { display: flex; align-items: center; gap: 10px; padding-left: 22px; }
.site-footer-contact .footer-social-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--charcoal);
  background: transparent;
  text-decoration: none;
}
.site-footer-contact .footer-social-icon svg { width: 18px; height: 18px; }
.site-footer-contact a.footer-social-icon:hover { background: #fff0a7; }
.site-footer-contact .footer-social-placeholder { opacity: .7; cursor: default; }
.site-footer-contact .footer-bottom {
  text-align: center;
  display: block;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  font-size: 11px;
}
.site-footer-contact .footer-bottom span { display: inline; margin: 0; }
@media (max-width: 1000px) {
  .site-footer-contact .footer-contact-bar { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .site-footer-contact .footer-contact-item:nth-child(2) { border-right: 0; }
  .site-footer-contact .footer-contact-item:nth-child(3) { padding-left: 0; }
  .site-footer-contact .footer-social-links { justify-content: flex-start; }
}
@media (max-width: 580px) {
  .site-footer.site-footer-contact { padding-bottom: 94px; }
  .site-footer-contact .footer-contact-bar { grid-template-columns: 1fr; row-gap: 18px; }
  .site-footer-contact .footer-contact-item { padding: 0; border-right: 0; }
  .site-footer-contact .footer-social-links { padding-left: 0; gap: 12px; }
  .site-footer-contact .footer-bottom { line-height: 1.6; }
}
