/* ==========================================================================
   Plaza by Civis — estilos compartidos (Plaza, CIVIS XV, NODO)
   Cada landing define su paleta y textura con .theme-*
   ========================================================================== */

:root {
  --bg: #fff9f4;            /* blanco hueso */
  --bg-alt: #f5ebe2;
  --surface: #ffffff;
  --ink: #3e2c25;
  --ink-soft: #6f5b51;
  --line: rgba(62, 44, 37, .14);
  --accent: #b97e65;        /* cobre Plaza */
  --accent-dark: #8e604b;
  --accent-light: #e4b9a8;
  --accent-ink: #ffffff;
  --dark: #2e201b;
  --dark-2: #45302a;
  --green: #4d6650;         /* verde salvia de apoyo */
  --wa: #25d366;
  --metal: linear-gradient(115deg, var(--accent-dark) 0%, var(--accent) 35%, var(--accent-light) 52%, var(--accent) 68%, var(--accent-dark) 100%);
  --glow: rgba(255, 196, 150, .75);

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --radius-btn: 7px;
  --shadow: 0 24px 60px -24px rgba(46, 32, 27, .35);
  --header-h: 84px;
  --topbar-h: 36px;

  /* Travertino generado (Plaza): vetas horizontales suaves en tono cobre */
  --texture-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='t'><feTurbulence type='fractalNoise' baseFrequency='0.0016 0.011' numOctaves='3' seed='11'/><feColorMatrix values='0 0 0 0 0.74 0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0.9 -0.42'/></filter><rect width='100%' height='100%' filter='url(%23t)'/></svg>");
  --texture-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='t'><feTurbulence type='fractalNoise' baseFrequency='0.0018 0.006' numOctaves='4' seed='4'/><feColorMatrix values='0 0 0 0 0.82 0 0 0 0 0.58 0 0 0 0 0.46 0 0 0 0.85 -0.42'/></filter><rect width='100%' height='100%' filter='url(%23t)'/></svg>");
  --texture-light-size: 900px;
  --texture-light-opacity: .6;
}

/* CIVIS XV: oro rosado sobre mármol crema con vetas cobre */
.theme-xv {
  --bg: #faf6f1;
  --bg-alt: #f1e9e1;
  --ink: #3f2f28;
  --ink-soft: #725f55;
  --accent: #ab7f69;
  --accent-dark: #7f543e;
  --accent-light: #ddb39d;
  --dark: #33251f;
  --dark-2: #4a3830;
  --texture-light: url("../img/common/marmol-xv.jpg");
  --texture-light-size: cover;
  --texture-light-opacity: .9;
}

