/* =========================================================
   Lucas Rodríguez · Consultoría SEO — hoja de estilos
   Dirección visual: pino, papel y señal naranja.
   ========================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --pine: #0F3B2E;
  --pine-2: #17503F;
  --pine-3: #2A6A55;
  --paper: #F3F5EF;
  --paper-2: #E9EDE4;
  --white: #FFFFFF;
  --line: #D6DDD3;
  --ink: #12201A;
  --slate: #48594F;
  --muted: #6A786F;
  --signal: #FF7A1A;
  --signal-hi: #FF8F3D;
  --signal-ink: #B4460A;
  --mint: #CFE6D6;
  --mint-2: #E3F0E7;
  --ok: #1D7A4E;
  --err: #B3261E;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine-2); text-underline-offset: .2em; text-decoration-thickness: 1.5px; text-decoration-color: var(--signal); }
a:hover { color: var(--pine); text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--pine); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-family: var(--display); letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 1.3rem + 5.2vw, 5.4rem); line-height: .98; font-weight: 750; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.04; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 650; letter-spacing: -.012em; }
h4 { font-size: 1rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem); line-height: 1.55; color: var(--slate); max-width: 60ch; }
.center { text-align: center; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.band-mint { background: var(--mint-2); }
.band-paper-2 { background: var(--paper-2); }
.band-pine, .band-ink { background: var(--pine); color: #CFDCD4; }
.band-pine h2, .band-pine h3, .band-ink h2, .band-ink h3 { color: #fff; }
.band-pine a { color: #fff; }
.band-fog { background: var(--paper-2); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1 var(--sans); padding: .95em 1.4em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.0625rem; padding: 1.05em 1.6em; }
.btn-block { width: 100%; }
.btn-primary, .btn-signal { background: var(--signal); color: var(--pine); }
.btn-primary:hover, .btn-signal:hover { background: var(--signal-hi); color: var(--pine); }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-2); color: #fff; }
.btn-ghost, .btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover, .btn-outline:hover { background: var(--pine); color: #fff; }
.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { background: var(--mint); color: var(--pine); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243,245,239,.92); backdrop-filter: saturate(1.3) blur(10px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .2s; }
.site-header.scrolled::after { opacity: 1; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 750 1.25rem/1.05 var(--display); letter-spacing: -.03em; }
.brand-text span { font-size: .78rem; color: var(--slate); }
.brand-light { color: #fff; }
.brand-light .brand-text span { color: #A8BDB1; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.nav > ul > li { position: relative; display: flex; align-items: center; }
.nav > ul > li > a { display: block; padding: 9px 14px; color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: 999px; }
.nav > ul > li > a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--pine); color: #fff; }
.sub-toggle { background: none; border: 0; padding: 6px 8px 6px 2px; margin-left: -8px; color: var(--slate); cursor: pointer; display: flex; }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.sub { position: absolute; top: calc(100% + 12px); left: -8px; width: min(680px, 80vw); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; list-style: none; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 24px 60px -24px rgba(15,59,46,.35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.sub a { display: block; padding: 12px 14px; text-decoration: none; border-radius: var(--r-sm); color: var(--ink); }
.sub a:hover { background: var(--mint-2); }
.sub strong { display: block; font: 650 1rem/1.25 var(--display); letter-spacing: -.01em; }
.sub span { display: block; font-size: .8125rem; color: var(--slate); line-height: 1.4; margin-top: 2px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.nav-cta { padding: .8em 1.2em; font-size: .9375rem; }
.nav-toggle { display: none; margin-left: auto; background: var(--white); border: 1px solid var(--line); border-radius: 999px; width: 46px; height: 46px; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; border-radius: 2px; }
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; top: -6px; }
.nav-toggle .bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 80px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 32px; overflow-y: auto; gap: 16px; display: none; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; border-radius: var(--r-md); padding: 8px; }
  .nav > ul > li { flex-wrap: wrap; }
  .nav > ul > li > a { padding: 14px 14px; font-size: 1.0625rem; flex: 1; }
  .sub-toggle { padding: 14px; margin: 0; }
  .sub { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: grid; }
  .nav-cta { width: 100%; padding: 1.1em; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; color: var(--pine-2); background: var(--white); border: 1px solid var(--line); padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 28px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255,122,26,.18); }
.hero h1 { font-size: clamp(2.9rem, 1.2rem + 6.4vw, 6.4rem); max-width: 11ch; margin-bottom: .35em; }
.hero .lead { margin-bottom: 32px; }
.hero-note { margin: 14px 0 0 6px; font-size: .9375rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); }
.float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: 0 20px 40px -18px rgba(15,59,46,.45); font-size: .875rem; line-height: 1.25; }
.float b { display: block; color: var(--ink); font-weight: 650; }
.float i { font-style: normal; color: var(--muted); font-size: .8rem; }
.float-serp { left: -36px; top: 18%; }
.float-ai { right: -20px; bottom: 14%; }
.f-pos, .f-ai { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font: 750 1.05rem/1 var(--display); }
.f-pos { background: var(--signal); color: var(--pine); }
.f-ai { background: var(--pine); color: #fff; font-size: .85rem; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .float-serp { left: 12px; }
  .float-ai { right: 12px; }
}

/* Barra de diagnóstico */
.site-check { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--pine); border-radius: 999px; padding: 6px 6px 6px 20px; max-width: 580px; box-shadow: 0 14px 34px -22px rgba(15,59,46,.6); }
.site-check svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.site-check input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; padding: 12px 4px !important; font-size: 1.0625rem !important; background: transparent !important; color: var(--ink); }
.site-check input:focus { outline: none; }
.site-check:focus-within { border-color: var(--signal); }
.site-check-dark { border-color: var(--pine); }
@media (max-width: 520px) {
  .site-check { flex-wrap: wrap; border-radius: var(--r-md); padding: 8px; }
  .site-check svg { margin-left: 10px; }
  .site-check .btn { width: 100%; }
}

