:root {
  --navy: #0f1229;
  --blue: #1e3f73;
  --blue-light: #2a56a0;
  --bg: #f1f2f5;
  --text: #111827;
  --muted: #4b5563;
  --card: #ffffff;
  --border: #e2e4e9;
  --danger: #b42318;
  --ok: #1a7a3f;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', Roboto, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5rem;
}

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

a, button, .card, .nav-toggle { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight: 700;
  font-size: .9rem;
}
.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  background: var(--navy);
  color: #fff;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand .badge {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
nav.main ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: .92rem;
}
nav.main a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
nav.main a:hover { color: var(--blue-light); }
nav.main a.active { color: #fff; font-weight: 700; border-bottom-color: var(--blue-light); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }

@media (max-width: 800px) {
  nav.main { display: none; }
  nav.main.open { display: block; width: 100%; }
  nav.main.open ul { flex-direction: column; gap: 4px; padding: 16px 0; }
  nav.main.open a { display: block; padding: 10px 4px; }
  header.site .container { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.hero h1 { font-size: 2.6rem; }
.hero h1 strong { color: var(--blue); display: block; }
.hero p.lead { color: var(--muted); max-width: 460px; margin: 16px 0 24px; }
.hero img, .hero-media img { width: 100%; border-radius: 12px; display: block; object-fit: cover; }

@media (max-width: 800px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .92rem;
  border: none;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--blue-light); }
.btn:active { transform: scale(.98); }
.btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.outline:hover { background: var(--card); border-color: var(--blue-light); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 48px 0; }
.section-tag {
  color: var(--blue);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid h2 { color: var(--blue); font-size: 2.4rem; font-variant-numeric: tabular-nums; }
.stats-grid p { color: var(--muted); margin: 0; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; } }

/* Cards / grid listing */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 950px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15,18,41,.04);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15,18,41,.10);
  border-color: var(--blue-light);
}
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #d9dbe0; display: block; }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.05rem; margin: 0; }
.card .meta { color: var(--muted); font-size: .85rem; }
.card .specs { font-size: .85rem; color: var(--text); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card .tags { align-self: flex-start; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tag-neutral { background: #e7edf7; color: var(--blue); }
.tag-ok { background: #e3f6ea; color: var(--ok); }
.tag-plan { background: #fdf1e0; color: #92400e; }
.tag-soldout { background: #fdeaea; color: var(--danger); }

.card-media { position: relative; }
.sold-out-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.card-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  pointer-events: none;
}
.card-map iframe { width: 100%; height: 130px; border: 0; display: block; }
.card .footer-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--blue);
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s var(--ease);
}
.card:hover .footer-link { gap: 8px; }

/* Filters */
.filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  margin-bottom: 32px;
  align-items: end;
}
.filters label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.filters select, .filters input {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s var(--ease);
}
.filters select:hover, .filters input:hover { border-color: var(--blue-light); }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }

/* Ficha detalle */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 18px;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.back-link:hover { color: var(--blue); gap: 10px; }
.ficha-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.ficha-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 24px 0; aspect-ratio: 16/8; }
.ficha-media { position: relative; height: 100%; }
.ficha-gallery img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #e4e6ea;
  display: block;
  cursor: zoom-in;
  transition: opacity .2s var(--ease);
}
.ficha-gallery img:hover, .ficha-gallery img:focus-visible { opacity: .88; }
.ficha-gallery .thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,18,41,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 2000;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  transition: background-color .2s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
@media (max-width: 800px) { .spec-grid { grid-template-columns: 1fr 1fr; } .ficha-gallery { grid-template-columns: 1fr; } }
.spec-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.spec-item .label { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.spec-item .value { font-weight: 700; font-size: 1rem; margin-top: 4px; font-variant-numeric: tabular-nums; }

.ficha-map {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.ficha-map iframe { width: 100%; height: 280px; border: 0; display: block; }

/* CTA band */
.cta-band {
  background: var(--blue);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.cta-band .btn { background: #fff; color: var(--blue); }
.cta-band .btn:hover { background: #e7edf7; }
.cta-band .btn.outline { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.cta-band .btn.outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 999;
  transition: transform .15s var(--ease), background-color .2s var(--ease);
}
.whatsapp-float:hover { background: #1ebe5a; transform: scale(1.06); }
.whatsapp-float:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
  .whatsapp-float:hover { transform: none; }
}

/* Forms */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  max-width: 560px;
}
.form-card label { display: block; font-weight: 600; font-size: .85rem; margin: 14px 0 6px; }
.form-card input, .form-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s var(--ease);
}
.form-card input:hover, .form-card textarea:hover { border-color: var(--blue-light); }
.form-card textarea { min-height: 90px; }
.alert-ok, .alert-err {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: .9rem;
}
.alert-ok { background: #e7f7ec; color: var(--ok); }
.alert-err { background: #fde8e8; color: var(--danger); }
.alert-ok svg, .alert-err svg { flex-shrink: 0; margin-top: 2px; }

/* Footer */
footer.site {
  background: var(--navy);
  color: #cbd2e0;
  padding: 48px 0 24px;
  margin-top: 40px;
}
footer.site .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
footer.site h3 { color: #fff; }
footer.site p { font-size: .88rem; color: #9aa3b5; }
.foot-bottom {
  border-top: 1px solid #262b48;
  margin-top: 30px;
  padding-top: 18px;
  font-size: .8rem;
  color: #7a8296;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 700px) { footer.site .grid { grid-template-columns: 1fr; } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.scroll-status {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  padding: 24px 0;
}
