:root {
    --bg:#f8f5ee;
    --surface:#fdfbf6;
    --text:#23231f;
    --muted:#5e594f;
    --line:#d4cec3;
    --accent:#b83b2f;
    --accent-soft:#f2decc;
    --future:#e7f0f0;
    --max-width:1120px;
    --serif:"Source Serif 4","Iowan Old Style",Palatino,"Palatino Linotype",Georgia,serif;
    --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-family:var(--sans);
    color:var(--text);
    background:var(--bg);
    font-synthesis:none;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:96px;
}

body {
    margin:0;
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
}

a {
    color:inherit;
}

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

button,input,textarea {
    font:inherit;
}

button {
    cursor:pointer;
}

a,button,input,textarea {
    outline-offset:5px;
}

:focus-visible {
    outline:2px solid var(--accent);
}

.container {
    width:min(var(--max-width),calc(100% - 80px));
    margin:auto;
}

.skip-link {
    position:fixed;
    top:12px;
    left:12px;
    z-index:2000;
    background:var(--text);
    color:var(--bg);
    padding:12px 16px;
    border-radius:999px;
    transform:translateY(-150%);
}

.skip-link:focus {
    transform:none;
}

.site-header {
    position:sticky;
    top:0;
    z-index:100;
    background:color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border-bottom:1px solid var(--line);
}

.nav-shell {
    min-height:84px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand {
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    font-family:var(--serif);
    font-size:26px;
    font-weight:500;
    letter-spacing:-.03em;
}

.brand-logo {
    display:block;
    width:28px;
    height:42px;
    flex-shrink:0;
    object-fit:contain;
    background:transparent;
}

.brand-name {
    line-height:1;
}

.brand-dot {
    color:var(--accent);
}

.nav-menu,.nav-links {
    display:flex;
    align-items:center;
    gap:22px;
}

.nav-links {
    list-style:none;
    padding:0;
    margin:0;
}

.nav-links a {
    font-size:14px;
    text-decoration:none;
    color:var(--muted);
}

.nav-links a:hover,.text-link:hover {
    color:var(--accent);
}

.language-toggle {
    border:1px solid var(--line);
    background:transparent;
    color:var(--text);
    padding:8px 14px;
    font-size:12px;
    letter-spacing:.08em;
    border-radius:999px;
}

.menu-toggle {
    display:none;
}

.hero {
    padding:112px 0 96px;
}

.hero-grid {
    display:grid;
    grid-template-columns:1fr 280px;
    gap:80px;
    align-items:end;
}

.eyebrow,.section-kicker,.project-meta,.service-number {
    font-family:var(--sans);
    font-size:12px;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:.16em;
    color:var(--accent);
}

.hero-grid > div:first-child {
    position:relative;
    padding-left:28px;
}

.hero-grid > div:first-child::before {
    content:"";
    position:absolute;
    left:4px;
    top:6px;
    bottom:8px;
    width:1px;
    background:linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 0%, transparent));
}

.hero-grid > div:first-child::after {
    content:"";
    position:absolute;
    left:0;
    top:2px;
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 0 7px color-mix(in srgb, var(--accent) 16%, transparent);
}

.hero h1 {
    font-family:var(--serif);
    font-size:clamp(56px,7vw,92px);
    line-height:.98;
    letter-spacing:-.035em;
    font-weight:400;
    margin:22px 0 18px;
}

.hero h1 em {
    font-style:italic;
    font-weight:400;
    color:var(--text);
}

.hero-lead {
    font-size:18px;
    color:var(--muted);
    max-width:38rem;
    line-height:1.7;
}

.hero-actions {
    display:flex;
    gap:12px;
    margin-top:32px;
}

.button {
    display:inline-flex;
    min-height:54px;
    align-items:center;
    justify-content:center;
    gap:16px;
    padding:14px 22px;
    border:1px solid var(--line);
    text-decoration:none;
    font-size:16px;
    font-weight:500;
    background:transparent;
    color:var(--text);
    border-radius:999px;
}

.button.primary {
    background:var(--text);
    border-color:var(--text);
    color:var(--bg);
}

.button:hover {
    background:var(--accent-soft);
}

