/* ==========================================================
   Servisofts × Sofía — Propuesta
   Paleta: rojo Sofía + blanco, con el damero del backdrop
   ========================================================== */

:root {
  --red: #e30613;
  --red-deep: #b8000c;
  --red-ink: #7a0008;
  --white: #ffffff;
  --paper: #fbf8f6;
  --ink: #1d1415;
  --muted: #6d6264;
  --line: #eadfdd;
  --radius: 22px;
  --pill: 999px;
  --max: 1200px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --check: 72px;
}

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

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

html { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Damero (patrón del backdrop) ---------- */
.checker {
  background:
    conic-gradient(var(--red) 25%, var(--white) 0 50%, var(--red) 0 75%, var(--white) 0)
    0 0 / var(--check) var(--check);
}
.checker--drift { animation: drift 18s linear infinite; }
@keyframes drift { to { background-position: var(--check) var(--check); } }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(122, 0, 8, .35); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand img { width: 64px; height: auto; margin: -8px 0; }
.nav__brand small {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  line-height: 1.25;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav__links > li { position: relative; }
.nav__links a,
.nav__links button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font: 500 14px/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.nav__links a:hover,
.nav__links button:hover { color: var(--red); }
.nav__links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav__cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 12px 20px !important;
  box-shadow: 0 10px 24px -12px var(--red);
}
.nav__cta:hover { background: var(--red-deep) !important; }
.nav__cta svg { transition: transform .3s var(--ease); }
.has-menu.is-open .nav__cta svg { transform: rotate(180deg); }

/* Menú desplegable de cotizaciones */
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 340px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(122, 0, 8, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.has-menu.is-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu__head {
  padding: 10px 12px 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.menu a {
  display: grid !important;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  line-height: 1.3 !important;
}
.menu a:hover { background: var(--paper); color: var(--ink) !important; }
.menu a b { display: block; font-weight: 600; font-size: 14px; }
.menu a span { font-size: 12px; color: var(--muted); }
.menu__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: italic 600 16px var(--display);
  color: var(--white);
  background: var(--red);
}
.menu__all {
  display: flex !important;
  justify-content: center;
  margin-top: 6px;
  color: var(--red) !important;
  font-weight: 600 !important;
  border-top: 1px solid var(--line);
  border-radius: 0 !important;
  padding-top: 14px !important;
}
.menu__all:hover { background: none !important; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font: 600 15px/1 var(--sans);
  letter-spacing: .01em;
  border-radius: var(--pill);
  text-decoration: none;
  border: 2px solid var(--red);
  transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 16px 30px -16px var(--red); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.btn--ghost { color: var(--red); background: var(--white); }
.btn--ghost:hover { background: var(--red); color: var(--white); }
.btn--white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  background:
    conic-gradient(var(--red) 25%, transparent 0 50%, var(--red) 0 75%, transparent 0) 0 0 / 7px 7px;
  outline: 1px solid var(--red);
}

.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0;
}
.display em { font-style: italic; color: var(--red); font-weight: 500; }

.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 58ch; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  padding-top: 76px;
  overflow: hidden;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 60px clamp(20px, 6vw, 90px);
}
.hero__title { font-size: clamp(44px, 6.4vw, 96px); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero__meta b { display: block; color: var(--ink); font-size: 15px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art {
  position: relative;
  background:
    radial-gradient(circle at 60% 50%, rgba(227, 6, 19, .07), transparent 60%),
    var(--paper);
}
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0) 22%);
  pointer-events: none;
}
.hero__oval {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 480px);
  aspect-ratio: 1.6;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 30px 70px -30px rgba(29, 20, 21, .3), 0 0 0 1px var(--line);
  z-index: 1;
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.hero__oval img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* recorta el blanco sobrante del PNG cuadrado */
  transform: scale(.86);      /* margen para que el óvalo del logo respire */
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }

.hero__badge {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 12%;
  padding: 16px 22px;
  background: var(--red);
  color: var(--white);
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  rotate: -4deg;
}
.hero__badge b { display: block; font: italic 600 26px/1.1 var(--display); }

