/* CAMESUP CONNECT
   Concepto: pantalla navy con el "campo de visión" de un laparoscopio (anillo graduado y retícula),
   seguida de secciones blancas con botones grandes. Un solo gesto gráfico; el resto es sobrio. */

:root {
  /* Color */
  --navy: #0A2342;
  --navy-deep: #061830;
  --navy-soft: #16345F;
  --red: #D50F2A;
  --red-deep: #B50C23;
  --white: #FFFFFF;
  --paper: #F2F5FA;
  --line: #D8DFEB;
  --ink: #0A2342;
  --muted: #4F5F79;
  --ok: #0F7A4B;
  --warn: #B3261E;

  /* Tipografía */
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Forma */
  --r: 12px;
  --tap: 60px;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--navy); /* cubre las zonas seguras de arriba (hero) y abajo (pie) */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid #5AA2FF; outline-offset: 3px; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Etiquetas y títulos ---------- */
.label {
  margin: 0 0 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.label--light { color: #FF8C9B; }

h1, h2 {
  font-family: var(--f-display);
  margin: 0;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(28px, 6.4vw, 38px); font-weight: 700; }

/* ---------- Botones ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--tap);
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font: 600 17px/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn .ic--end { margin-left: auto; transition: transform .2s ease; }
.btn:hover .ic--end { transform: translateX(4px); }

.btn--wa, .btn--red { background: var(--red); color: var(--white); box-shadow: 0 8px 22px -10px rgba(213, 15, 42, .8); }
.btn--wa:hover, .btn--red:hover { background: var(--red-deep); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: #E8EEF8; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .38); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  background: var(--paper); color: var(--navy);
  border: 1.5px solid var(--line); border-radius: 999px;
  font: 600 14.5px/1 var(--f-body); cursor: pointer;
}
.chip .ic { width: 18px; height: 18px; }
.chip:hover { border-color: var(--navy); }
.chip--onnavy { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .38); }
.chip--onnavy:hover { border-color: var(--white); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-weight: 600; color: var(--red-deep); text-decoration: none;
}
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.textlink .ic { width: 18px; height: 18px; }

/* ---------- Pantalla principal ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(120% 70% at 85% 0%, var(--navy-soft) 0%, rgba(22, 52, 95, 0) 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.scope {
  position: absolute;
  width: min(135vw, 820px);
  aspect-ratio: 1;
  right: -52%;
  top: -6%;
  opacity: .5;
  pointer-events: none;
}
.scope__ring { transform-origin: 0 0; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner {
  position: relative;
  display: flex; flex-direction: column; gap: 34px;
  padding-block: 28px 40px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__tile {
  display: grid; place-items: center;
  padding: 12px 18px; flex: none;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
}
.brand__tile img { width: 168px; height: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__text strong { font-family: var(--f-display); font-size: 20px; letter-spacing: .02em; }
.brand__text span { font-size: 14px; color: rgba(255, 255, 255, .72); }

.hero__copy { max-width: 36rem; padding-top: 6px; }
.hero h1 { font-size: clamp(34px, 9.8vw, 64px); font-weight: 800; letter-spacing: -.03em; }
.signature {
  margin: 20px 0 0; padding-left: 14px;
  border-left: 3px solid var(--red);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 5vw, 24px); line-height: 1.25;
  color: var(--white); max-width: 26rem; text-wrap: balance;
}
.lead { margin: 18px 0 0; font-size: 17px; color: rgba(255, 255, 255, .78); max-width: 32rem; }
.where {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 0;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.where .ic { width: 18px; height: 18px; color: #FF8C9B; }

.quick { display: grid; grid-template-columns: 1fr; gap: 12px; }
.quick .btn--wa { min-height: 68px; font-size: 18px; }
.quick__row { display: grid; grid-template-columns: 1fr var(--tap); gap: 12px; }
.btn--icon { padding: 0; }
.btn--icon .ic { width: 24px; height: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Secciones ---------- */
.band { padding-block: 52px; }
.band--paper { background: var(--paper); }

.duo { display: grid; grid-template-columns: 1fr; gap: 18px; }

.panel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-width: 0;
  padding: 26px 22px 24px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
}
.panel p { margin: 0; color: var(--muted); }
.panel h2 { margin: 0; }
.panel .btn { width: 100%; }
.panel .label { margin: 0; }

.panel--feature {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  position: relative; overflow: hidden;
}
.panel--feature p { color: rgba(255, 255, 255, .8); }
.panel--feature .label { color: #FF8C9B; }
.panel__head { display: flex; flex-direction: column; gap: 10px; padding-right: 96px; min-height: 96px; }
.doc { /* portada del catálogo */
  position: absolute; right: 20px; top: 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 76px; aspect-ratio: 3 / 4; padding: 9px 8px;
  background: var(--white); color: var(--navy);
  border-radius: 4px 8px 8px 4px;
  border-left: 5px solid var(--red);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .65);
  transform: rotate(3deg);
}
.doc img { width: 52px; height: auto; }
.doc__t { font-family: var(--f-display); font-weight: 700; font-size: 10px; line-height: 1.1; }
.doc__bar { width: 24px; height: 2px; background: var(--red); }
.doc__f { margin-top: auto; font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; color: var(--muted); }

.notice {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r);
}
.notice p { color: var(--white); }
.panel--feature .textlink { color: #FFB3BD; }

/* Lista de catálogos PDF dentro del panel destacado */
.catlist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; width: 100%; }
.cat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r);
}
.panel--feature .cat__t { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--white); }
.panel--feature .cat__m { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #FFB3BD; }
.panel--feature .cat__d { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.cat__acts { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.cat .btn { width: 100%; min-height: 50px; padding: 10px 14px; font-size: 15px; gap: 9px; }
.cat .btn .ic { width: 19px; height: 19px; }
@media (min-width: 760px) {
  .cat-intro { padding-right: 92px; }
}
@media (min-width: 480px) {
  .cat__acts { grid-template-columns: 1fr 1fr; }
}

.quote {
  margin: 0; width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 4px solid var(--red);
  border-radius: 4px var(--r) var(--r) 4px;
  font-size: 16.5px; color: var(--navy);
}

.numrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; }
.num { font-family: var(--f-mono); font-size: 16px; letter-spacing: .02em; color: var(--navy); user-select: all; }

.panel--slot { border-style: dashed; background: transparent; position: relative; }
.slot-mark {
  position: absolute; right: 20px; top: 22px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px dashed var(--line); border-radius: 50%; color: var(--muted);
}
.slot-mark .ic { width: 18px; height: 18px; }

/* ---------- Formulario ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 28px; }
.split__intro { display: flex; flex-direction: column; gap: 14px; max-width: 30rem; }
.split__intro p { margin: 0; color: var(--muted); }
.split__intro .label { margin: 0; }
.fine { font-size: 14.5px; }

.form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-weight: 600; font-size: 15.5px; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }

.field input, .field select {
  width: 100%; min-height: 56px;
  padding: 12px 14px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid #AEB9CC; border-radius: var(--r);
  font: 400 17px/1.3 var(--f-body); /* 16px o más evita el zoom automático en iPhone */
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230A2342' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder { color: #7A8799; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(10, 35, 66, .15); }
.field.has-error input, .field.has-error select { border-color: var(--warn); }
.err { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--warn); }

.result {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
}
.result p { margin: 0; color: var(--navy); }

/* ---------- Pie ---------- */
.foot { background: var(--navy); color: var(--white); padding-block: 40px 110px; }
.foot__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.foot p { margin: 0; }
.foot__name { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.foot__sub { color: rgba(255, 255, 255, .72); font-size: 15px; margin-top: 2px !important; }
.foot__slogan { margin-top: 14px !important; font-family: var(--f-display); font-size: 18px; color: #FFB3BD; }
.foot__copy { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 0 22px 0 18px;
  background: var(--red); color: var(--white);
  border-radius: 999px;
  font: 600 16px/1 var(--f-body); text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(10, 35, 66, .7), 0 0 0 4px rgba(255, 255, 255, .9);
  transition: transform .15s ease, background-color .15s ease;
}
.fab { transition: transform .2s ease, opacity .2s ease, background-color .15s ease, visibility 0s; }
.fab.is-away { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
.fab:hover { background: var(--red-deep); }
.fab:active { transform: scale(.97); }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 50; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-size: 15px; font-weight: 500; text-align: center;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
}

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  padding: env(safe-area-inset-top, 0px) 0 0;
  background: rgba(6, 24, 48, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.topbar.is-on { transform: none; visibility: visible; transition: transform .25s ease; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; max-width: 1080px; margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.topbar__brand { display: flex; align-items: center; gap: 10px; color: var(--white); min-width: 0; }
.topbar__brand strong { font-family: var(--f-display); letter-spacing: .03em; }
.topbar__tile { display: grid; place-items: center; height: 34px; padding: 0 7px; background: var(--white); border-radius: 9px; flex: none; }
.topbar__tile img { width: 52px; height: auto; display: block; }
.topbar__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: #FF8C9B; }
.topbar__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--red); color: var(--white); border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.topbar__cta:hover { background: var(--red-deep); }

/* ---------- Rutas por perfil ---------- */
.band--tight { padding-block: 44px 40px; }
.band--tight h2 { margin-top: 0; }
.paths { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.path {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 100%; min-height: 96px; padding: 18px 18px 16px;
  background: var(--white); color: var(--navy); text-align: left;
  border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.path:hover { border-color: var(--navy); box-shadow: 0 12px 24px -16px rgba(10, 35, 66, .6); }
.path:active { transform: scale(.99); }
.path__t { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; }
.path__d { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.path__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: var(--red-deep); }
.path__go .ic { width: 18px; height: 18px; transition: transform .2s ease; }
.path:hover .path__go .ic { transform: translateX(4px); }

/* ---------- Perfil en el formulario ---------- */
.profile { margin: 0; padding: 0; border: 0; min-width: 0; }
.profile legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 15.5px; color: var(--navy); }
.profile__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { position: relative; }
.opt-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  border: 1.5px solid #AEB9CC; border-radius: 999px; background: var(--white);
  font-weight: 500; font-size: 15.5px; color: var(--navy);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.opt-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.opt-chip input:focus-visible + span { outline: 3px solid #5AA2FF; outline-offset: 3px; }

.msg {
  margin: 0; padding: 12px 14px; max-height: 220px; overflow: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  font: 400 14px/1.5 var(--f-mono); color: var(--navy); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ---------- Ficha corporativa ---------- */
.ficha { margin: 0; display: grid; gap: 0; min-width: 0; border-top: 2px solid var(--navy); }
.ficha > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ficha dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ficha dd { margin: 0; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.ficha a { color: var(--red-deep); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Pantallas anchas ---------- */
@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero__inner { padding-block: 32px 56px; gap: 34px; }
  .hero h1 { font-size: 58px; }
  .scope { right: -8%; top: -14%; width: 760px; opacity: .9; }
  .brand__tile { padding: 14px 22px; }
  .brand__tile img { width: 210px; }
  .quick { grid-template-columns: 1.15fr 1.15fr 1fr var(--tap); max-width: 880px; }
  .quick .btn--wa { font-size: 17px; min-height: var(--tap); }
  .quick__row { display: contents; }
  .paths { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .path { min-height: 190px; padding: 22px; }
  .ficha > div { grid-template-columns: 200px 1fr; gap: 24px; }
  .panel__head { min-height: 0; }
  .doc { width: 92px; right: 28px; top: 28px; }
  .doc__t { font-size: 12px; }
  .scope__tool { opacity: .9; }
  .duo { grid-template-columns: 1fr 1fr; gap: 22px; }
  .panel { padding: 32px 30px 30px; }
  .band { padding-block: 76px; }
  .split { grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
  .split__intro { position: sticky; top: 24px; }
  .foot__inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .foot__copy { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scope__ring { animation: none; }
  .btn, .fab, .btn .ic--end { transition: none; }
}

