/* sitiodeuna estudio: retícula editorial de 1200px, bandas azul noche, titulares en serif, un solo acento sol */
:root {
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --ink: #0D1A2B;
  --muted: #4A5A70;
  --line: #D6DEE8;
  --celeste: #2E8FD8;
  --celeste-soft: #DCEBF8;
  --sol: #F2B705;
  --on-accent: #0D1A2B;
  --band: #0D1A2B;
  --on-band: #EAF1F8;
  --on-band-muted: #9FB2C8;
  --band-line: #22344B;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1420; --surface: #121E2E; --ink: #E8EFF7; --muted: #9AACC2; --line: #233349;
    --celeste: #5BB0EE; --celeste-soft: #16304A; --sol: #F5C531; --on-accent: #06111D;
    --band: #060D16; --on-band: #E8EFF7; --on-band-muted: #8EA3BB; --band-line: #1C2B3F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1420; --surface: #121E2E; --ink: #E8EFF7; --muted: #9AACC2; --line: #233349;
  --celeste: #5BB0EE; --celeste-soft: #16304A; --sol: #F5C531; --on-accent: #06111D;
  --band: #060D16; --on-band: #E8EFF7; --on-band-muted: #8EA3BB; --band-line: #1C2B3F; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--band); }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sol); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 14px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h1 em, h2 em { font-style: italic; color: var(--celeste); }
.band h1 em, .band h2 em { color: var(--sol); }
h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0; }
.label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.band .label { color: var(--on-band-muted); }
.lead { color: var(--muted); font-size: 1.16rem; max-width: 58ch; }
.band .lead { color: var(--on-band-muted); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { padding-top: 0; }
.band + .section, .section + .band { padding-top: clamp(64px, 9vw, 128px); }
.band { background: var(--band); color: var(--on-band); }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Cabecera */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--band); color: var(--on-band); border-bottom: 1px solid var(--band-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.logo i { font-style: italic; color: var(--sol); }
.nav { display: flex; gap: 26px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--on-band-muted); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--on-band); }
.nav a[aria-current="page"] { color: var(--on-band); border-bottom-color: var(--sol); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 12px); background: var(--band); border: 1px solid var(--band-line); display: grid; min-width: 220px; padding: 8px 0; }
.menu nav a { text-decoration: none; padding: 10px 18px; color: var(--on-band-muted); }
.menu nav a[aria-current="page"] { color: var(--sol); }
@media (max-width: 900px) { .top .nav, .top .btn { display: none; } .menu { display: block; } }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; font: 600 0.95rem/1 var(--font-body); text-decoration: none; border: 1px solid transparent; border-radius: var(--r); cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sol { background: var(--sol); color: var(--on-accent); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.band .btn-line:hover { background: var(--on-band); color: var(--band); border-color: var(--on-band); }
.btn-sm { padding: 11px 16px; font-size: 0.86rem; }
.wa-ico { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--celeste); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* Portada */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.spec { border: 1px solid var(--band-line); padding: 28px; display: grid; gap: 0; min-width: 0; }
.spec-title { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--band-line); }
.spec dl { margin: 0; display: grid; }
.spec dl div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--band-line); font-size: 0.95rem; }
.spec dt { color: var(--on-band-muted); }
.spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.spec-foot { padding-top: 16px; font-size: 0.85rem; color: var(--on-band-muted); }
.towns-line { margin-top: clamp(40px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--on-band-muted); }
.towns-line a { text-decoration: none; }
.towns-line a:hover { color: var(--on-band); }

