:root {
  --bg: #fafafa;
  --paper: #f4f6f7;
  --ink: #003338;
  --muted: #6e6a63;
  --faint: #a8a39a;
  --orange: #f3422d;
  --orange-soft: rgba(35,34,31,.1);
  --dark: #001e21;
  --dark-line: rgba(255,255,255,.1);
  --hair: rgba(18,18,18,.12);
  --hair-soft: rgba(18,18,18,.07);
  --max: 1360px;
  --edge: clamp(16px,4vw,48px);
  --glass-surface: rgba(250,250,250,.8);
  --glass-filter: blur(18px) saturate(145%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.5 Archivo,Arial,sans-serif;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

h1,h2,h3,p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none!important;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(100%,var(--max));
  padding-inline: var(--edge);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 8px;
  top: -100px;
  z-index: 300;
  background: var(--ink);
  color: white;
  padding: 10px;
}

.skip-link:focus {
  top: 8px;
}

.eyebrow {
  color: var(--orange);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,h2,h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  overflow-wrap: normal;
}

h1 em,h2 em {
  font: italic 400 1em/1.05 'Source Serif 4',Georgia,serif;
  color: var(--orange);
  letter-spacing: -.055em;
}

.section {
  padding: clamp(64px,7vw,102px) 0;
  border-top: 1px solid var(--hair);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr);
  gap: clamp(32px,5vw,80px);
  align-items: end;
  margin-bottom: clamp(32px,4vw,52px);
}

.section-heading h2 {
  font-size: clamp(2.3rem,3.8vw,4.15rem);
  margin-top: 16px;
  max-width: 18ch;
  text-wrap: balance;
}

.section-heading>p {
  color: var(--muted);
  font-size: clamp(.95rem,1.1vw,1.08rem);
  line-height: 1.65;
  max-width: 43ch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 20px;
  border: 1px solid transparent;
  font-size: .91rem;
  font-weight: 800;
  min-height: 52px;
  text-align: left;
  transition: background .2s,color .2s,border-color .2s;
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-dark:hover {
  background: var(--orange);
}

.button-orange {
  background: var(--orange);
  color: white;
}

.button-orange:hover {
  background: var(--ink);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--hair);
}

.button-light:hover,.button-outline:hover {
  background: var(--ink);
  color: white;
}

.button-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.text-link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--orange);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--glass-surface);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 8px 28px rgba(0,30,33,.045);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: -.04em;
}

.brand-image-placeholder {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  background: transparent center / contain no-repeat;
}

.brand-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: none;
  display: block;
}

.brand-dot,.footer strong span {
  color: var(--orange);
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.desktop-nav a {
  display: flex;
  align-items: center;
  padding-inline: clamp(10px,1.3vw,22px);
  border-left: 1px solid var(--hair);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a:hover {
  background: var(--paper);
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-block: 12px;
  border: 1px solid var(--ink);
  padding: 0 14px;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--ink);
  color: white;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: grid;
  background: var(--bg);
  border-top: 1px solid var(--hair);
}

.mobile-nav a {
  padding: 16px var(--edge);
  font-weight: 800;
  border-bottom: 1px solid var(--hair);
}

.hero {
  scroll-margin-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr);
  min-height: 0;
  padding-top: clamp(64px,6vw,94px);
  padding-bottom: clamp(64px,6vw,94px);
  gap: clamp(32px,5vw,80px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.85rem,3.55vw,3.75rem);
  margin: 24px 0 22px;
  max-width: 17ch;
  text-wrap: balance;
}

#vender-mejor {
  background-color: var(--orange);
  color: var(--bg);
}

.hero-lead {
  max-width: 55ch;
  font-size: clamp(1rem,1.4vw,1.2rem);
  color: var(--muted);
  line-height: 1.65;
}

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 30px;
}

.hero-location {
  font-size: .72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .11em;
  margin-top: 55px;
}

.hero-panel {
  border: 1px solid var(--ink);
  align-self: center;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
  background: var(--paper);
  min-width: 0;
  width: 100%;
}

.panel-top,.panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-size: .69rem;
  letter-spacing: .08em;
  font-weight: 800;
}

.panel-top {
  background: var(--ink);
  color: white;
}

.panel-foot {
  border-top: 1px solid var(--hair);
  color: var(--muted);
}

