:root {
  --navy: #004e78;
  --navy-deep: #00324d;
  --navy-dark: #001c2c;
  --navy-mid: #0a6a96;
  --silver: #c8d4da;
  --paper: #f4f7fa;
  --white: #ffffff;
  --ink: #1c2a33;
  --muted: #5b6b75;
  --line: #d7e1e8;
  --whats: #25d366;
  --whats-dark: #1dae52;
  --shadow: 0 18px 40px rgba(0, 32, 49, 0.14);
  --radius: 14px;
  --header-h: 78px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

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

.section {
  padding: 88px 0;
}

.eyebrow {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.section h2 {
  font-family: Oswald, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 16ch;
}

.gold-line,
.navy-line {
  width: 72px;
  height: 3px;
  background: var(--navy);
  margin: 18px 0 22px;
  border: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

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

.btn-navy:hover {
  background: var(--navy-mid);
}

.btn-whats {
  background: var(--whats);
  color: #053016;
}

.btn-whats:hover {
  background: var(--whats-dark);
  color: var(--white);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

/* Ticker */
.ticker {
  background: var(--navy-deep);
  color: var(--silver);
  overflow: hidden;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker-track span {
  padding: 10px 0;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: 58px;
  width: auto;
}

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

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.nav a:hover {
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 118px);
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 12, 22, 0.58) 0%, rgba(0, 28, 44, 0.72) 55%, rgba(0, 20, 32, 0.88) 100%),
    url("../assets/images/hero.jpg") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
  width: min(var(--max), calc(100% - 40px));
}

.hero h1 {
  font-family: Oswald, sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 12ch;
  text-wrap: balance;
}

.hero p {
  margin: 22px 0 32px;
  max-width: 46ch;
  color: #e6eef3;
  font-size: 1.12rem;
}

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

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

.stats strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1;
}

.stats-plus {
  color: #bee8fc;
  font-style: normal;
  font-size: 1.18em;
  vertical-align: -0.02em;
  margin-right: 0.04em;
}

.stats span {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--silver);
}

/* Gallery */
.gallery {
  background: var(--paper);
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: #eef3f6;
  overflow: hidden;
  cursor: zoom-in;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.card-body h3 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.card-body .btn {
  margin-top: auto;
  width: 100%;
}

/* Differentials */
.why {
  background: var(--navy-dark);
  color: var(--white);
}

.why .eyebrow,
.why .navy-line {
  color: var(--silver);
  background: var(--navy-mid);
}

.why h2 {
  max-width: 18ch;
}

.why .lead {
  color: #c9d6de;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}

.diff {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}

.diff h3 {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 10px 0 8px;
  font-size: 1.3rem;
}

.diff p {
  color: #c9d6de;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-mid);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.closing {
  margin-top: 36px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Realize */
.realize {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

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

.realize-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

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

.realize h2 {
  max-width: 14ch;
}

/* Store */
.store {
  background: var(--white);
}

.store-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.store-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.store-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--line);
}

.store-card h3 {
  font-family: Oswald, sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.meta {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.meta p strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reviews {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.reviews a {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* CTA */
.final-cta {
  background:
    linear-gradient(90deg, rgba(0, 28, 44, 0.88), rgba(0, 78, 120, 0.78)),
    url("../assets/images/fachada.jpg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
}

.final-cta h2 {
  margin: 0 auto 12px;
  max-width: 16ch;
}

.final-cta p {
  margin: 0 auto 26px;
  max-width: 46ch;
  color: #e5eef3;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #c9d6de;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

.legal {
  padding-top: 18px;
  font-size: 0.85rem;
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 12px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
}

/* Float WhatsApp */
.float-whats {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whats);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.float-whats:hover {
  transform: scale(1.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 12, 22, 0.88);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(92vw, 980px);
  max-height: 86vh;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--white);
  font-size: 2rem;
}

/* Mobile */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid,
  .realize-grid,
  .store-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .store-photo img { min-height: 260px; }
  .gallery-head { flex-direction: column; align-items: start; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: calc(var(--header-h) + 34px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: 78vh; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
