:root {
  --navy: #0c1826;
  --navy-2: #152a3f;
  --navy-3: #1d3a54;
  --gold: #c6a35e;
  --gold-2: #e4c988;
  --gold-dim: rgba(198, 163, 94, 0.16);
  --sand: #f3ebdd;
  --paper: #fbf7f0;
  --ink: #141b22;
  --muted: #5d6974;
  --line: #ddd4c4;
  --white: #ffffff;
  --whatsapp: #128c7e;
  --danger: #9b2c2c;
  --ok: #1f6b4a;
  --shadow: 0 18px 50px rgba(12, 24, 38, 0.12);
  --radius: 18px;
  --header-h: 118px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  z-index: 80;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  background: var(--navy);
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 0;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--gold-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav > a,
.site-nav .sub-btn {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
}

.site-nav > a:hover,
.site-nav .sub-btn:hover,
.site-nav > a[aria-current="page"] {
  background: var(--gold-dim);
  color: var(--navy);
}

.has-sub {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 200px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.open .sub-menu {
  display: grid;
}

.sub-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.sub-menu a:hover {
  background: var(--sand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-navy {
  background: var(--navy);
  color: var(--paper);
}

.btn-navy:hover {
  background: var(--navy-3);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-line {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 24, 38, 0.15) 0%, rgba(12, 24, 38, 0.78) 72%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 72px 0 56px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  max-width: 14ch;
  margin: 14px 0 18px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 0 0 14px;
}

.lead {
  font-size: 1.12rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.trust article {
  background: var(--paper);
  padding: 22px 20px;
}

.trust strong {
  display: block;
  font-size: 0.95rem;
}

.trust span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 84px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.muted {
  color: var(--muted);
}

.gold {
  color: var(--gold);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(12, 24, 38, 0.04);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.price {
  font-weight: 650;
  color: var(--navy);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6230;
  background: var(--gold-dim);
  padding: 5px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--gold);
  margin-left: 8px;
}

.timeline article {
  padding: 0 0 28px 24px;
  position: relative;
}

.timeline article::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  left: -7px;
  top: 6px;
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cover-grid span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  font-size: 0.92rem;
}

.quote {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
}

.quote p {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 12px;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(12, 24, 38, 0.82), rgba(12, 24, 38, 0.55)),
    url("../img/fachada-guayaquil.jpg") center/cover;
  color: var(--white);
  border-radius: 28px;
  padding: 56px 40px;
}

.cta-band p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  padding: 56px 0 20px;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lead {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.contact-aside {
  display: grid;
  gap: 14px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 280px;
  border-radius: 14px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
}

.legal-nav {
  position: sticky;
  top: 130px;
  align-self: start;
  display: grid;
  gap: 6px;
}

.legal-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}

.legal-nav a[aria-current="page"],
.legal-nav a:hover {
  background: var(--white);
  color: var(--navy);
}

.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.prose h1 {
  font-size: 2.2rem;
  margin-top: 0;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 28px;
}

.prose p,
.prose li {
  color: #33404a;
}

.ads-grid {
  display: grid;
  gap: 16px;
}

.ad-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.ad-card code {
  font-family: var(--font);
  font-size: 1rem;
}

.count {
  font-size: 0.78rem;
  color: var(--ok);
  font-weight: 650;
}

.count.warn {
  color: var(--danger);
}

.copy-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.8rem;
}

.kw-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kw {
  background: var(--sand);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  background: var(--navy);
  color: #d7deE6;
  padding: 56px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  color: var(--gold-2);
  font-size: 1rem;
  margin: 0 0 12px;
}

.site-footer a {
  display: block;
  padding: 4px 0;
  color: #d7dee6;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.legal-tiny {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #9aa6b2;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--navy);
  color: var(--paper);
  border-radius: 18px;
  padding: 18px 20px;
  display: none;
  box-shadow: var(--shadow);
  max-width: 920px;
  margin-inline: auto;
}

.cookie-banner.show {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: #d7dee6;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notice {
  background: #fff6e5;
  border: 1px solid #ead7a6;
  color: #5c4a1f;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.success {
  display: none;
  background: #e8f6ee;
  color: var(--ok);
  padding: 12px 14px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
  }

  .site-nav.open {
    display: flex;
  }

  .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding-left: 12px;
  }

  .has-sub.open .sub-menu {
    display: grid;
  }

  .trust,
  .cards,
  .split,
  .section-head,
  .legal-layout,
  .cover-grid,
  .footer-grid,
  .cookie-banner.show {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  h1 {
    max-width: none;
  }
}