.diagnostic {
  padding: clamp(22px,3vw,44px);
}

.diagnostic-step h2 {
  font-size: clamp(1.65rem,2.35vw,2.35rem);
  margin: 12px 0 24px;
  text-wrap: balance;
}

.diagnostic-kicker {
  font-size: .83rem;
  font-weight: 700;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.choice {
  border: 0;
  background: var(--bg);
  min-height: 76px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  text-align: left;
  font-size: .9rem;
  font-weight: 800;
}

.choice span {
  grid-column: 1/-1;
  color: var(--orange);
  font-size: .73rem;
}

.choice b {
  font-size: 1.1rem;
}

.choice-wide {
  grid-column: 1/-1;
  min-height: 64px;
}

.choice:hover,.choice:focus-visible {
  background: var(--ink);
  color: white;
}

.step-back,.restart-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 20px;
}

.restart-link {
  margin: 22px 0 0;
}

.diagnostic-result>p:not(.diagnostic-kicker) {
  line-height: 1.7;
  color: var(--muted);
  font-size: 1.05rem;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.result-actions .button {
  width: 100%;
}

.value-strip {
  background: var(--ink);
  color: white;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.strip-grid span {
  padding: 23px 14px 23px 0;
  border-right: 1px solid var(--dark-line);
  font-size: .76rem;
  color: var(--orange);
  font-weight: 800;
}

.strip-grid span:not(:first-child) {
  padding-left: 20px;
}

.strip-grid span:last-child {
  border-right: 0;
}

.strip-grid strong {
  color: white;
  font-size: .85rem;
  margin-left: 10px;
}

.system-grid {
  border: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.system-grid article {
  min-height: 315px;
  padding: 28px 22px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}

.system-grid article:last-child {
  border: 0;
}

.system-grid article>span {
  color: var(--orange);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.system-grid h3 {
  font-size: clamp(1.25rem,1.65vw,1.65rem);
  margin: 28px 0 14px;
}

.system-grid p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
}

.system-grid a,.system-grid button {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
  text-align: left;
  margin-top: auto;
  font-size: .83rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.system-grid a:hover,.system-grid button:hover {
  color: var(--orange);
}

.showcase-section {
  background: var(--dark);
  color: white;
  border: 0;
}

.showcase-section h2 em {
  color: var(--orange);
}

.compare-layout {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(270px,.8fr);
  border: 1px solid var(--hair);
}

.compare-main {
  min-width: 0;
}

.compare-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.compare-tab {
  border: 0;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--bg);
  padding: 16px 6px;
  font-size: .83rem;
  font-weight: 800;
}

.compare-tab:last-child {
  border-right: 0;
}

.compare-tab[aria-selected=true],.compare-tab:hover {
  background: var(--ink);
  color: white;
}

.compare-frame {
  height: clamp(360px,40vw,565px);
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--paper);
}

.compare-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.compare-before {
  clip-path: inset(0 50% 0 0);
}

.compare-label {
  position: absolute;
  top: 16px;
  z-index: 3;
  background: var(--ink);
  color: white;
  padding: 7px 10px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.compare-label-before {
  left: 16px;
}

.compare-label-after {
  right: 16px;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.compare-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: white;
  box-shadow: 0 0 6px #001e21;
}

.compare-handle span {
  position: relative;
  background: white;
  border: 1px solid var(--ink);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}

.compare-info {
  padding: clamp(24px,3vw,45px);
  border-left: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: start;
}

.compare-info h3 {
  font-size: clamp(2rem,3vw,3.2rem);
  margin: 20px 0;
}

.compare-info>p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.compare-divider {
  width: 100%;
  border-top: 1px solid var(--hair);
  margin: auto 0 28px;
}

.compare-question {
  font-weight: 800!important;
  color: var(--ink)!important;
  margin-bottom: 16px;
}

.compare-info .button {
  width: 100%;
}

.compare-info .text-link {
  margin-top: 20px;
  font-size: .87rem;
}

.compare-info small {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 30px;
}

.solutions-section {
  background: var(--paper);
}

.solution-rows {
  border-top: 1px solid var(--hair);
}

.solution-rows>div {
  display: grid;
  grid-template-columns: 60px minmax(200px,1fr) minmax(250px,1fr) 100px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
}

.solution-rows span {
  color: var(--orange);
  font-weight: 900;
}

.solution-rows h3 {
  font-size: clamp(1.25rem,1.65vw,1.6rem);
  max-width: 20ch;
}

.solution-rows p {
  color: var(--muted);
}

.solution-rows button {
  background: none;
  border: 1px solid var(--ink);
  padding: 12px;
  font-size: .85rem;
  font-weight: 800;
}

.solution-rows button:hover {
  background: var(--ink);
  color: white;
}

/* Proceso */
.process-grid {
  display: grid;
  border: 1px solid var(--hair);
}

.process-step {
  display: grid;
  grid-template-columns: minmax(140px, .55fr) minmax(200px, 1fr) minmax(220px, 1.1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--hair);
}

.process-step:last-child {
  border-bottom: 0;
}

.process-step span {
  color: var(--orange);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.process-step h3 {
  min-width: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  line-height: 1.2;
  text-wrap: balance;
}

.process-step p {
  min-width: 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.6;
}

.contact-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 50px;
  align-items: end;
}

.contact-grid h2 {
  font-size: clamp(2.4rem,3.7vw,4rem);
  margin: 15px 0 22px;
  text-wrap: balance;
}

.contact-grid p:not(.eyebrow) {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.09rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-actions>span {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 12px;
}

.footer {
  background: var(--dark);
  color: white;
  padding: 55px 0 22px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer strong {
  font-size: 1.6rem;
  letter-spacing: -.06em;
}

.footer p {
  color: rgba(255,255,255,.7);
  max-width: 32ch;
  margin-top: 14px;
}

.footer-top>div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .87rem;
}

.footer a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.7);
  font-size: .76rem;
  padding-top: 18px;
}

.assistant-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 82;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 14px 18px;
  font-size: .83rem;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0,30,33,.18);
}

