/* ---------- Impulsa't i Crea — moody luxury real-estate theme ---------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --bg-card: #f6f5f2;
  --border: #e3e0d9;
  --border-soft: #eceae4;
  --text: #16150f;
  --text-muted: #6f6b62;
  --text-faint: #96928a;
  --accent: #84b6f4;
  --accent-strong: #a7cbf8;
  /* El --accent es un azul cielo: sobre blanco no llega ni de lejos al minimo
     legible. Este es el mismo azul llevado a tinta, para texto y lineas. */
  --accent-ink: #1e5bd6;
  --accent-wash: #eef3fd;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --serif-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1360px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- liquid glass ---------- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.border-top { border-top: 1px solid var(--border-soft); }

h1, h2, h3 { font-family: var(--sans); color: var(--text); letter-spacing: -0.02em; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
em { font-style: italic; color: var(--accent-strong); }

/* La barra de navegacion es fija y mide unos 86 px. Sin este margen, al pulsar
   cualquier enlace interno el destino salta pegado al borde y la barra le tapa
   la etiqueta y media linea del titulo: parece que el enlace no ha funcionado.
   Afecta al menu de arriba y a los tres botones de la portada. */
section[id],
#agentes,
#webs {
  scroll-margin-top: 6.5rem;
}

.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Con --accent estas etiquetas median 2.10:1 a 11px: practicamente ilegibles.
     Las siete de la web van ahora en el azul de tinta (5.96:1). */
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft {
  background: var(--accent);
  color: #0a0a09;
}
.btn-soft:hover { background: var(--accent-strong); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ---------- marquee bar ---------- */
.marquee-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 38px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-group {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- header (liquid glass nav) ---------- */
.glass-nav {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem var(--pad);
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.65rem 0.65rem 0.65rem 1.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(15, 14, 11, 0.6);
}

.logo {
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav .logo { color: #fff; }
.glass-logo-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-cta {
  padding: 0.65rem 1.3rem;
  font-size: 0.78rem;
  background: var(--accent);
  color: #0a0a09;
}
.nav-cta:hover { background: var(--accent-strong); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span { display: block; height: 1.5px; background: #fff; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- hero (liquid glass) ---------- */
.hero-glass {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

.hero-glass-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(17%);
  opacity: 0;
}

.hero-glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* El video pasa por paredes blancas y el subtitulo desaparecia. Se sube la
     banda central del degradado en vez de poner un velo ovalado: un ovalo se
     nota como una mancha oscura sobre el cielo, esto no dibuja ninguna forma. */
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.32) 65%, rgba(0,0,0,0.6) 100%);
}

.hero-glass-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad);
  transform: translateY(-8%);
}

.glass-heading {
  font-family: var(--sans);
  font-weight: 800;
  color: #fff;
  /* El minimo del clamp tiene que ser bajo: como el titular no puede partirse
     (white-space: nowrap), por debajo de ~550px es el vw quien manda. Con 2.4rem
     se quedaba clavado en 38px y se salia de la pantalla del movil, cortando la
     "I" y el punto final. */
  font-size: clamp(1.5rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 2rem;
  white-space: nowrap;
}

.glass-form-wrap { max-width: 30rem; width: 100%; }

.glass-email-bar {
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.glass-email-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: var(--sans);
}
.glass-email-input::placeholder { color: rgba(255,255,255,0.4); }
.glass-email-submit {
  flex-shrink: 0;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.glass-email-submit:hover { background: var(--accent-strong); }
.glass-email-submit svg { width: 18px; height: 18px; }

.glass-subtitle {
  margin-top: 1rem;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.6;
  padding-inline: 1rem;
  /* Ultimo seguro por si el fotograma es muy claro justo detras. */
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.glass-manifesto-btn {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.glass-manifesto-btn:hover { background: rgba(255,255,255,0.06); }

/* Los tres servicios bajo el titular. En movil se apilan a lo ancho para que
   ninguno se parta por la mitad. */
.glass-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.glass-servicios .glass-manifesto-btn {
  margin-top: 0;
  padding: 0.7rem 1.35rem;
  font-size: 0.82rem;
}
@media (max-width: 520px) {
  .glass-servicios { flex-direction: column; align-items: stretch; }
  .glass-servicios .glass-manifesto-btn { justify-content: center; }
}


.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: 2.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.scroll-cue span {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.75);
  order: -1;
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- generic sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.section-head { max-width: 46ch; margin-bottom: 3.5rem; }
/* El .section-head corta a 46ch y eso parte el titular en dos lineas. Con esta
   variante el titular dispone de todo el ancho y cabe en una sola; en pantallas
   estrechas sigue partiendo solo, que es lo correcto. */
.section-head.ancho { max-width: none; }
.section-head.ancho .demo-intro { max-width: 52ch; }
.section-head.center { max-width: none; text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; }
.section-head.center h2 { max-width: 18ch; margin-inline: auto; }
.section-head.center .btn { margin-top: 2.25rem; }
.section-head.center .btn-row { justify-content: center; margin-top: 2.25rem; }
.section-head.center .btn-row .btn { margin-top: 0; }
.section-head > .btn { margin-top: 1.5rem; }
.contact-note {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.contact-email {
  display: block;
  margin-top: 1.25rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* ---------- bento / services ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 230px;
  gap: 1rem;
}
.bento-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  grid-column: span 2;
  grid-row: span 1;
}
.bento-large { grid-column: span 3; grid-row: span 2; }
/* Ancho completo: el video luce mucho mas en formato panoramico */
.bento-wide { grid-column: span 6; grid-row: span 2; }

.mosaic {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

.bento-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,9,0.92), transparent 60%);
}

.card-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-copy h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: #fff; }
.card-copy p { margin-top: 0.4rem; font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 400; }

.bento-dark {
  background: linear-gradient(155deg, #1b1712, #100f0c);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tag {
  align-self: flex-start;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
}
.bento-dark h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: #fff; }
.bento-dark p { margin-top: 0.4rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ---------- trabajo / work scroller ---------- */
.work-scroller {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.work-card { flex: 0 0 clamp(260px, 32vw, 380px); }
.work-index {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.work-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.work-card:hover .work-img img { transform: scale(1.05); }
.work-card h3 { margin-top: 1.1rem; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.work-card p { margin-top: 0.35rem; font-size: 0.86rem; color: var(--text-muted); }
.pack-desc { min-height: 2.6em; }
.pack-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.pack-link:hover { color: var(--accent-strong); }

.pack-select-btn {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pack-select-btn:hover { border-color: var(--accent); color: var(--accent); }
.pack-choice.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.pack-choice.is-selected .pack-select-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a09;
}

.extras-row {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-soft);
}
.extras-row .work-scroller { margin-top: 1.25rem; }

.extra-item {
  position: relative;
  overflow: hidden;
  flex: 0 0 clamp(260px, 32vw, 380px);
  min-height: 360px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.extra-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.6) saturate(1.1);
  transform: scale(1.15);
}
.extra-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.25) 0%, rgba(10, 10, 9, 0.75) 100%);
}
.extra-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.extra-copy h4 { color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; }
.extra-copy p { margin-top: 0.6rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.78); }
.extra-copy .pack-link { color: var(--accent-strong); margin-top: 0; }
.extra-copy .pack-link:hover { color: #fff; }

.extra-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.9rem; flex-wrap: wrap; }
.extra-add-btn {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.extra-add-btn:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.extra-choice.is-selected { outline: 2px solid var(--accent); outline-offset: 5px; }
.extra-choice.is-selected .extra-add-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a09;
}

.pack-builder {
  margin-top: 3rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pack-builder-summary { font-size: 1rem; color: var(--text); max-width: 46ch; }
/* Con --accent los nombres de los servicios elegidos median 1.93:1 sobre el
   fondo de la barra: ilegibles justo en lo que hay que leer. */
.pack-builder-summary strong { color: var(--accent-ink); }
#pack-builder-cta:disabled { opacity: 0.4; cursor: not-allowed; }
#pack-builder-cta:disabled:hover { background: var(--text); border-color: var(--text); }

/* ---------- demo ---------- */
.demo-intro { margin-top: 1.25rem; color: var(--text-muted); font-size: 1rem; max-width: 46ch; }

/* Esta frase es el argumento de venta del bloque: en gris pequeno se leia como
   una nota al pie. Mas cuerpo, mas interlineado y color de texto normal. */
.demo-intro.destacada {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 52ch;
}
/* Las tres preguntas en negro y versales dentro de la propia frase: destacan
   sin romper la lectura. Las mayusculas las pone el CSS, no el HTML. */
.demo-intro.destacada strong {
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}


.demo-box { max-width: 900px; margin: 0 auto; }

.demo-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.demo-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.demo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

.demo-stage.is-loading .demo-grid { filter: blur(3px) brightness(0.55); }
.demo-stage.is-done .demo-grid { opacity: 0; pointer-events: none; }

.demo-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.demo-stage.is-loading .demo-loading { display: flex; }

.demo-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: demo-spin 0.8s linear infinite;
}
@keyframes demo-spin { to { transform: rotate(360deg); } }

.demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.demo-stage.is-done { background: #0a0a09; }

/* Demo de home staging: el material es vertical (9:16), asi que su escenario
   tambien. De paso se ve como quedaria publicado en redes. */
/* El material del amueblado es vertical. Se limita la altura para que la fila
   no destaque sobre las otras dos y la seccion mantenga el ritmo. */
.demo-stage.vertical {
  aspect-ratio: 9 / 16;
  max-height: 470px;
  width: auto;
  margin: 0 auto;
}
.staging-antes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.demo-stage.is-loading .staging-antes { filter: blur(3px) brightness(0.55); }
.demo-stage.is-done .staging-antes { opacity: 0; }
.demo-stage.is-done .demo-video { opacity: 1; pointer-events: auto; }

.demo-actions { margin-top: 2rem; text-align: center; }
.demo-cta { margin-top: 1.1rem; color: var(--text-muted); font-size: 0.9rem; max-width: 42ch; margin-inline: auto; }

/* ---------- proceso: horizontal timeline, reveal on hover ---------- */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 4.5rem;
  padding-top: 1rem;
}
.timeline-line {
  position: absolute;
  top: calc(1rem + 22px);
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  outline: none;
}
.timeline-dot {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: default;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.timeline-step:hover .timeline-dot,
.timeline-step:focus-visible .timeline-dot,
.timeline-step.is-revealed .timeline-dot {
  background: var(--accent);
  color: #0a0a09;
  box-shadow: 0 0 0 8px rgba(132, 182, 244, 0.18);
  transform: scale(1.08);
}
.timeline-content {
  margin-top: 1.5rem;
  max-width: 260px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.timeline-step:hover .timeline-content,
.timeline-step:focus-visible .timeline-content,
.timeline-step.is-revealed .timeline-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.timeline-content h3 { font-size: 1.05rem; }
.timeline-content p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- testimonial ---------- */
.testimonial {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.testimonial-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(0.75) brightness(0.75); }
.testimonial-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,10,9,0.95), rgba(10,10,9,0.45) 55%, rgba(10,10,9,0.55) 100%);
}
.testimonial-content { position: relative; z-index: 2; padding: clamp(2.5rem, 6vw, 5rem) var(--pad); max-width: 900px; margin: 0 auto; width: 100%; }
.testimonial-content blockquote {
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 22ch;
  font-weight: 800;
  color: #fff;
}
.testimonial-author { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.testimonial-author strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.15rem; font-family: var(--sans); }

/* ---------- reseñas ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.review { padding: 0 clamp(0.75rem, 2vw, 2rem); border-left: 1px solid var(--border-soft); }
.review:first-child { border-left: none; padding-left: 0; }
.review-stars { color: var(--accent); font-size: 1rem; letter-spacing: 0.15em; }
.review-quote { margin-top: 1rem; color: var(--text); font-size: 1rem; line-height: 1.55; }
.review-author { display: block; margin-top: 1rem; color: var(--text-faint); font-size: 0.82rem; }

/* ---------- beneficios: 3D wheel carousel ---------- */
.wheel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
}
.wheel-stack {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 480px;
  perspective: 1400px;
}
.wheel-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 230px;
  height: 460px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(10, 10, 9, 0.12);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.25, 1), opacity 0.6s ease, box-shadow 0.6s ease;
  will-change: transform;
}
.wheel-card.is-active { box-shadow: 0 30px 60px rgba(10, 10, 9, 0.25); cursor: default; }
.wheel-card .fan-img {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.wheel-card .fan-img img { width: 100%; height: 100%; object-fit: cover; }
/* Conversacion de TIC dentro de una tarjeta del carrusel. El hueco es de unos
   204x153 px, asi que las frases van cortas y la letra pequena a proposito. */
.fan-chat {
  background: #f4f6f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem;
}
.wheel-card .mini-msg {
  margin: 0;
  max-width: 88%;
  padding: 0.32rem 0.5rem;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.53rem;
  line-height: 1.35;
}
.wheel-card .mini-msg.in {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  border-bottom-left-radius: 3px;
}
.wheel-card .mini-msg.out {
  align-self: flex-end;
  background: var(--accent);
  color: #0a0a09;
  border-bottom-right-radius: 3px;
}
.wheel-card h4 { margin-top: 1rem; font-family: var(--sans); font-weight: 700; font-size: 1rem; }
.wheel-card p { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.45; color: var(--text-muted); }

.wheel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.wheel-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- estudio / about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-img { aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); max-width: 16ch; }
.about-copy p { margin-top: 1.25rem; color: var(--text-muted); max-width: 48ch; }