/* NODO: chocolate y cobre sobre mármol cobrizo */
.theme-nodo {
  --bg: #fbf7f2;
  --bg-alt: #f3ebe3;
  --ink: #3b211a;
  --ink-soft: #6c5249;
  --accent: #a3674c;
  --accent-dark: #6e3a27;
  --accent-light: #d9a587;
  --dark: #4b1f16;
  --dark-2: #5f2b1f;
  --texture-dark: url("../img/common/marmol-nodo.jpg");
  --texture-light: url("../img/common/marmol-nodo.jpg");
  --texture-light-size: cover;
  --texture-light-opacity: .11;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: var(--radius-btn); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.title--sm { font-size: clamp(24px, 2.4vw, 32px); }
.title--light { color: #fff; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.fine { font-size: 13px; color: var(--ink-soft); }
.center { text-align: center; }

/* Texto con efecto metálico (cobre) */
.metal {
  background: var(--metal);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Divisor bajo los títulos: línea con escalón */
.divider { display: block; width: 132px; height: 22px; margin: 18px 0 28px; overflow: visible; }
.center .divider, .divider--center { margin-left: auto; margin-right: auto; }
.divider path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.4s cubic-bezier(.6, 0, .2, 1) .15s; filter: drop-shadow(0 0 3px var(--glow)); }
.is-visible .divider path, .divider.is-visible path { stroke-dashoffset: 0; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45); }
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--metal); background-size: 180% 100%; background-position: 20% 0; }
.btn--accent:hover { background-position: 80% 0; }
.btn--dark { --btn-bg: var(--dark); }
.btn--wa { --btn-bg: var(--wa); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--accent-dark); border-color: currentColor; }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; border-color: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--dark); }
.btn--block { width: 100%; }
.btn--soon { --btn-bg: transparent; --btn-fg: var(--ink-soft); border: 1px dashed var(--line); cursor: default; }
.btn--soon:hover { transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

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

/* ---------- Barra superior ---------- */
.topbar {
  position: relative;
  z-index: 60;
  height: var(--topbar-h);
  background: var(--dark);
  color: rgba(255, 255, 255, .78);
  font-size: 12.5px;
  letter-spacing: .08em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 22px; align-items: center; white-space: nowrap; overflow: hidden; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__info .icon { width: 15px; height: 15px; color: var(--accent-light); }
.lang { display: flex; align-items: center; gap: 4px; }
.lang a, .lang span { padding: 2px 7px; border-radius: 4px; }
.lang [aria-current="true"] { color: var(--dark); background: var(--accent-light); font-weight: 700; }
.lang [aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  left: 0; right: 0;
  top: var(--topbar-h);
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 12, 9, .55), rgba(20, 12, 9, 0));
  transition: background-color .35s ease, top .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.is-scrolled {
  top: 0;
  height: 72px;
  background-color: rgba(30, 20, 16, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.theme-nodo .site-header.is-scrolled { background-color: rgba(60, 24, 17, .94); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; transition: height .35s ease; }
.site-header.is-scrolled .brand img { height: 38px; }
.brand--white img { filter: brightness(0) invert(1); }
.brand__by { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .75; border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 14px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  opacity: .92;
}
.nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--accent-light); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 10px; }
.nav__cta .btn { min-height: 42px; padding: 9px 18px; font-size: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(620px, 100svh);
  color: #fff;
  overflow: hidden;
  background: var(--dark);
  isolation: isolate;
}
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.slide.is-active { opacity: 1; }
.slide img, .slide picture { width: 100%; height: 100%; object-fit: cover; }
.kenburns .slide img { transform: scale(1.02); }
.kenburns .slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 9, 7, .45) 0%, rgba(15, 9, 7, 0) 28%),
    linear-gradient(90deg, rgba(15, 9, 7, .72) 0%, rgba(15, 9, 7, .25) 55%, rgba(15, 9, 7, 0) 80%),
    linear-gradient(0deg, rgba(15, 9, 7, .55) 0%, rgba(15, 9, 7, 0) 40%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 3;
  min-height: max(620px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--topbar-h) + var(--header-h) + 40px);
  padding-bottom: clamp(150px, 20vh, 230px);
}
.hero__logo { width: clamp(180px, 22vw, 300px); margin-bottom: 26px; filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 74px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  max-width: 14ch;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero__text { max-width: 540px; margin: 22px 0 32px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .88); }
.hero__dots { position: absolute; z-index: 4; right: var(--gutter); bottom: 32px; display: flex; gap: 10px; }
.dot { width: 34px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background .3s ease, width .3s ease; }
.dot.is-active { width: 54px; background: var(--accent-light); }
.hero__scroll { position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%); color: rgba(255, 255, 255, .8); display: grid; place-items: center; gap: 6px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; }
.hero__scroll .icon { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Sección con textura (ficha técnica) ---------- */
.textured { position: relative; background-color: var(--bg); isolation: isolate; }
.textured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--texture-light);
  background-size: var(--texture-light-size);
  background-position: center;
  opacity: var(--texture-light-opacity);
  pointer-events: none;
}
.textured-dark { position: relative; background-color: var(--dark); color: #fff; isolation: isolate; }
.textured-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--texture-dark);
  background-size: cover;
  background-position: center;
  opacity: .9;
  pointer-events: none;
}
.theme-nodo .textured-dark::after,
.theme-xv .textured-dark::after,
.textured-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(20, 10, 8, .55), rgba(20, 10, 8, .15));
  pointer-events: none;
}