.assistant-launcher:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.assistant-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,30,33,.53);
}

.assistant-dialog {
  position: fixed;
  z-index: 91;
  right: 20px;
  bottom: 20px;
  width: min(430px,calc(100vw - 40px));
  max-height: min(680px,calc(100dvh - 40px));
  background: var(--bg);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,30,33,.33);
}

.assistant-header {
  background: var(--ink);
  color: white;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.assistant-header span {
  font-size: .65rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
}

.assistant-header h2 {
  font-size: 1.1rem;
  margin-top: 3px;
}

.assistant-header button {
  border: 1px solid rgba(255,255,255,.4);
  background: none;
  color: white;
  width: 36px;
  height: 36px;
}

.assistant-body {
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  line-height: 1.55;
}

.assistant-message {
  align-self: flex-start;
  max-width: 92%;
  border: 1px solid var(--hair);
  background: var(--paper);
  padding: 11px 13px;
  font-size: .87rem;
  white-space: pre-line;
}

.assistant-message.user {
  align-self: flex-end;
  background: var(--ink);
  color: white;
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--hair);
  max-height: 210px;
  overflow-y: auto;
}

.assistant-actions button,.assistant-actions a {
  border: 1px solid var(--ink);
  background: white;
  color: var(--ink);
  font-size: .79rem;
  font-weight: 800;
  padding: 9px 11px;
  text-align: left;
}

.assistant-actions button:hover,.assistant-actions a:hover {
  background: var(--ink);
  color: white;
}

.assistant-form {
  border-top: 1px solid var(--hair);
  padding: 17px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assistant-form h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.assistant-form>label:not(.consent) {
  font-size: .76rem;
  font-weight: 800;
}

.assistant-form>input,.assistant-form>textarea {
  border: 1px solid var(--hair);
  background: white;
  padding: 10px;
  min-height: 42px;
  min-width: 0;
  width: 100%;
  color: var(--ink);
  border-radius: 0;
}

.assistant-form>textarea {
  resize: vertical;
  min-height: 84px;
}

.assistant-form>p:first-of-type {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.assistant-form .consent {
  font-size: .74rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  margin: 8px 0;
}

.consent input {
  margin-top: 3px;
}

.consent a {
  text-decoration: underline;
}

.form-hint {
  font-size: .71rem;
  color: var(--muted);
  line-height: 1.4;
}

@media(max-width:1180px) {
  .desktop-nav,.header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .system-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .system-grid article:nth-child(2) {
    border-right: 0;
  }
  .system-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--hair);
  }
}

