/* ===================================================================
   REYAN PANAMÁ — Landing 2026
   =================================================================== */

:root {
  --verde-oscuro: #181B13;
  --verde-oscuro-2: #1F241A;
  --verde-oscuro-3: #262B1F;
  --verde-sage: #7A8767;
  --verde-sage-light: #A3AD8C;
  --beige-arena: #C4A882;
  --crema: #F5F0E8;
  --negro-marengo: #2B2B26;
  --texto-muted: #B9BEAA;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--negro-marengo);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

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

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verde-sage);
  font-weight: 600;
  margin: 0 0 14px;
}

/* film grain overlay for premium texture */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-cta {
  background: var(--verde-sage);
  color: var(--verde-oscuro);
}
.btn-cta:hover { background: var(--beige-arena); transform: translateY(-2px); }
.btn-ghost {
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(122,135,103,0.12); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 13px; }

/* ==================================================================
   HEADER
   ================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .3s;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(24,27,19,0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand-logo { height: 48px; width: auto; }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--crema);
  font-size: 14px; font-weight: 500;
  opacity: .85;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--beige-arena); transition: width .3s var(--ease);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; }

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--verde-oscuro);
  color: var(--crema);
  overflow: hidden;
}
.hero-topo {
  position: absolute; inset: -10%; z-index: 0;
}
.topo-layer {
  position: absolute; inset: 0; width: 112%; height: 112%; left: -6%; top: -6%;
}
.topo-layer svg { width: 100%; height: 100%; display: block; }
.topo-1 { opacity: .95; }

.hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 20% 20%, rgba(24,27,19,0) 0%, rgba(24,27,19,.55) 60%, rgba(24,27,19,.92) 100%),
    linear-gradient(180deg, rgba(24,27,19,.35) 0%, rgba(24,27,19,.15) 30%, rgba(24,27,19,.75) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 60px; max-width: 780px; }
.hero-inner .eyebrow { color: var(--beige-arena); }
.hero-title {
  font-size: clamp(40px, 6.4vw, 84px);
  color: var(--crema);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .accent-word { color: var(--verde-sage-light); font-style: italic; }
.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 560px;
  color: var(--texto-muted);
}
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(245,240,232,.4); color: var(--crema); }

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--texto-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.scroll-cue span {
  width: 1px; height: 40px; background: linear-gradient(180deg, var(--beige-arena), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100%{ opacity:.3; } 50%{ opacity:1; } }

/* ==================================================================
   VALUE STRIP
   ================================================================== */
.value-strip { background: var(--negro-marengo); color: var(--crema); }
.value-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 48px 28px;
}
.value-item { text-align: center; padding: 0 12px; border-left: 1px solid rgba(245,240,232,.12); }
.value-item:first-child { border-left: none; }
.value-num { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); color: var(--beige-arena); }
.value-plus { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); color: var(--beige-arena); }
.value-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--texto-muted); }

/* ==================================================================
   SECTIONS (generic)
   ================================================================== */
.section { padding: 120px 0; }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); color: var(--negro-marengo); }
.section-copy { margin-top: 18px; font-size: 16.5px; color: #55584c; max-width: 540px; }

/* ---------------- Showroom ---------------- */
.showroom { background: var(--crema); }
.showroom-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.sg-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--verde-oscuro-2); }
.sg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sg-item:hover img { transform: scale(1.045); }
.sg-large { grid-row: 1 / 3; }
.sg-large img { aspect-ratio: 4/5; }
.showroom-gallery .sg-item:not(.sg-large) img { aspect-ratio: 16/10; }

/* ---------------- Colores ---------------- */
.colores { background: var(--verde-oscuro); color: var(--crema); }
.colores .section-copy { color: var(--texto-muted); }
.colores .section-head h2 { color: var(--crema); }

.color-slider-wrap { position: relative; margin-top: 10px; }
.color-slider {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 28px 30px;
  scrollbar-width: none;
}
.color-slider::-webkit-scrollbar { display: none; }
.color-card {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
  background: var(--verde-oscuro-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease);
  cursor: pointer;
  position: relative;
}
.color-card:hover { transform: translateY(-6px); }
.color-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.color-card::after {
  content: '⤢';
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(24,27,19,.55); backdrop-filter: blur(4px);
  color: var(--crema); display: flex; align-items: center; justify-content: center;
  font-size: 15px; opacity: 0; transition: opacity .3s;
}
.color-card:hover::after { opacity: 1; }
.color-card-info { padding: 18px 20px 22px; }
.color-card-info h4 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.color-card-info span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--texto-muted); letter-spacing: .02em; }

