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

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: light-dark(#faf8f1, #111b2f);
  --ink: light-dark(#18294a, #f1f4ff);
  --muted: light-dark(#4d586a, #bdcae0);
  --brand-blue: light-dark(#1549b4, #a2c2ff);
  --brand-violet: light-dark(#763f83, #dec2f0);
  --brand-red: #f6203e;
  --brand-orange: #f5754c;
  --line: light-dark(#ccd2e0, #42516e);
  --edge: light-dark(#7e8fae, #879cc7);
  --soft: light-dark(#edf1fa, #1a2844);
  --panel-blue: light-dark(#e1eaff, #24395e);
  --panel-rose: light-dark(#f5e6e3, #3e2d43);
  --panel-warm: light-dark(#fff0e4, #402b38);
  --action: light-dark(#1549b4, #2456bb);
  --action-hover: light-dark(#0e3892, #1b4499);
  --on-orange: #25190f;
  --orbit-wash: light-dark(#dce5ffbd, #253873ab);
  --violet-wash: light-dark(#ecd9f699, #572c70a6);
  --dark: #14274b;
  --plan-surface: light-dark(#fff, #182640);
  --plan-chrome: light-dark(#f7f8fc, #131e34);
  --plan-copper: light-dark(#a73a20, #ffab8f);
  --draft-pencil: light-dark(#26477f, #adc8ff);
  --draft-red: light-dark(#a8351b, #ffad93);
  --draft-grid: light-dark(#26477f12, #acc7ff15);
  --draft-paper: light-dark(#fffdf6, #17253e);
  --draft-blue: #1646ad;
  --draft-orange: #ef562c;
  --plan-complete: light-dark(#336667, #8cc9ca);
  --display: "Space Grotesk", Manrope, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 1rem/1.65 Manrope, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { color: inherit; font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.05; letter-spacing: -.045em; }
p, figure { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { color: var(--on-orange); background: var(--brand-orange); }
[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(1260px, calc(100% - 104px)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.eyebrow { font: 600 .75rem/1.45 var(--mono); letter-spacing: .10em; text-transform: uppercase; }
.blueprint-grid {
  background-color: var(--draft-paper);
  background-image: linear-gradient(to right, var(--draft-grid) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--draft-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

.sketch-underline {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.sketch-underline::after {
  position: absolute;
  inset: auto 0 -.45rem;
  height: .48rem;
  border-top: 3px solid var(--draft-orange);
  border-radius: 60% 46% 0 0;
  transform: rotate(-1.1deg);
  pointer-events: none;
  content: "";
}

.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  padding: .75rem clamp(.9rem, 3vw, 1.5rem);
  background: var(--draft-blue);
  color: #fff;
}

.workspace-bar .eyebrow { margin: 0; }
.workspace-bar .workspace-meta { color: #e0eaff; font: 600 .7rem/1.4 var(--mono); }

.paper-note {
  position: relative;
  background: var(--note-fill, var(--panel-blue));
  box-shadow: 1px 4px 8px #0c193b26;
}

.paper-note::before {
  position: absolute;
  z-index: 1;
  top: -.32rem;
  left: 1.05rem;
  width: 2.4rem;
  height: .68rem;
  background: light-dark(#f8daa2dc, #ecc87cbf);
  transform: rotate(-5deg);
  pointer-events: none;
  content: "";
}

.section-label { margin-bottom: 1.15rem; color: var(--brand-blue); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; min-height: 49px; padding: .7rem 1.08rem; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 800; font-size: .9rem; line-height: 1.25; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button span, .text-link span { font-size: 1.1em; }
.button-primary { color: #fff; background: var(--action); }
.button-primary:hover { background: var(--action-hover); }
.button-orange { color: var(--on-orange); background: var(--brand-orange); }
.button-orange:hover { background: #ff9a48; }
.button-outline { color: #fafaff; border-color: #8995b4; }
.button-outline:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.text-link { display: inline-flex; align-items: baseline; gap: .6rem; color: var(--brand-blue); width: fit-content; font-size: .9rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .27em; }
.text-link:hover { color: var(--ink); }
.skip-link { position: absolute; z-index: 9; inset: .6rem auto auto .6rem; transform: translateY(-180%); background: var(--brand-orange); color: var(--on-orange); padding: .6rem 1rem; font-weight: 800; }
.skip-link:focus { transform: none; }

.site-header { position: relative; background: var(--plan-surface); z-index: 3; border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(to right, var(--draft-blue) 0 78%, var(--draft-orange) 78%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 78px; }
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .62rem; width: fit-content; color: inherit; text-decoration: none; }
.wordmark img { width: 44px; height: 44px; object-fit: contain; padding: 2px; background: var(--dark); border-radius: 7px; }
.wordmark-copy { display: grid; gap: 4px; line-height: 1; }
.wordmark-name { font: 700 1.28rem/1 var(--display); letter-spacing: -.04em; }
.wordmark-detail { color: var(--brand-violet); font: 600 .57rem/1 var(--mono); letter-spacing: .21em; }
.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.1vw, 2.05rem); }
.site-nav > a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .83rem; font-weight: 800; text-decoration: none; }
.site-nav > a:hover, .site-nav > a[aria-current] { color: var(--brand-blue); text-decoration: underline; text-underline-offset: .35em; }
.site-nav .nav-mobile-cta, .menu-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.theme-toggle:not([hidden]) { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--edge); border-radius: 50%; background: var(--paper); color: var(--brand-blue); cursor: pointer; }
.theme-toggle:hover { background: var(--soft); border-color: var(--brand-blue); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-moon, .theme-toggle[aria-checked="true"] .theme-sun { display: none; }
.theme-toggle[aria-checked="true"] .theme-moon { display: block; }
.nav-cta { min-height: 44px; padding-inline: .9rem; border-radius: 6px; border-color: var(--edge); color: var(--brand-blue); }
.nav-cta:hover { border-color: var(--brand-blue); background: var(--soft); }

.hero-atmosphere {
  background-image: var(--star-field, url("/assets/images/estrellas.svg")), radial-gradient(ellipse at 88% 16%, var(--violet-wash), transparent 48%), radial-gradient(ellipse at 56% 0%, var(--orbit-wash), transparent 55%);
  background-position: right top, right top, right top;
  background-size: min(72%, 1100px) auto, 100% 670px, 100% 670px;
  background-repeat: no-repeat;
}
.hero-atmosphere { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .hero-atmosphere { --star-field: url("/assets/images/estrellas-animado.svg"); }
}
.hero-atmosphere::after { position: absolute; inset: auto 0 0; height: 5rem; background: linear-gradient(transparent, var(--paper)); pointer-events: none; content: ""; }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2.1rem, 4.4vw, 4rem); padding-block: clamp(4.2rem, 7vw, 6.5rem) clamp(3.75rem, 6.4vw, 5.75rem); }
.hero-copy { min-width: 0; }
.hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; color: var(--brand-blue); }
.status-dot { width: 8px; height: 8px; background: var(--brand-red); border-radius: 50%; margin-right: .15rem; }
.kicker-slash { color: var(--muted); }
.hero h1 { font-size: clamp(3.4rem, 6.32vw, 6.3rem); line-height: .96; letter-spacing: -.075em; }
.hero h1 em { color: var(--brand-violet); font-style: normal; }
.hero-lead { max-width: 36ch; margin-top: 1.65rem; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.22rem); line-height: 1.62; }
.hero-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.8rem; }
.hero-visual { min-width: 0; border-radius: 12px; border: 1px solid #495982; color: #e2e8fa; background: #11172d; overflow: hidden; padding: 1rem; box-shadow: 0 24px 60px #171e4636; }
.hero-visual img { width: 100%; }
.blueprint-top, .hero-visual figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding: .6rem .15rem; font: 500 clamp(.58rem, .8vw, .7rem)/1.4 var(--mono); letter-spacing: .095em; }
.blueprint-top { padding-top: 0; color: var(--brand-orange); }
.blueprint-top i { display: inline-block; width: 6px; height: 6px; margin-right: .2rem; background: var(--brand-orange); vertical-align: 1px; }
.hero-visual figcaption { padding-bottom: 0; }

.studio-index { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding-block: .95rem; font: 600 .7rem/1.5 var(--mono); letter-spacing: .10em; color: var(--muted); }
.studio-index a:not(:first-child) { padding-left: .9rem; border-left: 1px solid var(--line); }
.studio-index a { text-decoration: none; }
.studio-index a:hover { color: var(--brand-blue); text-decoration: underline; text-underline-offset: .25em; }
#proyectos, #servicios, #proceso, #contacto { position: relative; }
.anchor-alias { position: absolute; inset: 0 auto auto 0; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2.4rem; margin-bottom: 2.35rem; }
.section-intro h2, .services-intro h2, .contact-layout h2 { font-size: clamp(2.65rem, 5.2vw, 5.15rem); line-height: .99; letter-spacing: -.065em; }
.section-intro > p { color: var(--muted); max-width: 31ch; }
.section-intro > .text-link { flex-shrink: 0; margin-bottom: .25rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.work-card { position: relative; min-width: 0; }
.work-image { display: grid; place-items: center; aspect-ratio: 1.55; border-radius: 4px; padding: clamp(.85rem, 3.8vw, 3.25rem); overflow: hidden; }
.work-image img { width: 100%; border-radius: 4px; box-shadow: 0 7px 22px #161b2d32; transition: transform .2s ease; }
.work-card:hover .work-image img { transform: scale(1.025); }
.work-dunamis { background: var(--panel-blue); }
.work-boba { background: var(--panel-rose); }
.work-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-block: 1rem .8rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 .67rem/1.5 var(--mono); letter-spacing: .07em; }
.work-card h3 { font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
.work-card h3 a { display: inline-flex; align-items: baseline; gap: .65rem; text-decoration: none; }
.work-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.work-card h3 a:hover { color: var(--brand-blue); text-decoration: underline; text-underline-offset: .18em; }
.work-card h3 span { font-size: .62em; color: var(--brand-blue); }
.work-card p { max-width: 51ch; margin-top: .55rem; color: var(--muted); }

.services-section { background: var(--soft); border-block: 1px solid var(--line); }
.services-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(2.2rem, 6vw, 6rem); }
.services-intro > p:not(.eyebrow) { color: var(--muted); margin: 1.2rem 0 1.35rem; max-width: 34ch; }
.services-list { border-top: 1px solid var(--line); }
.services-list article { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); padding-block: 1.2rem; }
.services-list h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.services-list p { margin-top: .4rem; color: var(--muted); }
.service-no, .process-grid li > span { font: 600 .75rem/1.5 var(--mono); letter-spacing: .08em; color: var(--brand-blue); }
.service-no { padding-top: .3rem; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; gap: 1.5rem; }
.process-grid li { border-top: 2px solid var(--line); padding-top: 1rem; }
.process-grid h3 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); margin-block: .6rem .55rem; }
.process-grid p { color: var(--muted); }

.contact-section { background: var(--dark); color: #f7f8ff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.contact-section .section-label { color: var(--brand-orange); }
.contact-layout { display: grid; grid-template-columns: 1fr .83fr; gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; }
.contact-layout p:not(.eyebrow) { max-width: 48ch; color: #dbe2f8; }
.contact-layout .contact-address { margin-top: .7rem; font-size: .8rem; overflow-wrap: anywhere; }

.site-footer { background: #101c35; color: #f7f8ff; padding-block: 2.85rem 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 1.8rem 2.4rem; padding-bottom: 2.15rem; }
.site-footer .wordmark-detail { color: var(--brand-orange); }
.footer-summary { max-width: 27ch; margin-top: .9rem; color: #c4cce1; font-size: .92rem; }
.footer-label { color: #c4cce1; margin-bottom: .65rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.footer-links a { text-underline-offset: .24em; }
.footer-links a:hover { color: var(--brand-orange); }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.3rem; color: #c4cce1; padding-top: 1.25rem; border-top: 1px solid #3d496d; font-size: .76rem; }
.footer-meta a { text-underline-offset: .2em; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 68px); }
}

@media (max-width: 860px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: .55rem; }
  .header-inner > .wordmark { margin-right: auto; }
  .nav-cta { display: none; }
  .site-nav { flex-wrap: wrap; }
  .menu-ready .site-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: .65rem 24px 1rem; }
  .menu-ready .site-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem 1rem; }
  .site-nav .nav-mobile-cta { display: inline-flex; color: var(--brand-blue); text-decoration: underline; text-underline-offset: .25em; }
  .menu-ready .menu-toggle { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: .4rem .65rem; border: 1px solid var(--edge); border-radius: 4px; background: transparent; font-size: .84rem; font-weight: 800; cursor: pointer; }
  .menu-lines { width: 15px; height: 9px; border-block: 1px solid currentColor; }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 7.2vw, 4.15rem); }
  .hero-lead { margin-top: 1.15rem; }
}

@media (max-width: 670px) {
  .shell { width: calc(100% - 40px); }
  .hero-atmosphere { background-size: 100% auto, 100% 460px, 100% 460px; }
  .hero { grid-template-columns: 1fr; padding-block: 3.4rem 2.15rem; }
  .hero h1 { font-size: clamp(3.05rem, 10.9vw, 4.55rem); }
  .hero-kicker { margin-bottom: 1.05rem; }
  .hero-actions, .contact-actions { margin-top: 1.2rem; }
  .hero-visual { padding: .75rem; }
  .studio-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 0; font-size: .63rem; }
  .studio-index a:nth-child(3) { padding-left: 0; border: 0; }
  .section-intro { align-items: start; flex-direction: column; margin-bottom: 1.45rem; }
  .work-grid, .services-layout, .contact-layout { grid-template-columns: 1fr; }
  .work-grid { gap: 2rem; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 370px) {
  .shell { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(2.5rem, 11.9vw, 3rem); }
  .process-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.language-switch { display: flex; align-items: center; gap: .4rem; }
.language-switch a { min-width: 30px; min-height: 30px; display: grid; place-items: center; text-decoration: none; border: 1px solid #56638a; border-radius: 3px; font: 600 .72rem/1 var(--mono); }
.language-switch a:hover, .language-switch a[aria-current] { color: var(--on-orange); background: var(--brand-orange); border-color: var(--brand-orange); }