/* ---------- otros servicios ---------- */
/* ---------- servicio destacado: agentes de IA ----------
   Mismo papel blanco que el resto de la web. El degradado azul oscuro daba
   aire de plantilla generica de IA; aqui manda la tipografia y el aire, y el
   bloque se distingue por el borde, no por el color. */
.featured-service {
  --fs-text: var(--text);
  --fs-muted: var(--text-muted);
  --fs-line: var(--border);
  --fs-card: var(--bg-alt);

  position: relative;
  /* Una sola columna: el video va a lo ancho, en modo presentacion, debajo del
     texto. Antes compartia fila con el y se quedaba en media pantalla. */
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  /* Sin caja de fondo, el relleno de arriba solo dejaba un agujero blanco entre
     el titulo de la seccion y la etiqueta. Solo se conserva el de abajo. */
  padding: 0 0 clamp(1.75rem, 4vw, 3.25rem);
  margin-bottom: 1.5rem;
  background: var(--bg);
  color: var(--fs-text);
  overflow: hidden;
}
.featured-service-text h3 { color: var(--fs-text); }
/* Segunda linea del titular en azul: el salto de color hace el trabajo que
   antes hacia el fondo oscuro, sin ensuciar la pagina. */
.azul { color: var(--accent-ink); }

/* Marcado de los dos bloques de "otros servicios" cuando se anaden al presupuesto.
   Van con borde en vez de outline porque no tienen caja propia. */
