/* ==========================================================================
   PixelSur · sections.css
   Composición de cada sección de la página de inicio y de las páginas internas.
   ========================================================================== */

/* ==========================================================================
   HERO
   Video a pantalla completa y titular en Manrope. El video aporta toda la
   profundidad: sin degradados ni capas encima.
   ========================================================================== */
.hero {
  --hero-bg: #002B42;
  --hero-muted: #A6A6AD;
  --hero-lead: #B8BAC2;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 5vw, 64px));
  padding-bottom: clamp(96px, 14vh, 160px);
  overflow: clip;
  background: var(--hero-bg);
}
.hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* El h1 es esta línea chica; el titular grande es un párrafo con el eslogan. */
.hero-kicker {
  max-width: 34em;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(.6875rem, .64rem + .2vw, .8125rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hero-lead);
}

.hero-title {
  max-width: 14em;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--hero-muted); }

.hero-lead {
  max-width: 42rem;
  margin-top: 32px;
  font-size: clamp(1rem, .94rem + .3vw, 1.125rem);
  line-height: 1.65;
  color: var(--hero-lead);
}

/* El vidrio lleva un tinte del cielo para que el texto se lea aunque pase por detrás algo luminoso del video. */
.hero-cta {
  --btn-h: 64px;
  margin-top: 48px;
  padding: 0 56px;
  font-size: 1rem;
  background-color: rgba(0, 22, 36, .66);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-cta:hover { background-color: rgba(0, 22, 36, .52); }

.hero-kicker,
.hero-title,
.hero-lead,
.hero-cta { animation: fade-rise .8s ease-out both; }
.hero-title { animation-delay: .1s; }
.hero-lead { animation-delay: .2s; }
.hero-cta { animation-delay: .4s; }
@keyframes fade-rise {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

/* Pausa del video (WCAG 2.2.2): discreta, abajo a la derecha. */
.hero-video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 32px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--hero-muted);
  cursor: pointer;
  transition: color .3s, background-color .3s, transform .3s var(--ease-out);
}
.hero-video-toggle:hover { color: var(--text); }
.hero-video-toggle .icon { width: 16px; height: 16px; }
.hero-video-toggle .icon-play,
.hero-video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero-video-toggle[aria-pressed="true"] .icon-play { display: block; }