/* ---------- Ficha técnica + formulario ---------- */
.ficha { padding-top: 0; }
.ficha__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.ficha__info { padding-top: clamp(56px, 7vw, 96px); }
.icon-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.icon-list .icon { color: var(--accent); margin-top: 2px; }
.icon-list strong { font-weight: 600; color: var(--ink); }
.icon-list--compact { gap: 8px; }
.icon-list--compact li { grid-template-columns: 20px 1fr; gap: 10px; }
.icon-list--compact .icon { width: 18px; height: 18px; margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 36px 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(255, 255, 255, .55); padding: 20px 18px; backdrop-filter: blur(4px); }
.stat__num { font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--accent-dark); }
.stat__label { font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); margin-top: 8px; }

.form-card {
  position: relative;
  z-index: 5;
  margin-top: clamp(-200px, -16vw, -120px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 3vw, 38px);
}
/* Línea cobre superior: se recorta con la máscara para seguir las esquinas redondeadas */
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding-top: 4px;
  border-radius: inherit;
  background: var(--metal);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.form-card__title { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 32px); color: var(--accent-dark); margin-bottom: 6px; }
.form-card__sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdfb;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field--phone .phone { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.field.is-invalid input, .field.is-invalid select { border-color: #b4412e; }
.field__error { font-size: 12.5px; color: #b4412e; min-height: 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-dark); }
.check a { color: var(--accent-dark); }
.form__error { margin: 0; padding: 10px 14px; border-radius: 9px; background: #fbeae6; color: #8f2f1f; font-size: 14px; line-height: 1.45; }
.form__error[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__alt { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink-soft); }
.form-success { display: none; text-align: center; padding: 20px 4px 6px; }
.form-success .icon { width: 54px; height: 54px; color: var(--green); margin: 0 auto 12px; padding: 12px; border-radius: 50%; background: color-mix(in srgb, var(--green) 12%, transparent); }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .form-success { display: block; }

/* ---------- Intro del proyecto (corte + relato) ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro__media { position: relative; }
.intro__media img { width: 100%; border-radius: var(--radius); mix-blend-mode: multiply; }
.intro__logo { height: clamp(64px, 7vw, 96px); width: auto; margin-bottom: 22px; }
.intro__tagline { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); color: var(--accent-dark); margin: 0 0 20px; line-height: 1.3; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.pill .icon { width: 16px; height: 16px; }
.pill--green { color: var(--green); }

/* ---------- Carrusel ---------- */
.carousel { position: relative; }
.carousel__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.carousel__nav { display: flex; gap: 10px; flex: none; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent-dark); display: grid; place-items: center; cursor: pointer; transition: background .25s ease, color .25s ease, transform .25s ease; }
.round-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; background: var(--surface); color: var(--accent-dark); }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.card-img { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3.3; cursor: zoom-in; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card-img:hover img { transform: scale(1.06); }
.card-img figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 20px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(15, 9, 7, .78), rgba(15, 9, 7, 0));
}
.card-img figcaption small { display: block; font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: 14px; opacity: .85; margin-top: 3px; }

/* Grupos de amenities / servicios */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 48px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group { background: rgba(255, 255, 255, .7); padding: 26px 24px; }
.group h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.group h3 .icon { color: var(--accent); }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.group li::before { content: ""; display: inline-block; width: 10px; height: 1.5px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.group p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Banda slideshow a pantalla completa ---------- */
.band { position: relative; height: clamp(440px, 78vh, 800px); overflow: hidden; background: var(--dark); color: #fff; isolation: isolate; }
.band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 9, 7, .7), rgba(15, 9, 7, .1) 60%); pointer-events: none; }
.band--plain::after { background: linear-gradient(0deg, rgba(15, 9, 7, .45), rgba(15, 9, 7, 0) 50%); }
.band__content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.band__box { max-width: 520px; }
.band__box p { color: rgba(255, 255, 255, .86); }
.band__caption { position: absolute; z-index: 3; left: var(--gutter); bottom: 28px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.band .hero__dots { bottom: 30px; }

/* ---------- Tarjetas de producto (home) ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
}
.product__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.product__photo { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product__photo { transform: scale(1.05); }
.product__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 9, 7, .7), rgba(15, 9, 7, 0) 55%); }
.product__logo { position: absolute; z-index: 2; left: 28px; bottom: 24px; height: 58px; width: auto; max-width: 60%; filter: brightness(0) invert(1); }
.product__tag { position: absolute; z-index: 2; top: 20px; left: 20px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--dark); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.product__body { display: flex; flex-direction: column; gap: 16px; padding: 28px; flex: 1; }
.product__body h3 { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); color: var(--accent-dark); }
.product__body .icon-list { margin: 0; }
.product__body .btn { align-self: flex-start; margin-top: auto; }
.product--xv .product__logo { height: 78px; }
.product--xv { --accent: #ab7f69; --accent-dark: #7f543e; --accent-light: #ddb39d; }
.product--nodo { --accent: #a3674c; --accent-dark: #6e3a27; --accent-light: #d9a587; --dark: #4b1f16; }

/* ---------- Tipologías (pestañas) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; }
.tab {
  min-height: 42px;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}
.tab:hover { color: var(--accent-dark); border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.tabpanel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; animation: fadeUp .5s ease both; }
.tabpanel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tipo__label { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.tipo__name { font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); color: var(--ink); margin: 6px 0 4px; }
.tipo__area { font-size: clamp(22px, 2vw, 26px); font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.tipo__sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.tipo__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-bottom: 28px; }
.tipo__cols h4 { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.tipo__cols .icon-list { margin: 0; }
.tipo__cols .icon-list li { font-size: 15px; }
.plans { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(14px, 2vw, 24px); }
.plans .carousel__track { grid-auto-columns: 100%; gap: 16px; }
.plans figure { margin: 0; display: grid; gap: 10px; }
.plans .plan-img { width: 100%; height: clamp(280px, 34vw, 460px); object-fit: contain; border-radius: 10px; background: #fffaf6; cursor: zoom-in; }
.plans .plan-img--photo { object-fit: cover; }
.plans figcaption { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.plans__nav { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; padding: 0 6px; }
.plans__nav .round-btn { pointer-events: auto; width: 42px; height: 42px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.disclaimer { margin-top: 36px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 26px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 40px -28px rgba(46, 32, 27, .5); }
.notice h3 { font-family: var(--font-display); font-size: 22px; color: var(--accent-dark); margin-bottom: 4px; }
.notice p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Showroom 3D ---------- */
.showroom { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.showroom__preview { display: block; position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--dark); border: 0; padding: 0; cursor: pointer; width: 100%; }
.showroom__preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease, filter .6s ease; filter: saturate(.95); }
.showroom__preview:hover img { transform: scale(1.04); filter: saturate(1.1); }
.showroom__play { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(15, 9, 7, .2), rgba(15, 9, 7, .55)); color: #fff; }
.showroom__play span { display: grid; place-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.showroom__play .ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); animation: pulse 2.6s ease-in-out infinite; }
.showroom__play .ring .icon { width: 38px; height: 38px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 220, 200, .45); } 50% { box-shadow: 0 0 0 18px rgba(255, 220, 200, 0); } }

