/* DAP.rocks — sistema visual
   Paleta de mapillary.com. Referencias de composición: atlas.co y bluemarblegeo.com */

:root {
  /* Paleta tomada de mapillary.com */
  --white: #FFFFFF;
  --dark: #212B36;
  --dark-2: #1A222B;
  --dark-3: #151C24;
  --green: #05CB63;
  --green-2: #04B457;
  --green-d: #067A3C;      /* derivado: texto verde legible sobre blanco */
  --green-t: #E6FAF0;      /* derivado: fondo verde muy claro */
  --teal: #1098AD;
  --bg-2: #F5F6F8;
  --ink: #212B36;
  --ink-2: #5D6671;
  --line: #E4E6EB;
  --line-2: #CFD3DA;
  --on-dark: #FFFFFF;
  --on-dark-2: #B7BFC9;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--dark); }
:focus-visible { outline: 3px solid var(--green-d); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .hero :focus-visible, .bg-dark :focus-visible, .cta-final :focus-visible, .site-footer :focus-visible, .news :focus-visible { outline-color: var(--green); }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 var(--s2); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s2); }
ul, ol { padding-left: 1.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-d); margin-bottom: var(--s2); display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 46rem; }
.muted { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 100px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--green); color: var(--dark); }
.btn-primary:hover { background: var(--green-2); color: var(--dark); }
.btn-ghost { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-ghost:hover { background: var(--dark); color: var(--white); }
.btn-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn-light:hover { background: var(--on-dark); color: var(--dark); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; color: var(--green-d); }
.link-arrow:hover { text-decoration: underline; color: var(--green-d); }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--s3); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.menu a { white-space: nowrap; text-decoration: none; color: var(--on-dark); font-weight: 500; font-size: .97rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--green); }
.nav-right { display: flex; align-items: center; gap: var(--s2); }
.lang { font-family: var(--mono); font-size: .82rem; display: flex; gap: .15rem; align-items: center; color: var(--on-dark-2); }
.lang a, .lang span { padding: .25rem .35rem; text-decoration: none; color: var(--on-dark-2); border-radius: 4px; }
.lang a:hover { color: var(--on-dark); }
.lang [aria-current] { color: var(--dark); font-weight: 600; background: var(--on-dark); }
.nav-cta { padding: .6rem 1.15rem; font-size: .93rem; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; color: var(--on-dark); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--dark); padding: var(--s4) var(--gutter); display: none; flex-direction: column; gap: var(--s3); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .menu { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .menu a { font-size: 1.35rem; }
  .nav-right .nav-cta { display: none; }
  .nav-links .nav-cta-m { display: inline-flex; align-self: flex-start; }
}
@media (min-width: 1141px) { .nav-links { display: flex; align-items: center; gap: var(--s4); } .nav-cta-m { display: none; } }