/* Fondo de cuadrícula de las páginas internas (privacidad, 404) */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(var(--tint-rgb) / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--tint-rgb) / .035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services { overflow: clip; }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .svc-web { grid-column: span 7; }
  .svc-shop { grid-column: span 5; }
  .svc-apps { grid-column: span 5; }
  .svc-saas { grid-column: span 7; }
  .service-feature { grid-column: 1 / -1; }
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgb(var(--tint-rgb) / .025) 0%, rgb(var(--tint-rgb) / .008) 100%), var(--bg);
  box-shadow: var(--shadow-1);
  transition: border-color .5s var(--ease-out), transform .6s var(--ease-out);
}
@media (hover: hover) {
  .service-card:hover { border-color: var(--line-2); }
}
.svc-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 8px;
  overflow: clip;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background:
    radial-gradient(70% 70% at 50% 0%, rgb(var(--accent-rgb) / .09), transparent 70%),
    linear-gradient(180deg, rgb(var(--tint-rgb) / .02), transparent);
}
.svc-top { padding: clamp(26px, 3vw, 34px) clamp(22px, 3vw, 34px) 8px; }
.svc-top + .svc-visual { border-radius: 0; }
.svc-visual + .svc-body > .svc-includes-label:first-child { margin-top: 0; }
.svc-visual .artboard { margin-inline: auto; }
.svc-visual .demo-controls { align-self: stretch; justify-content: center; margin-top: 10px; }
.svc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px clamp(22px, 3vw, 34px) clamp(26px, 3vw, 34px);
}
.svc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.svc-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(var(--tint-rgb) / .06), rgb(var(--tint-rgb) / .01));
  color: var(--accent-strong);
  transition: transform .6s var(--ease-out), border-color .5s, box-shadow .5s;
}
.svc-icon .icon { width: 20px; height: 20px; }
.svc-icon.is-strong { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: 0 0 30px -8px rgb(var(--accent-rgb) / .55); }
@media (hover: hover) {
  .service-card:hover .svc-icon,
  .service-feature:hover .svc-icon { transform: translateY(-2px) rotate(-6deg); border-color: var(--accent-line); box-shadow: 0 10px 24px -10px rgb(var(--accent-rgb) / .6); }
}
.svc-kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.svc-title { font-size: var(--fs-h3); }
.svc-text { margin-top: 12px; max-width: 60ch; }
.svc-includes-label {
  margin: 22px 0 12px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.svc-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.svc-cta .icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--accent);
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s, color .4s;
}
.svc-cta:hover .icon { transform: translateX(4px); background: var(--accent); border-color: var(--accent); color: var(--text-on-light); }
/* Servicio destacado: software a medida */
.service-feature {
  position: relative;
  padding: clamp(22px, 3.4vw, 44px);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 50% at 80% 0%, rgb(var(--accent-rgb) / .12), transparent 70%) padding-box,
    linear-gradient(180deg, var(--surface), var(--bg)) padding-box,
    linear-gradient(140deg, rgb(var(--accent-rgb) / .5), rgb(var(--tint-rgb) / .06) 35%, rgb(var(--accent-rgb) / .3)) border-box;
  box-shadow: 0 40px 100px -50px rgb(var(--accent-rgb) / .45);
}
.feature-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 56px; }
@media (min-width: 1000px) {
  .feature-top { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
}
.feature-badge {
  padding: 5px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.feature-title { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; }
.feature-intro .btn { margin-top: 28px; }
.feature-includes .svc-includes-label { margin-top: 4px; }
.feature-includes .check-list { gap: 12px 28px; }
@media (min-width: 640px) {
  .feature-includes .check-list { grid-template-columns: 1fr 1fr; }
}

/* Demo del panel administrativo (componente real, accesible y adaptable) */
.admin-demo {
  margin-top: clamp(28px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--mock-screen);
  box-shadow: 0 40px 90px -40px rgba(4, 20, 30, .3);
  font-size: .875rem;
}
.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--mock-panel);
}
.admin-topbar .ui-dots i { width: 9px; height: 9px; }
.admin-app { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; color: var(--text); }
.admin-app-sub { font-weight: 500; color: var(--text-3); }
.admin-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--grad-accent); }
.admin-tag {
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgb(var(--warning-rgb) / .25);
  border-radius: 999px;
  background: rgb(var(--warning-rgb) / .07);
  font-size: .72rem;
  font-weight: 600;
  color: var(--warning);
}
.admin-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 540px; }
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
}
.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 550;
  text-align: left;
  color: var(--text-2);
  transition: background-color .25s, color .25s;
}
.admin-nav-btn .icon { width: 17px; height: 17px; }
.admin-nav-btn:hover { background: rgb(var(--tint-rgb) / .03); color: var(--text); }
.admin-nav-btn.is-active { background: var(--accent-soft); color: var(--text); }
.admin-nav-btn.is-active .icon { color: var(--accent); }
.admin-demo[data-role="ventas"] [data-admin-only] { display: none; }
.admin-main { min-width: 0; padding: 20px 22px 24px; }
.admin-view { display: grid; gap: 14px; }
.admin-view.is-entering { animation: view-in .55s var(--ease-out); }
@keyframes view-in {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}
.admin-view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-view-head h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.1rem; letter-spacing: -.02em; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mock-panel);
}
.admin-kpi .ui-label { font-size: .75rem; }
.admin-kpi strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.admin-kpi .ui-delta { align-self: flex-start; padding: 2px 7px; font-size: .7rem; }
.kpi-locked {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: .78rem;
  color: var(--text-3);
}
.kpi-locked .icon { width: 15px; height: 15px; }
.admin-demo[data-role="ventas"] [data-kpi-restricted] .kpi-locked { display: flex; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.admin-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--mock-panel); }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: .82rem; font-weight: 550; color: var(--text-2); }
.admin-chart-svg { width: 100%; height: 170px; overflow: visible; }
.admin-chart-svg .area-line { stroke-width: 2; vector-effect: non-scaling-stroke; }
.admin-chart-svg .area-grid { vector-effect: non-scaling-stroke; }
.admin-chart-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: .7rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 16px; }
.bars li { display: grid; gap: 7px; font-size: .82rem; }
.bars i { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 6px; background: rgb(var(--tint-rgb) / .05); }
.bars i::after { content: ''; position: absolute; inset: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--grad-accent); transform-origin: 0 50%; animation: bar-grow 1.2s var(--ease-out) both; }
@keyframes bar-grow { from { transform: scaleX(0); } }
.table-wrap { overflow-x: auto; scrollbar-width: thin; }
.admin-table { width: 100%; font-size: .84rem; }
.admin-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .7rem;
  font-weight: 550;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.admin-table td,