@media(max-width:850px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 45px;
  }
  .hero-copy h1 {
    max-width: 720px;
  }
  .hero-panel {
    min-height: 0;
  }
  .section-heading {
    grid-template-columns: 1fr;
  }
  .section-heading>p {
    max-width: 65ch;
  }
  .compare-layout {
    grid-template-columns: 1fr;
  }
  .compare-info {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .compare-divider {
    margin: 28px 0;
  }
  .solution-rows>div {
    grid-template-columns: 42px 1fr auto;
  }
  .solution-rows p {
    grid-column: 2/-1;
    grid-row: 2;
  }
  .solution-rows button {
    grid-column: 3;
    grid-row: 1;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-actions {
    max-width: 420px;
  }
}

@media(max-width:600px) {
  html {
    scroll-padding-top: 69px;
  }
  .header-inner {
    min-height: 64px;
  }
  .hero-grid {
    padding-top: 55px;
  }
  .hero-copy h1 {
    font-size: clamp(2.45rem,8.3vw,3.25rem);
    margin: 21px 0;
  }
  .hero-location {
    margin-top: 35px;
  }
  .hero-links .button {
    width: 100%;
  }
  .hero-panel {
    min-height: 0;
  }
  .panel-top,.panel-foot {
    padding: 14px;
    font-size: .59rem;
  }
  .diagnostic {
    padding: 23px 16px;
  }
  .choice {
    font-size: .82rem;
    min-height: 68px;
  }
  .strip-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .strip-grid span {
    border-bottom: 1px solid var(--dark-line);
    padding: 16px!important;
  }
  .strip-grid span:nth-child(2) {
    border-right: 0;
  }
  .strip-grid span:nth-child(n+3) {
    border-bottom: 0;
  }
  .strip-grid strong {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
  .section-heading h2 {
    font-size: clamp(2.1rem,8.5vw,3rem);
  }
  .system-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--hair)!important;
    min-height: 260px;
  }
  .system-grid article:last-child {
    border-bottom: 0!important;
  }
  .compare-tabs {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .compare-tab:nth-child(2) {
    border-right: 0;
  }
  .compare-frame {
    height: clamp(315px,85vw,500px);
  }
  .solution-rows>div {
    grid-template-columns: 35px 1fr;
    gap: 10px;
  }
  .solution-rows p {
    grid-column: 2;
  }
  .solution-rows button {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 38px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .assistant-dialog {
    inset: 0;
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
  }
  .assistant-launcher {
    right: 14px;
    bottom: 14px;
  }
  .assistant-actions {
    max-height: 27dvh;
  }
}

@media(max-width:360px) {
  .brand {
    font-size: .8rem;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .choice-wide {
    grid-column: auto;
  }
  .compare-tab {
    font-size: .73rem;
  }
  .hero-copy h1 {
    font-size: 2.8rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .launcher-icon,.launcher-icon::after {
    animation: none!important;
  }
  *,*::before,*::after {
    transition-duration: .01ms!important;
    animation-duration: .01ms!important;
  }
}

.hero-copy h1,.section-heading h2,.contact-grid h2 {
  overflow-wrap: break-word;
}

.solution-rows>div {
  grid-template-columns: 52px minmax(0,1fr) minmax(220px,.95fr) 100px;
}

.system-grid article {
  min-height: 280px;
}


/* Asistente IA */
.assistant-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
  padding: 8px 14px 8px 8px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  color: var(--ink);
  border-color: rgba(0,51,56,.22);
  text-align: left;
  box-shadow: 0 14px 34px rgba(0,30,33,.16);
}

.assistant-launcher:hover {
  background: rgba(0,51,56,.88);
  color: white;
  border-color: rgba(0,51,56,.88);
}

.launcher-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  background: var(--orange);
  color: white;
  font-size: 1.3rem;
  transform-origin: center;
  animation: stella-bling 6s ease-in-out infinite;
}

.launcher-icon::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.12) 44%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.12) 56%, transparent 62%);
  transform: translateX(-145%) rotate(8deg);
  animation: stella-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes stella-bling {
  0%, 4%, 12%, 20%, 28%, 33.333%, 100% {
    transform: scale(1) rotate(0deg);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  7%, 15%, 23%, 31% {
    transform: scale(1.09) rotate(-2deg);
    text-shadow: 0 0 7px rgba(255,255,255,.9), 0 0 15px rgba(255,255,255,.45);
  }
}

@keyframes stella-shine {
  0% { transform: translateX(-145%) rotate(8deg); opacity: 0; }
  5% { opacity: 1; }
  18% { transform: translateX(145%) rotate(8deg); opacity: .9; }
  24% { opacity: 0; }
  33.333%, 100% { transform: translateX(145%) rotate(8deg); opacity: 0; }
}

.launcher-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  gap: 3px;
}

