@font-face {
  font-family: 'Posterama 2001';
  src: url('../fonts/Posterama2001-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-dark: #0f1f38;
  --brand-blue: #1d4e89;
  --brand-red: #c8102e;
  --brand-cream: #ffffff;
  --brand-stone: #eef1f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--brand-cream);
  color: var(--brand-dark);
}
.font-display { font-family: 'Posterama 2001', serif; }
img { max-width: 100%; display: block; }

/* Animations */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up .9s cubic-bezier(.16,1,.3,1) both; }
.animate-fade-down { animation: fade-down .7s cubic-bezier(.16,1,.3,1) both; }
.s1 { animation-delay: 0ms; } .s2 { animation-delay: 120ms; } .s3 { animation-delay: 240ms; }
.s4 { animation-delay: 360ms; } .s5 { animation-delay: 480ms; } .s6 { animation-delay: 600ms; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
.bouncer { animation: bounce 1.8s ease-in-out infinite; }

/* Reveal-on-scroll (added via JS IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Navbar */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all .3s ease;
  background: transparent;
}
nav.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.nav-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.nav-bar { position: relative; display: flex; align-items: center; height: 4rem; }
@media (min-width: 768px) { .nav-bar { height: 5rem; } }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 2.25rem; width: auto; }
.nav-links { display: none; align-items: center; gap: 2rem; margin-left: 3rem; }
.nav-links a {
  font-size: .875rem; color: var(--brand-dark); letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--brand-blue); }
.nav-cta { display: none; align-items: center; margin-left: auto; gap: .75rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.35rem; border: 1px solid rgba(29,78,137,.3);
  color: var(--brand-dark); font-size: .875rem; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; border-radius: 9999px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-ghost:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-solid {
  display: inline-flex; align-items: center;
  padding: .65rem 1.35rem; background: var(--brand-blue); color: #fff;
  font-size: .875rem; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; border-radius: 9999px; transition: background .2s;
}
.btn-solid:hover { background: var(--brand-red); }
.burger { display: block; margin-left: auto; position: relative; width: 2.5rem; height: 2.5rem; background: none; border: none; cursor: pointer; z-index: 50; }
.burger span {
  position: absolute; left: 50%; transform: translateX(-50%); width: 1.5rem; height: 2px;
  background: var(--brand-dark); border-radius: 2px;
  transition: all .3s cubic-bezier(.68,-.6,.32,1.6);
}
.burger span.top { top: 16px; }
.burger span.bottom { top: 23px; }
.burger.open span.top { transform: translateX(-50%) rotate(45deg) translateY(5px); }
.burger.open span.bottom { transform: translateX(-50%) rotate(-45deg) translateY(-5px); }

.mobile-overlay {
  display: block; position: fixed; inset: 0; background: var(--brand-cream); z-index: 40;
  opacity: 0; pointer-events: none;
  transition: opacity .5s cubic-bezier(.22,1,.36,1);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 2rem;
  transform: translateY(-2rem); opacity: 0;
  transition: all .5s cubic-bezier(.22,1,.36,1) .1s;
}
.mobile-overlay.open .mobile-inner { transform: translateY(0); opacity: 1; }
.mobile-logo { height: 2.75rem; width: auto; margin-bottom: .5rem; }
.mobile-inner a.link { font-family: 'Posterama 2001', serif; font-size: 1.875rem; color: var(--brand-dark); text-decoration: none; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
  .mobile-overlay { display: none; }
}

/* Hero */
.hero { position: relative; width: 100%; height: 100vh; min-height: 700px; overflow: hidden; background: var(--brand-dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,31,56,.82), rgba(15,31,56,.2) 55%, rgba(15,31,56,.42)); }
.hero-content {
  position: relative; z-index: 10; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end; height: 100%;
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem 6rem;
}
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); backdrop-filter: blur(4px);
  margin-bottom: 1.5rem; text-decoration: none; transition: background .2s;
}
.pill:hover { background: rgba(255,255,255,.2); }
.pill span { color: #fff; font-size: .875rem; letter-spacing: .02em; }
h1.headline {
  text-align: left; color: #fff; font-weight: 600; font-family: 'Posterama 2001', serif;
  font-size: 2.5rem; line-height: 1.05; letter-spacing: -.01em; max-width: 48rem;
}
@media (min-width: 640px) { h1.headline { font-size: 3rem; } }
@media (min-width: 768px) { h1.headline { font-size: 3.75rem; } }
@media (min-width: 1024px) { h1.headline { font-size: 4.5rem; } }
.subline { text-align: left; color: rgba(255,255,255,.8); font-size: 1.0625rem; max-width: 36rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .subline { font-size: 1.125rem; } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem;
  background: #fff; color: var(--brand-dark); font-size: .875rem; letter-spacing: .05em;
  text-transform: uppercase; border-radius: 9999px; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-white:hover { background: var(--brand-red); color: #fff; }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem;
  border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .875rem;
  letter-spacing: .05em; text-transform: uppercase; border-radius: 9999px;
  text-decoration: none; transition: background .2s, border-color .2s;
}
.btn-outline-white:hover { background: var(--brand-blue); border-color: var(--brand-blue); }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; color: rgba(255,255,255,.7); }

/* Shared section layout */
.section-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.eyebrow { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(15,31,56,.5); margin-bottom: .75rem; }
.section-title { font-family: 'Posterama 2001', serif; font-size: 2rem; color: var(--brand-dark); max-width: 40rem; }
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

/* Amenidades */
.amenidades { background: #fff; padding: 5rem 0; }
.amenidades-lead { color: rgba(15,31,56,.7); max-width: 40rem; margin-top: 1rem; }
.amenidades-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .amenidades-grid { grid-template-columns: 1fr 1fr 1fr; } }
.amenidad-item { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.amenidad-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; background: rgba(29,78,137,.1); color: var(--brand-blue); }
.amenidad-label { font-size: .875rem; color: rgba(15,31,56,.8); }
.amenidades-fotos { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .amenidades-fotos { grid-template-columns: 1fr 1fr 1fr; } }
.amenidades-fotos div { aspect-ratio: 4/3; border-radius: 1rem; overflow: hidden; }
.amenidades-fotos img { width: 100%; height: 100%; object-fit: cover; }

/* Diferenciadores */
.diferenciadores { background: var(--brand-stone); padding: 5rem 0; }
.diferenciadores-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .diferenciadores-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .diferenciadores-grid { grid-template-columns: repeat(5, 1fr); } }
.dif-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.dif-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 9999px; background: #fff; color: var(--brand-red); }
.dif-label { font-size: .875rem; color: rgba(15,31,56,.8); }