.admin-table tbody th {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
}
.admin-table tbody th { font-size: .84rem; font-weight: 550; letter-spacing: 0; text-transform: none; color: var(--text); }
.admin-table tbody tr:last-child td,
.admin-table tbody tr:last-child th { border-bottom: 0; }
.admin-table tbody tr { transition: background-color .25s; }
.admin-table tbody tr:hover { background: rgb(var(--tint-rgb) / .02); }
.admin-table .num { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.admin-demo .ui-pill { height: 22px; padding: 0 9px; font-size: .72rem; }
.admin-demo .ui-chip { height: 30px; padding: 0 12px; font-size: .78rem; border-radius: 8px; }
.admin-demo .ui-avatar { width: 32px; height: 32px; font-size: .68rem; }
.stock-bar {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 5px;
  margin-right: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: rgb(var(--tint-rgb) / .06);
  vertical-align: middle;
}
.stock-bar::after { content: ''; position: absolute; inset: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--success); }
.stock-bar.is-low::after { background: var(--warning); }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--mock-panel);
  transition: border-color .25s, box-shadow .25s;
}
.admin-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .15); }
.admin-search .icon { width: 16px; height: 16px; color: var(--text-3); }
.admin-search input { width: 160px; border: 0; outline: none; background: transparent; font-size: .9rem; color: var(--text); }
.admin-search input::placeholder { color: var(--text-3); }
.readonly-badge {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}
.readonly-badge .icon { width: 13px; height: 13px; }
.admin-demo[data-role="ventas"] .readonly-badge { display: inline-flex; }
.admin-empty { padding: 22px; text-align: center; font-size: .88rem; color: var(--text-3); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kanban-col { display: flex; flex-direction: column; gap: 8px; min-height: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgb(var(--tint-rgb) / .03); }
.kanban-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.kanban-title i { width: 7px; height: 7px; border-radius: 50%; }
.kanban-title .k1 { background: var(--info); }
.kanban-title .k2 { background: var(--accent); }
.kanban-title .k3 { background: var(--warning); }
.kanban-title .k4 { background: var(--success); }
.kanban-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mock-panel);
  transition: transform .35s var(--ease-out), border-color .3s;
}
.kanban-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.kanban-card b { display: block; font-size: .82rem; color: var(--text); }
.kanban-card small { font-size: .74rem; color: var(--text-3); }
.kanban-card.is-won { border-color: rgb(var(--success-rgb) / .3); }
.perm { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgb(var(--tint-rgb) / .04); font-size: .74rem; color: var(--text-2); }
.perm.is-on { background: rgb(var(--success-rgb) / .1); color: var(--success); }
.perm.is-off { border: 1px dashed var(--line-2); background: transparent; color: var(--text-3); }
.admin-caption { margin-top: 16px; font-size: .82rem; color: var(--text-3); }

@media (max-width: 899px) {
  .admin-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav-btn { flex: none; }
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .hide-sm { display: none; }
  .admin-topbar { padding: 12px; }
  .admin-tag { order: 3; margin-left: 0; }
  .admin-roles { order: 4; }
  .admin-app-sub { display: none; }
  .admin-main { padding: 14px 12px 16px; }
  .admin-kpi { padding: 12px; }
  .admin-kpi strong { font-size: 1.12rem; }
  .admin-tools,
  .admin-search { width: 100%; }
  .admin-search input { width: 100%; }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .kanban-col { min-height: 0; }
  .stock-bar { width: 40px; }
  .admin-table td,
  .admin-table tbody th { padding-inline: 8px; }
}

/* ==========================================================================
   SOLUCIONES SEGÚN LA NECESIDAD
   ========================================================================== */
.solver { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 960px) {
  .solver { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
  .solver-panels { position: sticky; top: calc(var(--header-h) + 24px); }
}
.solver-options { display: grid; gap: 8px; }
@media (min-width: 560px) and (max-width: 959px) {
  .solver-options { grid-template-columns: 1fr 1fr; }
}
.need {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(var(--tint-rgb) / .015);
  text-align: left;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-2);
  transition: border-color .35s, background-color .35s, color .35s, transform .4s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.need:hover { border-color: var(--line-2); color: var(--text); }
.need:active { transform: scale(.99); }
.need-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text-3);
  transition: color .35s, background-color .35s, border-color .35s;
}
.need-ico .icon { width: 19px; height: 19px; }
.need-text { flex: 1; }
.need-radio {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.5px solid var(--line-3);
  border-radius: 50%;
  transition: border-color .35s;
}
.need-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  scale: 0;
  transition: scale .45s var(--ease-out);
}
.need[aria-selected="true"] {
  border-color: var(--accent-line);
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / .1), rgb(var(--accent-rgb) / .02));
  color: var(--text);
}
.need[aria-selected="true"] .need-ico { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); }
.need[aria-selected="true"] .need-radio { border-color: var(--accent); }
.need[aria-selected="true"] .need-radio::after { scale: 1; }