.featured-service.is-selected,
.web-service.is-selected { outline: 2px solid var(--accent-ink); outline-offset: 8px; }
.featured-service .extra-add-btn,
.web-service .extra-add-btn { align-self: center; }
.featured-service.is-selected .extra-add-btn,
.web-service.is-selected .extra-add-btn {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
/* ---------- paginas web ---------- */
.web-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.web-service-text h3 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin: 0.9rem 0 1.1rem;
}
.web-service-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 0.9rem;
  max-width: 44ch;
}
.web-guino {
  font-size: 0.86rem !important;
  color: var(--text-faint) !important;
  font-style: italic;
}
.web-incluye {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.web-incluye li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--text);
}
/* Marca de verificacion dibujada con dos lineas, sin depender de fuentes */
.web-incluye li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 0.62rem;
  height: 0.34rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Maqueta de navegador: sugiere una web sin enseñar ninguna en concreto */
.browser {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.09);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.browser-dots { display: flex; gap: 0.35rem; }
.browser-dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border);
}
.browser-url {
  font-size: 0.7rem;
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.browser-body {
  position: relative;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.wf-hero {
  height: 108px;
  border-radius: 6px;
  background: linear-gradient(135deg, #172c47 0%, #35669f 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.9rem;
}
.wf-hero span { height: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); }
.wf-hero span:first-child { width: 55%; }
.wf-hero span:last-child { width: 32%; }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.wf-cards i {
  height: 52px;
  border-radius: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* La maqueta responde de verdad al raton: es la demostracion del argumento */
.wf-cards i:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(23, 44, 71, 0.16);
}

/* Y si nadie la toca, se mueve sola: un cursor la recorre y pulsa una tarjeta */
.wf-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 0;
  top: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
  animation: wf-paseo 6s ease-in-out infinite;
}
@keyframes wf-paseo {
  0%,  8%   { transform: translate(28px, 26px) scale(1); opacity: 0; }
  12%       { opacity: 1; }
  32%       { transform: translate(96px, 128px) scale(1); opacity: 1; }
  38%, 44%  { transform: translate(96px, 128px) scale(0.82); opacity: 1; }
  60%       { transform: translate(178px, 132px) scale(1); opacity: 1; }
  66%, 72%  { transform: translate(178px, 132px) scale(0.82); opacity: 1; }
  88%       { transform: translate(212px, 196px) scale(1); opacity: 1; }
  100%      { transform: translate(212px, 196px) scale(1); opacity: 0; }
}
/* La tarjeta se "hunde" justo cuando el cursor la pulsa */
.wf-cards i:nth-child(1) { animation: wf-pulsada 6s ease-in-out infinite; }
.wf-cards i:nth-child(2) { animation: wf-pulsada 6s ease-in-out infinite; animation-delay: 1.7s; }
@keyframes wf-pulsada {
  0%, 34%, 48%, 100% { transform: translateY(0); border-color: var(--border); }
  38%, 44%           { transform: translateY(-4px); border-color: var(--accent); }
}
/* Al pasar el raton manda el visitante, no la animacion */
.browser:hover .wf-cursor,
.browser:hover .wf-cards i { animation-play-state: paused; }
.browser:hover .wf-cursor { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .wf-cursor { display: none; }
  .wf-cards i { animation: none; }
}
.wf-lines { display: flex; flex-direction: column; gap: 0.35rem; }
.wf-lines span { height: 6px; border-radius: 3px; background: var(--border); }
.wf-lines span:first-child { width: 82%; }
.wf-lines span:last-child { width: 58%; }

@media (max-width: 860px) {
  .web-service { grid-template-columns: 1fr; }
  .web-service-visual { order: -1; }
}

/* Los tres agentes. Ocupan las dos columnas del bloque. */
.agentes-lista {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--fs-line);
}
.agentes-intro {
  color: var(--fs-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 2rem;
}
.agentes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
/* Cajas de linea fina azul sobre blanco: el peso lo lleva la tipografia, no el
   relleno. Sin sombra ni degradado a proposito. */
.agente-card {
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--accent-ink);
  border-radius: 12px;
  background: var(--bg);
}
.agente-card svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.agente-card h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: 0.5rem;
}
.agente-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fs-muted);
}
/* La demo cierra el grupo: misma familia, pero rellena en azul palido para que
   se lea como el paso siguiente y no como una cuarta tarjeta. */