.button.primary:hover {
    background:var(--accent);
    border-color:var(--accent);
    color:#fff;
}

.hero-aside {
    border-top:2px solid var(--text);
    padding-top:18px;
}

.availability {
    font-size:12px;
    color:var(--accent);
    display:flex;
    gap:9px;
    align-items:center;
    margin-bottom:23px;
}

.availability-dot {
    width:6px;
    height:6px;
    background:var(--accent);
    border-radius:50%;
}

.hero-aside dl {
    margin:0;
}

.hero-aside dl div {
    padding:13px 0;
    border-top:1px solid var(--line);
}

dt {
    font-size:11px;
    color:var(--muted);
}

dd {
    font-size:13px;
    margin:4px 0 0;
    font-weight:500;
}

.section {
    padding:82px 0;
    border-top:1px solid var(--line);
}

.section-head {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:end;
    margin-bottom:40px;
}

.section h2 {
    font-family:var(--serif);
    font-size:clamp(36px,4vw,56px);
    line-height:1.08;
    letter-spacing:-.03em;
    font-weight:400;
    margin:12px 0 0;
}

.section-intro {
    color:var(--muted);
    font-size:17px;
    line-height:1.7;
    margin:0;
    max-width:36rem;
}

.services-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

.service-card {
    padding:24px 0;
    border-top:1px solid var(--line);
}

.service-card h3 {
    font-family:var(--serif);
    font-size:28px;
    font-weight:400;
    letter-spacing:-.03em;
    line-height:1.15;
    margin:18px 0 12px;
}

.service-card p {
    font-size:16px;
    line-height:1.65;
    color:var(--muted);
    margin:0;
}

.stack-row {
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-top:25px;
}

.stack-item {
    font-size:13px;
    color:var(--muted);
    display:flex;
    align-items:center;
    gap:8px;
}

.stack-mark {
    font-size:11px;
    letter-spacing:.04em;
    border:1px solid var(--line);
    border-radius:999px;
    padding:3px 7px;
    color:var(--accent);
}

#proyectos {
    background:var(--theme-secondary,#f1ebe0);
}

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

.project {
    min-width:0;
}

