/* ===========================================================
   PANORAMA, Lomas del Carmen
   Paleta y tipografía extraídas del brochure oficial:
   navy #0F2D49 · cream #FEFDF8 · gold #B4925D
   =========================================================== */

:root {
  --navy: #0f2d49;
  --navy-dark: #0a2033;
  --navy-light: #1c4467;
  --cream: #fefdf8;
  --cream-dim: #f4f1e8;
  --gold: #b4925d;
  --gold-light: #d9c6a5;
  --white: #ffffff;
  --ink: #26313c;

  --font-display: "Jost", sans-serif;
  --font-body: "Poppins", sans-serif;

  --container-w: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 4px;

  --shadow-soft: 0 20px 45px -20px rgba(15, 45, 73, 0.35);
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 500; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container.narrow { max-width: 760px; }
.container.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Logo ---------- */
/* Real brand mark (the ring), extracted from the official logo artwork and
   used as a mask so it can inherit currentColor across light/dark sections. */
.logo-mark {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-color: currentColor;
  -webkit-mask-image: url("../assets/icons/logo-mark.png");
  mask-image: url("../assets/icons/logo-mark.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Full "PANORAMA / Lomas del Carmen" wordmark, same technique: the real
   artwork used as a mask so it recolors with currentColor per section. */
.brand-lockup {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: url("../assets/icons/panorama-wordmark.png");
  mask-image: url("../assets/icons/panorama-wordmark.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center left;
  mask-position: center left;
  aspect-ratio: 1379 / 314;
}
.brand-lockup--header {
  width: clamp(140px, 15vw, 168px);
}
.brand-lockup--hero {
  width: clamp(260px, 40vw, 440px);
  margin: 0.5rem auto;
  color: var(--white);
  filter: drop-shadow(0 3px 18px rgba(0,0,0,0.55));
}
.brand-lockup--contact {
  width: clamp(220px, 34vw, 380px);
  margin-inline: auto;
  color: var(--white);
}
.brand-lockup--footer {
  width: clamp(150px, 30vw, 180px);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--gold-light); }

.hero-content .eyebrow {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.ring-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.5rem;
  background-color: var(--navy);
  -webkit-mask-image: url("../assets/icons/logo-mark.png");
  mask-image: url("../assets/icons/logo-mark.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1rem;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header .logo { color: var(--white); }
.site-header.is-scrolled {
  background: rgba(254, 253, 248, 0.96);
  backdrop-filter: blur(6px);
  padding-block: 0.6rem;
  box-shadow: 0 8px 30px -15px rgba(15,45,73,0.35);
}
.site-header.is-scrolled .logo,
.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .nav-toggle span { color: var(--navy); }
.site-header.is-scrolled .btn-ghost { border-color: var(--navy); color: var(--navy); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.main-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--transition);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right var(--transition);
}
.main-nav a:hover::after { right: 0; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(6,20,33,0.5) 0%, rgba(6,20,33,0.12) 70%),
    linear-gradient(180deg, rgba(10,32,51,0.5) 0%, rgba(10,32,51,0.3) 35%, rgba(10,32,51,0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 6rem 1.5rem 4rem;
  max-width: 760px;
}
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin-top: 1rem;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.88); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }

.lead { font-size: 1.05rem; font-weight: 300; color: #45525d; }
.lead--light { color: rgba(255,255,255,0.78); }
.section--navy .lead { color: rgba(255,255,255,0.78); }

.rounded-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.stat-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.stat-icon svg { width: 100%; height: 100%; }
.stat h3 { margin-bottom: 0.25rem; }
.stat p { color: #5a6772; font-size: 0.95rem; }

/* Feature grid (navy) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 2.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.feature {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.25rem;
  position: relative;
}
.feature::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 2.5rem; height: 1px;
  background: var(--gold);
}
.feature h3 { color: var(--gold-light); margin-bottom: 0.35rem; }
.feature p { font-size: 0.95rem; color: rgba(255,255,255,0.75); }

/* Plan figures */
.plan-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.plan-figure img { width: 100%; }
.plan-figure figcaption {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.section--cream .plan-figure figcaption {
  background: var(--white);
  color: #5a6772;
}

/* Specs list */
.specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem 3rem;
  max-width: 760px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.specs-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(15,45,73,0.1);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.4rem;
}
.specs-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Plans grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.plan-card img { width: 100%; }
.plan-card figcaption { padding: 1.5rem; }
.plan-card h3 { margin-bottom: 0.9rem; }
.plan-card ol {
  columns: 2;
  column-gap: 1.5rem;
  counter-reset: room;
  font-size: 0.85rem;
  color: #45525d;
}
.plan-card ol li {
  counter-increment: room;
  padding: 0.2rem 0;
  break-inside: avoid;
}
.plan-card ol li::before {
  content: counter(room) ". ";
  color: var(--gold);
  font-weight: 500;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  text-align: left;
  background: linear-gradient(0deg, rgba(10,32,51,0.85), transparent);
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.gallery-caption small {
  font-family: var(--font-body);
  color: var(--gold-light);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* POI list */
.poi-list {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}
.poi-list li {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(15,45,73,0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--navy);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.portfolio-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(35%);
  transition: filter var(--transition), transform var(--transition);
}
.portfolio-grid img:hover { filter: grayscale(0%); transform: scale(1.03); }

/* Contact */
.contact-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding-block: 2.5rem;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-brand { color: var(--white); }
.footer-credit { color: var(--gold-light); }

/* Whatsapp floating button */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.5);
  z-index: 90;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,32,51,0.94);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--white);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--navy);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.5rem; }
  .main-nav a { color: var(--white); font-size: 1.1rem; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-scrolled .nav-toggle span { background: var(--navy); }
  .nav-toggle span { background: var(--white); }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-card ol { columns: 1; }
}

@media (max-width: 420px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