.demo-nora {
  margin-top: 1rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent-wash);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.demo-nora-texto { flex: 1 1 30ch; }
.demo-nora h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: 0.5rem;
}
.demo-nora p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fs-muted);
  max-width: 62ch;
}
.demo-nora .btn { flex: none; }
.demo-nora-accion {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
/* Sugerencia con aire de mensaje de chat, para que se entienda que es algo que
   se le puede decir a NORA y no otro boton mas. */
.demo-nora-sugerencia {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: left;
  color: var(--accent-ink);
  background: var(--bg);
  border: 1px solid var(--accent-ink);
  border-radius: 12px 12px 12px 4px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.demo-nora-sugerencia:hover { background: var(--accent-wash); }

/* Recordatorio permanente de que Nova Llar no existe. Va dentro del panel para
   que se lea mientras se prueba, no solo antes de abrirlo. */
.chat-demo-pie {
  /* Sin flex: none la columna se lo come y el texto sale cortado por abajo. */
  flex: none;
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.agente-tag {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .agentes-grid { grid-template-columns: 1fr; }
}

/* Cortina unica sobre todo el bloque: un solo barrido lo descubre entero. */
.featured-service.curtain-block { opacity: 1; transform: none; transition: none; }
.featured-service.curtain-block::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1) 0.15s;
}
.featured-service.curtain-block.in-view::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .featured-service.curtain-block::after { display: none; }
}

