:root {
  --deep: #070b0f;
  --deep-2: #0e161c;
  --surface: #121c24;
  --line: #223038;
  --foam: #eae7dd;
  --foam-dim: #9aa8ac;
  --cyan: #4fd2c4;
  --cyan-dim: #2d6b64;
  --coral: #e37b5b;
  --radius: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #0f1c22 0%, var(--deep) 55%, #030507 100%);
  color: var(--foam);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.quote-wrap {
  width: 100%;
  max-width: 560px;
}

.quote-header {
  margin-bottom: 32px;
}

.quote-logo-link {
  display: inline-flex;
  margin-bottom: 14px;
}

.quote-logo {
  height: 52px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.quote-logo-link:hover .quote-logo,
.quote-logo-link:focus-visible .quote-logo {
  opacity: 1;
}

.quote-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 38px);
  margin: 6px 0 10px;
  line-height: 1.15;
}

.quote-sub {
  color: var(--foam-dim);
  font-size: 15px;
  line-height: 1.5;
  max-width: 46ch;
  margin: 0;
}

.quote-sub.small { font-size: 13px; margin-top: 10px; }

.quote-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 24px;
  padding: 10px 18px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.quote-cta-link:hover,
.quote-cta-link:focus-visible {
  background: var(--cyan);
  color: var(--bg, #0b1418);
}

.quote-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
}

.quote-footer-logo {
  height: 44px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.quote-footer-logo:hover,
.quote-footer-logo:focus-visible {
  opacity: 1;
}

/* Depth gauge — sustituye al progress bar genérico */
.depth-gauge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.depth-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.depth-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.depth-readout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 78px;
}

#depthMeters {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.depth-label {
  font-size: 11px;
  color: var(--foam-dim);
}

/* Steps */
.step {
  display: none;
}
.step.active {
  display: block;
  animation: rise 0.45s cubic-bezier(.2,.7,.3,1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 20px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.opt {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--foam);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  padding: 14px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opt:hover { border-color: var(--cyan-dim); }

.opt.selected {
  border-color: var(--cyan);
  background: #132621;
}

.opt-note {
  font-size: 12px;
  color: var(--foam-dim);
  font-weight: 400;
}

.duration-control {
  display: flex;
  align-items: center;
  gap: 22px;
}

.dur-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--foam);
  font-size: 20px;
  cursor: pointer;
}
.dur-btn:hover { border-color: var(--cyan); }

#durValue {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  min-width: 32px;
  text-align: center;
}

.estimate-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.estimate-label { font-size: 12px; color: var(--foam-dim); }

.estimate-value {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  color: var(--cyan);
}

.estimate-note { font-size: 12px; color: var(--foam-dim); }

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  color: var(--foam-dim);
  margin-top: 4px;
}

.contact-fields input {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--foam);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  padding: 13px 14px;
  border-radius: var(--radius);
}

.contact-fields input:focus {
  outline: none;
  border-color: var(--cyan);
}

.contact-fields input::placeholder { color: var(--foam-dim); }

.contact-fields textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--foam);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  padding: 13px 14px;
  border-radius: var(--radius);
  resize: vertical;
  min-height: 70px;
}

.contact-fields textarea::placeholder { color: var(--foam-dim); }

.contact-fields textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.form-msg {
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}
.form-msg.ok { color: var(--cyan); }
.form-msg.error { color: var(--coral); }

/* Nav */
.quote-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

.nav-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: #05201c;
  cursor: pointer;
  display: none;
}
.nav-btn.visible { display: inline-block; }

.nav-btn.ghost {
  background: transparent;
  color: var(--foam-dim);
  border-color: var(--line);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Focus visibility */
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .step.active, .depth-fill { animation: none; transition: none; }
}

/* Mobile */
@media (max-width: 480px) {
  .option-grid { grid-template-columns: 1fr; }
  .quote-nav { flex-direction: column-reverse; }
  .nav-btn { width: 100%; text-align: center; }
}
