/* =========================================================
   Jose Miguel Martinez · Desarrollo de software a medida
   Hoja de estilos principal (se carga después de Bootstrap 5)
   Para cambiar colores o tipografía, edita las variables de :root
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;          /* blanco roto */
  --ink: #0b0b0c;             /* texto principal */
  --ink-2: #3d3d42;           /* texto secundario */
  --ink-3: #6e6e75;           /* texto terciario */
  --line: #e6e6e3;
  --accent: #0a5cff;          /* azul eléctrico */
  --accent-hover: #0047d6;
  --accent-soft: #eaf1ff;
  --dark: #0b0b0c;
  --wa: #1fae5b;
  --wa-hover: #17914b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --header-h: 72px;
  --bs-heading-color: inherit;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); }
.contact h2, .contact .section-title { color: #fff; }
body { overflow-x: clip; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1180px; padding-left: 24px; padding-right: 24px; }

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.4rem; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn-lg { font-size: 1rem; padding: .95rem 1.7rem; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-whatsapp { background: var(--wa); color: #fff; border: 1px solid var(--wa); display: inline-flex; align-items: center; gap: .6rem; }
.btn-whatsapp:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: #fff; }
.btn-sm-pill { padding: .5rem 1.15rem; font-size: .95rem; }
.icon-wa { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 768px) { .w-md-auto { width: auto !important; } }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1030;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.85); }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}
.nav-link { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: .5rem .85rem !important; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.navbar-toggler { border: 0; padding: 10px; box-shadow: none !important; display: flex; flex-direction: column; gap: 6px; }
.toggler-bar { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:first-child { transform: translateY(4px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: .5rem 0 1.25rem; }
  .nav-link { font-size: 1.1rem; padding: .7rem 0 !important; border-bottom: 1px solid var(--line); }
  .navbar-nav .btn { width: 100%; padding: .85rem; }
}

/* ---------- Tipografía de secciones ---------- */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow-light { color: #8fb3ff; }
.display-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}
.accent-text { color: var(--accent); }
.lead-text { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36rem; margin-bottom: 2rem; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-title { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 750; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.section-intro { font-size: 1.12rem; color: var(--ink-2); margin-bottom: .75rem; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(60px, 8vw, 110px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.portrait { position: relative; margin: 0 auto; max-width: 460px; }
.portrait picture img {
  display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 28px; background: #000;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.portrait-badge {
  position: absolute; left: -18px; bottom: 28px; max-width: 250px;
  display: flex; align-items: center; gap: .85rem;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1rem; box-shadow: var(--shadow);
}
.badge-num { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.badge-text { font-size: .85rem; line-height: 1.35; color: var(--ink-2); font-weight: 500; }
@media (max-width: 991.98px) {
  .portrait { max-width: 340px; }
  .portrait-badge { left: 50%; transform: translateX(-50%); bottom: -22px; width: max-content; max-width: 92%; }
  .hero .order-1 { margin-bottom: 1.5rem; }
}

/* ---------- Mensaje central ---------- */
.statement { padding: clamp(60px, 8vw, 100px) 0; border-top: 1px solid var(--line); }
.statement-text {
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2;
  max-width: 900px; margin: 0 auto; text-align: center;
}
.statement-text span { color: var(--ink-3); }

/* ---------- Tarjetas de servicio ---------- */
.card-service {
  height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card-service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6d6d2; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }
.card-num { font-size: .85rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.icon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-service h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: .6rem; }
.card-service p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* ---------- Sobre mí ---------- */
@media (min-width: 992px) { .sticky-lg { position: sticky; top: calc(var(--header-h) + 40px); } }
.quote { margin: 2rem 0 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.quote p { font-size: 1.3rem; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; margin: 0; }
.prose p { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 1.15rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { background: #fff; padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.fact-big { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.fact-label { font-size: .92rem; color: var(--ink-3); line-height: 1.35; }

/* ---------- Tecnologías ---------- */
/* Cuadrícula bento: 3 columnas en escritorio, 2 en tableta, 1 en móvil */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bento-stack { grid-column: 1; grid-row: 1 / span 2; }
.bento-wide { grid-column: 1 / -1; }

.bento-card {
  position: relative; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 24px;
  padding: 1.9rem 1.75rem;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s, background-color .35s;
}
.bento-card:hover { transform: translateY(-4px); background: #fff; border-color: #d6d6d2; box-shadow: 0 18px 40px -18px rgba(10,30,80,.18); }
.bento-card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .45rem; }
.bento-card p { color: var(--ink-2); font-size: .98rem; margin: 0 0 1.4rem; }

.bento-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); margin-bottom: 1.4rem;
  transition: background-color .35s, transform .35s;
}
.bento-icon svg, .app-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.bento-card:hover .bento-icon { background: var(--accent); transform: rotate(-6deg) scale(1.05); }
.bento-card:hover .bento-icon svg { stroke: #fff; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .86rem; font-weight: 600; padding: .4rem .75rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .85; }

/* Tarjeta oscura con el diagrama de capas */
.bento-stack {
  background: radial-gradient(120% 80% at 100% 0%, #13306f 0%, #0b0b0c 55%);
  border-color: #0b0b0c; color: #fff; display: flex; flex-direction: column;
}
.bento-stack:hover { background: radial-gradient(120% 80% at 100% 0%, #173a85 0%, #0b0b0c 55%); border-color: #0b0b0c; }
.bento-stack h3 { color: #fff; font-size: 1.6rem; }
.bento-kicker { font-size: .75rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8fb3ff !important; margin-bottom: .9rem !important; }
.bento-lead { color: #b9b9c4 !important; }
.stack { list-style: none; padding: 0; margin: auto 0 0; position: relative; display: grid; gap: .7rem; }
.stack::before { /* línea vertical que conecta las capas */
  content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(#0a5cff, rgba(10,92,255,.15));
}
.stack::after { /* pulso que recorre la línea */
  content: ""; position: absolute; left: 16px; top: 22px; width: 8px; height: 8px; border-radius: 50%;
  background: #8fb3ff; box-shadow: 0 0 12px 3px rgba(143,179,255,.7);
  animation: stack-flow 3.6s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes stack-flow { 0% { top: 22px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 30px); opacity: 0; } }
.stack-layer {
  position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: .5rem;
  padding: .85rem 1rem .85rem 0; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.stack-layer:hover { background: rgba(255,255,255,.1); border-color: rgba(143,179,255,.45); transform: translateX(4px); }
.stack-dot { grid-row: 1 / span 2; align-self: center; justify-self: center; width: 12px; height: 12px; border-radius: 50%; background: #0b0b0c; border: 2px solid #0a5cff; position: relative; z-index: 1; }
.stack-name { font-weight: 700; font-size: 1rem; color: #fff; }
.stack-tech { font-size: .85rem; color: #9a9aa6; }

/* Tarjeta ancha con tipos de aplicación */
.bento-wide { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.bento-wide-text { display: flex; align-items: center; gap: 1.1rem; }
.bento-wide-text .bento-icon { margin: 0; flex-shrink: 0; }
.bento-wide-text p { margin: 0; }
.app-types { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: .6rem; }
.app-types li {
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.app-ic svg { width: 20px; height: 20px; display: block; }

@media (max-width: 1199.98px) {
  .app-types { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 991.98px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-stack { grid-column: 1 / -1; grid-row: auto; }
  .stack { margin-top: .5rem; }
}
@media (max-width: 575.98px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card { padding: 1.6rem 1.35rem; }
  .app-types { grid-template-columns: 1fr 1fr; width: 100%; }
  .app-types li { white-space: normal; font-size: .86rem; padding: .65rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stack::after { animation: none; display: none; }
  .bento-card, .bento-icon, .stack-layer { transition: none; }
}

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: none; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 1.25rem; }
.step h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: .5rem; }
.step p { color: var(--ink-2); font-size: .98rem; margin: 0; }
@media (max-width: 991.98px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }
.note-direct { display: flex; align-items: center; gap: .9rem; margin: 3.5rem 0 0; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1.05rem; }
.icon-inline { flex-shrink: 0; }

/* ---------- Modalidad ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.25rem 1.25rem 1.9rem;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.plan:hover { transform: translateY(-6px); border-color: #cfd8ea; box-shadow: 0 24px 50px -24px rgba(10,40,120,.28); }
.plan > :not(.plan-art) { margin-left: .6rem; margin-right: .6rem; }
.plan h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.plan > p { color: var(--ink-2); font-size: .98rem; margin-bottom: 1.4rem; }

.plan-art {
  height: 150px; border-radius: 16px; margin-bottom: 1.5rem; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(10,92,255,.16) 1px, transparent 1.4px) 0 0 / 14px 14px,
    linear-gradient(160deg, #f1f5ff 0%, #e6eeff 100%);
}
.plan-art svg { width: 100%; max-width: 230px; height: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.plan:hover .plan-art svg { transform: scale(1.06); }
/* piezas de las ilustraciones */
.a-paper { fill: #fff; stroke: #d5def2; stroke-width: 1.5; }
.a-line { fill: #0b0b0c; } .a-line.a-soft { fill: #c9d3ea; }
.a-ok { fill: var(--accent); }
.a-seal circle { fill: var(--accent); } .a-seal path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.a-ring-bg { fill: none; stroke: #d5def2; stroke-width: 8; }
.a-ring { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 62 100; transform: rotate(-90deg); transform-origin: 100px 60px; transition: stroke-dasharray .8s cubic-bezier(.2,.7,.2,1); }
.plan:hover .a-ring { stroke-dasharray: 88 100; }
.a-hand { fill: none; stroke: #0b0b0c; stroke-width: 3; stroke-linecap: round; }
.a-chip { fill: #fff; stroke: #d5def2; stroke-width: 1.2; }
.a-chip-t { font: 600 10px var(--font); fill: var(--accent); }
.a-loop { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; opacity: .9; }
.a-runner { fill: #fff; stroke: var(--accent); stroke-width: 3; }

.plan-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: .35rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.plan-list { list-style: none; padding: 1.25rem 0 0; margin-top: auto !important; border-top: 1px solid var(--line); display: grid; gap: .65rem; }
.plan-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.plan-list svg { flex-shrink: 0; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.remote-band {
  margin-top: 1.25rem; padding: 1.5rem 1.75rem; border-radius: 24px;
  background: radial-gradient(90% 140% at 0% 0%, #13306f 0%, #0b0b0c 60%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
}
.remote-intro { display: flex; align-items: center; gap: 1rem; }
.remote-globe { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(143,179,255,.14); box-shadow: 0 0 0 6px rgba(143,179,255,.06); }
.remote-globe svg { width: 26px; height: 26px; fill: none; stroke: #8fb3ff; stroke-width: 1.5; }
.remote-title { font-weight: 700; font-size: 1.08rem; margin: 0; }
.remote-sub { color: #a9a9b4; font-size: .92rem; margin: 0; }
.commit { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.commit li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: .9rem; font-weight: 600; }
.commit svg { width: 17px; height: 17px; fill: none; stroke: #8fb3ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 991.98px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plans .plan:last-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .plans { grid-template-columns: 1fr; }
  .remote-band { padding: 1.4rem 1.25rem; }
}

/* ---------- Contacto ---------- */
.contact { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.contact::before { /* halo azul de fondo */
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,92,255,.28), transparent); pointer-events: none;
}
.contact .container { position: relative; }
.contact .section-title { color: #fff; }
.contact-head { max-width: 760px; margin-bottom: 3rem; }
.contact-text { color: #b9b9c0; font-size: 1.1rem; }

.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.channel {
  --c: var(--accent); --c-soft: rgba(10,92,255,.16);
  display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: #fff;
  padding: 2rem; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .35s, border-color .35s, box-shadow .35s;
}
.channel-wa { --c: var(--wa); --c-soft: rgba(31,174,91,.18); }
.channel:hover, .channel:focus-visible { color: #fff; transform: translateY(-5px); background: rgba(255,255,255,.07); border-color: var(--c); box-shadow: 0 24px 60px -30px var(--c); }
.channel-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c-soft); margin-bottom: 1.1rem; transition: background-color .35s; }
.channel-ic svg { width: 28px; height: 28px; }
.channel-wa .channel-ic svg { fill: var(--wa); }
.channel-mail .channel-ic svg { fill: none; stroke: #8fb3ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.channel:hover .channel-ic { background: var(--c); }
.channel-wa:hover .channel-ic svg { fill: #fff; }
.channel-mail:hover .channel-ic svg { stroke: #fff; }
.channel-label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a8a93; }
.channel-value { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.channel-desc { color: #a9a9b4; font-size: .98rem; margin: .3rem 0 1.5rem; }
.channel-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; background: var(--c); color: #fff; font-weight: 600;
}
.channel-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.channel:hover .channel-cta svg { transform: translateX(4px); }
@media (max-width: 767.98px) {
  .channels { grid-template-columns: 1fr; }
  .channel { padding: 1.6rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .a-runner { display: none; }
  .plan, .plan-art svg, .a-ring, .channel { transition: none; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--dark); color: #8a8a93; padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-name { color: #fff; font-weight: 700; margin: 0; }
.footer-sub { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: #c9c9d0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-copy { margin: 0; }

/* ---------- WhatsApp flotante (móvil) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1020;
  width: 54px; height: 54px; border-radius: 50%; display: none; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: opacity .25s, transform .25s;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { background: var(--wa-hover); }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
@media (max-width: 991.98px) {
  .wa-float { display: grid; }
  /* deja hueco al final para que el botón nunca tape el pie */
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card-service, .btn, .wa-float { transition: none; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + 60px) 0 100px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal .todo { background: #fff5d6; padding: 0 .3rem; border-radius: 4px; }