.launcher-copy strong {
  font-size: .83rem;
}

.launcher-copy small {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
}

.assistant-launcher:hover .launcher-copy small {
  color: white;
}

.assistant-dialog {
  width: min(450px,calc(100vw - 40px));
  max-height: min(710px,calc(100dvh - 40px));
  border: 1px solid var(--ink);
}

.assistant-header {
  position: relative;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 3px solid var(--orange);
}

.assistant-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  background: var(--orange);
  color: white!important;
  font-size: 1.4rem!important;
  letter-spacing: 0!important;
}

.assistant-heading {
  flex: 1;
  min-width: 0;
}

.assistant-heading>span {
  display: block;
  font-size: .58rem!important;
  font-weight: 800;
  letter-spacing: .12em!important;
  color: rgba(255,255,255,.7)!important;
}

.assistant-heading h2 {
  font-size: 1.12rem;
  margin-top: 2px;
  letter-spacing: -.02em;
}

.assistant-heading h2 span {
  font-size: .9rem;
  letter-spacing: 0;
  font-weight: 500;
  color: white;
}

.assistant-heading p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .71rem;
  color: rgba(255,255,255,.78);
  margin-top: 4px;
}

.assistant-heading i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.assistant-header>button {
  flex: none;
}

.assistant-body {
  background: var(--paper);
  gap: 14px;
  min-height: 150px;
}

.assistant-welcome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 19px 18px;
  background: var(--ink);
  color: white;
  border-left: 4px solid var(--orange);
}

.assistant-welcome span {
  color: var(--orange);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.assistant-welcome strong {
  font-size: 1.1rem;
  line-height: 1.25;
  max-width: 25ch;
}

.assistant-message {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--orange);
  padding: 12px 15px;
  max-width: 92%;
  font-size: .85rem;
  line-height: 1.6;
  box-shadow: 0 4px 14px rgba(0,30,33,.04);
}

.assistant-message.user {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: white;
  max-width: 84%;
  box-shadow: none;
}

/* Confirmación de Stella */
.assistant-summary {
  align-self: stretch;
  min-width: 0;
  border: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: 5px 5px 0 rgba(0,51,56,.12);
}

.assistant-summary h3 {
  margin: 0;
  padding: 14px 16px;
  background: var(--ink);
  color: white;
  font-size: .95rem;
  line-height: 1.3;
}

.assistant-summary dl {
  margin: 0;
}

.assistant-summary dl>div {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hair);
}

.assistant-summary dt {
  grid-column: 1;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.assistant-summary dd {
  grid-column: 1;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.35;
}

.assistant-summary button {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 8px 0 8px 8px;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}

.assistant-summary button:hover,
.assistant-summary button:focus-visible {
  text-decoration: underline;
}

.assistant-summary>p {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.5;
}

.assistant-actions {
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  max-height: 230px;
}

.assistant-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 47px;
  padding: 9px 24px 9px 11px!important;
  border-color: var(--hair)!important;
  background: var(--paper)!important;
  color: var(--ink)!important;
  line-height: 1.3;
}

.assistant-choice::after {
  content: '↗';
  position: absolute;
  right: 10px;
  color: var(--orange);
  font-size: .93rem;
}

.assistant-choice:hover,.assistant-choice:focus-visible {
  background: var(--ink)!important;
  color: white!important;
  border-color: var(--ink)!important;
}

.assistant-choice:hover::after {
  color: var(--orange);
}

.assistant-choice:nth-last-child(1):nth-child(odd) {
  grid-column: 1/-1;
}

.assistant-form {
  background: var(--bg);
}

@media(max-width:1180px) {
  .solution-rows>div {
    grid-template-columns: 42px minmax(0,1fr) minmax(190px,.9fr) 100px;
  }
}