/* ---------- Tres espacios ---------- */
.arenas-band { background: var(--pine); color: #C9D8CF; position: relative; overflow: hidden; }
.arenas-title { color: #fff; max-width: 22ch; margin-bottom: clamp(40px, 6vw, 72px); }
.arenas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.arena-word { font: 800 clamp(4.5rem, 3rem + 6vw, 9rem)/.8 var(--display); letter-spacing: -.05em; color: var(--pine-3); margin: 0 0 24px; transition: color .25s; }
.arena:hover .arena-word { color: var(--signal); }
.arena h3 { color: #fff; font-size: 1.5rem; }
.arena p { color: #C0D1C7; }
.arena a { display: inline-block; color: #fff; font-weight: 600; margin: 0 16px 8px 0; }
@media (max-width: 860px) { .arenas { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Autodiagnóstico ---------- */
.diag { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.diag-intro { position: sticky; top: 110px; }
.diag-intro > p { color: var(--slate); font-size: 1.125rem; }
.meter { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.meter-n { font-size: .9375rem; color: var(--slate); }
.meter-n b { font: 750 2.6rem/1 var(--display); color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.meter-bar { height: 10px; background: var(--paper-2); border-radius: 999px; margin: 14px 0 16px; overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: 0; background: var(--signal); border-radius: 999px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.meter-msg { min-height: 3.2em; color: var(--ink); }
.diag-more { margin-top: 20px; font-weight: 600; }
.diag-list { display: flex; flex-direction: column; gap: 10px; }
.diag-item { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.diag-item:hover { border-color: var(--pine-3); }
.diag-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.diag-text strong { display: block; font-weight: 650; font-size: 1.0625rem; line-height: 1.35; }
.diag-text span { display: block; color: var(--slate); font-size: .9375rem; margin-top: 3px; line-height: 1.5; }
.toggle { width: 48px; height: 28px; border-radius: 999px; background: var(--paper-2); border: 1.5px solid var(--line); position: relative; flex-shrink: 0; transition: background .2s, border-color .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.diag-item input:checked ~ .toggle { background: var(--signal); border-color: var(--signal); }
.diag-item input:checked ~ .toggle::after { transform: translateX(20px); }
.diag-item input:focus-visible ~ .toggle { outline: 3px solid var(--pine-3); outline-offset: 2px; }
.diag-item:has(input:checked) { border-color: var(--signal); background: #FFF6EE; }
@media (max-width: 900px) { .diag { grid-template-columns: 1fr; } .diag-intro { position: static; } }

/* ---------- Encabezado de sección ---------- */
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head-row h2 { margin: 0; }
.head-row p { margin: 0; color: var(--slate); font-size: 1.125rem; max-width: 52ch; }
.band-pine .head-row p { color: #C0D1C7; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--slate); font-size: 1.125rem; }
@media (max-width: 800px) { .head-row { grid-template-columns: 1fr; } }

/* ---------- Bento de servicios ---------- */
.bento { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.tile { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-md); background: #fff; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(15,59,46,.5); color: var(--ink); }
.tile h3 { font-size: 1.45rem; }
.tile p { color: var(--slate); margin-bottom: 20px; }
.tile-go { margin-top: auto; font-weight: 650; font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; }
.tile-go::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 4l6 6-6 6' fill='none' stroke='%230F3B2E' stroke-width='2.2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tile-0 { grid-column: span 2; grid-row: span 2; background: var(--pine); border-color: var(--pine); color: #fff; justify-content: flex-end; }
.tile-0 h3 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }
.tile-0 p { color: #C0D1C7; font-size: 1.125rem; max-width: 34ch; }
.tile-0:hover { color: #fff; }
.tile-2 { grid-column: span 2; background: var(--signal); border-color: var(--signal); }
.tile-2 p { color: var(--pine); }
.tile-2 .tile-go::after { background-color: var(--pine); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 4l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E"); }
.tile-3 { grid-column: span 2; }
.tile-6 { background: var(--mint); border-color: var(--mint); }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } .tile-0, .tile-2, .tile-3 { grid-column: span 2; } .tile-0 { grid-row: span 1; min-height: 300px; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile-0, .tile-2, .tile-3, .tile-6 { grid-column: auto; } }

/* ---------- Pasos ---------- */
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps-row li { padding: 28px 24px; border-top: 3px solid var(--pine); background: #fff; border-radius: 0 0 var(--r-md) var(--r-md); }
.steps-row li:first-child { border-top-color: var(--signal); }
.step-n { display: inline-block; font-weight: 650; font-size: .8125rem; color: var(--signal-ink); background: #FFEBDC; padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }
.steps-row p { color: var(--slate); margin: 0; }
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- Clientes (portada) ---------- */
.client-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.client-mini { text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.client-mini .shot { display: block; height: 380px; overflow: hidden; border-radius: var(--r-md); margin-bottom: 16px; background: var(--pine-2); border: 6px solid var(--pine-2); }
.client-mini .shot img { width: 100%; border-radius: 10px; transform: translateY(0); transition: transform 5s ease-in-out; }
.client-mini:hover .shot img, .client-mini:focus-visible .shot img { transform: translateY(calc(-100% + 368px)); }
.client-mini strong { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.015em; }
.client-mini > span:last-child { color: #A8BDB1; font-size: .9375rem; }
.client-mini:hover { color: #fff; }
.shot-empty { display: grid !important; place-items: center; color: #A8BDB1; font-size: .9375rem; }
@media (max-width: 860px) { .client-strip { grid-template-columns: 1fr; } .client-mini .shot { height: 300px; } .client-mini:hover .shot img { transform: translateY(calc(-100% + 288px)); } }

/* ---------- Sobre mí (portada) ---------- */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about-teaser p { color: var(--slate); font-size: 1.0625rem; }
.pills { list-style: none; margin: 8px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: .875rem; font-weight: 600; background: var(--mint-2); color: var(--pine); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 860px) { .about-teaser { grid-template-columns: 1fr; } }

/* ---------- Artículos ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.post-card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); height: 100%; }
.post-card-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--r-md); margin-bottom: 18px; background: var(--paper-2); }
.post-card-ph { display: grid; place-items: end start; padding: 20px; background: var(--pine); }
.post-card-ph span { font: 700 1.5rem/1.1 var(--display); color: #fff; }
.post-card-cat { align-self: flex-start; font-size: .8125rem; font-weight: 650; color: var(--pine); background: var(--mint); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.post-card h3 { font-size: 1.4rem; line-height: 1.15; margin-bottom: .45em; }
.post-card p { color: var(--slate); font-size: .9875rem; }
.post-card-meta { margin-top: auto; font-size: .84rem; color: var(--muted); }
.post-card-link:hover h3 { color: var(--pine-2); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .15em; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.faq details[open] { border-color: var(--pine-3); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 650; font-size: 1.0625rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 2px; background: var(--pine); border-radius: 2px; transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--slate); padding: 0 24px 22px; margin: 0; max-width: 68ch; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 72px; align-items: start; }
.faq-wrap .faq { margin-top: 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Banda final ---------- */
.cta-band { background: var(--signal); color: var(--pine); padding: clamp(64px, 8vw, 104px) 0; }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; }
.cta-inner h2 { color: var(--pine); max-width: 20ch; }
.cta-inner p { max-width: 60ch; font-size: 1.125rem; margin-bottom: 28px; }
.cta-band .btn-signal { background: var(--pine); color: #fff; }
.cta-band .btn-signal:hover { background: var(--pine-2); }

/* ---------- Pie ---------- */
.site-footer { background: var(--pine); color: #A8BDB1; padding: 80px 0 0; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-about p { max-width: 36ch; margin-top: 20px; }
.site-footer h2 { font: 650 1rem/1.3 var(--display); letter-spacing: -.01em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #D7E3DB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--signal); }
.footer-base { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; font-size: .84rem; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255,255,255,.14); }
.footer-base p { margin: 0; }
.footer-base a { margin-left: 16px; }
.footer-base a:first-child { margin-left: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Páginas internas
   ========================================================= */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.6rem); max-width: 18ch; }
.page-head .lead { margin-top: 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 28px; padding: 0; font-size: .875rem; color: var(--slate); }
.crumbs li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); margin: 0 10px 2px; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: .42em; width: 5px; height: 9px; border: solid var(--pine); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 72px; }
.two-col p { color: var(--slate); }
.symptoms { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.symptoms li { padding: 18px 20px 18px 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 1.125rem; font-weight: 600; position: relative; }
.symptoms li::before { content: "!"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #FFEBDC; color: var(--signal-ink); display: grid; place-items: center; font: 750 .95rem/1 var(--display); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.why { background: #fff; border-radius: var(--r-md); padding: 28px; }
.why h3 { font-size: 1.3rem; }
.why dl { margin: 0; }
.why dt { font-weight: 650; font-size: .875rem; color: var(--signal-ink); margin-top: 14px; }
.why dd { margin: 4px 0 0; color: var(--slate); }

.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.include { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.include p { color: var(--slate); margin: 0; }
.deliver { margin-top: 24px; padding: 32px; background: var(--pine); color: #D7E3DB; border-radius: var(--r-md); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.deliver h3 { color: #fff; font-size: 1.6rem; }
.deliver .ticks { columns: 2; column-gap: 32px; margin: 0; }
.deliver .ticks li { break-inside: avoid; }
.deliver .ticks li::before { background: var(--signal); }
@media (max-width: 860px) { .includes { grid-template-columns: 1fr; } .deliver { grid-template-columns: 1fr; padding: 24px; } .deliver .ticks { columns: 1; } }

/* Lista de otros servicios */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 24px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); height: 100%; }
.service-list h3 { margin: 0; font-size: 1.3rem; grid-column: 1; }
.service-list p { margin: 0; color: var(--slate); grid-column: 1; }
.service-list .go { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--pine); transition: background .15s; }
.service-list .go svg { width: 16px; height: 16px; }
.service-list a:hover { border-color: var(--pine-3); }
.service-list a:hover .go { background: var(--signal); }
@media (max-width: 800px) { .service-list { grid-template-columns: 1fr; } }

.svc-blocks { display: flex; flex-direction: column; gap: 16px; }
.svc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--r-md); }
.svc-block:nth-child(3n+1) { background: var(--pine); color: #D7E3DB; }
.svc-block:nth-child(3n+1) h2 a, .svc-block:nth-child(3n+1) h3 { color: #fff; }
.svc-block:nth-child(3n+1) .svc-block-head p { color: #C0D1C7; }
.svc-block:nth-child(3n+1) .btn-ghost { border-color: #fff; color: #fff; }
.svc-block:nth-child(3n+1) .btn-ghost:hover { background: #fff; color: var(--pine); }
.svc-block:nth-child(3n+1) .ticks li::before { background: var(--signal); }
.svc-block h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); }
.svc-block h2 a { color: var(--ink); text-decoration: none; }
.svc-block h2 a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.svc-block-head p { color: var(--slate); font-size: 1.0625rem; }
.svc-block-body h3 { font-size: 1rem; }
@media (max-width: 800px) { .svc-block { grid-template-columns: 1fr; } }

/* Problemas */
.area-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.area-nav a { text-decoration: none; color: var(--pine); border: 1.5px solid var(--pine); padding: 8px 16px; border-radius: 999px; font-size: .9375rem; font-weight: 600; }
.area-nav a:hover { background: var(--pine); color: #fff; }
.problem-area { padding-top: 0; }
.area-title { margin-bottom: 20px; }
.problem-list { display: flex; flex-direction: column; gap: 14px; }
.problem { padding: clamp(22px, 3vw, 32px); background: #fff; border-radius: var(--r-md); }
.problem h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); max-width: 40ch; }
.problem-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 14px; }
.problem-cols h4 { color: var(--signal-ink); margin-bottom: 6px; font-family: var(--sans); font-size: .875rem; }
.problem-cols p { margin: 0; color: var(--slate); }
.problem-cols > div:last-child { background: var(--mint-2); padding: 16px 18px; border-radius: var(--r-sm); }
.problem-cols > div:last-child h4 { color: var(--pine); }
@media (max-width: 860px) { .problem-cols { grid-template-columns: 1fr; gap: 16px; } }

/* Clientes */
.clients { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 112px); }
.client { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.client:nth-child(even) .browser { order: 2; }
.browser { border-radius: var(--r-md); overflow: hidden; background: var(--pine); padding: 0 8px 8px; box-shadow: 0 40px 70px -40px rgba(15,59,46,.6); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 6px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.browser-bar i:first-child { background: var(--signal); }
.browser-bar span { margin-left: 10px; font-size: .8rem; color: #D7E3DB; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px 12px; }
.browser-view { height: clamp(320px, 40vw, 520px); overflow: hidden; border-radius: 10px; background: #fff; }
.browser-view img { width: 100%; transform: translateY(0); transition: transform 7s ease-in-out; }
.browser:hover .browser-view img { transform: translateY(calc(-100% + clamp(320px, 40vw, 520px))); }
.client-sector { display: inline-block; font-size: .875rem; font-weight: 650; color: var(--pine); background: var(--mint); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.client-info h2 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.7rem); }
.client-info p { color: var(--slate); }
.client-info h3 { font-size: 1.05rem; margin-top: 20px; }
@media (max-width: 860px) { .client { grid-template-columns: 1fr; } .client:nth-child(even) .browser { order: 0; } }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-photo { position: sticky; top: 110px; }
.about-photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.creds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.creds li { background: #fff; border-radius: var(--r-md); padding: 18px; border-top: 3px solid var(--signal); }
.creds strong { display: block; font: 650 1.1rem/1.2 var(--display); }
.creds span { font-size: .875rem; color: var(--slate); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { position: static; } .creds { grid-template-columns: 1fr; } }

.portrait { width: 160px; height: 160px; border-radius: 24px; background: var(--pine); color: #fff; display: grid; place-items: center; flex-shrink: 0; position: relative; }
.portrait::after { content: ""; position: absolute; right: 14%; top: 14%; width: 12%; height: 12%; border-radius: 50%; background: var(--signal); }
.portrait span { font: 750 3rem/1 var(--display); letter-spacing: -.04em; }

/* ---------- Prosa ---------- */
.prose { max-width: 70ch; font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); margin: 1.7em 0 .5em; }
.prose h3 { font-size: 1.35rem; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--signal-ink); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 20px 24px; background: var(--mint-2); border-radius: var(--r-md); color: var(--ink); font-size: 1.125rem; }
.prose blockquote p:last-child { margin: 0; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose > p > img { border-radius: var(--r-md); }
.prose figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.prose code { font-size: .88em; background: var(--paper-2); padding: 2px 7px; border-radius: 6px; }
.prose pre { background: var(--pine); color: #E2ECE5; padding: 20px; border-radius: var(--r-md); overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9875rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--pine); color: #fff; font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Artículo ---------- */
.post-head { padding: clamp(40px, 6vw, 80px) 0 32px; }
.post-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.8rem); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .9375rem; margin-top: 22px; }
.post-meta a { color: var(--ink); font-weight: 650; text-decoration: none; }
.post-hero img { border-radius: var(--r-lg); width: 100%; max-height: 560px; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 56px; }
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-bottom: var(--section); }
.toc { position: sticky; top: 110px; font-size: .9rem; background: #fff; border-radius: var(--r-md); padding: 20px; }
.toc h2 { font: 650 .9375rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 9px; line-height: 1.4; }
.toc .toc-l3 { padding-left: 12px; font-size: .85rem; }
.toc a { color: var(--slate); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--pine); font-weight: 600; }
.tldr { background: var(--pine); color: #E2ECE5; border-radius: var(--r-md); padding: 24px 28px; margin-bottom: 40px; max-width: 70ch; }
.tldr h2 { font: 650 .9375rem/1.3 var(--sans); letter-spacing: 0; color: var(--signal); margin-bottom: 6px; }
.tldr p { margin: 0; font-size: 1.0625rem; }
.post-faq { max-width: 70ch; margin-top: 48px; }
.post-faq .faq { margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tags span { font-size: .84rem; background: var(--paper-2); padding: 4px 12px; border-radius: 999px; color: var(--slate); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 28px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 70ch; font-size: .9375rem; }
.share span { font-weight: 650; }
.author-box { display: flex; gap: 22px; align-items: center; margin-top: 36px; max-width: 70ch; background: #fff; border-radius: var(--r-md); padding: 20px; }
.author-box .portrait { width: 72px; height: 72px; border-radius: 16px; }
.author-box .portrait span { font-size: 1.5rem; }
.author-box p { margin: 0; color: var(--slate); font-size: .9875rem; }
.author-name { font-weight: 700; font-size: 1.0625rem !important; margin-bottom: 4px !important; }
.author-name a { color: var(--ink); }
.preview-bar { background: var(--signal); color: var(--pine); text-align: center; padding: 10px; margin: 0; font-weight: 650; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } .post-aside { display: none; } }

/* Blog: herramientas */
.blog-tools { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; margin-top: 32px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-nav a { text-decoration: none; color: var(--pine); border: 1.5px solid var(--line); background: #fff; padding: 7px 15px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.cat-nav a:hover { border-color: var(--pine); }
.cat-nav a[aria-current="page"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.search { display: flex; gap: 8px; }
.search input { width: 240px; border-radius: 999px !important; }
.result-note { color: var(--slate); margin-bottom: 32px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 56px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--pine); background: #fff; border: 1px solid var(--line); }
.pager a[aria-current] { background: var(--pine); color: #fff; border-color: var(--pine); }
.empty { text-align: center; padding: 56px 16px; max-width: 560px; margin: 0 auto; }
.empty p { color: var(--slate); }

/* ---------- Formularios ---------- */
.audit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.audit-info h2 { font-size: 1.9rem; }
.audit-info h2 + * { margin-bottom: 48px; }
.audit-points { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.audit-points div { padding: 18px; background: #fff; border-radius: var(--r-md); }
.audit-points dt { font: 650 1.1rem/1.2 var(--display); margin-bottom: 4px; }
.audit-points dd { margin: 0; color: var(--slate); font-size: .9375rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 50px; color: var(--slate); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; font: 750 .95rem/1 var(--display); color: var(--pine); }
.contact-list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list div { padding: 16px 18px; background: #fff; border-radius: var(--r-md); }
.contact-list dt { font-weight: 650; font-size: .875rem; color: var(--signal-ink); }
.contact-list dd { margin: 2px 0 0; }
.aside-note { margin-top: 28px; color: var(--slate); }
@media (max-width: 900px) { .audit { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .audit-points { grid-template-columns: 1fr; } }

.card-form { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 70px -48px rgba(15,59,46,.55); border: 1px solid var(--line); position: sticky; top: 100px; }
.card-form h2 { font-size: 1.9rem; }
@media (max-width: 900px) { .card-form { position: static; order: -1; } }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field > label, .field legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: .84rem; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="datetime-local"], select, textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--pine-3); box-shadow: 0 0 0 4px rgba(42,106,85,.15); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: .875rem; margin: 6px 0 0; font-weight: 500; }
.form-alert { background: #FCE9E7; color: var(--err); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; color: var(--slate) !important; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pine); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: .84rem; color: var(--slate); line-height: 1.3; transition: background .15s, border-color .15s; }
.chip input:checked + span { background: #FFF1E5; border-color: var(--signal); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { min-height: 55vh; display: flex; align-items: center; }

@media print { .site-header, .site-footer, .cta-band, .share, .post-aside { display: none; } }
.about-photo { margin: 0; }
.client:nth-child(even) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 860px) { .client:nth-child(even) { grid-template-columns: 1fr; } }