/* Hereda la sans y el tracking de los titulos de seccion (ver regla h1,h2,h3) */
.featured-service-text h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0.9rem 0 1.25rem;
}
.featured-service-text p {
  color: var(--fs-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.9rem;
  max-width: 46ch;
}
.featured-service-text .btn-row { margin-top: 1.75rem; }


/* Video de los agentes. Va con controles a proposito: dura 50 s y lleva voz,
   asi que se reproduce cuando el visitante quiere, no solo. */
.featured-service-demo { width: 100%; }

/* Play grande centrado sobre el video. Desaparece en cuanto empieza y vuelve
   si lo pausan, para que siempre se sepa que hay algo que ver. */
.video-marco { position: relative; }
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(64px, 8vw, 88px);
  height: clamp(64px, 8vw, 88px);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #16150f;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s ease;
}
.video-play svg { width: 42%; height: 42%; margin-left: 8%; }
.video-play:hover { transform: scale(1.07); background: #fff; }
.video-marco.is-playing .video-play {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.video-pie {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}
.video-agentes {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 16px;
  background: #0d1117;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

/* Maqueta de conversacion: ilustra el producto, el agente real esta a un clic */
.demo-chat {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}
.demo-chat-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.demo-chat-dots {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.demo-chat-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border);
}
.demo-chat-title {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem;
}
.demo-msg {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.demo-msg.in {
  align-self: flex-start;
  background: #f4f2ed;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.demo-msg.out {
  align-self: flex-end;
  background: var(--accent);
  color: #0a0a09;
  border-bottom-right-radius: 4px;
}

/* El bloque ya es de una columna en todas las anchuras; el video se queda
   siempre debajo del texto, tambien en movil. */

.other-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.other-services.single { grid-template-columns: 1fr; }
.other-service-item {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.other-service-item h3 { font-size: 1.15rem; }
.other-service-item p { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.95rem; max-width: 42ch; }
.other-service-item .pack-link { margin-top: 1.25rem; display: inline-block; }

/* ---------- contacto ---------- */
.contact-section { text-align: center; }

/* ---------- asistente de IA (chat flotante) ---------- */
.chat-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: 999px;
  /* Degradado en la gama azul de la marca. Arranca oscuro para que el texto
     blanco mantenga contraste suficiente en todo el recorrido. */
  background: linear-gradient(135deg, #14263d 0%, #29538a 55%, #35669f 100%);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(20, 38, 61, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}
.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(20, 38, 61, 0.42);
}
.chat-launcher svg { width: 1.2rem; height: 1.2rem; }
.chat-launcher.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

/* Burbuja de saludo: aparece sola a los pocos segundos, junto al boton.
   Se puede cerrar y no vuelve a salir durante la misma visita. */
.chat-nudge {
  position: fixed;
  right: 1.5rem;
  bottom: 5.3rem;
  z-index: 899;
  max-width: 278px;
  padding: 0.95rem 2rem 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.2, 0.6, 1);
}
.chat-nudge.is-visible { opacity: 1; transform: none; }
.chat-nudge p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}
.chat-nudge-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: none;
  background: none;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0.2rem;
}
.chat-nudge-close:hover { color: var(--text); }

.chat-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 950;
  width: min(400px, calc(100vw - 3rem));
  height: min(600px, calc(100vh - 3rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Cabecera oscura, con la misma marina que el bloque de agentes */
.chat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #172c47;
  font-family: var(--sans);
  flex-shrink: 0;
}
.chat-panel-title { display: flex; flex-direction: column; gap: 0.2rem; }
.chat-panel-title strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.chat-panel-title span {
  font-size: 0.8rem;
  color: #a9bad2;
}
.chat-close {
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #a9bad2;
  cursor: pointer;
  padding: 0 0.2rem;
  flex-shrink: 0;
}
.chat-close:hover { color: #fff; }

/* Botones de acceso rapido, sobre el campo de escritura */
.tic-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.85rem 1rem 0.15rem;
}
.tic-opcion {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tic-opcion:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a09;
}

.chat-mount {
  flex: 1;
  min-height: 0;
  position: relative;
  /* Variables del widget de n8n, ajustadas a la paleta de la web */
  --chat--color-primary: var(--accent);
  --chat--color-primary-shade-50: var(--accent-strong);
  --chat--color-white: #ffffff;
  --chat--body--background: #f4f6f9;
  --chat--message--font-size: 0.88rem;
  --chat--message--bot--background: #ffffff;
  --chat--message--bot--color: var(--text);
  --chat--message--user--background: var(--accent);
  --chat--message--user--color: #0a0a09;
  --chat--message--border-radius: 14px;
  --chat--textarea--height: 3.25rem;
}
/* El widget trae su propia cabecera; la ocultamos porque ya tenemos la nuestra.
   Va con el ID a proposito: la hoja de n8n se carga despues y con la misma
   especificidad ganaria ella. */
#chat-mount .chat-header,
#nora-mount .chat-header { display: none; }
#chat-mount .chat-body,
#nora-mount .chat-body { padding-top: 0.5rem; }
#chat-mount .chat-messages-list,
#nora-mount .chat-messages-list { justify-content: flex-end; }

/* NORA enseña pisos con foto. Sin esto la imagen se sale de la burbuja. */
#nora-mount .chat-message img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 0.5rem;
}

.chat-demo-tag {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.4rem;
  padding: 0.14rem 0.4rem;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.chat-mount-error {
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.chat-panel.is-loading .chat-mount::after {
  content: 'Cargando el asistente...';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .chat-nudge {
    right: 1rem;
    left: 1rem;
    bottom: 4.6rem;
    max-width: none;
  }
  .chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    height: min(78vh, 560px);
  }
  .chat-launcher {
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1.1rem;
    font-size: 0.86rem;
  }
}

/* ---------- paginas legales (privacidad, aviso legal) ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem 1.5rem 6rem;
}
.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 3.5rem;
}
.legal-page h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 3rem 0 0.9rem;
}
.legal-page p,
.legal-page li {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}
.legal-page p { margin-bottom: 1rem; }
.legal-page ul { margin: 0 0 1rem 1.15rem; }
.legal-page li { margin-bottom: 0.5rem; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.88rem;
}
.legal-page th,
.legal-page td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.legal-page th { color: var(--text); font-weight: 600; }
.legal-table-wrap { overflow-x: auto; }
.legal-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}
.legal-back:hover { color: var(--text); }
.legal-footer-link { margin-top: 3rem; }

/* Marca los huecos que faltan por rellenar. Borra la clase cuando pongas los datos. */
.legal-todo {
  background: #fff3cd;
  color: #7a5c00;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-weight: 600;
}

/* Ventana para ver un ejemplo a tamano completo */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 14, 22, 0.88);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; }
/* Imprescindible: sin esto el display:grid de arriba anula el atributo hidden
   y la capa se queda invisible pero encima de todo, tragandose los clics. */