@media(max-width:850px) {
  .solution-rows>div {
    grid-template-columns: 42px minmax(0,1fr) auto;
  }
  .solution-rows p {
    grid-column: 2/-1;
    grid-row: 2;
  }
  .solution-rows button {
    grid-column: 3;
    grid-row: 1;
  }
}

@media(max-width:600px) {
  .hero-copy h1 {
    max-width: 14ch;
  }
  .section-heading h2 {
    max-width: 18ch;
  }
  .solution-rows>div {
    grid-template-columns: 35px minmax(0,1fr);
  }
  .solution-rows p {
    grid-column: 2;
  }
  .solution-rows button {
    grid-column: 2;
    grid-row: 3;
  }
  .assistant-dialog {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
  }
  .assistant-launcher {
    min-width: 0;
    right: 14px;
    bottom: 14px;
  }
  .assistant-actions {
    max-height: 30dvh;
  }
}

@media(max-width:375px) {
  .assistant-actions {
    grid-template-columns: 1fr;
  }
  .assistant-choice:nth-last-child(1):nth-child(odd) {
    grid-column: auto;
  }
}


/* Menú */
body.menu-open {
  overflow: hidden;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-overlay-inner {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.menu-overlay-top,.menu-overlay-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.menu-overlay-top {
  min-height: 82px;
  border-bottom: 1px solid var(--hair);
}

.menu-overline {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--orange);
}

.menu-close {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--ink);
  padding: 11px 14px;
  background: transparent;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 800;
}

.menu-close:hover {
  background: var(--ink);
  color: white;
}

.menu-close span {
  font-size: 1.1rem;
}

.menu-overlay-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.88fr);
  gap: clamp(28px,6vw,90px);
  align-items: center;
  flex: 1;
  padding-block: clamp(32px,5vw,65px);
}

.menu-overlay-copy h2 {
  font-size: clamp(2.8rem,5vw,5rem);
  margin: 16px 0 34px;
  line-height: 1.06;
}

.menu-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair);
}

.menu-links a {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--hair);
  padding: 13px 2px;
  font-size: clamp(1.1rem,1.6vw,1.48rem);
  font-weight: 800;
}

.menu-links a span {
  font-size: .69rem;
  letter-spacing: .1em;
  color: var(--orange);
}

.menu-links a b {
  font-size: 1.1rem;
  color: var(--orange);
}

.menu-links a:hover {
  color: var(--orange);
  padding-left: 10px;
}

.menu-primary-cta {
  margin-top: 28px;
  min-width: min(100%,310px);
}

.menu-feature-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--ink);
  overflow: hidden;
  border: 1px solid var(--hair);
}

.menu-feature-image svg {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-feature p {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--orange);
  margin-top: 14px;
}

.menu-feature>span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 4px;
}

.menu-overlay-bottom {
  border-top: 1px solid var(--hair);
  padding: 19px 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.menu-overlay-bottom a:hover {
  color: var(--orange);
}


/* Portafolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border: 1px solid var(--hair);
}

.portfolio-card {
  min-width: 0;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}

.portfolio-card:last-child {
  border-right: 0;
}

.portfolio-media {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px,2vw,28px);
  position: relative;
  overflow: hidden;
}

.portfolio-media::after {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  right: -18%;
  top: 10%;
  border: 1px solid currentColor;
  opacity: .18;
  transform: rotate(25deg);
  pointer-events: none;
}

.portfolio-media-one {
  background: var(--ink);
  background-image: url('img/ha.webp');
  background-position: center;
  background-size: cover;
  color: white;
}

.portfolio-media-two {
  background: var(--paper);
  background-image: url('img/hb.webp');
  background-position: center;
  background-size: cover;
  color: var(--ink);
}

.portfolio-media-three {
  background: var(--orange);
  background-image: url('img/hc.webp');
  background-position: center;
  background-size: cover;
  color: white;
}

.portfolio-media span,.portfolio-media small {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.portfolio-media strong {
  font-size: clamp(1.55rem,2.1vw,2.35rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
  padding: 24px;
}

.portfolio-content p {
  color: var(--orange);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.portfolio-content h3 {
  font-size: 1.4rem;
  margin: 11px 0;
}

.portfolio-content>span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.portfolio-content button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 800;
  padding: 0;
  text-align: left;
  margin-top: auto;
  padding-top: 22px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.portfolio-content button:hover {
  color: var(--orange);
}


/* FotoEstudio */
.compare-assistant-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font-size: .86rem;
  text-align: left;
  cursor: pointer;
}

