
:root {
  --navy:      #1A2E52;
  --navy-card: #20344D;
  --navy-deep: #152644;
  --blue:      #40A9FF;
  --blue-soft: #74B2FF;
  --ink:       #FFFFFF;
  --ink-2:     rgba(255,255,255,0.72);
  --ink-3:     rgba(255,255,255,0.48);
  --ink-4:     rgba(255,255,255,0.20);
  --rule:      rgba(255,255,255,0.10);
  --f-sans:    'Open Sans', system-ui, sans-serif;
  --f-serif:   'Montserrat', system-ui, sans-serif;
  --ease:      cubic-bezier(.2,.7,.2,1);
  --radius:    16px;
  --container: 680px;
  --gutter:    clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0; }
::selection { background: var(--blue); color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(26,46,82,0.80);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}
.brand { display: flex; align-items: center; height: 92px; }
.brand img { height: 66px; width: auto; display: block; transition: opacity .2s var(--ease), transform .3s var(--ease); }
@media (max-width: 560px){ .brand img { height: 52px; } }
.brand:hover img { opacity: .85; }
.nav-back {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3);
  transition: color .2s var(--ease);
}
.nav-back:hover { color: var(--ink); }
.nav-back svg { width: 16px; height: 16px; }

/* ===== Wizard shell ===== */
.wizard {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 60px;
}
.wizard-flow { display: contents; }
.wizard-flow[hidden] { display: none; }
.investor-intro {
  width: 100%; max-width: var(--container);
  margin: 0 auto 32px;
  color: var(--ink-2); text-align: center; font-size: 15px;
}
.investor-progress { margin-top: 8px; }
.investor-optional { color: var(--ink-3); font-size: 12px; text-transform: none; letter-spacing: 0; }
.investor-textarea { min-height: 112px; resize: vertical; }
body.investor-mode .success-screen { color: #1A2E52; }
body.investor-mode .success-screen .success-lead { color: rgba(26,46,82,0.76); }
body.investor-mode .success-screen .success-meta,
body.investor-mode .success-screen .success-backup { color: rgba(26,46,82,0.68) !important; }

/* Progress bar */
.progress-wrap {
  width: 100%; max-width: var(--container);
  margin-bottom: 40px;
}
.progress-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 12px;
}
.progress-step {
  flex: 1;
  display: flex; align-items: center;
}
.progress-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--ink-4);
  color: var(--ink-3);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  flex-shrink: 0;
}
.progress-dot.active { border-color: var(--blue); color: var(--blue); }
.progress-dot.done { background: var(--blue); border-color: var(--blue); color: var(--navy); }
.progress-dot.done svg { width: 14px; height: 14px; }
.progress-line {
  flex: 1; height: 1px; background: var(--ink-4);
  margin: 0 8px;
  transition: background .3s var(--ease);
}
.progress-line.done { background: var(--blue); }
.progress-labels {
  display: flex;
  margin-top: 8px;
}
.progress-label {
  flex: 1;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--ink-3);
  transition: color .3s var(--ease);
  text-align: center;
}
.progress-label:first-child { text-align: left; }
.progress-label:last-child { text-align: right; }
.progress-label.active { color: var(--blue); }
.progress-label.done { color: var(--ink-2); }

@media (max-width: 560px) {
  .progress-labels { min-height: 20px; margin-top: 10px; }
  .progress-label { display: none; flex: 1; font-size: 10px; letter-spacing: 0.12em; text-align: center; }
  .progress-label.active { display: block; }
  .progress-label:first-child,
  .progress-label:last-child { text-align: center; }
}

/* ===== Step card ===== */
.step-card {
  width: 100%; max-width: var(--container);
  background: var(--navy-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  display: none;
}
.step-card.active { display: block; animation: stepIn .35s var(--ease) both; }
.step-card.exit   { animation: stepOut .25s var(--ease) both; }

@keyframes stepIn  { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stepOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-20px); } }

.step-over {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--blue); font-weight: 500;
  margin-bottom: 16px;
}
.step-card h2 {
  font-family: var(--f-serif);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.step-card .step-sub {
  font-size: 15px; color: var(--ink-3);
  margin-bottom: 32px;
}

/* Text input */
.field-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.field-wrap label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 500; }
.field-input {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color .2s var(--ease);
}
.field-input:focus { outline: none; border-color: var(--blue); }
.field-input::placeholder { color: var(--ink-3); }
.field-input.error { border-color: rgba(255,100,100,0.6); }

