:root {
  --ink: #18214f;
  --muted: #69708a;
  --paper: #f5f7fc;
  --white: #ffffff;
  --brand: #2e3a91;
  --brand-dark: #1f286f;
  --brand-light: #e9ecfa;
  --silver: #989ba5;
  --line: #dfe3ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  height: 92px;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #071017;
  box-shadow: 0 8px 30px rgba(30, 40, 111, .05);
}

.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; }
.brand img { display: block; width: 148px; height: 72px; object-fit: contain; object-position: left center; }
.trust { font-size: 14px; color: #d7d2c8; }

.calculator-section {
  max-width: none;
  margin: 0 auto;
  min-height: 690px;
  padding: clamp(54px, 7vw, 100px) max(20px, calc((100vw - 1120px)/2));
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(9, 15, 48, .91) 0%, rgba(16, 24, 70, .82) 44%, rgba(20, 28, 74, .62) 100%),
    url('./restaurante-cinematografico.webp') center / cover no-repeat;
}

.eyebrow, .step { display: inline-block; color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-size: 13px; font-weight: 800; }
.intro h1 { max-width: 600px; margin: 18px 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5.3vw, 76px); line-height: .99; letter-spacing: -.045em; }
.intro h1 { color: var(--white); text-shadow: 0 3px 24px rgba(0,0,0,.25); }
.intro h1 em { color: #d9dcf8; font-weight: inherit; }
.intro > p { max-width: 540px; margin: 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.78); }
.formula-card { margin-top: 38px; padding: 18px 20px; border-left: 4px solid #c2a66d; background: rgba(255,255,255,.11); backdrop-filter: blur(8px); color: var(--white); }
.formula-card span { display: block; color: rgba(255,255,255,.65); font-size: 13px; margin-bottom: 5px; }
.formula-card strong { font-size: 15px; }

.calculator { padding: clamp(24px, 4vw, 48px); background: var(--white); border-radius: 16px; box-shadow: 0 30px 70px rgba(30,40,111,.13); border-top: 5px solid var(--brand); }
.form-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 28px; }
.form-heading h2 { margin: 7px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.clear-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 7px; }
.clear-button:hover { color: var(--brand); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label > span { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 750; }
.money-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; transition: border-color .2s, box-shadow .2s; }
.money-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,58,145,.12); }
.money-input b { color: var(--muted); padding-left: 14px; font-size: 14px; }
.money-input input { width: 100%; border: 0; outline: 0; padding: 15px 13px 15px 8px; background: transparent; font-size: 17px; }
.primary-button, .cta-button { border: 0; cursor: pointer; text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 28px; font-weight: 800; }
.primary-button { width: 100%; margin-top: 24px; padding: 17px 20px; border-radius: 8px; background: var(--brand); color: var(--white); }
.primary-button:hover { background: var(--brand-dark); }
.error { min-height: 20px; margin: 10px 0 0; color: #a12836; font-size: 14px; }
.results { margin-top: 18px; display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--line); background: #f7f6f3; }
.results[hidden] { display: none; }
.result-main, .result-secondary { padding: 20px; }
.result-main { background: var(--brand-dark); color: var(--white); }
.result-main span, .result-secondary span { display: block; font-size: 13px; margin-bottom: 8px; opacity: .75; }
.result-main strong, .result-secondary strong { display: block; font-size: 28px; }
.result-main b { display: block; margin-top: 4px; color: #d8dcff; }
.result-secondary small { display: block; margin-top: 5px; color: var(--muted); }
.results > p { grid-column: 1 / -1; margin: 0; padding: 15px 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.result-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 0 20px 20px; }
.result-cta, .result-schedule { min-height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; font-size: 14px; font-weight: 800; text-decoration: none; }
.result-cta { justify-content: space-between; background: var(--brand); color: var(--white); }
.result-cta:hover { background: var(--brand-dark); }
.result-schedule { border: 1px solid var(--line); color: var(--brand-dark); background: var(--white); }

.explain { background: var(--white); padding: clamp(65px, 8vw, 110px) max(24px, calc((100vw - 1120px)/2)); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.explain h2 { margin: 14px 0 0; max-width: 560px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.explain-copy > p { margin-top: 3px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.explain ul { list-style: none; padding: 0; margin: 30px 0 0; }
.explain li { padding: 15px 0; border-top: 1px solid var(--line); font-weight: 700; line-height: 1.5; }
.explain li span { color: var(--brand); margin-right: 12px; }

.cta { padding: clamp(55px, 7vw, 90px) max(24px, calc((100vw - 1120px)/2)); background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: var(--white); display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.cta > div { max-width: 750px; }
.eyebrow.light { color: #d8dcff; }
.cta h2 { margin: 12px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; }
.cta p { max-width: 650px; margin: 0; line-height: 1.65; color: rgba(255,255,255,.8); }
.cta-button { min-width: 230px; padding: 18px 20px; border-radius: 8px; background: var(--white); color: var(--brand-dark); }
.cta-button:hover { background: var(--brand-light); }
footer { padding: 28px max(24px, calc((100vw - 1120px)/2)); background: #111735; color: #c5c9dc; display: flex; justify-content: space-between; gap: 40px; font-size: 12px; line-height: 1.5; }
footer p { max-width: 540px; margin: 0; }

@media (max-width: 850px) {
  .trust { display: none; }
  .calculator-section, .explain { grid-template-columns: 1fr; }
  .calculator-section { padding-top: 55px; gap: 42px; background-position: 38% center; }
  .explain { gap: 38px; }
  .cta { align-items: stretch; flex-direction: column; gap: 30px; }
  .cta-button { width: 100%; }
  footer { flex-direction: column; gap: 12px; }
}

@media (max-width: 520px) {
  .topbar { height: 78px; padding-inline: 18px; }
  .brand img { width: 120px; height: 60px; }
  .calculator-section { padding-top: 36px; padding-bottom: 52px; background-position: 32% center; }
  .intro h1 { font-size: 38px; }
  .field-grid, .results { grid-template-columns: 1fr; }
  .result-actions { grid-template-columns: 1fr; }
  .result-main, .result-secondary { grid-column: 1; }
  .form-heading { align-items: center; }
  .calculator { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
