:root {
  --night: #0f1a24;
  --night-soft: #162433;
  --ivory: #faf6f0;
  --gold: #c9a962;
  --gold-dim: #a88b4a;
  --white: #ffffff;
  --ink: #1a1f26;
  --muted: #5c6570;
  --line: #e8e0d4;
  --header: 76px;
  --max: 1140px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --shadow: 0 24px 60px rgba(15, 26, 36, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--night);
  color: var(--white);
  padding: 8px 14px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.site-header--dark {
  background: rgba(15, 26, 36, 0.85);
  backdrop-filter: blur(12px);
  color: var(--ivory);
}
.site-header--light {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--gold);
}
.site-header--light .brand-mark {
  background: var(--night);
  color: var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}
.nav a:hover,
.nav a.is-active { opacity: 1; color: var(--gold); }
.site-header--light .nav a:hover,
.site-header--light .nav a.is-active { color: var(--gold-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--night);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--ivory);
  background: transparent;
}
.btn-outline-dark {
  border-color: var(--gold);
  color: var(--night);
  background: transparent;
}
.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

/* Landing hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--night) center / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 36, 0.35) 0%,
    rgba(15, 26, 36, 0.75) 55%,
    rgba(15, 26, 36, 0.95) 100%
  );
}
.hero-sparkle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(201, 169, 98, 0.5), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(201, 169, 98, 0.4), transparent);
  opacity: 0.7;
}
.hero .wrap {
  position: relative;
  padding: 120px 0 72px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--gold);
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 14ch;
}
.hero-lede {
  max-width: 42ch;
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section {
  padding: 72px 0;
}
.section--dark {
  background: var(--night);
  color: var(--ivory);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 12px;
}
.section-lede {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 40px;
}
.section--dark .section-lede { color: rgba(250, 246, 240, 0.72); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.pillar h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 8px;
  color: var(--night);
}
.pillar p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.section--dark .gallery img { border-color: rgba(201, 169, 98, 0.2); }

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}
.package-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.package-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.package-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.package-card h3 {
  font-family: var(--display);
  margin: 0 0 6px;
  font-size: 1.5rem;
}
.package-card .price {
  color: var(--gold-dim);
  font-weight: 700;
  margin-bottom: 12px;
}
.package-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.package-card.is-soon {
  opacity: 0.55;
  filter: grayscale(0.4);
}
.package-card.is-soon .btn { pointer-events: none; }

.contact-strip {
  text-align: center;
  padding: 56px 0;
  background: linear-gradient(180deg, var(--ivory), #f0ebe3);
}
.contact-strip p { color: var(--muted); margin: 0 0 20px; }

.site-footer {
  background: var(--night);
  color: rgba(250, 246, 240, 0.7);
  padding: 40px 0;
  font-size: 0.88rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--gold); text-decoration: none; }

/* Cotizador */
.quote-page {
  padding: 40px 0 80px;
}
.quote-header {
  margin-bottom: 32px;
}
.quote-header h1 {
  font-family: var(--display);
  font-size: 2.4rem;
  margin: 0 0 8px;
}
.demo-badge {
  display: inline-block;
  background: #fff3cd;
  color: #7a5c00;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.stepper button {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.stepper button.is-active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.stepper button.is-done { color: var(--gold-dim); }
.step-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.step-panel.is-active { display: block; }
.step-panel h2 {
  font-family: var(--display);
  margin: 0 0 20px;
  font-size: 1.6rem;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
}
.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.option-group {
  margin-bottom: 24px;
}
.option-group h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0ebe3;
}
.check-row:last-child { border-bottom: none; }
.check-row input { margin-top: 4px; accent-color: var(--gold-dim); }
.check-row label { flex: 1; cursor: pointer; }
.check-row .add-price {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.radio-set {
  margin: 12px 0 0 32px;
  padding: 12px;
  background: var(--ivory);
  border-radius: 8px;
}
.radio-set legend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.radio-set label {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  cursor: pointer;
}
.included-list {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--ivory);
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}
.included-list h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.included-list ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.summary-card {
  position: sticky;
  top: calc(var(--header) + 16px);
  background: var(--night);
  color: var(--ivory);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(201, 169, 98, 0.35);
}
.summary-card h2 {
  font-family: var(--display);
  margin: 0 0 16px;
  font-size: 1.4rem;
  color: var(--gold);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 10px;
  opacity: 0.9;
}
.summary-line strong { color: var(--white); }
.summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
  font-weight: 700;
}
.summary-total span { color: var(--gold); }
.summary-note {
  margin-top: 14px;
  font-size: 0.75rem;
  opacity: 0.65;
  line-height: 1.45;
}
.print-area { margin-top: 20px; }
#print-sheet { display: none; }

/* Admin demo */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header));
}
.admin-side {
  background: #eef0f2;
  padding: 24px 16px;
  border-right: 1px solid #dde1e6;
}
.admin-side h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 16px;
  padding: 0 12px;
}
.admin-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  font-weight: 500;
}
.admin-nav button.is-active {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.admin-nav button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-main {
  padding: 32px 40px;
  background: var(--ivory);
}
.admin-banner {
  background: #fff3cd;
  color: #7a5c00;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 640px;
}
.admin-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pillars,
  .gallery,
  .packages,
  .quote-layout,
  .field-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .nav { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden; }
  #print-sheet,
  #print-sheet * { visibility: visible; }
  #print-sheet {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 24px;
    color: #000;
    background: #fff;
  }
  .print-sheet h1 { font-size: 1.5rem; margin: 0 0 8px; }
  .print-sheet table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.85rem;
  }
  .print-sheet th,
  .print-sheet td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
  }
  .print-sheet .legal {
    font-size: 0.75rem;
    color: #444;
    margin-top: 20px;
  }
}