/* Option grid (rooms / quality) */
.option-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.option-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.option-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 540px) {
  .option-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .option-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

.option-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: rgba(0,0,0,0.15);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
  text-align: center;
  user-select: none;
}
.option-btn:hover { border-color: rgba(64,169,255,0.4); background: rgba(64,169,255,0.06); }
.option-btn.selected {
  border-color: var(--blue);
  background: rgba(64,169,255,0.12);
  transform: translateY(-1px);
}
.option-btn .opt-icon { font-size: 28px; line-height: 1; }
.option-btn .opt-label { font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.2; }
.option-btn .opt-sub { font-size: 11px; color: var(--ink-3); }
.option-btn.selected .opt-label { color: var(--ink); }

/* Contact form grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.contact-grid .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } }

/* Navigation buttons */
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-3);
  padding: 12px 0;
  transition: color .2s var(--ease);
  border: none; background: none; cursor: pointer;
}
.btn-back:hover { color: var(--ink); }
.btn-back svg { width: 16px; height: 16px; }
.btn-next {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: var(--ink); color: var(--navy);
  border-radius: 12px; font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 10px 40px -10px rgba(64,169,255,0.3);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
  border: none; cursor: pointer;
  margin-left: auto;
}
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 16px 60px -14px rgba(64,169,255,0.5); }
.btn-next svg { color: var(--blue); }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Success screen */
.success-screen {
  display: none;
  width: 100%; max-width: var(--container);
  text-align: center;
  padding: clamp(32px, 5vw, 56px);
  background: var(--navy-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  animation: stepIn .4s var(--ease) both;
}
.success-screen.visible { display: block; }
.success-icon {
  width: 64px; height: 64px;
  background: rgba(64,169,255,0.12);
  border: 1px solid rgba(64,169,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--blue);
}
.success-icon svg { width: 28px; height: 28px; }
.success-screen h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.success-lead {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 380px;
  margin: 0 auto 20px;
  line-height: 1.55;
}
.success-email {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(64,169,255,0.08);
  border: 1px solid rgba(64,169,255,0.20);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--blue-soft);
  margin: 0 auto 28px;
  max-width: 100%;
}
.success-email svg { width: 14px; height: 14px; flex-shrink: 0; }
.success-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.success-meta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--ink-3);
}
.success-meta svg { width: 14px; height: 14px; color: var(--blue); }

/* Footer */
.wizard-footer {
  text-align: center;
  padding: 24px var(--gutter);
  font-size: 12px; color: var(--ink-3);
  border-top: 1px solid var(--rule);
  margin-top: auto;
}
.wizard-footer a { color: var(--blue); }

/* Remates auditoría 2026-08-09 — solo maquetación, nada de color */
/* El carrusel dentro de una rejilla obliga a la columna a su ancho máximo si no se acota */
.reviews-grid > *, .reviews-ticker-section, .lt-rows { min-width: 0; }
@media (max-width: 760px) {
  /* Tablas anchas: se desplazan solas en vez de romper la página */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* La ilustración del héroe se salía del viewport */
  .hero-viz, .hero-viz-wrap, .iso-scene, .orbit-platforms { max-width: 100%; overflow: hidden; }
  /* Las tarjetas en rejilla no deben crecer con el ancho intrínseco de su foto */
  .team-card, .team-grid > * { min-width: 0; }
  .team-photo, .team-card img { max-width: 100%; height: auto; }
}

/* Banner de cookies en el wizard: mientras esté abierto, deja hueco abajo para que
   nunca tape el botón Siguiente; en móvil además se compacta. No toca cookies.css global. */
body:has(.bh-cc.open) { padding-bottom: 180px; }
@media (max-width: 820px) {
  body:has(.bh-cc.open) { padding-bottom: calc(96px + 230px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .bh-cc { padding: 12px 14px !important; }
  .bh-cc h3 { font-size: 14px !important; margin-bottom: 4px !important; }
  .bh-cc p { font-size: 12.5px !important; line-height: 1.35 !important; }
  .bh-cc-btn { padding: 8px 14px !important; font-size: 13px !important; }
}