/* Secciones */
section { padding: var(--s7) 0; }
.sec-tight { padding: var(--s6) 0; }
.sec-head { display: grid; gap: var(--s2); margin: 0 auto var(--s5); max-width: 50rem; text-align: center; justify-items: center; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 1.12rem; }
.sec-head .eyebrow { color: var(--green-d); font-size: .78rem; }
.bg-paper { background: var(--white); }
.sec-tight .sec-head { margin-bottom: var(--s4); }
.bg-alt { background: var(--bg-2) url(../img/curvas-claro.svg) center / cover no-repeat; }
.bg-dark { background: var(--dark); color: var(--on-dark); }
.bg-dark h2, .bg-dark h3 { color: var(--on-dark); }
.bg-dark .eyebrow, .bg-dark .sec-head .eyebrow { color: var(--green); }
.bg-dark .muted, .bg-dark .sec-head p { color: var(--on-dark-2); }
.bg-dark a:not(.btn) { color: var(--on-dark); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

@media (max-width: 640px) { section { padding: 3.75rem 0; } .sec-tight { padding: 3rem 0; } .cta-final { padding: 4rem 0; } .sec-head { margin-bottom: 2rem; } }

/* Hero: fondo oscuro que se funde en verde y blanco, con vitrina de proyectos */
.hero { position: relative; color: var(--on-dark); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; background: linear-gradient(180deg, var(--dark) 0, var(--dark) 56%, #178A5E 76%, var(--green) 86%, var(--green-t) 95%, var(--white) 100%); }
.hero::before { content: ""; position: absolute; inset: 0 0 34% 0; background: url(../img/curvas-oscuro.svg) center / cover no-repeat; pointer-events: none; }
.hero .wrap { position: relative; }
.hero-text { text-align: center; max-width: 54rem; margin: 0 auto; }
.hero .eyebrow { justify-content: center; color: var(--on-dark-2); }
.hero h1 { color: var(--on-dark); margin-bottom: var(--s3); }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { color: var(--on-dark-2); margin: 0 auto var(--s4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
.showcase { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.tabs { display: flex; justify-content: center; gap: .25rem; width: fit-content; max-width: 100%; margin: 0 auto var(--s3); padding: .25rem; border-radius: 100px; background: rgba(255, 255, 255, .08); overflow-x: auto; scrollbar-width: none; }
.tabs button { font: inherit; font-size: .92rem; font-weight: 500; color: var(--on-dark-2); background: none; border: 0; padding: .5rem 1rem; border-radius: 100px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--on-dark); }
.tabs button[aria-selected="true"] { background: var(--on-dark); color: var(--dark); font-weight: 600; }
.win { position: relative; border-radius: 16px; background: var(--white); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(21, 28, 36, .55), 0 0 0 1px rgba(33, 43, 54, .08); }
.win-bar { display: flex; gap: .4rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-bar i:first-child { background: var(--green); }
.win img { width: 100%; height: auto; }
.showcase [role="tabpanel"] { position: relative; color: var(--ink); }
.showcase [role="tabpanel"] img { aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.float-card { position: absolute; left: clamp(12px, 2.5vw, 24px); bottom: clamp(12px, 2.5vw, 24px); width: min(340px, 42%); background: var(--white); border-radius: 12px; padding: var(--s3); box-shadow: 0 20px 40px -18px rgba(21, 28, 36, .45); display: grid; gap: .5rem; }
.float-card p { margin: 0; font-size: .97rem; line-height: 1.45; color: var(--ink); }
.fc-k { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .hero { background: linear-gradient(180deg, var(--dark) 0, var(--dark) 62%, #178A5E 80%, var(--green) 90%, var(--green-t) 97%, var(--white) 100%); }
  .tabs { justify-content: flex-start; width: 100%; }
  .float-card { position: static; width: auto; border-radius: 0; box-shadow: none; }
}

/* Logos y cifras */
.proof { background: var(--white); padding: var(--s5) 0 var(--s6); }
.logos-wrap { position: relative; margin-bottom: var(--s5); }
.logos-t { text-align: center; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s3); padding: 0 2.6rem; }
.logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logos-track { display: flex; width: max-content; animation: logos 55s linear infinite; }
.logos:hover .logos-track, .logos.paused .logos-track { animation-play-state: paused; }
.logos ul { display: flex; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); list-style: none; margin: 0; padding: 0 clamp(1rem, 2vw, 1.75rem); }
.logos img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }
@keyframes logos { to { transform: translateX(-50%); } }
.logos-btn { position: absolute; right: 0; top: -.35rem; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); color: var(--ink-2); font-size: .6rem; cursor: pointer; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) {
  .logos { -webkit-mask-image: none; mask-image: none; }
  .logos-track { width: auto; }
  .logos ul { flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; }
  .logos ul.dup, .logos-btn { display: none; }
}
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
.stat { display: grid; gap: .3rem; align-content: start; }
.stat-n { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--dark); letter-spacing: -.03em; line-height: 1.1; }
.stat-l { font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr 1fr; } }

/* Cambio */
.shift-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s5); align-items: start; }
.shift-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.shift-body p { font-size: 1.12rem; color: var(--on-dark-2); }
.shift-body strong { color: var(--on-dark); }
.compare { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s4); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); overflow: hidden; }
.compare > div { padding: var(--s3); }
.compare > div + div { border-left: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); }
.compare h3 { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--s2); }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .98rem; }
.compare .no li { color: var(--on-dark-2); }
.compare .no li::before { content: "— "; opacity: .6; }
.compare .yes li::before { content: "✓ "; color: var(--green); }
@media (max-width: 860px) { .shift-grid { grid-template-columns: 1fr; gap: var(--s3); } }
@media (max-width: 520px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); } }