.solver-panels { min-width: 0; }
.need-panel {
  position: relative;
  padding: clamp(24px, 3.4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(var(--accent-rgb) / .12), transparent 65%),
    linear-gradient(180deg, var(--surface), var(--bg));
  box-shadow: var(--shadow-2);
}
.need-panel.is-entering { animation: panel-in .6s var(--ease-out); }
@keyframes panel-in {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
.need-panel:focus-visible { outline-offset: 4px; }
.need-route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.need-route span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
@media (max-width: 399px) {
  .need-route { display: none; }
}
.need-route span.is-target { border-color: var(--accent-line); color: var(--accent-strong); }
.need-route i {
  position: relative;
  flex: 1;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, var(--line-2), var(--accent-line));
}
.need-route i::after {
  content: '';
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: route-dot 2.6s var(--ease-in-out) infinite;
}
@keyframes route-dot {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}
.need-panel-kicker {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.need-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem);
}
.need-panel-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.need-panel-ico .icon { width: 22px; height: 22px; }
.need-panel-text { margin-top: 16px; font-size: var(--fs-lead); max-width: 58ch; }
.need-panel .check-list { margin-top: 22px; }
.need-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 479px) {
  .need-actions .btn { width: 100%; white-space: normal; text-align: center; }
}

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.portfolio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color .3s, border-color .3s, background-color .3s;
}
.filter-chip:hover { color: var(--text); border-color: var(--line-3); }
.filter-chip[aria-pressed="true"] { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--text-on-light); }
.portfolio-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 460px;
  font-size: .82rem;
  color: var(--text-3);
}
.portfolio-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--warning); }
.noscript-note { color: var(--text-3); }

.portfolio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .project { grid-column: span 6; }
  .project.is-wide { grid-column: 1 / -1; }
  .project.is-seven { grid-column: span 7; }
  .project.is-five { grid-column: span 5; }
}
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgb(var(--tint-rgb) / .02), rgb(var(--tint-rgb) / .005)), var(--bg);
  transition: border-color .5s var(--ease-out);
}
.project:hover { border-color: var(--line-2); }
.project.is-hidden { display: none; }
.project-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(18px, 3vw, 32px) clamp(12px, 2vw, 24px) 0;
  overflow: clip;
  background:
    radial-gradient(80% 90% at 50% 100%, rgb(var(--accent-rgb) / .1), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.project-mock { width: 100%; display: flex; justify-content: center; transition: translate .9s var(--ease-out); }
@media (hover: hover) {
  .project:hover .project-mock { translate: 0 -6px; }
}
.project-mock img { width: 100%; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.project-info { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 34px); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.project-title { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
.project-summary { color: var(--text-2); }
.project-problem { font-size: .92rem; color: var(--text-3); }
.project-problem b { font-weight: 600; color: var(--text-2); }
.project-features { display: flex; flex-wrap: wrap; gap: 8px; }
.project-features li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--text-2);
}
.project .link-btn { align-self: flex-start; margin-top: auto; padding-top: 8px; min-height: 44px; }
@media (min-width: 1100px) {
  .project.is-wide { flex-direction: row; }
  .project.is-wide .project-media { flex: 1 1 60%; align-items: center; padding: 40px 32px; border-right: 1px solid var(--line); border-bottom: 0; }
  .project.is-wide .project-info { flex: 1 1 40%; justify-content: center; padding: 48px 44px; }
  .project.is-wide.is-reverse { flex-direction: row-reverse; }
  .project.is-wide.is-reverse .project-media { border-right: 0; border-left: 1px solid var(--line); }
}

.project-cta {
  justify-content: center;
  border-style: dashed;
  border-color: var(--line-2);
  background: radial-gradient(70% 60% at 50% 0%, rgb(var(--accent-rgb) / .1), transparent 70%), var(--bg);
}
.project-cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 4vw, 48px); }
.project-cta-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.project-cta-mark svg { width: 20px; height: 27px; }
.project-cta h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.project-cta .btn { margin-top: 8px; }