/* ---------- Cinta ---------- */
.ribbon {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding: 18px 0;
}
.ribbon__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font: italic 500 clamp(22px, 2.6vw, 34px)/1 var(--display);
  white-space: nowrap;
}
.ribbon__track span::after { content: "✦"; margin-left: 48px; font-style: normal; font-size: .6em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section--paper { background: var(--paper); }
.section__head {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
.section__num {
  font: italic 500 64px/1 var(--display);
  color: var(--red);
  -webkit-text-stroke: 0;
}
.section__head h2 { font-size: clamp(34px, 4.6vw, 64px); margin-top: 14px; }
.section__head .lead { margin-top: 18px; }

/* Nosotros */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.about__text p { font-size: 18px; margin: 0 0 18px; }
.about__text p:first-child::first-letter {
  float: left;
  font: italic 600 86px/.8 var(--display);
  color: var(--red);
  margin: 8px 12px 0 0;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.stat:nth-child(2), .stat:nth-child(3) { background: var(--red); color: var(--white); border-color: var(--red); }
.stat b { display: block; font: 600 48px/1 var(--display); letter-spacing: -.02em; }
.stat span { font-size: 14px; opacity: .8; }

/* Reto / citas */
.quote {
  position: relative;
  margin: 0;
  padding: clamp(40px, 6vw, 80px);
  border-radius: 36px;
  color: var(--white);
  background: var(--red);
  overflow: hidden;
}
.quote::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  --check: 56px;
  background:
    conic-gradient(rgba(255,255,255,.14) 25%, transparent 0 50%, rgba(255,255,255,.14) 0 75%, transparent 0)
    0 0 / var(--check) var(--check);
  border-radius: 50%;
}
.quote p {
  position: relative;
  margin: 0;
  font: italic 400 clamp(26px, 3.4vw, 46px)/1.2 var(--display);
  max-width: 24ch;
}
.quote cite { position: relative; display: block; margin-top: 26px; font: normal 600 13px var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }

.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.goal { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.goal h3 { margin: 16px 0 8px; font: 600 22px/1.2 var(--display); }
.goal p { margin: 0; color: var(--muted); font-size: 15px; }
.goal__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #fde9ea;
  color: var(--red);
}

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service {
  position: relative;
  padding: 36px 28px 40px;
  background: var(--white);
  transition: background .35s, color .35s;
  isolation: isolate;
}
.service::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  --check: 12px;
  background: conic-gradient(var(--red) 25%, var(--white) 0 50%, var(--red) 0 75%, var(--white) 0) 0 0 / var(--check) var(--check);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service:hover::after { transform: scaleX(1); }
.service__n { font: italic 500 15px var(--display); color: var(--red); }
.service h3 { font: 600 24px/1.15 var(--display); margin: 60px 0 12px; }
.service p { margin: 0; font-size: 15px; color: var(--muted); }
.service ul { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; }
.service li { padding: 6px 0; border-top: 1px dashed var(--line); }

/* Metodología */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 27px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px);
}
.step { position: relative; counter-increment: step; }
.step__dot {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
  font: italic 600 20px var(--display);
}
.step:nth-child(odd) .step__dot { background: var(--red); color: var(--white); }
.step__dot::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin: 22px 0 6px; font: 600 20px/1.2 var(--display); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.step small { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* Tarjetas de cotización */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.qcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  padding: 30px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.qcard:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: 0 30px 60px -30px rgba(122, 0, 8, .45); }
.qcard__top { display: flex; justify-content: space-between; align-items: center; }
.qcard__code { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.tag {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--pill);
  background: #fde9ea;
  color: var(--red);
}
.tag--solid { background: var(--red); color: var(--white); }
.tag--muted { background: var(--paper); color: var(--muted); }
.qcard h3 { margin: 0; font: 600 28px/1.1 var(--display); }
.qcard p { margin: 0; color: var(--muted); font-size: 15px; }
.qcard__foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.qcard__price small { display: block; font-size: 12px; color: var(--muted); }
.qcard__price b { font: 600 26px var(--display); color: var(--red); }
.qcard__arrow {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transition: transform .4s var(--ease);
}
.qcard:hover .qcard__arrow { transform: rotate(-45deg); }
.qcard--soon { background: var(--paper); border-style: dashed; pointer-events: none; }
.qcard--soon h3, .qcard--soon .qcard__price b { color: var(--muted); }
.qcard--soon .qcard__arrow { background: var(--line); }

