/* shernandezprod — marfil, grafito y azul eléctrico */

:root {
  --ivory: #f4f2ed;
  --ivory-2: #ebe8e1;
  --ivory-3: #dedbd2;
  --graphite: #15171b;
  --graphite-2: #1e2126;
  --graphite-3: #2a2e35;
  --blue: #1b4bff;
  --blue-deep: #0f3ae6;
  --blue-soft: #e6ebff;
  --blue-light: #8aa4ff;
  --ink: #15171b;
  --muted: #5f646d;
  --muted-dark: #9aa0aa;
  --line: rgba(21, 23, 27, 0.12);
  --line-strong: rgba(21, 23, 27, 0.28);
  --line-dark: rgba(255, 255, 255, 0.12);
  --ok-bg: #e5f6ea; --ok-fg: #1e7a3b;
  --wait-bg: #fff3d6; --wait-fg: #9a6400;
  --r: 6px;
  --r-lg: 12px;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header: 4.25rem;
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 899px) {
  body { padding-bottom: 5.25rem; }
  html:not(.cookies-ok) body { padding-bottom: 10.5rem; }
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.7rem, 5.5vw, 4.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.035em; }
h3 { font-size: 1.5rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 32em; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-left: auto; margin-right: auto; margin-inline: auto; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .section--blue :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r); z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botones y enlaces ---------- */
.arrow {
  display: inline-block; width: 0.85em; height: 0.85em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.arrow--down { transform: rotate(135deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.98); }
.btn--lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn--full { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--graphite-3); }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ivory); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: inherit; }
.btn--ghost:hover { border-color: currentColor; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn__label { display: inline-flex; align-items: center; gap: 0.55rem; }

.link-ul {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0; background: none; border: 0; cursor: pointer;
  font-weight: 600; color: inherit;
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1.5px;
  transition: color 0.2s ease;
}
.link-ul:hover { color: var(--blue); }
.link-ul:hover .arrow { transform: translate(2px, -2px); }
.link-ul:hover .arrow--down { transform: rotate(135deg) translate(2px, -2px); }
.section--dark .link-ul:hover { color: var(--blue-light); }

.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- Header ---------- */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 60;
  background: rgba(244, 242, 237, 0.94);
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header); }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo__mark {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 6px;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.04em;
}
.logo__word { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo--sm .logo__mark { width: 1.75rem; height: 1.75rem; font-size: 0.8rem; }
.logo--sm .logo__word { font-size: 1rem; }

.nav__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__list a:not(.btn) {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease;
}
.nav__list a:not(.btn):hover, .nav__list a.is-active { color: var(--ink); }
.nav__cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none; width: 2.5rem; height: 2.5rem; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header);
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border: 0; }
  .nav__list a:not(.btn) { display: block; padding: 0.95rem 0; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; overflow: clip; }
.hero__grid {
  display: grid; gap: 2.5rem; align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
.hero__copy h1 { margin: 0 0 1.5rem; }
.hero__copy h1 em { font-style: normal; color: var(--blue); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }

.hero__stage { position: relative; padding: 0.75rem 0 0 1rem; }
.hero__block { position: absolute; top: -0.5rem; right: calc(-1 * var(--gutter)); width: 58%; height: 72%; background: var(--blue); border-radius: 4px; }
.hero__caption { margin-top: 1rem; text-align: right; font-size: 0.8rem; color: var(--muted); }
.hero__caption b { color: var(--ink); }

.hero__strip {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 1.1rem 0; border-top: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
}
.hero__strip i { font-style: normal; color: var(--line-strong); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 1.08fr; gap: 3.5rem; }
  .hero__stage { aspect-ratio: 1.12; padding: 0; }
  .hero__block { top: -3%; right: -5%; width: 56%; height: 64%; }
  .hero__stage .device--laptop { position: absolute; right: 0; top: 7%; width: 82%; }
  .hero__stage .device--phone { position: absolute; left: 0; bottom: 9%; width: 25%; filter: drop-shadow(0 28px 34px rgba(21, 23, 27, 0.28)); }
  .hero__caption { position: absolute; right: 0; bottom: 0; margin: 0; }
}
@media (max-width: 959px) {
  .hero__stage .device--phone { display: none; }
}