.lightbox[hidden] { display: none; }
.lightbox-inner {
  position: relative;
  width: min(900px, 100%);
}
.lightbox-inner video {
  display: block;
  width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.lightbox-close:hover { color: #fff; }

/* El enlace de ejemplo es un boton, pero debe parecer un enlace */
.extra-copy button.pack-link {
  border: none;
  background: none;
  padding: 0;
  font-family: var(--sans);
  font-size: inherit;
  cursor: pointer;
}

/* Tres filas alternadas: el contenido a un lado, bien visible, y la
   explicacion al otro. Se ve el trabajo antes de tener que elegir nada. */
.servicio-filas {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 6rem);
}
/* Todas las filas comparten la misma proporcion. Es lo que hace que la seccion
   se lea ordenada: el contenido empieza y acaba siempre a la misma altura. */
.servicio-fila {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}
/* Filas pares: el contenido pasa a la derecha, y las proporciones se reflejan */
.servicio-fila.invertida .servicio-media { order: 2; }
.servicio-fila.invertida { grid-template-columns: 0.75fr 1.25fr; }

.servicio-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.servicio-media > video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
/* La demo interactiva ocupa su hueco sin tocar sus propios estilos */
.servicio-media .demo-box { max-width: none; }
.servicio-fila:has(.demo-box) .servicio-media {
  border: none;
  background: none;
  overflow: visible;
}

.servicio-texto .tag { margin-bottom: 1rem; display: inline-block; }
.servicio-texto h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.servicio-texto p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 44ch;
}
/* Aqui el boton va sobre fondo claro, no sobre la imagen */
.servicio-texto .extra-add-btn {
  margin-top: 1.75rem;
  border-color: var(--text);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
}
.servicio-texto .extra-add-btn:hover {
  background: var(--text);
  color: var(--bg);
}
.servicio-fila.is-selected .servicio-texto .extra-add-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a09;
}
.servicio-fila.is-selected .servicio-media {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .servicio-fila,
  .servicio-fila.invertida { grid-template-columns: 1fr; gap: 1.75rem; }
  .servicio-fila.invertida .servicio-media { order: 0; }
}