/* ==========================================================================
   PARA CADA ETAPA (escenarios)
   ========================================================================== */
.scenario-track { position: relative; }
.scenario-curve { display: none; }
.scenario-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.scenario {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(var(--tint-rgb) / .025), rgb(var(--tint-rgb) / .005)), var(--bg);
}
.scenario-node { display: none; }
.scenario-viz { height: 84px; margin-bottom: 4px; }
.scenario-viz svg { width: 120px; height: 80px; overflow: visible; }
.sv-ring { fill: none; stroke: var(--accent-line); stroke-dasharray: 3 4; }
.sv-core { fill: var(--accent); filter: drop-shadow(0 0 8px rgb(var(--accent-rgb) / .8)); }
.sv-dot { fill: var(--surface-3); stroke: var(--accent-line); stroke-width: 1.2; }
.sv-link { fill: none; stroke: rgb(var(--accent-rgb) / .35); stroke-width: 1.2; stroke-dasharray: 3 4; }
.scenario.is-revealed .sv-link,
.scenario.is-revealed .sv-ring { animation: dash-flow 2.6s linear infinite; }
.scenario-title { font-size: var(--fs-h3); }
.scenario .mini-tags { margin-top: 6px; }
.scenario-axis { display: none; }

@media (min-width: 960px) {
  .scenario-track { padding-top: 40px; }
  .scenario-curve {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 300px;
    overflow: visible;
  }
  .scenario-curve path {
    fill: none;
    stroke: url(#scenario-grad);
    stroke-width: 1.5;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    vector-effect: non-scaling-stroke;
    transition: stroke-dashoffset 2.4s var(--ease-out);
  }
  .scenario-track.is-drawn .scenario-curve path { stroke-dashoffset: 0; }
  .scenario-list { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; }
  .scenario.s1 { margin-top: 220px; }
  .scenario.s2 { margin-top: 120px; }
  .scenario.s3 { margin-top: 0; }
  .scenario-node {
    position: absolute;
    top: -7px;
    left: 32px;
    display: block;
    width: 13px;
    height: 13px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .1), 0 0 18px rgb(var(--accent-rgb) / .6);
  }
  .scenario-axis {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
  }
  .scenario-axis i { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), var(--accent-line)); }
  .scenario-axis i::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    rotate: 45deg;
  }
}

/* ==========================================================================
   CÓMO TRABAJAMOS
   ========================================================================== */
.process-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
@media (min-width: 1000px) {
  .process-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
  .process-head { position: sticky; top: calc(var(--header-h) + 48px); }
}
.process-note {
  display: flex;
  gap: 10px;
  max-width: 46ch;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(var(--tint-rgb) / .02);
  font-size: .9rem;
  color: var(--text-2);
}
.process-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.process-steps { position: relative; }
.process-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 27px;
  width: 1px;
  background: var(--line-2);
}
.process-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 12px rgb(var(--accent-rgb) / .6);
  transform-origin: 50% 0;
  transform: scaleY(var(--progress, 0));
}
.steps { display: grid; gap: clamp(36px, 5vw, 64px); }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color .6s, border-color .6s, box-shadow .6s, background-color .6s;
}
.step.is-active .step-num {
  border-color: var(--accent-light);
  background: #DCF3E1; /* verde pastel (tono de --accent-bright aclarado) */
  box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .1), 0 0 30px -6px rgb(var(--accent-rgb) / .6);
  color: var(--accent-deep);
}
.step-body { padding-top: 6px; }
@media (min-width: 1000px) {
  .step-body { padding-right: clamp(60px, 7vw, 120px); }
}
.step-body h3 {
  font-size: clamp(1.4rem, 1.25rem + .7vw, 1.85rem);
}
.step-body p { margin-top: 12px; max-width: 52ch; }
.step-body .mini-tags { margin-top: 16px; }
.step::before {
  content: attr(data-big);
  position: absolute;
  top: -28px;
  right: 0;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 3rem + 4vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--tint-rgb) / .1);
  pointer-events: none;
  transition: -webkit-text-stroke-color .8s;
}
.step.is-active::before { -webkit-text-stroke-color: rgb(var(--accent-rgb) / .2); }

/* ==========================================================================
   CONFIANZA
   ========================================================================== */