.slider-arrow {
  position: absolute; top: 45%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245,240,232,.08); color: var(--crema);
  border: 1px solid rgba(245,240,232,.25);
  font-size: 22px; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.slider-arrow:hover { background: rgba(245,240,232,.22); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.colores-note { margin-top: 30px; font-size: 14px; color: var(--texto-muted); max-width: 520px; }
.colores-note-link { color: var(--beige-arena); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.colores-note-link:hover { color: var(--verde-sage-light); }

/* ---------------- Catálogo ---------------- */
.catalogo { background: var(--verde-oscuro-2); }
.catalogo .section-head h2 { color: var(--crema); }
.catalogo .section-copy { color: var(--texto-muted); }
.catalog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.catalog-card {
  display: block;
  background: var(--negro-marengo); color: var(--crema);
  border-radius: 8px; overflow: hidden; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.catalog-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.cc-cover { aspect-ratio: 16/10; overflow: hidden; }
.cc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.catalog-card:hover .cc-cover img { transform: scale(1.06); }
.cc-body { padding: 26px 28px 30px; }
.cc-body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin: 0 0 10px; }
.cc-body p { margin: 0 0 20px; font-size: 14.5px; color: var(--texto-muted); }
.cc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--verde-oscuro); font-weight: 700;
  background: var(--beige-arena); padding: 11px 20px; border-radius: 999px;
  transition: background .3s, gap .3s;
}
.catalog-card:hover .cc-cta { background: var(--verde-sage-light); gap: 11px; }

/* ---------------- Sobre Nosotros ---------------- */
.nosotros { background: var(--negro-marengo); color: var(--crema); }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.nosotros-copy .eyebrow { color: var(--beige-arena); }
.nosotros-copy h2 { color: var(--crema); font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 22px; }
.nosotros-copy p { color: var(--texto-muted); font-size: 16px; margin: 0 0 16px; }
.nosotros-visual { border-radius: var(--radius); overflow: hidden; }
.nosotros-visual img { aspect-ratio: 4/5; object-fit: cover; }
.nosotros-stats { display: flex; gap: 30px; margin-top: 32px; flex-wrap: wrap; }
.nosotros-stats div { border-left: 2px solid var(--verde-sage); padding-left: 14px; }
.nosotros-stats strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--beige-arena); }
.nosotros-stats span { font-size: 12.5px; color: var(--texto-muted); }

/* ---------------- Fachada ---------------- */
.fachada { position: relative; background: var(--negro-marengo); }
.fachada img { width: 100%; height: auto; display: block; }
.fachada-caption {
  position: absolute; bottom: 26px; left: 28px;
  margin: 0; color: var(--crema); font-size: 13px; letter-spacing: .04em;
  background: rgba(24,27,19,.55); backdrop-filter: blur(6px);
  padding: 8px 16px; border-radius: 999px;
}

/* ---------------- Contacto ---------------- */
.contacto {
  position: relative;
  background: var(--verde-oscuro); color: var(--crema);
  text-align: center; overflow: hidden;
}
.contacto-topo { opacity: .5; }
.contacto-topo .topo-layer { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; }
.contacto-inner { position: relative; z-index: 2; max-width: 640px; }
.contacto-inner h2 { font-size: clamp(30px, 4vw, 46px); color: var(--crema); margin-top: 8px; }
.contacto .section-copy { color: var(--texto-muted); margin: 18px auto 0; }
.contacto .hero-actions { justify-content: center; margin-top: 36px; }
.contacto-address { margin-top: 34px; font-size: 13.5px; color: var(--texto-muted); letter-spacing: .02em; }

/* ==================================================================
   FOOTER
   ================================================================== */
.site-footer { background: var(--verde-oscuro); color: var(--texto-muted); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-mark { height: 44px; width: auto; opacity: 1; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; }
.footer-links a:hover { color: var(--beige-arena); }

/* ==================================================================
   SCROLL REVEAL base states (animated via GSAP)
   ================================================================== */
.reveal-up, .reveal-scale { will-change: transform, opacity; }

/* ==================================================================
   LIGHTBOX
   ================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15,17,11,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 560px; text-align: center; transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.open figure { transform: scale(1); }
.lightbox img { border-radius: 6px; max-height: 72vh; width: auto; margin: 0 auto; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: 20px; color: var(--crema); font-family: var(--font-display); font-size: 22px; }
.lightbox-close {
  position: absolute; top: 28px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245,240,232,.08); border: 1px solid rgba(245,240,232,.25);
  color: var(--crema); font-size: 26px; line-height: 1; cursor: pointer;
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--crema); }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .value-item { border-left: none; padding: 0; }
  .value-item:nth-child(odd) { border-right: 1px solid rgba(245,240,232,.12); }
  .showroom-gallery { grid-template-columns: 1fr; }
  .sg-large { grid-row: auto; }
  .catalog-cards { grid-template-columns: 1fr; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 36px; }
  .nosotros-visual { order: -1; }
  .section { padding: 80px 0; }
}
