:root {
  --navy: #0c4465;
  --navy-deep: #083551;
  --navy-ink: #041c2b;
  --foam: #e8f2f7;
  --mist: #d2e4ee;
  --paper: #f6f1e8;
  --paper-2: #fffdf8;
  --brass: #c4a36a;
  --brass-deep: #9a7844;
  --ink: #1c2430;
  --muted: #5c6b78;
  --line: rgba(12, 68, 101, 0.12);
  --white: #ffffff;
  --danger: #b42318;
  --ok: #0f7a5a;
  --shadow: 0 24px 60px rgba(8, 53, 81, 0.16);
  --radius: 22px;
  --max: 1180px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-deep);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brass);
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 650;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brass);
  color: var(--navy-ink);
  box-shadow: 0 10px 24px rgba(196, 163, 106, 0.28);
}

.btn-primary:hover {
  background: #d4b57d;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-line {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246, 241, 232, 0.86);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand svg {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--navy);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brass-deep);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.nav-cta .btn {
  padding: 0.7rem 1.1rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 14px 0 18px;
  color: var(--navy-ink);
}

.hero .lead {
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-note {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background-size: cover;
  margin-left: -8px;
}

.avatars span:first-child {
  margin-left: 0;
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

.hero-photo {
  position: absolute;
  inset: 40px 0 0 40px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(4, 28, 43, 0.72);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.product-card {
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 390px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 2;
}

.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-gold {
  background: #f3e6cc;
  color: var(--brass-deep);
}

.badge-ok {
  background: #d9f2e8;
  color: var(--ok);
}

.badge-navy {
  background: var(--foam);
  color: var(--navy);
}

.pc-media {
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-title {
  font-weight: 700;
  color: var(--navy);
}

.pc-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 6px 0 14px;
}

.price {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--navy-ink);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pipe {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
}

.pipe b {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--mist);
  margin-bottom: 6px;
}

.pipe.active b,
.pipe.done b {
  background: var(--navy);
}

.pipe.active {
  color: var(--navy);
  font-weight: 700;
}

.float-chip {
  position: absolute;
  right: 8px;
  bottom: 28px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 3;
  max-width: 210px;
}

.float-chip strong {
  display: block;
  font-size: 0.95rem;
}

.float-chip span {
  font-size: 0.78rem;
  opacity: 0.78;
}

/* Stats */
.stats {
  background: var(--navy-ink);
  color: var(--white);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* Sections */
section {
  padding: 92px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.dark {
  background: var(--navy-deep);
  color: var(--white);
}

.dark .section-head p,
.dark .lead,
.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.cream {
  background: var(--paper);
}

.white {
  background: var(--paper-2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.photo-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.photo-tag {
  position: absolute;
  top: 18px;
  left: 18px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.checklist li {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.checklist i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--foam);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Feature mosaic */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  min-height: 220px;
}

.tile.wide {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(4, 28, 43, 0.1), rgba(4, 28, 43, 0.72)),
    url("https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1400&q=80")
      center/cover;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tile.wide p {
  color: rgba(255, 255, 255, 0.82);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--foam);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.tile h3 {
  margin-bottom: 8px;
  color: var(--navy);
}

.tile.wide h3 {
  color: var(--white);
}

.tile p {
  margin: 0;
  color: var(--muted);
}

/* Modules */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.module {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
}

.module h3 {
  margin: 10px 0 8px;
}

.module p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.module .num {
  font-family: var(--display);
  color: var(--brass);
  font-size: 1.2rem;
}

/* Secondary obra nueva */
.secondary-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.secondary-copy {
  padding: 40px;
}

.secondary-copy p {
  color: var(--muted);
}

.secondary-card img {
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.origin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.origin-card h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.origin-card > p {
  color: var(--muted);
  margin: 0;
}

/* Pricing */
.billing {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 18px 0 36px;
}

.billing button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.billing button.active {
  background: var(--navy);
  color: var(--white);
}

.save-tag {
  margin-left: 6px;
  font-size: 0.72rem;
  background: #f3e6cc;
  color: var(--brass-deep);
  padding: 2px 7px;
  border-radius: 99px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.plan.featured {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.plan .amount {
  font-family: var(--display);
  font-size: 3rem;
  margin: 12px 0 4px;
}

.plan .amount small {
  font-family: var(--font);
  font-size: 1rem;
  opacity: 0.7;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  flex: 1;
}

.plan li {
  margin: 9px 0;
  padding-left: 22px;
  position: relative;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.plan.featured li::before {
  color: var(--brass);
}

.plan p {
  color: var(--muted);
  min-height: 48px;
}

.plan.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.compare {
  margin-top: 42px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.compare th,
.compare td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.compare th {
  background: var(--foam);
  color: var(--navy);
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote {
  background: var(--white);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--line);
}

.quote p {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--navy-ink);
}

.who {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  font-size: 0.9rem;
}

.who b {
  display: block;
}

.who span {
  color: var(--muted);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

/* FAQ */
.faq {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.faq-item .answer {
  display: none;
  padding: 0 0 18px;
  color: var(--muted);
}

.faq-item.open .answer {
  display: block;
}

.faq-item button span {
  font-size: 1.4rem;
  line-height: 1;
}

/* CTA */
.cta-band {
  background:
    linear-gradient(120deg, rgba(8, 53, 81, 0.88), rgba(12, 68, 101, 0.7)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80")
      center/cover;
  color: var(--white);
  border-radius: 32px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-form {
  display: grid;
  gap: 10px;
}

.cta-form input,
.cta-form select {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
}

.form-ok {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
}

.form-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.cta-form .btn {
  width: 100%;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 12px;
}

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

  .btn:hover,
  .reveal {
    transform: none;
    animation: none;
    opacity: 1;
  }
}

/* Footer */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.site-footer a:hover {
  color: var(--brass);
}

.site-footer h4 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 8px 0;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: var(--white);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--line);
}

.step .n {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--brass);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .split,
  .split.reverse,
  .cta-band,
  .secondary-card {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .tile.wide {
    grid-row: auto;
    min-height: 260px;
    grid-column: 1 / -1;
  }

  .modules {
    grid-template-columns: 1fr 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .plan.featured {
    transform: none;
  }

  .hero-stage {
    min-height: 480px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper-2);
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    z-index: 30;
    box-shadow: var(--shadow);
  }

  .cta-band {
    padding: 40px 28px;
  }

  .hero-photo {
    inset: 72px 0 0 24px;
  }
}

@media (max-width: 800px) {
  .stats-grid,
  .quotes,
  .steps,
  .origin-grid,
  .foot-grid,
  .mosaic,
  .modules {
    grid-template-columns: 1fr;
  }

  .legal {
    flex-direction: column;
  }

  .hero-stage {
    min-height: 460px;
  }

  .float-chip {
    max-width: 170px;
    right: 0;
    bottom: 16px;
  }

  .photo-frame,
  .photo-frame img {
    min-height: 280px;
  }

  .origin-card,
  .secondary-copy {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  section {
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-actions .btn,
  .nav-cta .btn {
    width: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card {
    width: 92%;
    position: relative;
    margin-bottom: -40px;
  }

  .hero-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    min-height: 240px;
    margin-top: 0;
  }

  .hero-photo img {
    min-height: 240px;
  }

  .float-chip {
    display: none;
  }

  .pc-meta {
    flex-direction: column;
    gap: 4px;
  }

  .cta-band {
    padding: 28px 18px;
    border-radius: 22px;
  }

  .compare {
    margin-left: -6px;
    margin-right: -6px;
  }
}