/* Aclaracion bajo el titulo de Extras */
.extras-note {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.pack-builder-actions { margin-top: 1.5rem; }
.pack-builder-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Casilla de consentimiento RGPD */
.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.25rem;
}
.consent-field input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-field label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.consent-field a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Nota legal bajo el formulario rapido del hero */
/* Nota legal minima bajo el formulario del hero. Tiene que estar aqui, en el punto
   donde se recoge el dato, pero lo mas discreta posible. */
.glass-legal-note {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.glass-legal-note a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Campo trampa antispam: oculto para personas y lectores de pantalla,
   visible para los bots que rellenan todos los campos del formulario. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-form {
  text-align: left;
  max-width: 540px;
  margin: 3.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--sans);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding-block: 3.5rem; }
/* La primera columna (marca) es mas ancha; las tres de enlaces se reparten igual. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.footer-col a,
.footer-col span:not(.logo) {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.footer-col a:hover { color: var(--text); }
.footer-marca { gap: 0.9rem; }
.footer-marca p { font-size: 0.9rem; color: var(--text-muted); max-width: 30ch; line-height: 1.6; }
/* Con --text-faint estas dos lineas quedaban en 3.10:1, por debajo del minimo
   legible (4.5:1). Se quedan en --text-muted, que mide 5.31:1. */