/* Prototipos */
.prototipos { background: var(--brand-cream); padding: 5rem 0 7rem; }
.modelo-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .modelo-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .modelo-grid { grid-template-columns: 1fr 1fr 1fr; } }
.modelo-card { display: flex; flex-direction: column; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid rgba(15,31,56,.06); }
.modelo-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.modelo-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modelo-badge { position: absolute; top: .75rem; right: .75rem; background: var(--brand-red); color: #fff; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 9999px; }
.modelo-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.modelo-nombre { font-family: 'Posterama 2001', serif; font-size: 1.5rem; color: var(--brand-dark); }
.modelo-specs { font-size: .875rem; color: rgba(15,31,56,.6); margin-top: .25rem; }
.modelo-desc { font-size: .875rem; color: rgba(15,31,56,.7); margin-top: 1rem; flex: 1; }
.modelo-precio { color: var(--brand-blue); font-weight: 600; margin-top: 1.25rem; }
.modelo-agotado-text { color: rgba(15,31,56,.5); font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 1.25rem; }
.modelo-cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; padding: .65rem 1.25rem; background: var(--brand-blue); color: #fff; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; border-radius: 9999px; text-decoration: none; transition: background .2s; border: none; font-family: inherit; cursor: pointer; }
.modelo-cta:hover { background: var(--brand-red); }
.modelo-cta[disabled] { background: rgba(15,31,56,.15); color: rgba(15,31,56,.4); cursor: not-allowed; }
.modelo-cta[disabled]:hover { background: rgba(15,31,56,.15); }
.prototipos-note { font-size: .75rem; color: rgba(15,31,56,.4); margin-top: 2rem; }

/* Ubicación */
.ubicacion { background: var(--brand-cream); padding: 0 0 7rem; }
.ubicacion-head { display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; }
@media (min-width: 768px) { .ubicacion-head { flex-direction: row; align-items: flex-end; } }
.ubicacion-address { display: flex; align-items: center; gap: .5rem; color: rgba(15,31,56,.7); margin-top: 1rem; }
.ubicacion-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.35rem; background: var(--brand-blue); color: #fff; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; border-radius: 9999px; text-decoration: none; transition: background .2s; align-self: flex-start; }
.ubicacion-btn:hover { background: var(--brand-red); }
#lanka-map { width: 100%; height: 420px; border-radius: 1rem; overflow: hidden; margin-top: 2rem; border: 1px solid rgba(15,31,56,.1); }
@media (min-width: 768px) { #lanka-map { height: 500px; } }
.lanka-map-marker { width: 26px; height: 26px; background: #c8102e; border: 3px solid #ffffff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.maplibregl-popup-content { font-family: 'Montserrat', Helvetica, Arial, sans-serif; font-size: .875rem; padding: .5rem .75rem; }

/* Footer */
footer.site-footer { background: var(--brand-dark); color: #fff; }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 4rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-col p.eyebrow { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-col a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-desc { color: rgba(255,255,255,.6); font-size: .875rem; max-width: 20rem; margin-top: 1rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.8); }
.footer-wa { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; padding: .5rem 1rem; background: rgba(255,255,255,.1); border-radius: 9999px; text-decoration: none; color: #fff; font-size: .875rem; transition: background .2s; }
.footer-wa:hover { background: rgba(255,255,255,.2); }
.footer-bottom { display: flex; flex-direction: column-reverse; align-items: center; gap: 1.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-bottom img { height: 2.5rem; width: auto; opacity: .85; }