.compare-assistant-link:hover {
  color: var(--orange);
}


/* Asistente IA */
.assistant-reset {
  font-size: 1.2rem;
}

.assistant-choice--primary {
  background: var(--orange)!important;
  color: white!important;
  border-color: var(--orange)!important;
  grid-column: 1/-1;
  justify-content: flex-start;
}

.assistant-choice--primary::after {
  color: white;
}

.assistant-choice--primary:hover {
  background: var(--ink)!important;
  border-color: var(--ink)!important;
}

@media(max-width:1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .portfolio-card:nth-child(2) {
    border-right: 0;
  }
  .portfolio-card:last-child {
    border-top: 1px solid var(--hair);
  }
}

@media(max-width:850px) {
  .menu-overlay-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .menu-overlay-copy h2 {
    font-size: clamp(2.7rem,7vw,4rem);
    margin-bottom: 22px;
  }
  .menu-feature {
    max-width: 620px;
  }
}

@media(max-width:600px) {
  .menu-overlay-top {
    min-height: 66px;
  }
  .menu-overlay-grid {
    padding-block: 30px;
  }
  .menu-links a {
    padding-block: 11px;
    font-size: 1.1rem;
  }
  .menu-feature {
    width: 100%;
  }
  .menu-overlay-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-card {
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }
  .portfolio-card:last-child {
    border-bottom: 0;
    border-top: 0;
  }
  .portfolio-content {
    min-height: 205px;
  }
}

@media(max-width:850px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-step h3 {
    max-width: 28ch;
  }
}

@media(max-width:600px) {
  .process-step {
    padding: 24px 22px;
  }

  .process-step h3 {
    font-size: 1.3rem;
  }
}

/* Carrusel visual */
.visual-carousel {
  margin-bottom: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--hair);
}

.carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.carousel-head p {
  color: var(--orange);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.carousel-arrows {
  display: flex;
  gap: 7px;
}

.carousel-arrows button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
}

.carousel-arrows button:hover {
  background: var(--ink);
  color: white;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}

.carousel-slide {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  margin: 0;
  border: 1px solid var(--hair);
  background: var(--paper);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #c7d5d1;
}

.carousel-slide figcaption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 90px;
  padding: 15px 17px;
}

.carousel-slide figcaption span {
  color: var(--orange);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.carousel-slide figcaption strong {
  color: var(--ink);
  font-size: clamp(.93rem, 1.2vw, 1.13rem);
  line-height: 1.25;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 0;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
}

.carousel-dots button[aria-current="true"],.carousel-dots button:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* Sistema en acción */
.showcase-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.showcase-message h2 {
  max-width: 18ch;
  margin: 20px 0 25px;
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  line-height: 1.1;
  text-wrap: balance;
}

.showcase-message>p:not(.eyebrow) {
  max-width: 48ch;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button-dark-outline {
  border-color: rgba(255, 255, 255, .7);
  background: transparent;
  color: white;
}

.button-dark-outline:hover {
  background: white;
  color: var(--dark);
}

.showcase-sequence {
  border-top: 1px solid var(--dark-line);
}

.showcase-sequence>div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 22px 0;
  border-bottom: 1px solid var(--dark-line);
}

.showcase-sequence span {
  color: var(--orange);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.showcase-sequence strong {
  font-size: clamp(1.08rem, 1.65vw, 1.55rem);
  line-height: 1.2;
}

/* Animación al desplazarse */
.has-reveal .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width:850px) {
  .carousel-slide {
    flex-basis: calc((100% - 16px) / 2);
  }

  .showcase-story {
    grid-template-columns: 1fr;
  }
}

@media(max-width:600px) {
  .carousel-slide {
    flex-basis: 82%;
  }

  .carousel-head p {
    max-width: 24ch;
    font-size: .63rem;
  }

  .carousel-arrows button {
    width: 38px;
    height: 38px;
  }

  .carousel-slide figcaption {
    min-height: 84px;
  }

  .showcase-message h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .showcase-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-sequence>div {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .carousel-track {
    transition: none;
  }

  .has-reveal .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