.project-visual {
    height:350px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:var(--future,#e7f0f0);
    border:1px solid var(--line);
    border-radius:22px;
}

.project-visual>img {
    width:100%;
    height:100%;
    object-fit:contain;
}

.project-visual.mobile-screen {
    padding:28px 25px 0;
    background:var(--future,#e7f0f0);
}

.mobile-screen>img {
    height:100%;
    width:auto;
    max-width:100%;
    object-fit:contain;
    border-radius:16px;
    box-shadow:0 12px 25px #2536291a;
}

.project-body {
    padding:25px 0 0;
}

.project-meta {
    font-size:10px;
}

.project h3 {
    font-family:var(--serif);
    font-size:34px;
    font-weight:400;
    letter-spacing:-.03em;
    line-height:1.1;
    margin:10px 0 12px;
}

.project-body p {
    color:var(--muted);
    font-size:16px;
    line-height:1.65;
    max-width:36rem;
    margin:0;
}

.project-links {
    display:flex;
    gap:24px;
    margin-top:18px;
}

.text-link {
    font-size:15px;
    font-weight:500;
    text-decoration:none;
    border-bottom:1px solid var(--line);
    padding-bottom:3px;
    display:inline-flex;
    gap:10px;
}

.project-links .text-link {
    align-items:center;
    gap:8px;
}

.brand-icon {
    flex-shrink:0;
}

.contact-wrap {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:100px;
}

.contact-copy h2 {
    font-family:var(--serif);
}

.contact-copy p {
    font-size:17px;
    line-height:1.7;
    color:var(--muted);
    margin-top:18px;
}

.social-link {
    display:inline-block;
    color:var(--accent);
    font-size:13px;
    margin-top:20px;
    text-underline-offset:5px;
}

.contact-form {
    padding:32px;
    border:1px solid var(--line);
    background:var(--surface);
    border-radius:28px;
}

.field {
    margin-bottom:18px;
}

.field label {
    display:block;
    font-size:12px;
    font-weight:500;
    margin-bottom:7px;
}

.field input,.field textarea {
    width:100%;
    padding:14px 16px;
    border:1px solid var(--line);
    background:var(--bg);
    border-radius:14px;
    color:var(--text);
    font-size:16px;
}

.field textarea {
    min-height:130px;
    resize:vertical;
}

.contact-form .button {
    width:100%;
}

.site-footer {
    border-top:1px solid var(--line);
    padding:28px 0 8px;
    color:var(--muted);
    font-size:13px;
}

.footer-inner {
    display:flex;
    justify-content:space-between;
    gap:20px;
}

.footer-inner p {
    margin:0;
}

@media(min-width:1100px) {
    .mobile-screen {
        height:470px;
    }
    .project-visual:not(.mobile-screen) {
        height:470px;
        padding:16px;
    }
    .project-visual:not(.mobile-screen)>img {
        border-radius:3px;
    }
}

@media(max-width:900px) {
    .container {
        width:calc(100% - 48px);
    }
    .hero-grid {
        grid-template-columns:1fr;
        gap:45px;
    }
    .hero-aside {
        display:none;
    }
    .hero {
        padding:76px 0;
    }
    .hero h1 {
        letter-spacing:-2.5px;
    }
    .section-head {
        gap:30px;
    }
    .services-grid {
        gap:22px;
    }
    .contact-wrap {
        gap:40px;
    }
    .nav-links {
        gap:15px;
    }
    .nav-links a {
        font-size:12px;
    }
    .project-visual {
        height:340px;
    }
}

@media(max-width:650px) {
    .container {
        width:calc(100% - 36px);
    }
    .nav-shell {
        min-height:70px;
    }
    .menu-toggle {
        display:grid;
        place-items:center;
        width:42px;
        height:42px;
        border:1px solid var(--line);
        border-radius:999px;
        background:none;
        color:var(--text);
        position:relative;
    }
    .menu-toggle span,.menu-toggle:before,.menu-toggle:after {
        content:'';
        height:1px;
        width:18px;
        background:currentColor;
        position:absolute;
    }
    .menu-toggle:before {
        transform:translateY(-6px);
    }
    .menu-toggle:after {
        transform:translateY(6px);
    }
    .menu-toggle[aria-expanded=true] span {
        opacity:0;
    }
    .menu-toggle[aria-expanded=true]:before {
        transform:rotate(45deg);
    }
    .menu-toggle[aria-expanded=true]:after {
        transform:rotate(-45deg);
    }
    .nav-menu {
        display:none;
        position:absolute;
        left:0;
        right:0;
        top:70px;
        padding:22px;
        background:var(--bg);
        border-bottom:1px solid var(--line);
        align-items:stretch;
    }
    .nav-menu.open {
        display:flex;
        flex-direction:column;
    }
    .nav-links {
        flex-direction:column;
        align-items:stretch;
        gap:0;
    }
    .nav-links a {
        display:block;
        padding:12px 0;
        font-size:15px;
    }
    .language-toggle {
        align-self:start;
    }
    .hero {
        padding:58px 0 64px;
    }
    .hero h1 {
        font-size:48px;
        letter-spacing:-.03em;
    }
    .hero-grid > div:first-child {
        padding-left:22px;
    }
    .eyebrow {
        font-size:9px;
        letter-spacing:.8px;
    }
    .hero-lead {
        font-size:15px;
    }
    .hero-actions {
        gap:9px;
    }
    .button {
        font-size:12px;
        padding:12px 15px;
        gap:12px;
    }
    .section {
        padding:58px 0;
    }
    .section-head,.services-grid,.projects-list,.contact-wrap {
        grid-template-columns:1fr;
        gap:28px;
    }
    .section-head {
        margin-bottom:30px;
    }
    .services-grid {
        gap:10px;
    }
    .service-card h3 {
        margin-top:15px;
    }
    .stack-row {
        gap:12px;
    }
    .projects-list {
        gap:38px;
    }
    .project-visual {
        height:340px;
    }
    .project-visual.mobile-screen {
        height:450px;
    }
    .contact-form {
        padding:22px;
    }
    .footer-inner {
        flex-direction:column;
        gap:6px;
    }
}

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