.footer-lugar { color: var(--text-muted); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .footer-marca { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Variante lateral: el bloque entra desde un lado, como un anuncio, y se queda fijo.
   El observador solo añade .in-view una vez, así que no se repite al volver a subir. */
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 0.8, 0.25, 1),
              transform 0.9s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); transition-delay: 0.15s; }
.reveal-left.in-view,
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-left,
  .reveal-right { transform: none; transition-duration: 0.01ms; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item { grid-column: span 2 !important; grid-row: span 1 !important; }
  .bento-large { grid-row: span 1 !important; }
}

@media (max-width: 768px) {
  .wheel-wrap { gap: 0.5rem; }
  .wheel-stack { height: 400px; perspective: 900px; }
  .wheel-card { width: clamp(160px, 62vw, 210px); height: clamp(320px, 80vw, 420px); padding: 1rem; }
  .wheel-arrow { width: 36px; height: 36px; }

  /* La barra lleva backdrop-filter, y eso la convierte en el marco de
     referencia de sus hijos position:fixed. Como .liquid-glass le pone
     overflow:hidden, el menu desplegable quedaba recortado a los 46px de alto
     de la barra: se abria pero no se veia nada. El ::before del cristal usa
     inset:0, asi que no necesita el recorte para nada. */
  .nav.liquid-glass { overflow: visible; }

  .nav-links {
    position: fixed;
    z-index: 60;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem var(--pad) 2rem;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    color: var(--text-muted);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a:not(.nav-cta):hover { color: var(--text); }
  .nav-cta { align-self: flex-start; }
  .hamburger { display: flex; }

  .demo-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
  .demo-stage { aspect-ratio: 3 / 4; }

  .timeline { flex-direction: column; align-items: flex-start; gap: 2.5rem; margin-top: 2.5rem; }
  .timeline-line { display: none; }
  .timeline-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1.25rem; }
  .timeline-content {
    margin-top: 0;
    max-width: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .reviews { grid-template-columns: 1fr; row-gap: 2rem; }
  .review { border-left: none; padding: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img { order: -1; }

  .other-services { grid-template-columns: 1fr; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; max-width: 280px; margin-inline: 0; }
  .hero h1 { max-width: none; }
}