.quote-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 28px;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.quote-link:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 30px 60px -30px rgba(122, 0, 8, .45); }
.quote-link b { display: block; font: 600 clamp(24px, 3vw, 34px)/1.1 var(--display); }
.quote-link__text span { color: var(--muted); font-size: 15px; }
.quote-link:hover .qcard__arrow { transform: rotate(-45deg); }

/* CTA final */
.cta {
  position: relative;
  padding: clamp(60px, 9vw, 120px) clamp(24px, 6vw, 90px);
  border-radius: 40px;
  overflow: hidden;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
}
.cta__panel {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px);
  background: var(--white);
  border-radius: 32px;
  box-shadow: 0 24px 60px -30px rgba(29, 20, 21, .25);
}
.cta__panel h2 { font-size: clamp(32px, 4.4vw, 56px); }
.cta__panel .lead { margin: 18px auto 30px; }
.cta__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer { padding: 50px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 70px; }
.footer b { color: var(--ink); }

/* ---------- Páginas internas (cotizaciones) ---------- */
.page-hero {
  position: relative;
  padding: 150px 0 70px;
  overflow: hidden;
}
.page-hero__strip {
  position: absolute;
  right: 0; top: 76px; bottom: 0;
  width: 34%;
  --check: 60px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero h1 { font-size: clamp(42px, 6vw, 84px); max-width: 14ch; margin-top: 18px; position: relative; }
.page-hero .lead { margin-top: 18px; position: relative; }
.breadcrumb { font-size: 13px; color: var(--muted); position: relative; }
.breadcrumb a { color: var(--red); text-decoration: none; }

/* Documento de cotización */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}
.doc__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.card h2 { margin: 0 0 18px; font: 600 28px/1.15 var(--display); }
.card h2 em { color: var(--red); }
.card p { margin: 0 0 12px; }
.card ul.check { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card ul.check li { position: relative; padding-left: 34px; }
.card ul.check li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.doc__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.doc__meta div { padding: 18px 20px; border-radius: 16px; background: var(--paper); }
.doc__meta small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.doc__meta b { font-size: 16px; }

.table-wrap { overflow-x: auto; margin: 0 -8px; }
table.items { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.items th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 8px;
  border-bottom: 2px solid var(--red);
}
.items td { padding: 18px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.items td:nth-child(2) { white-space: nowrap; }
.items td small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.items .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.items tr.is-optional td { color: var(--muted); }
.items label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.items input[type="checkbox"] { accent-color: var(--red); width: 18px; height: 18px; }

.summary { position: sticky; top: 100px; overflow: hidden; padding: 0; }
.summary__head { padding: 28px 30px; color: var(--white); background: var(--red); position: relative; overflow: hidden; }
.summary__head::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 140px; height: 140px;
  background: conic-gradient(rgba(255,255,255,.16) 25%, transparent 0 50%, rgba(255,255,255,.16) 0 75%, transparent 0) 0 0 / 28px 28px;
  border-radius: 50%;
}
.summary__head small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.summary__head b { display: block; font: 600 34px/1.1 var(--display); margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__body { padding: 24px 30px 30px; display: grid; gap: 12px; font-size: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 10px; }
.summary__row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.summary__row small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.summary__row--monthly { flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fde9ea; color: var(--red-ink); }
.summary__row--monthly small { display: block; font-size: 12px; opacity: .75; }
.summary__row--monthly span:last-child { font: 600 20px var(--display); }
.summary__row--monthly span:last-child { color: var(--red); }
.summary__body hr { border: 0; border-top: 1px dashed var(--line); margin: 6px 0; width: 100%; }
.summary__body .btn { justify-content: center; }
.summary__note { font-size: 12px; color: var(--muted); margin: 0; }

.payments { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.payment { padding: 22px; border-radius: 18px; border: 1px solid var(--line); }
.payment b { display: block; font: 600 34px/1 var(--display); color: var(--red); }
.payment span { font-size: 14px; color: var(--muted); }

.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.sign div { padding-top: 60px; border-top: 1px solid var(--ink); font-size: 13px; color: var(--muted); }
.sign b { display: block; color: var(--ink); font-size: 15px; }

/* ---------- Dashboards de KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.kpi { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); }
.kpi:nth-child(1), .kpi:nth-child(4) { background: var(--paper); }
.kpi__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.kpi__head b { font: 600 20px var(--display); }
.kpi__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--red); color: var(--white); }
.kpi ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.kpi li { position: relative; padding-left: 16px; }
.kpi li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--red); border-radius: 2px; }
.kpis__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kpis__foot span { padding: 6px 12px; border-radius: var(--pill); background: #fde9ea; color: var(--red); font-size: 12px; font-weight: 700; }
@media (max-width: 640px) { .kpis { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tecnologías ---------- */
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
@media (max-width: 640px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack__item {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}
.stack__tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stack__item b { font: 600 20px/1.15 var(--display); }
.stack__item small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.stack__item em {
  justify-self: start;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--red);
  color: var(--white);
  font: 700 11px var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Reuniones con el cliente ---------- */
.meetings { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.meeting { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.meeting__head { display: flex; align-items: center; gap: 14px; }
.meeting__head > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex: 1; min-width: 0; }
.meeting__head b { font: 600 19px/1.2 var(--display); }
.meeting__head time { font-size: 13px; font-weight: 700; color: var(--muted); }
.meeting__n {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: var(--white); font-weight: 700; font-size: 14px;
}
.meeting__body h3 { margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meeting__people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.meeting__people li { padding: 10px 14px; border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; }
.meeting__people span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.meeting__notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.meeting__notes li::marker { color: var(--red); }
@media (max-width: 560px) { .meeting__people { grid-template-columns: minmax(0, 1fr); } .meeting { padding: 14px; } }

/* ---------- Casos reales: audios y chats ---------- */
.card__lead { color: var(--muted); max-width: 62ch; }
.card__sub {
  margin: 30px 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.card__note { margin: 14px 0 0 !important; font-size: 12px; color: var(--muted); }

.audios { display: grid; gap: 10px; }
.audio {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--paper);
}
.audio figcaption b { display: block; font-size: 15px; }
.audio figcaption span { font-size: 12px; color: var(--muted); }
.audio audio { width: 100%; height: 40px; accent-color: var(--red); }

.tabs__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs__bar button {
  padding: 10px 18px;
  font: 600 13px var(--sans);
  color: var(--red);
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--pill);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tabs__bar button[aria-selected="true"] { background: var(--red); color: var(--white); }

.chat__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.chat__stats div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.chat__stats div:first-child { background: var(--red); border-color: var(--red); color: var(--white); }
.chat__stats b { display: block; font: 600 22px/1.15 var(--display); }
.chat__stats span { font-size: 12px; opacity: .8; }

.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
  padding: 20px;
  border-radius: 20px;
  background:
    conic-gradient(rgba(227, 6, 19, .035) 25%, transparent 0 50%, rgba(227, 6, 19, .035) 0 75%, transparent 0) 0 0 / 36px 36px,
    var(--paper);
  border: 1px solid var(--line);
}
.chat__msg {
  position: relative;
  max-width: min(78%, 440px);
  padding: 8px 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.chat__msg--in { align-self: flex-start; background: var(--white); border-top-left-radius: 4px; }
.chat__msg--out { align-self: flex-end; background: #fde9ea; border-top-right-radius: 4px; }
.chat__msg--a { background: var(--red); color: var(--white); }
.chat__who { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--red); margin-bottom: 2px; }
.chat__msg--a .chat__who { color: rgba(255, 255, 255, .85); }
.chat__text { white-space: pre-line; overflow-wrap: anywhere; }
.chat__msg time { position: absolute; right: 10px; bottom: 4px; font-size: 10px; opacity: .6; }
.chat__voice { display: inline-flex; align-items: center; gap: 6px; font-style: italic; color: var(--muted); }

@media (max-width: 560px) {
  .audio { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .chat { padding: 12px; }
  .chat__msg { max-width: 90%; }
}

/* ---------- Costo mensual de operación ---------- */
.notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fde9ea;
  border-left: 4px solid var(--red);
  color: var(--red-ink);
  font-size: 14px;
  line-height: 1.5;
}
.notice__icon { color: var(--red); }
.notice b { color: var(--red); }

.opex { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; margin: 22px 0 24px; }
.opex__inputs { display: grid; gap: 14px; align-content: start; }
.opex fieldset { margin: 0; padding: 16px 18px 6px; border: 1px solid var(--line); border-radius: 18px; }
.opex legend { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.opex label { display: grid; gap: 4px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.opex label small { font-weight: 400; color: var(--muted); margin-top: -4px; }
.opex input,
.opex select {
  width: 100%;
  padding: 10px 12px;
  font: 600 16px var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.opex select { appearance: auto; font-size: 15px; }
.opex input:focus,
.opex select:focus { outline: 2px solid var(--red); outline-offset: 1px; background: var(--white); }
.opex__results { display: grid; gap: 14px; align-content: start; }
.opex__block { display: grid; gap: 10px; padding: 18px 20px; border-radius: 18px; background: var(--paper); font-size: 14px; }
.opex__block h3 { margin: 0 0 4px; font: 600 18px var(--display); }
.opex__block small { display: block; font-size: 12px; color: var(--muted); }
.opex__sub { padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; }
.opex__total { padding: 20px; border-radius: 18px; background: var(--red); color: var(--white); }
.opex__total small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.opex__total b { display: block; font: 600 34px/1.15 var(--display); margin: 4px 0 2px; }
.opex__total span { font-size: 13px; opacity: .85; }
table.rates { width: 100%; border-collapse: collapse; font-size: 14px; }
.rates th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--red); }
.rates td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates td small { display: block; font-size: 12px; color: var(--muted); }
.rates .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .opex { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--red) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step h3 { margin-top: 4px; }
  .step > :not(.step__dot) { grid-column: 2; }
  .step__dot { grid-row: span 3; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

@media (max-width: 860px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a, .nav__links button { width: 100%; padding: 14px 12px; justify-content: space-between; }
  .menu { position: static; width: auto; box-shadow: none; margin-top: 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-menu.is-open .menu { display: block; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__art { min-height: 420px; order: -1; }
  .hero__art::after { background: linear-gradient(0deg, var(--white) 0%, rgba(255,255,255,0) 30%); }
  .hero__copy { padding-top: 10px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .nav__brand small { display: none; }
  .goals { grid-template-columns: 1fr; }
  .section__head { grid-template-columns: 1fr; gap: 0; }
  .section__num { font-size: 44px; }
  .payments { grid-template-columns: 1fr; }
  .page-hero__strip { width: 60%; opacity: .5; }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 36px; }
  .sign { grid-template-columns: 1fr; }
  .hero__badge { right: 16px; bottom: 16px; }
}

/* Cotización en móvil: tabla apilada y bloques compactos */
@media (max-width: 640px) {
  .card { padding: 22px 18px; border-radius: 22px; }
  .card h2 { font-size: 24px; }
  .doc__meta { grid-template-columns: 1fr 1fr; gap: 10px; }
  .doc__meta div { padding: 12px 14px; }
  .doc__meta b { font-size: 14px; }

  .table-wrap { overflow: visible; margin: 0; }
  table.items { min-width: 0; }
  .items thead { display: none; }
  .items, .items tbody { display: block; }
  .items tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .items td { padding: 0; border: 0; }
  .items td:first-child { grid-column: 1 / -1; margin-bottom: 6px; }
  .items td:nth-child(2) { font-size: 13px; color: var(--muted); }
  .items td.num { font-weight: 600; }

  .payments { gap: 10px; }
  .payment { padding: 16px 18px; }
  .payment b { font-size: 28px; }

  .chat__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .chat__stats div { padding: 10px; }
  .chat__stats b { font-size: 16px; }
  .chat__stats span { font-size: 11px; line-height: 1.3; display: block; }
  .chat { max-height: 480px; }

  .summary__head { padding: 22px 20px; }
  .summary__body { padding: 20px; }
  .page-hero { padding-top: 124px; }
  .page-hero__strip { left: 0; right: 0; bottom: auto; top: 76px; width: auto; height: 24px; opacity: 1; --check: 12px; mask-image: none; -webkit-mask-image: none; }
}

/* ---------- Impresión (cotizaciones a PDF) ---------- */
@media print {
  .chat { max-height: none; overflow: visible; }
  .tabs__panel[hidden] { display: block !important; }
  .tabs__bar, .audios { display: none !important; }
  .nav, .footer, .no-print, .page-hero__strip { display: none !important; }
  .page-hero { padding: 0 0 20px; }
  .section { padding-block: 10px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .card { break-inside: avoid; border-color: #ddd; }
  .reveal { opacity: 1; transform: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