.principles {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--line);
  gap: 1px;
}
@media (min-width: 640px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.principle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 40px);
  background: var(--bg);
}
.principle.spot::after { display: none; }
.principle-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  color: var(--accent-strong);
  transition: transform .6s var(--ease-out), border-color .5s;
}
.principle-ico .icon { width: 21px; height: 21px; }
@media (hover: hover) {
  .principle:hover .principle-ico { transform: translateY(-3px); border-color: var(--accent-line); }
}
.principle h3 { font-size: 1.2rem; }
.principle p { font-size: .95rem; }

/* ==========================================================================
   PREGUNTAS FRECUENTES
   ========================================================================== */
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1000px) {
  .faq-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 48px); }
}
.faq-head .btn { margin-top: 30px; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { overflow: clip; }
.contact-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1000px) {
  .contact-inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
  .contact-copy { position: sticky; top: calc(var(--header-h) + 40px); }
}
.next-steps { display: grid; gap: 18px; margin-top: 36px; }
.next-steps li { display: flex; gap: 16px; }
.next-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.next-steps b { font-family: var(--font-display); font-weight: 500; }
.next-steps p { margin-top: 2px; font-size: .92rem; }
.contact-channels { display: grid; gap: 10px; margin-top: 32px; }
.contact-channels:not(:has(.channel:not([hidden]))) { display: none; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color .3s, background-color .3s;
}
.channel:hover { border-color: var(--line-2); background: rgb(var(--tint-rgb) / .02); }
.channel-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); }
.channel small { display: block; font-size: .75rem; color: var(--text-3); }
.channel b { font-weight: 600; word-break: break-word; }
.contact-location { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: .88rem; color: var(--text-3); }
.contact-location .icon { width: 17px; height: 17px; }

.contact-card {
  position: relative;
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, var(--surface), var(--bg-2)) padding-box,
    linear-gradient(150deg, rgb(var(--accent-rgb) / .45), rgb(var(--tint-rgb) / .06) 40%, rgb(var(--accent-rgb) / .25)) border-box;
  box-shadow: 0 50px 120px -50px rgb(var(--accent-rgb) / .4);
}
.form-status {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgb(var(--danger-rgb) / .35);
  border-radius: 14px;
  background: rgb(var(--danger-rgb) / .07);
  font-size: .9rem;
  color: var(--danger);
}
.form-status .icon { width: 19px; height: 19px; margin-top: 1px; color: var(--danger); }
.form-status a { color: var(--text); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-submit { min-width: 200px; }
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--text-on-light) 30%, transparent);
  border-top-color: var(--text-on-light);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-submit.is-loading { cursor: progress; }
.btn-submit.is-loading .btn-spinner { display: block; }
.btn-submit.is-loading .btn-icon { display: none; }
.btn-submit[disabled] { opacity: .85; }
.btn-whatsapp .icon { color: var(--whatsapp); }
.form-legal { margin-top: 18px; font-size: .8rem; color: var(--text-3); }
.form-success {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(8px, 2vw, 20px) 0;
  animation: panel-in .7s var(--ease-out);
}
.form-success:focus { outline: none; }
.success-ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgb(var(--success-rgb) / .12);
  box-shadow: 0 0 0 10px rgb(var(--success-rgb) / .05);
  color: var(--success);
}
.success-ico .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.form-success h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.form-success .btn { margin-top: 10px; }

@media (max-width: 479px) {
  .form-actions .btn { width: 100%; }
}

/* ==========================================================================
   PÁGINAS INTERNAS (privacidad, 404)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: clip;
}
.page-hero .hero-bg .hero-grid { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 30% 0%, #000 10%, transparent 70%); }
.page-title { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); letter-spacing: -.03em; line-height: 1.08; }
.page-meta { margin-top: 18px; font-size: .9rem; color: var(--text-3); }
.prose { max-width: 760px; padding-bottom: var(--section-space); }
.prose h2 { margin: 52px 0 14px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); letter-spacing: -.025em; }
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose ul { margin-top: 14px; }
.prose ul { display: grid; gap: 8px; padding-left: 0; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ''; position: absolute; top: .72em; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--text); text-underline-offset: 3px; }
.prose .note { margin-top: 32px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgb(var(--tint-rgb) / .02); font-size: .9rem; }

.error-page { position: relative; display: grid; place-items: center; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 80px; overflow: clip; text-align: center; }
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 4rem + 11vw, 12rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  background: var(--grad-text-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-page h1 { margin-top: 18px; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); }
.error-page p { max-width: 46ch; margin: 14px auto 0; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