/* ---------- Ubicación ---------- */
.ubicacion__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.map-frame { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: #fff9f4; box-shadow: var(--shadow); aspect-ratio: 1585 / 1217; }
.map-frame img, .map-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.map-frame__btn { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.poi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; list-style: none; padding: 0; margin: 24px 0 32px; font-size: 15px; }
.poi li { display: flex; gap: 10px; align-items: center; }
.poi .icon { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Respaldo Civis ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.value { background: var(--surface); padding: 26px 24px; }
.value .icon { color: var(--accent); width: 28px; height: 28px; margin-bottom: 14px; }
.value h3 { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.value p { font-size: 15px; color: var(--ink-soft); }
.ecosystem { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.eco-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.eco-list li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.eco-list b { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13.5px; color: var(--ink); }
.eco-list span { color: var(--ink-soft); text-align: right; }
.badge-edge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: color-mix(in srgb, var(--green) 10%, #fff); color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.badge-edge .icon { color: var(--green); }

/* ---------- Pasos (modelo de administración NODO) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; list-style: none; margin: 40px 0 0; padding: 0; }
.step { position: relative; padding: 28px 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 34px; color: var(--accent-light); display: block; margin-bottom: 14px; }
.step h3 { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: #fff; }
.step p { font-size: 15px; color: rgba(255, 255, 255, .78); }
.step .icon { position: absolute; top: 28px; right: 22px; color: var(--accent-light); width: 28px; height: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 4px; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform .3s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq__body { padding: 0 4px 24px; color: var(--ink-soft); }

/* ---------- Aliados ---------- */
.aliados { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.aliado { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.aliado:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aliado__role { min-height: 3.3em; display: flex; align-items: flex-end; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.aliado__mark { width: 96px; height: 96px; margin: 16px auto; border-radius: 50%; display: grid; place-items: center; overflow: hidden; box-shadow: 0 10px 22px -14px rgba(46, 32, 27, .55); }
.aliado__mark img { width: 100%; height: 100%; object-fit: contain; }
.aliado__mark--word { background: #fff; border: 1px solid var(--line); padding: 16px 12px; }
.aliado__name { font-weight: 700; letter-spacing: .06em; }
.aliado__desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 88px) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); letter-spacing: .02em; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; color: rgba(255, 255, 255, .82); padding: clamp(64px, 7vw, 96px) 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 64px; width: auto; filter: brightness(0) invert(1); }
.footer__brand .civis { height: 70px; margin-top: 26px; opacity: .85; }
.site-footer h3 { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 18px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__links li { display: flex; gap: 10px; align-items: flex-start; }
.footer__links .icon { width: 18px; height: 18px; color: var(--accent-light); margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; }
.social a:hover { background: rgba(255, 255, 255, .12); }
.social .icon { width: 18px; height: 18px; }
.footer__bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .6); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .25s ease; }
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Lightbox ---------- */
.modal__close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.modal__close:hover { background: rgba(255, 255, 255, .2); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 7, 5, .94); color: #fff; }
.lightbox::backdrop { background: rgba(12, 7, 5, .94); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px 56px; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff9f4; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.lightbox .modal__close { position: absolute; top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__list { gap: 18px; }
  .nav__list a { letter-spacing: .1em; font-size: 12px; }
  .aliados { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  :root { --header-h: 70px; }
  /* backdrop-filter crea un containing block y atraparía el menú fijo dentro del header */
  .site-header.is-scrolled { backdrop-filter: none; background-color: rgba(30, 20, 16, .97); }
  .theme-nodo .site-header.is-scrolled { background-color: rgba(60, 24, 17, .97); }
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 80;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    padding: 96px var(--gutter) 40px;
    background: var(--dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .textured-dark.nav, .nav { background-image: linear-gradient(160deg, rgba(20, 10, 8, .2), rgba(20, 10, 8, .6)), var(--texture-dark); background-size: cover; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a { display: block; font-family: var(--font-display); font-size: 26px; letter-spacing: .06em; font-weight: 400; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav__list a::after { display: none; }
  .nav__cta { flex-direction: column; }
  .nav__cta .btn { min-height: 52px; }
  .nav__close { position: absolute; top: 18px; right: var(--gutter); }
  .nav-toggle[aria-expanded="true"] { position: relative; z-index: 90; }
}

@media (max-width: 960px) {
  .ficha__grid, .intro, .tabpanel, .showroom, .ubicacion__grid, .ecosystem { grid-template-columns: 1fr; }
  .form-card { margin-top: -90px; }
  .ficha__info { padding-top: 8px; order: 2; }
  .intro__media { max-width: 520px; }
  .products { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__info .hide-m { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__info { display: none; }
  .topbar .container { justify-content: flex-end; }
  .brand img { height: 38px; }
  .brand__by { display: none; }
  .hero__content { padding-bottom: 150px; }
  .hero__dots { left: var(--gutter); right: auto; bottom: 110px; }
  .hero__scroll { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 16px 12px; }
  .stat__label { font-size: 12px; }
  .carousel__track { grid-auto-columns: 84%; gap: 14px; }
  .carousel__head { flex-direction: column; align-items: flex-start; }
  .groups, .groups--3, .values, .steps, .poi, .tipo__cols { grid-template-columns: 1fr; }
  .aliados { grid-template-columns: 1fr 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .lightbox__inner { padding: 56px 8px 56px; }
  .field--phone .phone { grid-template-columns: 112px 1fr; }
  .field--phone select { padding-left: 10px; padding-right: 6px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