/* Método */
.method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ring { width: 100%; max-width: 460px; margin: 0 auto; }
.ring .orbit { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ring .arr { fill: var(--dark); }
.ring .node { fill: var(--green); }
.ring .num { fill: var(--dark); font-family: var(--font); font-size: 24px; font-weight: 700; text-anchor: middle; }
.ring .c1 { fill: var(--dark); font-family: var(--font); font-size: 24px; font-weight: 700; text-anchor: middle; letter-spacing: -.02em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-t); color: var(--green-d); font-weight: 700; }
.step h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.step p { color: var(--ink-2); font-size: 1rem; margin-bottom: .5rem; }
.step p:last-child { margin-bottom: 0; }
.step .deliv { font-size: .88rem; color: var(--dark); background: var(--bg-2); padding: .35rem .7rem; border-radius: 8px; display: inline-block; line-height: 1.4; }
.method-loop { margin: var(--s2) 0 0; font-size: .95rem; color: var(--ink-2); display: flex; align-items: center; gap: .6rem; }
.method-loop::before { content: "↺"; color: var(--green-d); font-size: 1.2rem; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } .ring { max-width: 300px; } }

/* Tarjetas */
.cards { display: grid; gap: var(--s3); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: .75rem; position: relative; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(33, 43, 54, .5); }
.card h3, .card .card-t { margin: 0; font-size: 1.25rem; }
.card h3 a, .card .card-t a { text-decoration: none; color: inherit; }
.card h3 a::after, .card .card-t a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.card .ex { font-size: .88rem; color: var(--ink-2); border-top: 1px dashed var(--line-2); padding-top: .75rem; margin-top: auto; }
.card .ex b { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); font-weight: 500; display: block; margin-bottom: .15rem; }
.card .more { font-weight: 600; color: var(--green-d); font-size: .95rem; }
.card-icon { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--green-t); color: var(--green-d); }
.card-icon svg { width: 100%; height: 100%; }
.sol-n { font-family: var(--mono); font-size: .75rem; color: var(--green-d); }

/* Casos */
.case { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.case:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(33, 43, 54, .5); }
.case-img { aspect-ratio: 16 / 8; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.case:hover .case-img img { transform: scale(1.03); }
.case-img.ph { display: grid; place-items: center; color: var(--green); background: var(--dark) url(../img/curvas-oscuro.svg) center / cover no-repeat; border-bottom: 0; }
.case-img.ph svg { width: 44px; height: 44px; }
.case-top { padding: var(--s3) var(--s3) 0; display: grid; gap: .5rem; align-content: start; }
.case-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.case-top h3, .case-top h2 { color: var(--dark); font-size: 1.25rem; margin: 0; line-height: 1.25; letter-spacing: -.015em; }
.case-top h3 a, .case-top h2 a { color: inherit; text-decoration: none; }
.case-top h3 a::after, .case-top h2 a::after { content: ""; position: absolute; inset: 0; }
.case-body { padding: var(--s3); display: grid; gap: .8rem; align-content: start; flex: 1; }
.case-body dl { margin: 0; display: grid; gap: .7rem; }
.case-body dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); }
.case-body dd { margin: 0; font-size: .95rem; color: var(--ink-2); }
.case-metric { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line-2); display: flex; gap: .8rem; align-items: baseline; }
.case-metric .n { font-size: 1.5rem; color: var(--dark); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.case-metric .l { font-size: .85rem; color: var(--ink-2); line-height: 1.35; }
.tag { display: inline-block; font-size: .78rem; padding: .2rem .6rem; border-radius: 99px; background: var(--bg-2); color: var(--dark); }
.tag.live { background: var(--green-t); color: var(--green-d); }
.tag.live::before { content: "● "; }

.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); align-items: end; }
.filters label { flex: 1 1 12rem; display: grid; gap: .3rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.filters select { font: inherit; font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .95rem; padding: .6rem 2rem .6rem .8rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; }
.filters .count { font-family: var(--mono); font-size: .82rem; color: var(--ink-2); margin-left: auto; align-self: center; }
[hidden] { display: none !important; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); }
.quote { margin: 0; padding: var(--s4); background: var(--white); border-radius: 8px; border: 1px solid var(--line); display: grid; gap: var(--s2); }
.quote blockquote { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--green-d); margin-bottom: .4rem; font-family: Georgia, serif; }
.quote figcaption { font-size: .9rem; color: var(--ink-2); }
.quote figcaption b { color: var(--dark); display: block; }
.quote .ctx { font-family: var(--mono); font-size: .72rem; display: block; margin-top: .3rem; }

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sector { background: var(--white); padding: var(--s3); display: grid; gap: .6rem; align-content: start; }
.sector svg { width: 34px; height: 34px; color: var(--dark); }
.sector h3 { font-size: 1.08rem; margin: 0; }
.sector p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.sector .links { font-size: .85rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }

/* Recursos / newsletter */
.res-grid > * { min-width: 0; }
.res-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s4); align-items: stretch; }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr; } }
.article { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: var(--s4); display: grid; gap: .7rem; align-content: start; position: relative; }
.article .meta { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.article h3 { font-size: 1.4rem; margin: 0; }
.article h3 a { text-decoration: none; color: inherit; }
.article h3 a::after { content: ""; position: absolute; inset: 0; }
.news { background: var(--dark); color: var(--on-dark); border-radius: 8px; padding: var(--s4); display: grid; gap: var(--s2); align-content: start; }
.res-grid > div + .news { align-self: start; position: sticky; top: 96px; }
@media (max-width: 860px) { .res-grid > div + .news { position: static; } }
.news h3 { color: var(--on-dark); font-size: 1.5rem; margin: 0; }
.news .brand-dr { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.news p { color: var(--on-dark-2); margin: 0; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form input[type=email] { flex: 1 1 10rem; min-width: 0; font: inherit; padding: .8rem 1rem; border-radius: var(--radius); border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: var(--on-dark); }
.inline-form input::placeholder { color: var(--on-dark-2); }
.fineprint { font-size: .8rem; color: var(--on-dark-2); }
.fineprint a { color: var(--on-dark); }

/* Cierre */
.cta-final { text-align: center; padding: var(--s7) 0; background: var(--dark) url(../img/curvas-oscuro.svg) center / cover no-repeat; color: var(--on-dark); position: relative; overflow: hidden; }
.cta-final h2 { color: var(--on-dark); font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 20ch; margin: 0 auto var(--s3); }
.cta-final p { color: var(--on-dark-2); max-width: 40rem; font-size: 1.12rem; margin: 0 auto var(--s4); }
.cta-final .eyebrow { justify-content: center; color: var(--on-dark-2); }
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final .rings { display: none; }

/* Página interior */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--dark) url(../img/curvas-oscuro.svg) center / cover no-repeat; color: var(--on-dark); }
.page-hero h1 { color: var(--on-dark); }
.page-hero .eyebrow { color: var(--on-dark-2); }
.page-hero .lead, .page-hero .muted { color: var(--on-dark-2); }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--on-dark-2); }
.page-hero .crumbs a:hover { color: var(--green); }
.page-hero a:not(.btn) { color: var(--on-dark); }
.page-hero :focus-visible { outline-color: var(--green); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; }
.crumbs { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); margin-bottom: var(--s3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--dark); }
.crumbs span[aria-hidden] { margin: 0 .4rem; opacity: .5; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.case-shot { margin-bottom: var(--s5); }
.side-col { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s5); align-items: start; }
@media (max-width: 900px) { .two-col, .side-col { grid-template-columns: 1fr; gap: var(--s4); } }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: var(--s5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s4); }
.prose li { margin-bottom: .4rem; }
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--green-d); border-bottom: 2px solid var(--green-d); transform: rotate(-45deg); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: var(--s4); }
.panel h3 { font-size: 1.05rem; }
.aside-box { position: sticky; top: 100px; display: grid; gap: var(--s3); }
.kv { display: grid; gap: .9rem; margin: 0; }
.kv dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); }
.kv dd { margin: .15rem 0 0; color: var(--ink); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s2); }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: var(--s3); display: grid; gap: .3rem; }
.metric .n { color: var(--dark); font-size: 1.05rem; font-weight: 700; }
.metric .l { color: var(--ink-2); font-size: .9rem; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.plain a { color: var(--green-d); text-underline-offset: .2em; position: relative; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.chips li { font-family: var(--mono); font-size: .78rem; padding: .3rem .65rem; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); background: var(--white); }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 640px; }
th, td { text-align: left; padding: 1rem 1.2rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--dark); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 600; color: var(--dark); font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.4rem; color: var(--green-d); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1.3rem; margin: 0; max-width: 48rem; }