/* ---------- Dispositivos (CSS puro) ---------- */
.device { margin: 0; position: relative; }
.device__screen { background: #fff; overflow: hidden; }

.device--laptop .device__screen {
  border: clamp(6px, 1.2vw, 12px) solid #1a1c20;
  border-bottom-width: clamp(8px, 1.6vw, 16px);
  border-radius: 14px 14px 6px 6px;
  box-shadow: 0 30px 60px rgba(21, 23, 27, 0.22);
}
.device--laptop .device__screen::before {
  content: ""; position: absolute; left: 50%; top: 2px; width: 5px; height: 5px; border-radius: 50%;
  background: #2f3239; transform: translateX(-50%); z-index: 2;
}
.device__base {
  position: relative;
  height: clamp(10px, 1.6vw, 16px);
  margin: 0 -3%;
  background: linear-gradient(#e3e3e7, #c9cace);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 40px rgba(21, 23, 27, 0.18);
}
.device__base::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 14%; height: 40%; background: #b5b6bb; border-radius: 0 0 6px 6px;
}

.device--tablet .device__screen {
  border: clamp(8px, 1.4vw, 14px) solid #1a1c20;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.device--phone .device__screen {
  border: clamp(6px, 0.9vw, 9px) solid #1a1c20;
  border-radius: clamp(22px, 3.2vw, 34px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}
.device--phone .device__screen::before {
  content: ""; position: absolute; left: 50%; top: 4%; transform: translateX(-50%);
  width: 34%; height: 5.5%; background: #1a1c20; border-radius: 999px; z-index: 2;
}

/* ---------- Simulación de la interfaz de SIPS ----------
   Todo se dibuja con CSS y escala con el ancho del contenedor (cqi),
   así el mockup se ve nítido en cualquier tamaño. */
.screen { position: relative; container-type: inline-size; overflow: hidden; background: #fff; }
.device--laptop .screen, .device--tablet .screen { aspect-ratio: 16 / 10; }
.device--tablet .screen { aspect-ratio: 4 / 3; }
.device--phone .screen { aspect-ratio: 9 / 19.2; }

.ui {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  font-size: 11px;
  font-size: 2.05cqi;
  font-family: var(--font-body);
  color: #1b1e24;
  background: #fff;
  line-height: 1.3;
  user-select: none;
}
.ui__side {
  width: 27%; flex: none;
  background: #f6f7fb; border-right: 1px solid #e7e9ef;
  padding: 1em 0.9em;
}
.ui__brand { display: flex; align-items: center; gap: 0.45em; font-family: var(--font-head); font-weight: 700; font-size: 1.15em; letter-spacing: -0.02em; }
.ui__brand i { width: 1.25em; height: 1.25em; border-radius: 0.3em; background: var(--blue); flex: none; }
.ui__side ul { list-style: none; margin-top: 1.1em; }
.ui__side li {
  display: flex; align-items: center; gap: 0.55em;
  padding: 0.5em 0.65em; margin-top: 0.15em;
  font-size: 0.8em; color: #5c6270; border-radius: 0.4em; white-space: nowrap; overflow: hidden;
}
.ui__side li::before { content: ""; width: 0.85em; height: 0.85em; border-radius: 0.22em; background: currentColor; opacity: 0.32; flex: none; }
.ui__side li.is-on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.ui__side li.is-on::before { opacity: 1; }
.ui__main { flex: 1; min-width: 0; padding: 1em 1.3em; }
.ui__top { display: flex; align-items: center; justify-content: flex-end; gap: 0.6em; margin-bottom: 1.1em; }
.ui__search {
  flex: 1; max-width: 38%; margin-right: auto;
  border: 1px solid #e3e5ea; border-radius: 0.4em; padding: 0.38em 0.65em;
  font-size: 0.75em; color: #9aa0aa; white-space: nowrap; overflow: hidden;
}
.ui__bell { width: 1.35em; height: 1.35em; border-radius: 50%; background: #eef0f4; }
.ui__avatar { width: 1.55em; height: 1.55em; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #7c95ff); }
.ui__h { font-family: var(--font-head); font-weight: 700; font-size: 1.35em; letter-spacing: -0.02em; line-height: 1.1; }
.ui__sub { font-size: 0.78em; color: #6b717c; margin-top: 0.2em; }
.ui__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7em; margin: 1em 0; }
.ui__stats div { border: 1px solid #e7e9ef; border-radius: 0.5em; padding: 0.7em 0.8em; min-width: 0; }
.ui__stats b { display: block; font-family: var(--font-head); font-size: 1.35em; font-weight: 700; letter-spacing: -0.02em; }
.ui__stats span { display: block; font-size: 0.68em; color: #6b717c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__table { border: 1px solid #e7e9ef; border-radius: 0.5em; overflow: hidden; }
.ui__row {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 0.7fr; gap: 0.6em; align-items: center;
  padding: 0.55em 0.8em; font-size: 0.75em; border-top: 1px solid #eef0f4;
}
.ui__row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__row--head { background: #f6f7fb; color: #6b717c; font-size: 0.64em; text-transform: uppercase; letter-spacing: 0.06em; border-top: 0; }
.pill {
  display: inline-block; justify-self: start;
  font-size: 0.85em; font-style: normal; font-weight: 600;
  padding: 0.2em 0.6em; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
}
.pill--ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill--wait { background: var(--wait-bg); color: var(--wait-fg); }
.pill--done { background: var(--blue-soft); color: var(--blue); }
.ui__tabs { display: flex; gap: 1.2em; font-size: 0.75em; color: #6b717c; border-bottom: 1px solid #e7e9ef; margin: 0.8em 0 1em; }
.ui__tabs span { padding: 0 0 0.55em; border-bottom: 2px solid transparent; white-space: nowrap; }
.ui__tabs .is-on { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.ui__btn {
  display: inline-block; margin-top: 1em;
  background: var(--blue); color: #fff;
  font-size: 0.75em; font-weight: 600; padding: 0.6em 1.05em; border-radius: 0.4em;
}
.ui__btn--full { display: block; text-align: center; }
.ui__form { display: grid; gap: 0.6em; margin-top: 1em; }
.ui__form div {
  display: flex; justify-content: space-between; gap: 1em;
  border: 1px solid #e7e9ef; border-radius: 0.5em; padding: 0.65em 0.8em; font-size: 0.78em;
}
.ui__form span { color: #6b717c; }
.ui__form b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__form--grid { grid-template-columns: 1fr 1fr; }
.ui__form--grid div { flex-direction: column; gap: 0.2em; }
.ui__cards { display: grid; gap: 0.6em; }
.ui__cards div {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1em;
  border: 1px solid #e7e9ef; border-radius: 0.5em; padding: 0.8em 0.9em; font-size: 0.78em;
}
.ui__cards b { font-weight: 600; }
.ui__cards span { color: #6b717c; font-size: 0.9em; }
.ui__cards i { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ui--phone { display: block; font-size: 4.9cqi; padding: 2.4em 1.1em 4.5em; }
.ui__ptop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3em; }
.ui--phone .ui__h { font-size: 1.4em; }
.ui__tiles { list-style: none; display: grid; gap: 0.7em; margin-top: 1.2em; }
.ui__tiles li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.8em; row-gap: 0.1em; align-items: center;
  border: 1px solid #e7e9ef; border-radius: 0.7em; padding: 0.8em;
}
.ui__tiles b { font-size: 0.85em; font-weight: 600; }
.ui__tiles span { font-size: 0.7em; color: #6b717c; }
.ico { grid-row: 1 / span 2; width: 2.1em; height: 2.1em; border-radius: 0.55em; background: var(--blue-soft); position: relative; }
.ico::before { content: ""; position: absolute; inset: 28%; border: 2px solid var(--blue); border-radius: 0.15em; }
.ico--eye::before { border-radius: 50%; inset: 30% 22%; }
.ico--flag::before { border-width: 2px 0 0 2px; border-radius: 0; inset: 26% 30% 26% 34%; }
.ico--heart::before { transform: rotate(45deg); border-radius: 0.15em 0.15em 0.5em 0.15em; }
.ui__tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  padding: 0.9em 0 1.6em; border-top: 1px solid #e7e9ef; background: #fff;
  font-size: 0.7em; color: #6b717c;
}
.ui__tabbar .is-on { color: var(--blue); font-weight: 600; }
.ui--phone .ui__form { margin-top: 1.4em; }
.ui--phone .ui__form div { font-size: 0.75em; }

.sim {
  position: absolute; inset: 0;
  display: flex; overflow: hidden;
  background: #f3f6fa; color: #1f2937;
  font-family: var(--font-body);
  font-size: 2.2cqi; line-height: 1.35;
  user-select: none; -webkit-user-select: none;
}

/* Barra lateral */
.sim__side {
  width: 23%; flex: none;
  display: flex; flex-direction: column;
  padding: 0.9em 0.6em;
  background: linear-gradient(180deg, #123a7a, #0c2450);
  color: #fff;
}
.sim__logo { display: flex; align-items: center; gap: 0.4em; padding: 0.15em 0.35em 1.1em; font-size: 0.82em; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.sim__logo i {
  width: 1.7em; height: 1.7em; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 34%, transparent 35%),
    conic-gradient(from 20deg, #3fb8e6, #f5c542, #e5484d, #3fa86b, #3fb8e6);
}
.sim__nav { list-style: none; display: grid; gap: 0.12em; }
.sim__nav li {
  display: flex; align-items: center; gap: 0.6em;
  padding: 0.55em 0.7em; border-radius: 0.4em;
  font-size: 0.76em; color: #c2d3ee; white-space: nowrap;
}
.sim__nav li::before {
  content: ""; width: 0.9em; height: 0.9em; flex: none;
  border: 1.5px solid currentColor; border-radius: 0.18em; opacity: 0.85;
}
.sim__nav .i-user::before, .sim__nav .i-eye::before { border-radius: 50%; }
.sim__nav .i-eye::before { height: 0.62em; }
.sim__nav .i-heart::before { border-radius: 0.18em 50% 0.18em 50%; }
.sim__nav .i-dash::before { border-radius: 50% 50% 0.18em 0.18em; border-bottom-style: none; }
.sim__nav li.is-on { background: #1668e3; color: #fff; font-weight: 600; }
.sim__user {
  margin-top: auto; display: grid; grid-template-columns: auto 1fr;
  column-gap: 0.5em; align-items: center;
  padding-top: 0.8em; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.sim__user b { font-size: 0.72em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim__user span { grid-column: 2; font-size: 0.62em; color: #9fb6da; }
.sim__av {
  display: grid; place-items: center; flex: none;
  width: 2.4em; height: 2.4em; border-radius: 50%;
  background: #1668e3; color: #fff;
  font-size: 0.62em; font-weight: 700; font-style: normal; letter-spacing: 0.02em;
}
.sim__av--lg { width: 3.4em; height: 3.4em; font-size: 0.85em; background: #1e63cf; }
.sim__user .sim__av { grid-row: 1 / span 2; }

/* Zona principal */
.sim__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sim__top {
  display: flex; align-items: center; gap: 0.6em;
  padding: 0.5em 0.9em; background: #fff; border-bottom: 1px solid #e8ebf0;
  font-size: 0.68em; color: #6b7280; white-space: nowrap;
}
.sim__burger { width: 0.9em; height: 0.7em; flex: none; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.sim__burger::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; border-top: 1.5px solid currentColor; }
.sim__top .sim__spacer { margin-left: auto; }
.sim__bell { width: 1em; height: 1em; flex: none; border: 1.5px solid currentColor; border-radius: 50% 50% 0.2em 0.2em; opacity: 0.7; }
.sim__me { display: grid; line-height: 1.2; }
.sim__me b { font-size: 0.95em; color: #1f2937; font-weight: 600; }
.sim__me span { font-size: 0.82em; color: #9aa3af; }

.sim__scroll { flex: 1; min-height: 0; display: grid; align-content: start; gap: 0.85em; padding: 0.9em; }
.sim__crumb { font-size: 0.6em; letter-spacing: 0.06em; color: #98a2b3; text-transform: uppercase; }
.sim__crumb b { color: #1668e3; font-weight: 600; }
.sim__title { font-family: var(--font-head); font-size: 1.3em; font-weight: 700; letter-spacing: -0.02em; }
.sim__note { font-size: 0.66em; color: #7b8494; margin-top: 0.15em; }

/* Banner de bienvenida */
.sim__hero {
  position: relative; overflow: hidden;
  padding: 0.95em 1.1em; border-radius: 0.5em;
  background: linear-gradient(100deg, #123a7d 15%, #2a6fd0);
  color: #fff;
}
.sim__hero::after { content: ""; position: absolute; right: -3%; top: -55%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.sim__hero .sim__date { display: block; font-size: 0.62em; opacity: 0.8; }
.sim__hero b { display: block; font-family: var(--font-head); font-size: 1.25em; font-weight: 700; letter-spacing: -0.02em; margin: 0.15em 0 0.2em; }
.sim__hero .sim__sub { font-size: 0.64em; opacity: 0.82; }
.sim__badge {
  position: absolute; right: 1.1em; top: 50%; transform: translateY(-50%);
  font-size: 0.6em; font-style: normal; padding: 0.35em 0.8em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Tarjetas */
.sim__card { background: #fff; border-radius: 0.5em; padding: 0.95em 1.1em; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.07); }
.sim__idrow { display: grid; grid-template-columns: auto 1fr; gap: 0.8em; align-items: center; }
.sim__name { font-family: var(--font-head); font-size: 1.05em; font-weight: 700; letter-spacing: -0.01em; }
.sim__tags { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.3em; font-size: 0.6em; }
.sim__tags i { font-style: normal; padding: 0.2em 0.55em; border-radius: 0.3em; background: #eef3fa; color: #41577d; white-space: nowrap; }
.sim__tags .is-teal { background: none; color: #0e9384; padding-left: 0; }
.sim__tags .is-green { background: none; color: #3f9142; padding-left: 0; }
.sim__years { display: inline-block; margin-top: 0.45em; font-size: 0.6em; color: #1668e3; }

.sim__tabs { display: flex; gap: 1.3em; margin: 0.9em 0 0; border-bottom: 1px solid #eceff3; font-size: 0.68em; color: #6b7280; }
.sim__tabs span { padding-bottom: 0.5em; border-bottom: 2px solid transparent; white-space: nowrap; }
.sim__tabs .is-on { color: #1668e3; border-color: #1668e3; font-weight: 600; }
.sim__tabs em { font-style: normal; margin-left: 0.35em; padding: 0 0.35em; border-radius: 0.25em; background: #eef3fa; color: #41577d; }

.sim__rows { display: grid; margin: 0; font-size: 0.66em; }
.sim__rows > div { display: grid; grid-template-columns: 38% 1fr; border-bottom: 1px solid #f1f3f6; }
.sim__rows dt { padding: 0.5em 0.8em; background: #fafbfd; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim__rows dd { margin: 0; padding: 0.5em 0.8em; font-weight: 500; }
.sim__rows code { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 0.95em; padding: 0.1em 0.4em; border-radius: 0.25em; background: #f2f4f7; }
.sim__dot { color: #3f9142; }

.sim__grid3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7em; }
.sim__grid3 > div { background: #fff; border-radius: 0.5em; padding: 0.75em 0.85em; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.07); }
.sim__grid3 span { display: block; font-size: 0.56em; letter-spacing: 0.06em; text-transform: uppercase; color: #98a2b3; }
.sim__grid3 b { display: block; font-family: var(--font-head); font-size: 1.2em; font-weight: 700; }
.sim__grid3 .is-dark { background: #0f2f66; color: #fff; }
.sim__grid3 .is-dark span { color: #a9c0e4; }

.sim__field { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6em; align-items: center; font-size: 0.66em; }
.sim__input { border: 1px solid #d7dce4; border-radius: 0.3em; padding: 0.45em 0.7em; background: #fff; color: #9aa3af; }
.sim__btn { display: inline-block; padding: 0.5em 0.9em; border-radius: 0.3em; background: #1668e3; color: #fff; font-size: 0.66em; font-weight: 600; white-space: nowrap; }
.sim__btn--ghost { background: #fff; color: #4b5563; border: 1px solid #d7dce4; }
.sim__btn--block { display: block; text-align: center; }
.sim__btnrow { display: flex; justify-content: flex-end; gap: 0.5em; margin-top: 0.9em; }

/* Modal (solicitud de lentes) */
.sim__veil { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.sim__modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62%; max-height: 88%; overflow: hidden;
  background: #fff; border-radius: 0.6em; padding: 0.9em 1em;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  font-size: 1em;
}
.sim__modal-head { display: grid; grid-template-columns: auto 1fr; gap: 0.6em; align-items: center; }
.sim__modal-head b { font-size: 0.8em; font-weight: 700; }
.sim__modal-head span { grid-column: 2; font-size: 0.6em; color: #7b8494; }
.sim__modal-head .sim__av { background: #eef3fa; color: #1668e3; }
.sim__steps { display: flex; align-items: center; gap: 0.5em; margin: 0.8em 0; font-size: 0.58em; color: #98a2b3; }
.sim__steps i { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #eceff3; color: #6b7280; font-style: normal; flex: none; }
.sim__steps .is-on { color: #1668e3; font-weight: 600; }
.sim__steps .is-on i { background: #1668e3; color: #fff; }
.sim__info { border-radius: 0.4em; padding: 0.6em 0.75em; margin-bottom: 0.5em; font-size: 0.6em; }
.sim__info b { display: block; font-size: 1.05em; }
.sim__info--soft { background: #eef3fa; color: #41577d; }
.sim__info--tint { background: #e8f1fd; color: #1e4a86; }
.sim__pick { display: grid; grid-template-columns: auto 1fr; gap: 0.7em; align-items: center; border: 1px solid #e3e7ee; border-radius: 0.4em; padding: 0.6em 0.75em; margin-bottom: 0.4em; font-size: 0.62em; }
.sim__pick b { font-weight: 600; }
.sim__pick span { grid-column: 2; color: #7b8494; font-size: 0.9em; }
.sim__pick i { grid-row: 1 / span 2; width: 2em; height: 2em; border-radius: 0.35em; background: #eef3fa; }
.sim__pick.is-on { border-color: #1668e3; background: #f6f9ff; }
.sim__pick.is-on i { background: #1668e3; }

/* ----- Versión celular ----- */
.sim--phone { display: block; padding: 0; background: #f2f5f9; font-size: 4.6cqi; }
.sim__status { display: flex; justify-content: space-between; align-items: center; padding: 0.5em 0.8em; background: #123a7a; color: #fff; font-size: 0.62em; }
.sim__status::after { content: ""; width: 3.4em; height: 0.8em; border-radius: 0.2em; background: rgba(255, 255, 255, 0.55); }
.sim__mtop { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.8em; background: #fff; }
.sim__mtop .sim__logo { padding: 0; font-size: 0.62em; color: #12306b; }
.sim__mtop .sim__av { margin-left: auto; }
.sim__mscroll { display: grid; gap: 0.7em; padding: 0.7em; align-content: start; }
.sim__mhero { position: relative; overflow: hidden; border-radius: 0.6em; padding: 0.8em; background: linear-gradient(120deg, #123a7d, #2560b4); color: #fff; }
.sim__mhero::after { content: ""; position: absolute; right: -12%; top: -40%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.sim__mhero .sim__date { font-size: 0.62em; opacity: 0.85; }
.sim__mid { display: grid; grid-template-columns: auto 1fr; gap: 0.6em; align-items: center; margin-top: 0.6em; }
.sim__mid b { font-size: 0.72em; font-weight: 700; }
.sim__mid span { grid-column: 2; display: flex; gap: 0.4em; align-items: center; font-size: 0.58em; margin-top: 0.2em; }
.sim__mid span i { font-style: normal; padding: 0.15em 0.5em; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.sim__m3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; text-align: center; }
.sim__m3 > div { background: #fff; border-radius: 0.5em; padding: 0.6em 0.3em; }
.sim__m3 b { display: block; font-family: var(--font-head); font-size: 1.1em; color: #1668e3; font-weight: 700; }
.sim__m3 span { font-size: 0.5em; letter-spacing: 0.05em; text-transform: uppercase; color: #98a2b3; }
.sim__mcard { background: #fff; border-radius: 0.5em; padding: 0.75em; }
.sim__mcard-h { display: flex; align-items: center; gap: 0.45em; font-size: 0.66em; font-weight: 600; }
.sim__mcard-h em { margin-left: auto; font-style: normal; color: #1668e3; font-weight: 600; }
.sim__mcard-h i { width: 1.6em; height: 1.6em; border-radius: 0.35em; background: #eef3fa; flex: none; }
.sim__mrow { margin-top: 0.6em; font-size: 0.6em; }
.sim__mrow span { display: block; font-size: 0.85em; letter-spacing: 0.05em; text-transform: uppercase; color: #98a2b3; }
.sim__mrow b { font-weight: 600; }
.sim__mrow--pair { display: grid; grid-template-columns: 1fr 1fr; }
.sim__h6 { font-size: 0.66em; font-weight: 600; margin-top: 0.2em; }
.sim__quick { list-style: none; display: grid; gap: 0.45em; }
.sim__quick li { display: flex; align-items: center; gap: 0.6em; background: #fff; border-radius: 0.5em; padding: 0.65em 0.7em; font-size: 0.62em; font-weight: 500; }
.sim__quick i { width: 1.9em; height: 1.9em; border-radius: 0.4em; background: #e8f1fd; flex: none; }
.sim__quick .is-green { background: #e6f6ea; }
.sim__quick .is-violet { background: #f0eafd; }
.sim__quick li::after { content: "›"; margin-left: auto; color: #b6bdc9; }
.sim__navbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; height: 5%; background: #0b0d10; }
.sim__navbar i { width: 0.55em; height: 0.55em; border: 1.5px solid #cfd3d9; font-style: normal; }
.sim__navbar i:first-child { border-width: 0; border-left: 1.5px solid #cfd3d9; box-shadow: 0.22em 0 #cfd3d9, -0.22em 0 #cfd3d9; height: 0.5em; }
.sim__navbar i:nth-child(2) { border-radius: 50%; }
.sim__navbar i:last-child { border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }

/* Formulario en celular */
.sim__mform { display: grid; gap: 0.55em; }
.sim__mform label { display: grid; gap: 0.2em; font-size: 0.58em; }
.sim__mform label span::before { content: "* "; color: #d92d20; }
.sim__mform .sim__input { font-size: 1em; }
.sim__file { display: flex; align-items: center; gap: 0.4em; border: 1px solid #d7dce4; border-radius: 0.3em; padding: 0.45em 0.7em; font-size: 0.9em; color: #4b5563; justify-self: start; }
.sim__hint { font-size: 0.52em; color: #98a2b3; }

/* Menú lateral en celular */
.sim__drawer { position: absolute; inset: 0; display: flex; }
.sim__drawer .sim__side { width: 78%; background: linear-gradient(180deg, #123a7a, #0e2f63); }
.sim__drawer .sim__logo { justify-content: center; padding: 1.6em 0 1.4em; font-size: 0.78em; }
.sim__drawer .sim__nav li { font-size: 0.68em; padding: 0.7em 0.8em; }
.sim__dim { flex: 1; background: rgba(10, 26, 55, 0.55); }

/* ----- Baja Essence (catálogo) ----- */
.sim--essence { background: #fafafa; color: #2a2a2a; font-family: "Times New Roman", "Playfair Display", serif; }
.sim--essence .sim__body { background: #fff; }
.sim--essence .sim__top {
  justify-content: space-between; padding: 0.7em 1em;
  border-bottom: 1px solid #eee; font-size: 0.58em; letter-spacing: 0.22em;
  font-family: var(--font-body); font-weight: 600;
}
.sim--essence .sim__brand { letter-spacing: 0.28em; font-size: 1.15em; }
.sim--essence .sim__scroll { grid-template-columns: 22% 1fr; gap: 0.9em; padding: 0.8em; }
.sim--essence .sim__filters { font-family: var(--font-body); font-size: 0.58em; color: #555; }
.sim--essence .sim__filters b { display: block; letter-spacing: 0.12em; margin: 0.7em 0 0.35em; font-size: 0.92em; }
.sim--essence .sim__filters span { display: block; padding: 0.18em 0; color: #777; }
.sim--essence .sim__shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55em; align-content: start; }
.sim--essence .sim__prod { background: #fff; border: 1px solid #f0f0f0; padding: 0.55em 0.45em 0.65em; text-align: center; }
.sim--essence .sim__bottle {
  width: 38%; aspect-ratio: 1 / 2.1; margin: 0.2em auto 0.5em;
  background: linear-gradient(180deg, #d8c4a4, #8b6b3d 55%, #2b2418);
  border-radius: 0.15em 0.15em 0.35em 0.35em;
  position: relative;
}
.sim--essence .sim__bottle::before {
  content: ""; position: absolute; left: 50%; top: -18%; transform: translateX(-50%);
  width: 28%; height: 22%; background: #1a1a1a; border-radius: 0.1em;
}
.sim--essence .sim__prod b { display: block; font-size: 0.58em; font-weight: 600; letter-spacing: 0.04em; }
.sim--essence .sim__prod span { display: block; font-family: var(--font-body); font-size: 0.5em; color: #888; margin-top: 0.2em; }
.sim--essence.sim--phone { font-size: 4.6cqi; background: #fff; }
.sim--essence .sim__mtop { justify-content: space-between; border-bottom: 1px solid #eee; }
.sim--essence .sim__logo { font-family: var(--font-body); letter-spacing: 0.2em; font-size: 0.58em; font-weight: 700; color: #1a1a1a; padding: 0; }
.sim--essence .sim__logo i { display: none; }
.sim--essence .sim__tabs { margin: 0; padding: 0 0.6em; gap: 1.4em; font-family: var(--font-body); }
.sim--essence .sim__mscroll { gap: 0.55em; }
.sim--essence .sim__mprod { display: grid; grid-template-columns: auto 1fr; gap: 0.7em; align-items: center; border: 1px solid #f0f0f0; padding: 0.55em; }
.sim--essence .sim__mprod .sim__bottle { width: 2.2em; margin: 0; }
.sim--essence .sim__mprod b { font-size: 0.62em; }
.sim--essence .sim__mprod span { font-family: var(--font-body); font-size: 0.52em; color: #888; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: 0; }
.section--soft { background: var(--ivory-2); }
.section--dark { background: var(--graphite); color: var(--ivory); }
.section--dark .eyebrow { color: var(--muted-dark); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue .eyebrow { color: rgba(255, 255, 255, 0.78); }

.section__head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section__note { margin-top: 1rem; font-size: 0.78rem; color: var(--muted-dark); text-align: right; }

/* ---------- Proyectos ---------- */
.cases { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .cases { grid-template-columns: 1fr 1fr; }
}

.case {
  display: flex; flex-direction: column;
  background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  overflow: hidden;
}
.case__visual {
  display: block; position: relative; overflow: hidden;
  height: 0; padding-bottom: 62.5%;
  background: #111; text-decoration: none;
}
@supports (aspect-ratio: 16 / 10) {
  .case__visual { height: auto; padding-bottom: 0; aspect-ratio: 16 / 10; }
}
.case__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.case__visual--shot { background: #fff; }
.case__visual--shot img { object-fit: cover; object-position: top center; }
a.case__visual:hover img { transform: scale(1.03); }
a.case__visual--shot:hover img { transform: none; }

.case--wide { grid-row: auto; }
.case__visual--devices {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(27, 75, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #2a2e35, #1a1c21);
}
.case__visual--devices .device--tablet {
  position: absolute;
  left: 6%;
  top: 50%;
  width: 70%;
  transform: translateY(-50%);
}
.case__visual--devices .device--phone {
  position: absolute;
  right: 6%;
  bottom: 7%;
  top: auto;
  width: 22%;
  z-index: 2;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45));
}

.case__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; padding: 1.25rem 1.5rem 1.5rem; }
.case__meta > div:first-child { max-width: 34em; }
.case__tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 0.5rem; }
.case h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 0.4rem; }
.case__meta p:not(.case__tag) { color: #cfd3da; font-size: 0.95rem; }
.case__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.case__toggle {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted-dark); font-size: 0.9rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 0.3em;
  transition: color 0.2s ease;
}
.case__toggle:hover, .case__toggle[aria-expanded="true"] { color: #fff; }

.case__detail {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem;
  padding: 1.5rem; border-top: 1px solid var(--line-dark); background: var(--graphite);
  animation: fadeUp 0.35s ease both;
}
.case__detail h4 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 0.45rem; }
.case__detail p { font-size: 0.93rem; color: #cfd3da; }
.case__detail a { color: #fff; text-underline-offset: 0.2em; }
@media (max-width: 599px) { .case__detail { grid-template-columns: 1fr; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Más proyectos */
.more { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line-dark); padding-top: 2rem; }
.more__title { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); }
.mini { display: grid; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line-dark); align-items: center; }
.mini:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 800px) { .mini { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.mini__visual {
  display: block; position: relative;
  height: 0; padding-bottom: 62.5%;
  border-radius: 8px; overflow: hidden; background: #000;
}
@supports (aspect-ratio: 16 / 10) {
  .mini__visual { height: auto; padding-bottom: 0; aspect-ratio: 16 / 10; }
}
.mini__visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.mini__visual:hover img { transform: scale(1.03); }
.mini h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.mini__meta p:not(.case__tag) { color: #cfd3da; font-size: 0.95rem; }
.mini__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; padding-top: 1rem; border-top: 1px solid var(--line-dark); }
.mini__facts dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 0.25rem; }
.mini__facts dd { margin: 0; font-size: 0.93rem; }

/* Galería — width/height explícitos: Safari no estira un img solo con inset: 0 */
.gallery__stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.gallery__stage img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: top center;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
  transition: opacity 0.35s ease;
}
.gallery__stage img.is-on { opacity: 1; visibility: visible; z-index: 1; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0;
  background: rgba(21, 23, 27, 0.72); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  touch-action: manipulation;
  transition: background 0.2s ease;
}
.gallery__nav:hover { background: var(--blue); }
.gallery__nav--prev { left: 0.75rem; }
.gallery__nav--next { right: 0.75rem; }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.5rem 0.9rem 0.65rem; font-size: 0.75rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
[data-gallery] { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }

/* ---------- Soluciones ---------- */
.services { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { padding: 2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) {
  .service { padding: 2.25rem 2rem 2.25rem 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .service + .service { padding-left: 2rem; }
  .service:last-child { border-right: 0; padding-right: 0; }
}
.service__index { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; color: var(--blue); margin-bottom: 1.25rem; }
.service h3 { font-size: 1.45rem; }
.service__tag { font-size: 1.05rem; font-weight: 600; margin: 0.3rem 0 1rem; }
.service > p:not(.service__index):not(.service__tag) { color: var(--muted); font-size: 0.95rem; }
.service__examples { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.25rem; }
.service__examples li { font-size: 0.78rem; font-weight: 500; padding: 0.35rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.services__foot { margin-top: 2.25rem; font-size: 1.05rem; }
.services__foot a { color: var(--blue); text-underline-offset: 0.25em; font-weight: 600; }

/* ---------- Proceso ---------- */
.process { display: grid; gap: 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process .eyebrow { margin: 0; }
.steps { list-style: none; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; align-items: baseline; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps__n { grid-row: 1 / span 2; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; color: var(--blue); }
.steps b { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: -0.01em; }
.steps li > span:last-child { font-size: 0.88rem; color: var(--muted); }
@media (min-width: 900px) {
  .process { grid-template-columns: auto 1fr; gap: 3rem; align-items: center; }
  .steps { display: flex; justify-content: space-between; gap: 1.5rem; }
  .steps li { position: relative; flex: 1; padding: 0 2.25rem 0 0; border: 0; }
  .steps li:last-child { padding-right: 0; }
  .steps li:not(:last-child)::after { content: "→"; position: absolute; right: 0.75rem; top: 0; color: var(--blue); font-weight: 600; }
}

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 800px) { .about { grid-template-columns: minmax(220px, 320px) 1fr; gap: 3.5rem; } }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; max-width: 320px; border-radius: var(--r-lg); overflow: hidden;
  background: #111;
}
.about__photo img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
}
.about__photo.is-missing img { display: none; }
.about__photo:not(.is-missing) .about__initials { display: none; }
.about__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 4.5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--ivory);
}
.about__copy h2 { margin-bottom: 1.25rem; }
.about__copy .lede { margin-bottom: 1rem; }
.about__copy > p:not(.eyebrow):not(.lede) { color: var(--muted); max-width: 38em; }
.about__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about__facts b { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.about__facts span { font-size: 0.85rem; color: var(--muted); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.85rem 1.35rem; margin-top: 1.5rem; }
.social a { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; text-underline-offset: 0.25em; }
.social a:hover { color: var(--blue); }
.social svg { flex: none; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.contact__copy h2 { margin-bottom: 1.25rem; max-width: 14em; }
.contact__copy > p { font-size: 1.1rem; margin-bottom: 1.75rem; color: rgba(255, 255, 255, 0.9); }
.contact__alt { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; font-size: 0.95rem; }
.contact__alt a { color: #fff; text-underline-offset: 0.25em; opacity: 0.9; }
.contact__alt a:hover { opacity: 1; }

.form { display: grid; gap: 1rem; padding: 1.75rem; background: #fff; color: var(--ink); border-radius: var(--r-lg); }
.form__title { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.form__row { display: grid; gap: 0.4rem; }
.form label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff;
}
.form textarea { resize: vertical; min-height: 6rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form__status { min-height: 1.2em; font-size: 0.85rem; color: var(--muted); }
.form__status.is-ok { color: var(--ok-fg); }
.form__status.is-err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.footer__links { display: flex; gap: 1.25rem; align-items: center; }
.footer__links a, .footer__links .linkish { color: var(--ink); text-underline-offset: 0.25em; }

/* Barra fija de WhatsApp (celular) */
.dock {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem; border-radius: 10px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 30px rgba(27, 75, 255, 0.35);
}
.dock:hover .arrow { transform: translate(2px, -2px); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Recorrido SIPS ---------- */
.tour {
  border: 0; padding: 0; margin: auto;
  width: min(1080px, 100vw - 2rem); max-height: calc(100vh - 2rem);
  background: var(--ivory); color: var(--ink); border-radius: 14px;
  overflow: auto; -webkit-overflow-scrolling: touch;
}
.tour::backdrop { background: rgba(21, 23, 27, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tour__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.75rem 0; }
.tour__head .eyebrow { margin-bottom: 0.5rem; }
.tour__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tour__close {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.tour__close:hover { background: var(--ink); color: #fff; }
.tour__tabs { display: flex; gap: 0.25rem; padding: 1.25rem 1.75rem 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tour__tabs::-webkit-scrollbar { display: none; }
.tour__tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 0.6rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer;
  transition: color 0.2s ease;
}
.tour__tabs button:hover { color: var(--ink); }
.tour__tabs button[aria-selected="true"] { color: var(--blue); border-color: var(--blue); }
.tour__panel { display: grid; gap: 1.75rem; padding: 1.75rem; align-items: center; animation: fadeIn 0.3s ease both; }
@media (min-width: 800px) { .tour__panel { grid-template-columns: 1.45fr 1fr; gap: 2.5rem; } }
.tour__screen { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(21, 23, 27, 0.12); }
.tour__screen > .sim { font-size: 1.85cqi; }
.tour__screen--phone { aspect-ratio: auto; border: 0; background: none; box-shadow: none; display: flex; justify-content: center; gap: 1.25rem; padding: 0.5rem 0; }
.tour__screen--phone .device--phone { width: min(210px, 55%); flex: none; }
.tour__screen--pair .device--phone { width: min(190px, 44%); }
.tour__screen--pair .device--phone:last-child { margin-top: 2rem; }
.tour__text h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.tour__text p { color: var(--muted); }
.tour__text .tour__who { margin-top: 1rem; font-size: 0.9rem; color: var(--ink); }
.tour__foot { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0 1.75rem 1.75rem; }
.tour__foot .link-ul { margin-left: auto; }
@media (max-width: 719px) {
  .tour { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .tour__head, .tour__tabs, .tour__panel, .tour__foot { padding-left: var(--gutter); padding-right: var(--gutter); }
  .tour__foot .link-ul { margin-left: 0; width: 100%; }
}

/* ---------- Lightbox ----------
   No poner display:grid en dialog[open]: Safari iOS deja de pintar el modal. */
.lightbox { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100vw; max-height: 100vh; background: #000; color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.93); }
.lightbox__inner {
  position: relative;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
  width: 100%;
  min-height: 100vh; min-height: 100dvh;
  box-sizing: border-box;
}
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; max-width: 92vw; object-fit: contain; border-radius: 6px; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 1.5rem; text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; padding: 0.6rem 1rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: rgba(0, 0, 0, 0.4); color: #fff; cursor: pointer; touch-action: manipulation; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 3rem; height: 3rem; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
  touch-action: manipulation;
}
.lightbox__nav:hover { background: var(--blue); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.modal-veil {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 79; background: rgba(0, 0, 0, 0.72);
}
dialog.is-fallback {
  position: fixed; z-index: 80;
  display: block;
}
.lightbox.is-fallback {
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0;
}
.tour.is-fallback {
  left: 50%; top: 50%;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  margin: 0;
}
.sheet.is-fallback {
  left: 50%; top: 50%;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  margin: 0;
}
html.has-modal, html.has-modal body { overflow: hidden; }

/* ---------- Cookies ---------- */
.cookie {
  position: fixed; z-index: 60;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(5.1rem + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.7rem 1rem;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  background: var(--graphite); color: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 16px 40px rgba(21, 23, 27, 0.28);
  pointer-events: auto;
}
html.cookies-ok .cookie { display: none; }
.cookie p { margin: 0; font-size: 0.85rem; line-height: 1.4; color: rgba(255, 255, 255, 0.86); }
.cookie p b { color: #fff; font-weight: 600; }
.cookie__actions { display: flex; align-items: center; gap: 0.65rem; flex: none; }
.cookie .linkish { color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; font-size: 0.85rem; }
.cookie .btn { padding: 0.55rem 0.95rem; }
.cookie__x {
  width: 2rem; height: 2rem; flex: none;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.cookie__x:hover { background: rgba(255, 255, 255, 0.22); }
@media (min-width: 900px) {
  .cookie { left: auto; right: 1.25rem; bottom: 1.25rem; width: min(32rem, calc(100vw - 2.5rem)); }
}

/* ---------- Privacidad ---------- */
.sheet { border: 0; border-radius: var(--r-lg); padding: 2rem; max-width: 30rem; background: var(--ivory); color: var(--ink); }
.sheet::backdrop { background: rgba(21, 23, 27, 0.6); }
.sheet h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.sheet p { color: var(--muted); margin-bottom: 0.75rem; }
.sheet a { color: var(--blue); }
.sheet .btn { margin-top: 1rem; }

/* ---------- Animación de entrada: solo proyectos, solo escritorio ---------- */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .case, .js .mini { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .js .case.is-in, .js .mini.is-in { opacity: 1; transform: none; }
}