/* Bloques de contenido */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose { display: grid; gap: 18px; color: var(--muted); max-width: 62ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillars article { padding: 32px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.pillars article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.pillars p { color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.plan { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.featured { background: var(--band); color: var(--on-band); }
.plan.featured .label, .plan.featured .plan-for, .plan.featured li { color: var(--on-band-muted); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: -0.01em; }
.tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sol); white-space: nowrap; }
.plan-for { color: var(--muted); font-size: 0.98rem; }
.price { font-family: var(--font-display); font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .12em; color: var(--muted); margin-left: 6px; }
.plan.featured .price small { color: var(--on-band-muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; color: var(--muted); }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; border-top: 1px solid currentColor; }
.plan .btn { justify-self: start; margin-top: 6px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px 28px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.steps li + li { padding-left: 28px; }
.steps li::before { content: "0" counter(s); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--celeste); }
.steps .when { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.steps p { color: var(--muted); font-size: 0.96rem; }
.band .steps li { border-top-color: var(--band-line); }
.band .steps p, .band .steps .when { color: var(--on-band-muted); }
.band .steps li::before { color: var(--sol); }

/* Proyectos */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.work { display: grid; gap: 14px; min-width: 0; }
.work.wide { grid-column: 1 / -1; }
.frame { border: 1px solid var(--line); background: var(--surface); }
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame-bar::before { content: ""; width: 34px; height: 8px; flex: none; background: radial-gradient(circle at 4px 4px, var(--line) 3.5px, transparent 4px) 0 0 / 13px 8px repeat-x; }
.shot { aspect-ratio: 16 / 10; max-width: 100%; padding: clamp(18px, 3vw, 36px); display: grid; align-content: space-between; gap: 12px; overflow: hidden; }
.work.wide .shot { aspect-ratio: 21 / 9; }
.shot-nav { display: flex; justify-content: space-between; gap: 12px; font-size: 0.78rem; opacity: .8; }
.shot-nav b { font-weight: 600; opacity: 1; }
.shot-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.05; max-width: 16ch; }
.shot-chip { justify-self: start; font-size: 0.74rem; font-weight: 600; padding: 7px 12px; border-radius: 99px; }
.s1 { background: #EDF3EA; color: #1F3A24; } .s1 .shot-chip { background: #1F3A24; color: #EDF3EA; }
.s2 { background: #0D1A2B; color: #EAF1F8; } .s2 .shot-chip { background: #F2B705; color: #0D1A2B; }
.s3 { background: #F6EEE6; color: #4A2412; } .s3 .shot-chip { background: #4A2412; color: #F6EEE6; }
.s4 { background: #EEF0F7; color: #2C2F5A; } .s4 .shot-chip { background: #2C2F5A; color: #EEF0F7; }
.s5 { background: #DCEBF8; color: #0E3150; } .s5 .shot-chip { background: #0E3150; color: #DCEBF8; }
.s6 { background: #1E2329; color: #E9EDF1; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); } .s6 .shot-chip { background: #F2B705; color: #1E2329; }
.sample.real { color: var(--celeste); }
.devices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.3fr); gap: clamp(12px, 2vw, 24px); align-items: end; }
.devices img { display: block; width: 100%; height: auto; }
.phone { border: 1px solid var(--line); border-radius: 18px; padding: 6px; background: var(--surface); }
.phone img { border-radius: 12px; }
@media (max-width: 640px) { .devices { grid-template-columns: minmax(0, 1fr); } .phone { display: none; } }
.work-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.work p { color: var(--muted); font-size: 0.96rem; }
.sample { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Catálogo */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.chip { font: 500 0.88rem/1 var(--font-body); padding: 11px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 99px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-group { display: grid; gap: 22px; padding-block: 8px 56px; }
.cat-group > p { color: var(--muted); max-width: 62ch; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.row p { grid-column: 1; color: var(--muted); font-size: 0.96rem; max-width: 62ch; }
.amount { grid-row: 1 / span 2; grid-column: 2; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.rubros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rubro { padding: 26px 26px 26px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
.rubro:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.rubro p { color: var(--muted); font-size: 0.95rem; }
.from { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em; color: var(--celeste); }
.note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.94rem; }

/* Zonas */
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.zone { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; scroll-margin-top: 96px; }
.zone:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
.zone h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.zone p { color: var(--muted); }
.zone .label { color: var(--celeste); }
.also { display: flex; flex-wrap: wrap; gap: 8px; }
.also span { border: 1px solid var(--line); padding: 7px 14px; border-radius: 99px; font-size: 0.9rem; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy { display: grid; gap: 26px; min-width: 0; }
.info { margin: 0; display: grid; border-top: 1px solid var(--band-line); }
.info div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--band-line); }
.info dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-band-muted); padding-top: 4px; }
.info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.info a { color: inherit; }
.wa-num { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.copy-btn { font: 500 0.78rem/1 var(--font-mono); letter-spacing: .06em; padding: 8px 12px; background: transparent; color: var(--on-band); border: 1px solid var(--band-line); border-radius: 99px; cursor: pointer; }
.brief { background: var(--surface); color: var(--ink); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 18px; min-width: 0; }
.brief label { display: grid; gap: 8px; font-size: 0.86rem; font-weight: 600; }
.brief input, .brief select, .brief textarea { width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: 2px solid var(--celeste); outline-offset: 0; border-color: transparent; }
.brief textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brief .btn { justify-content: center; }
.form-out { font-size: 0.88rem; color: var(--muted); overflow-wrap: anywhere; }
.form-out a { color: var(--celeste); font-weight: 600; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--font-display); font-size: 1.8rem; color: var(--celeste); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }

/* Encabezado de página interior */
.page-hero { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-hero .wrap { display: grid; gap: 22px; }
.crumbs { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-band-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-band); }

/* Cierre */
.cta { padding-block: clamp(64px, 9vw, 120px); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.cta-copy { display: grid; gap: 18px; min-width: 0; }

/* Pie */
footer.site { background: var(--band); color: var(--on-band-muted); padding-block: 64px 32px; font-size: 0.92rem; border-top: 1px solid var(--band-line); }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.foot .logo { color: var(--on-band); }
.foot h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--on-band); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-band); }
.foot address { font-style: normal; display: grid; gap: 8px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid var(--band-line); font-size: 0.82rem; }

@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; }
  .rubros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rubro:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .rubro:nth-child(2n) { padding-left: 26px; border-left: 1px solid var(--line); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > :first-child { grid-column: 1 / -1; }
  .cta .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .pillars, .steps, .works, .rubros, .zones, .row2, .foot { grid-template-columns: minmax(0, 1fr); }
  .pillars article + article, .steps li + li, .rubro:nth-child(2n), .zone:nth-child(2n) { padding-left: 0; border-left: 0; }
  .pillars article, .steps li, .rubro, .zone { padding-right: 0; }
  .work.wide .shot { aspect-ratio: 16 / 10; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .amount { grid-row: auto; grid-column: 1; text-align: left; }
  .info div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .note { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
