/* ============================================
   Residencial AURUM — Landing
   Paleta: blanco · negro #1A1A1A · rosa #E8456A
   ============================================ */

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

:root {
  --white:   #FFFFFF;
  --off:     #F7F6F4;
  --dark:    #1A1A1A;
  --muted:   #6B6B6B;
  --border:  #E4E0D8;
  --pink:    #E8456A;
  --pink-dk: #C93458;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --max-w: 1080px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILS ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section__desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 44px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  padding: 60px 24px;
  position: relative;
}

/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #E4E0D8 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__logo {
  max-width: min(460px, 80vw);
  height: auto;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero__divider {
  width: 48px;
  height: 1.5px;
  background: var(--pink);
  margin-top: 4px;
}

/* ---- SCROLL HINT ---- */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--dark);
  transition: opacity 0.2s;
}
.scroll-hint:hover { opacity: 0.7; }

.scroll-hint__label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint__arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.scroll-hint__arrows svg {
  width: 22px;
  height: 11px;
  color: var(--pink);
}

.scroll-hint__arrows svg:nth-child(1) { animation: arrow-wave 1.8s ease-in-out infinite 0s;    opacity: 0; }
.scroll-hint__arrows svg:nth-child(2) { animation: arrow-wave 1.8s ease-in-out infinite 0.2s;  opacity: 0; }
.scroll-hint__arrows svg:nth-child(3) { animation: arrow-wave 1.8s ease-in-out infinite 0.4s;  opacity: 0; }

@keyframes arrow-wave {
  0%   { opacity: 0;   transform: translateY(-4px); }
  40%  { opacity: 1;   transform: translateY(0); }
  80%  { opacity: 0;   transform: translateY(4px); }
  100% { opacity: 0;   transform: translateY(4px); }
}

/* ---- SECTIONS ---- */
.section {
  padding: 88px 0;
  background: var(--white);
}

.section--alt {
  background: var(--off);
}

/* ---- PLANOS ---- */
.grid-planos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.plano-card {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.plano-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.09);
}

.plano-card__img {
  aspect-ratio: 4/3;
  background: #F0EDE6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.plano-card__canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  position: absolute;
  inset: 0;
}

/* zoom suave al hacer hover sobre el canvas */
.plano-card:hover .plano-card__canvas {
  transform: scale(1.03);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.plano-card__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.thumb-error {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

.plano-card__label {
  padding: 14px 18px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plano-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plano-card__cta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pink);
  text-transform: uppercase;
}

.plano-card__dl {
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  padding: 3px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.plano-card__dl:hover {
  color: var(--pink);
  background: rgba(232,69,106,0.08);
}

.grid-planos--single {
  grid-template-columns: minmax(220px, 360px);
}

/* ---- FOOTER ---- */
.footer {
  background: #000;
  padding: 56px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  max-width: 180px;
  height: auto;
  opacity: 0.9;
}

.footer__by-logo {
  height: 22px;
  width: auto;
  opacity: 0.7;
}

.footer__contact {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__contact a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.footer__contact a:hover { color: var(--pink); }

.footer__legal {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  max-width: 500px;
  line-height: 1.6;
}

/* ---- CONTACTO ---- */
.contacto__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.contacto__col {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}
.contacto__col:hover { background: var(--off); }

.contacto__icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  margin-bottom: 4px;
}
.contacto__icon svg { width: 18px; height: 18px; }

.contacto__col-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacto__col-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.5;
}
a.contacto__col-value:hover { color: var(--pink); }

/* ---- PDF LIGHTBOX ---- */
.pdf-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.pdf-lightbox.open { display: flex; }

.pdf-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}

.pdf-lightbox__box {
  position: relative;
  z-index: 1;
  width: min(92vw, 1000px);
  height: 90svh;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  animation: lb-in 0.28s var(--ease);
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pdf-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(247,246,244,0.7);
  flex-shrink: 0;
  gap: 12px;
}

.pdf-lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
}

.pdf-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pdf-zoom {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.pdf-zoom__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
  line-height: 0;
}
.pdf-zoom__btn:hover { background: var(--off); color: var(--dark); }

.pdf-zoom__level {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dark);
  min-width: 38px;
  text-align: center;
  padding: 0 4px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 2.2;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.75rem;
}

.pdf-lightbox__close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  padding: 6px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
  line-height: 0;
}
.pdf-lightbox__close:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.pdf-lightbox__close svg { display: block; width: 18px; height: 18px; }

.pdf-lightbox__body {
  flex: 1;
  overflow: auto;
  background: #e8e8e8;
  cursor: grab;
}
.pdf-lightbox__body.dragging {
  cursor: grabbing;
  user-select: none;
}

.pdf-viewer {
  padding: 16px;
  touch-action: pan-x pan-y;
  min-width: min-content;
}

.pdf-viewer__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  transform-origin: top center;
}

.pdf-viewer canvas {
  display: block;
  max-width: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  background: #fff;
}

.pdf-viewer__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .grid-planos { grid-template-columns: 1fr; }
  .grid-planos--single { grid-template-columns: 1fr; }
  .contacto__grid { grid-template-columns: 1fr; }
  .footer__contact { flex-direction: column; gap: 12px; }

  .pdf-lightbox__box {
    width: 96vw;
    height: 92svh;
    border-radius: 4px;
  }
}