/* Principios */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.principles li { border-top: 2px solid var(--green); padding-top: var(--s2); color: var(--on-dark); }
.principles b { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.principles span { color: var(--on-dark-2); font-size: .95rem; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

/* Formulario */
.form { display: grid; gap: var(--s3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--dark); }
.field .req { color: var(--green-d); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .8rem .9rem; border-radius: var(--radius); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-d); outline: 2px solid rgba(5, 203, 99, .3); outline-offset: 0; }
.field textarea { min-height: 9rem; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--dark); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 500; }
.notice.ok { background: var(--green-t); color: var(--green-d); }
.notice.err { background: #FDECF1; color: #A61E4D; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.contact-list li { display: grid; gap: .2rem; }
.contact-list b { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); font-weight: 500; }
.contact-list a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }

/* Equipo / fundador */
.founder { display: grid; grid-template-columns: 220px 1fr; gap: var(--s4); align-items: start; }
.founder .avatar { width: 100%; height: auto; border-radius: 50%; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } .founder .avatar { max-width: 160px; } }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.member { display: flex; gap: var(--s2); align-items: center; }
.member img { width: 84px; height: 84px; border-radius: 50%; flex: none; }
.member b { display: block; color: var(--dark); font-size: 1.05rem; }
.member span { color: var(--ink-2); font-size: .9rem; line-height: 1.35; display: block; }
.values { margin: var(--s4) 0 0; color: var(--ink-2); }
.values b { color: var(--dark); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 1px solid var(--line-2); }
.timeline li { padding: 0 0 var(--s3) var(--s3); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45em; width: 11px; height: 11px; border-radius: 50%; background: var(--green); }
.timeline .y { font-family: var(--mono); font-size: .8rem; color: var(--green-d); display: block; }

/* Pie */
.site-footer { background: var(--dark-2); color: var(--on-dark-2); padding: var(--s6) 0 var(--s4); font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.foot-grid h2 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 500; margin-bottom: var(--s2); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot-brand .brand { margin-bottom: var(--s2); }
.foot-brand .brand img { height: 58px; }
.foot-brand p { max-width: 22rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s3); font-size: .85rem; }
.foot-base ul { display: flex; gap: var(--s3); list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.site-footer .inline-form input[type=email] { border-color: rgba(255, 255, 255, .25); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in, .case.reveal.in { transition: opacity .7s ease, transform .2s, box-shadow .2s, border-color .2s; }
.card.reveal.in:hover, .case.reveal.in:hover { transform: translateY(-2px); }
.no-js .reveal { opacity: 1; transform: none; }

/* Aviso de cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: var(--white); border: 1px solid var(--line-2); border-radius: 8px; padding: var(--s3); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); z-index: 60; font-size: .92rem; display: grid; gap: var(--s2); }
.cookie .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie .btn { padding: .6rem 1rem; font-size: .9rem; }

@media print { .site-header, .site-footer, .cookie, .cta-final { display: none; } body { background: #fff; } }
