/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0A1A2F;
  --bg-2:      #0D2038;
  --bg-3:      #122A47;
  --bg-4:      #17335A;
  --cream:     #F4EFE4;
  --cream-2:   #C9C2AE;
  --cream-3:   #8B93A6;
  --accent:    #E28B2E;
  --accent-2:  #C9701C;
  --gold:      #C9A227;
  --line:      rgba(244,239,228,.12);
  --line-strong: rgba(244,239,228,.24);

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --nav-h: 74px;
  --topbar-h: 44px;
  --header-h: calc(var(--nav-h) + var(--topbar-h));
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--cream-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--cream); text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-weight: 600; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   2b. Preloader — animación de carga inicial
   ============================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .6s var(--ease-out), visibility 0s linear .6s;
}
.preloader::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 45% at 50% 50%, rgba(226,139,46,.14), transparent 70%);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-mark { width: 72px; height: auto; overflow: visible; }
.preloader-bar {
  fill: var(--accent);
  transform-box: fill-box; transform-origin: bottom;
  animation: preloaderBar 1s var(--ease-soft) infinite;
}
.preloader-bar:nth-child(1) { animation-delay: 0s; }
.preloader-bar:nth-child(2) { animation-delay: .13s; }
.preloader-bar:nth-child(3) { animation-delay: .26s; }
.preloader-arrow {
  fill: var(--gold);
  opacity: 0;
  animation: preloaderArrow 1s var(--ease-soft) infinite;
  animation-delay: .39s;
}
@keyframes preloaderBar {
  0%, 20% { transform: scaleY(0.2); }
  55% { transform: scaleY(1); }
  100% { transform: scaleY(0.2); }
}
@keyframes preloaderArrow {
  0%, 20% { opacity: 0; transform: translateY(4px); }
  55% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-bar, .preloader-arrow { animation: none; fill: var(--accent); opacity: 1; transform: none; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(226,139,46,.2);
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--cream-3); max-width: 42rem; }

/* =============================================================
   4. Reveal on scroll
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s;
}
.btn .ico { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: var(--accent);
  color: #1A0F02;
  box-shadow: 0 4px 14px rgba(226,139,46,0.18), 0 1px 3px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-4px);
  background: var(--accent-2);
  box-shadow: 0 22px 44px rgba(226,139,46,0.28), 0 10px 22px rgba(0,0,0,0.3);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-4px); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn-lg { padding: 1.15rem 2.3rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* =============================================================
   6. Topbar + Nav + fullscreen overlay menu
   ============================================================= */
.topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 101;
  height: var(--topbar-h);
  display: flex; align-items: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.topbar-search { position: relative; display: flex; align-items: center; gap: 0.5rem; flex: 1; max-width: 26rem; }
.topbar-icon-btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--cream-2);
  transition: color .3s, background-color .3s;
}
.topbar-icon-btn:hover { color: var(--accent); background: rgba(226,139,46,.1); }
.topbar-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-icon-btn.icon-fill svg { width: 15px; height: 15px; }
.topbar-icon-btn.icon-fill:hover { color: #25D366; background: rgba(37,211,102,.12); }
.topbar-search-input {
  width: 0; opacity: 0; padding: 0; border: 0;
  background: transparent; color: var(--cream);
  font-family: var(--sans); font-size: 0.86rem;
  transition: width .35s var(--ease-soft), opacity .25s var(--ease-soft), padding .35s var(--ease-soft);
}
.topbar-search.is-open .topbar-search-input {
  width: 100%; opacity: 1; padding: 0.3rem 0.2rem;
  border-bottom: 1px solid var(--line-strong);
}
.topbar-links { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.topbar-textlink {
  display: flex; align-items: center;
  padding: 0.3rem 0.7rem;
  color: var(--cream-2);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  border-right: 1px solid var(--line-strong);
  margin-right: 0.3rem;
  transition: color .3s;
}
.topbar-textlink:hover { color: var(--accent); }
@media (max-width: 720px) {
  .topbar-textlink { display: none; }
}

.nav {
  position: fixed; top: var(--topbar-h); inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out);
}
/* ⚠️ Blur lives on a ::before, never directly on .nav — backdrop-filter on an
   ancestor creates a new containing block for position:fixed descendants
   (like .nav-overlay), which would break the fullscreen menu. */
.nav::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(10,26,47,0.86);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.nav.is-scrolled::before {
  opacity: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; }
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-weight: 500; font-size: 1.05rem;
  letter-spacing: 0.04em; color: var(--cream);
}
.nav-logo .dot { color: var(--accent); }
.nav-logo .brand-sip { color: var(--accent); }
.nav-logo-mark { width: 20px; height: 18px; fill: var(--cream); flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: 0;
  font-size: 0.86rem;
}
.nav-link {
  position: relative;
  padding: 0.3rem 0.85rem;
  color: var(--cream-2);
  white-space: nowrap;
  transition: color .3s;
}
.nav-link + .nav-link { border-left: 1px solid var(--line-strong); }
.nav-link:hover { color: var(--accent); }
@media (max-width: 1180px) {
  .nav-links { display: none; }
}

.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  width: 30px; height: 22px; justify-content: center;
  cursor: pointer; z-index: 110; flex-shrink: 0;
}
@media (min-width: 1181px) {
  /* En pantallas anchas ya está el menú horizontal completo — el hamburguesa es redundante. */
  .nav-burger { display: none; }
}
.nav-burger span {
  display: block; height: 2px; width: 100%; background: var(--cream);
  transition: transform .35s var(--ease-soft), opacity .3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  visibility: hidden; opacity: 0;
  transition: opacity .45s var(--ease-soft), visibility 0s linear .45s;
}
.nav-overlay.is-open {
  visibility: visible; opacity: 1;
  transition: opacity .45s var(--ease-soft);
}
.nav-overlay-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(2rem, 5vw, 3rem);
  padding: 6rem var(--gutter) 3rem;
}
.nav-overlay-close {
  position: absolute; top: clamp(1.2rem, 3vw, 2rem); right: var(--gutter);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  transition: border-color .3s, color .3s, transform .3s var(--ease-soft);
}
.nav-overlay-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-overlay-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }

.nav-overlay-menu { display: flex; flex-direction: column; align-items: center; gap: clamp(0.6rem, 2vw, 1rem); }
.nav-overlay-link {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  color: var(--cream-2);
  opacity: 0; translate: 0 16px;
  transition: color .3s, opacity .5s var(--ease-soft), translate .5s var(--ease-soft);
}
.nav-overlay-link span { font-family: var(--mono); font-size: 0.9rem; color: var(--accent); }
.nav-overlay-link:hover { color: var(--cream); }
.nav-overlay.is-open .nav-overlay-link { opacity: 1; translate: 0 0; }
.nav-overlay.is-open .nav-overlay-link:nth-child(1) { transition-delay: .08s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(2) { transition-delay: .13s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(3) { transition-delay: .18s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(4) { transition-delay: .23s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(5) { transition-delay: .28s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(6) { transition-delay: .33s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(7) { transition-delay: .38s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(8) { transition-delay: .43s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(9) { transition-delay: .48s; }
.nav-overlay.is-open .nav-overlay-link:nth-child(10) { transition-delay: .53s; }
.nav-overlay-cta { flex-shrink: 0; }

.menu-open .topbar,
.menu-open .whatsapp-float,
.menu-open .scroll-progress { visibility: hidden; }

@media (max-width: 640px) {
  .topbar-search { max-width: none; }
}

/* =============================================================
   6b. Hero intro — fondo animado (Ken Burns + cross-fade)
   ============================================================= */
.hero-intro {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: clip;
  isolation: isolate;
}
.hero-intro-bg { position: absolute; inset: 0; z-index: -2; }
.hero-intro-layer {
  position: absolute; inset: 0;
  background: var(--hib-img) center / cover no-repeat;
  opacity: 0;
  animation: heroIntroFade 18s ease-in-out infinite, heroIntroZoom 18s ease-in-out infinite;
}
.hero-intro-layer:nth-child(1) { animation-delay: 0s, 0s; }
.hero-intro-layer:nth-child(2) { animation-delay: -12s, -12s; }
.hero-intro-layer:nth-child(3) { animation-delay: -6s, -6s; }
@keyframes heroIntroFade {
  0%, 33.3% { opacity: 1; }
  38%, 100% { opacity: 0; }
}
@keyframes heroIntroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}
.hero-intro-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,17,26,.88) 0%, rgba(10,17,26,.62) 45%, rgba(10,17,26,.42) 100%);
}
.hero-intro-content { max-width: 38rem; }
.hero-intro-content h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 1rem;
}
.hero-intro-content > p:not(.kicker) { font-size: 1.08rem; color: var(--cream-2); max-width: 44ch; margin-bottom: 2rem; }
@media (prefers-reduced-motion: reduce) {
  .hero-intro-layer { animation: none; opacity: 0; }
  .hero-intro-layer:nth-child(1) { opacity: 1; }
}

/* =============================================================
   7. Hero — carrusel de productos destacados
   ============================================================= */
.hero-carousel {
  position: relative;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.hero-carousel-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.2rem;
}
.hero-carousel-controls .kicker { margin-bottom: 0; }
.hero-carousel-arrows { display: flex; gap: 0.6rem; }

.hero-track {
  display: flex; gap: 1.2rem;
  padding: 0 var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.hero-card {
  position: relative;
  flex: 0 0 min(84vw, 460px);
  scroll-snap-align: start;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hc-img) center / cover no-repeat, var(--bg-3);
  isolation: isolate;
}
.hero-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(0deg, rgba(10,17,26,.92) 0%, rgba(10,17,26,.35) 55%, rgba(10,17,26,.05) 100%);
}
.hero-card-overlay {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem 1.6rem 2rem;
}
.hero-card-eyebrow {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.hero-card-overlay h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.55rem; color: var(--cream); }
.hero-card-overlay p { font-size: 0.94rem; color: var(--cream-2); max-width: 30ch; margin-bottom: 1.3rem; }
.hero-card-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--cream); padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--accent);
  transition: gap .3s var(--ease-soft), color .3s;
  width: fit-content;
}
.hero-card-link:hover { gap: 0.8em; color: var(--accent); }

@media (min-width: 900px) {
  .hero-card { flex: 0 0 460px; }
}

/* =============================================================
   7b. Bloque de marca / trayectoria
   ============================================================= */
.brand-block { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
.brand-block-inner { max-width: 42rem; text-align: center; margin-inline: auto; }
.brand-block-inner .kicker { justify-content: center; }
.brand-block-inner p { font-size: 1.05rem; color: var(--cream-3); margin: 1.1rem 0 2rem; }

/* =============================================================
   7c. Grilla de categorías — tarjetas fullscreen
   ============================================================= */
.category-card {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background: var(--cat-img) center / cover no-repeat, var(--bg-3);
  isolation: isolate;
}
.category-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10,17,26,.85) 0%, rgba(10,17,26,.35) 55%, rgba(10,17,26,.1) 100%);
}
.category-card-inner { position: relative; z-index: 1; max-width: 28rem; }
.category-card-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.7rem;
}
.category-card-inner h3 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.category-card-inner p { font-size: 1.02rem; color: var(--cream-2); margin-bottom: 1.6rem; max-width: 32ch; }
.btn-invert { border-color: rgba(244,239,228,.5); color: var(--cream); }
.btn-invert:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .category-card { min-height: 62vh; }
}

.search-status { font-size: 0.9rem; color: var(--gold); margin: -1.5rem 0 2rem; }
.search-status:empty { display: none; }

/* =============================================================
   7d. Fotos de aplicación real — full-bleed
   ============================================================= */
.app-gallery { display: flex; flex-direction: column; }
.app-photo {
  position: relative;
  min-height: 60vh;
  background: var(--ap-img) center / cover no-repeat, var(--bg-3);
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.app-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(0deg, rgba(10,17,26,.88) 0%, transparent 45%);
}
.app-photo figcaption {
  position: relative; z-index: 1;
  padding: 1.8rem var(--gutter) 2rem;
  color: var(--cream);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}
.app-photo figcaption span {
  display: block; font-family: var(--mono); font-weight: 400; font-size: 0.76rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem;
}

/* =============================================================
   7e. Servicios
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 2.1rem 1.7rem;
  transition: background-color .4s var(--ease-out);
}
.service-card:hover { background: var(--bg-3); }
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.94rem; color: var(--cream-3); }

/* =============================================================
   7f. FAQ acordeón
   ============================================================= */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0.2rem;
  text-align: left; font-family: var(--display); font-weight: 600; color: var(--cream);
  font-size: clamp(1rem, 2vw, 1.15rem);
}
.faq-chevron {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--accent);
  font-size: 1.1rem; line-height: 1;
  transition: transform .4s var(--ease-soft), background-color .3s;
}
.faq-item.is-open .faq-chevron { transform: rotate(45deg); background: rgba(226,139,46,.12); }
.faq-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-soft);
}
.faq-panel > p {
  overflow: hidden; min-height: 0;
  font-size: 0.98rem; color: var(--cream-3); max-width: 60ch;
  padding-bottom: 0;
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-item.is-open .faq-panel > p { padding-bottom: 1.6rem; }
.faq-panel { overflow: hidden; }
.faq-panel > p { grid-row: 1 / 2; }

/* =============================================================
   7g. Inspírate — panel pequeño con pestañas por ambiente
   ============================================================= */
.section-head-center { text-align: center; max-width: 34rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.insp-hashtag { font-family: var(--mono); font-size: 0.86rem; color: var(--accent); margin-top: 0.5rem; }

.insp-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}
.insp-panel-tabs { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.6rem; }
.insp-tab {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.86rem; font-weight: 600;
  color: var(--cream-3);
  transition: all .3s var(--ease-out);
}
.insp-tab:hover { color: var(--cream); border-color: var(--cream-3); }
.insp-tab.is-active { background: var(--accent); border-color: var(--accent); color: #1A0F02; }

.insp-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.2rem;
}
.insp-card.is-hidden { display: none; }

/* =============================================================
   8. Photos (real images) + placeholder component (fallback)
   ============================================================= */
.photo {
  display: block; width: 100%; height: 100%;
  aspect-ratio: var(--ph-ratio, 4/3);
  object-fit: cover;
}
.photo-frame { position: relative; overflow: hidden; }
.photo-label {
  position: absolute; inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(0deg, rgba(10,26,47,.92), rgba(10,26,47,0) 100%);
  color: var(--cream);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  opacity: 0; translate: 0 6px;
  transition: opacity .35s var(--ease-out), translate .35s var(--ease-out);
  pointer-events: none;
}
.product-card:hover .photo-label,
.insp-card:hover .photo-label,
.photo-frame:focus-within .photo-label {
  opacity: 1; translate: 0 0;
}
@media (hover: none) {
  .photo-label { opacity: 1; translate: 0 0; background: linear-gradient(0deg, rgba(10,26,47,.85), rgba(10,26,47,0) 100%); padding-top: 1.4rem; }
}
.ph {
  position: relative;
  aspect-ratio: var(--ph-ratio, 4/3);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(244,239,228,.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--bg-4), var(--bg-3));
  border: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.5rem; padding: 1rem;
}
.ph::before {
  content: "";
  width: 34px; height: 34px;
  background: rgba(244,239,228,.08);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  mask: center / 60% no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><rect x='3' y='6' width='18' height='13' rx='2'/><circle cx='12' cy='12.5' r='3.2'/><path d='M8 6l1.5-2h5L16 6'/></svg>");
  -webkit-mask: center / 60% no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><rect x='3' y='6' width='18' height='13' rx='2'/><circle cx='12' cy='12.5' r='3.2'/><path d='M8 6l1.5-2h5L16 6'/></svg>");
  background-color: var(--cream-3);
}
.ph-tag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.ph-label { font-size: 0.82rem; color: var(--cream-3); max-width: 22ch; }

/* =============================================================
   9. Advantages
   ============================================================= */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.advantage-card {
  background: var(--bg);
  padding: 2.1rem 1.7rem;
  transition: background-color .4s var(--ease-out);
}
.advantage-card:hover { background: var(--bg-3); }
.advantage-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(226,139,46,.12);
  margin-bottom: 1.2rem;
}
.advantage-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.advantage-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.advantage-card p { font-size: 0.94rem; color: var(--cream-3); }

/* =============================================================
   10. Catalog / filter / products
   ============================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.86rem; font-weight: 500;
  color: var(--cream-3);
  transition: all .3s var(--ease-out);
}
.filter-btn:hover { color: var(--cream); border-color: var(--cream-3); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #1A0F02; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.6rem;
}
.product-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), border-color .4s;
}
.product-card.is-hidden { display: none; }
.product-card .ph, .product-card .photo, .product-card .photo-frame { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.product-body { padding: 1.4rem 1.3rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.product-spec { font-family: var(--mono); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.product-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.product-desc { font-size: 0.9rem; color: var(--cream-3); margin-bottom: 1.2rem; }
.product-cta-group { margin-top: auto; display: flex; align-items: stretch; gap: 0.6rem; width: 100%; }
.product-cta-group .product-cta { flex: 1; }
.product-cta-wa {
  flex-shrink: 0; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%;
  background: #25D366; color: #05300f;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.product-cta-wa svg { width: 19px; height: 19px; }
.product-cta-wa:hover { transform: scale(1.08); box-shadow: 0 8px 20px -4px rgba(37,211,102,.5); }
.product-card:hover {
  border-color: rgba(226,139,46,.4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(226,139,46,0.12);
}

/* Tilt (shared: hero diagram + product cards) */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(6%);
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }

/* =============================================================
   11. Proceso — horizontal showcase (scroll normal + flechas)
   ============================================================= */
.showcase {
  position: relative;
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(4.5rem, 10vw, 8rem);
}
.showcase::before {
  content: "";
  position: absolute; top: -1px; left: 50%; translate: -50% 0;
  width: min(90%, 640px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .6;
}

.showcase-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  margin-top: -0.5rem; margin-bottom: 1.5rem;
}
.showcase-hint { font-size: 0.86rem; color: var(--cream-3); }
.showcase-arrows { display: flex; gap: 0.6rem; }
.showcase-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--cream); font-size: 1.3rem;
  display: grid; place-items: center;
  transition: all .3s var(--ease-out);
}
.showcase-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #1A0F02; }
.showcase-arrow:disabled { opacity: .3; cursor: default; }

.showcase-track {
  position: relative;
  display: flex; gap: 1.6rem;
  padding: 0.5rem var(--gutter) clamp(3rem, 8vw, 5rem);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.stage-card {
  flex: 0 0 min(78vw, 380px);
  scroll-snap-align: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stage-card .ph, .stage-card .photo { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.stage-body { padding: 1.5rem 1.4rem 1.8rem; }
.stage-day {
  display: inline-block;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--bg); background: var(--gold);
  padding: 0.25rem 0.6rem; border-radius: 999px;
  margin-bottom: 0.9rem;
}
.stage-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.stage-body p { font-size: 0.94rem; color: var(--cream-3); }

@media (min-width: 1024px) {
  .stage-card { flex: 0 0 380px; }
}
@media (max-width: 539px) {
  .showcase-hint { display: none; }
}

/* =============================================================
   11b. Inspírate — tarjetas (usadas dentro del acordeón, ver 7g)
   ============================================================= */
.insp-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .4s;
}
.insp-card .photo, .insp-card .photo-frame { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.insp-card:hover {
  border-color: rgba(226,139,46,.4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(226,139,46,0.12);
}
.insp-card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.insp-card-tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold);
}
.insp-card-body h3 { font-size: 1.05rem; }
.insp-card-desc { font-size: 0.88rem; color: var(--cream-3); }

/* =============================================================
   12. Testimonials
   ============================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.6rem;
}
.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.testimonial-quote { font-size: 1rem; color: var(--cream); line-height: 1.55; }
.testimonial-quote::before { content: "\201C"; color: var(--accent); }
.testimonial-quote::after { content: "\201D"; color: var(--accent); }
.testimonial-footer { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-footer > span:last-child { display: flex; flex-direction: column; gap: 0.1rem; }
.testimonial-footer cite { font-style: normal; font-weight: 600; color: var(--cream); font-size: 0.92rem; }
.testimonial-role { font-size: 0.8rem; color: var(--cream-3); }
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(150deg, var(--accent), var(--gold));
  color: #1A0F02; font-family: var(--mono); font-weight: 600; font-size: 0.82rem;
}
.testimonials-note { margin-top: 2rem; font-size: 0.82rem; color: var(--cream-3); font-style: italic; }

.team-gallery { margin-top: clamp(3rem, 6vw, 4.5rem); }
.team-gallery-kicker {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
}
.team-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.3rem;
}
.team-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.team-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.team-photo figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(0deg, rgba(10,17,26,.9), rgba(10,17,26,0) 100%);
  color: var(--cream);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
}

/* =============================================================
   13. CTA band
   ============================================================= */
.cta-band {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -60% -10% -80% -10%;
  background: radial-gradient(45% 45% at 50% 30%, rgba(226,139,46,.25), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}
.cta-band-inner { position: relative; text-align: center; max-width: 40rem; margin-inline: auto; }
.cta-band-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.9rem; }
.cta-band-inner p { color: var(--cream-3); margin-bottom: 2rem; font-size: 1.05rem; }

/* =============================================================
   14. Contact
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cream-3); }
.contact-list a { color: var(--cream); font-size: 1.05rem; transition: color .3s; }
.contact-list a:hover { color: var(--accent); }

.cta-form {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-size: 0.85rem; color: var(--cream-3); }
.form-row input, .form-row textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.96rem;
  resize: vertical;
  transition: border-color .3s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); outline: none; }
.form-note { font-size: 0.86rem; color: var(--gold); min-height: 1.2em; }

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   15. Footer
   ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
.footer-brand p { margin-top: 1rem; font-size: 0.92rem; color: var(--cream-3); max-width: 28rem; }
.footer-social { display: flex; gap: 1.4rem; margin-top: 1.2rem; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; color: var(--cream-3);
  transition: color .3s;
}
.footer-social a:hover { color: var(--accent); }
.footer-social svg {
  width: 17px; height: 17px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.footer-social svg.icon-fill { fill: currentColor; stroke: none; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cream-3); font-family: var(--mono); margin-bottom: 0.4rem; }
.footer-col a, .footer-col button { display: block; text-align: left; font-size: 0.92rem; color: var(--cream-2); transition: color .3s; }
.footer-col a:hover, .footer-col button:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  font-size: 0.8rem; color: var(--cream-3);
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* =============================================================
   16. Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear;
}

/* =============================================================
   16b. WhatsApp — botón flotante lateral
   ============================================================= */
.whatsapp-float {
  position: fixed;
  left: 1.1rem; bottom: 1.3rem;
  z-index: 300;
  display: flex; align-items: center; gap: 0.7rem;
  background: #25D366;
  color: #05300f;
  border-radius: 999px;
  padding: 0.85rem;
  box-shadow: 0 14px 34px -8px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), padding .35s var(--ease-soft);
  overflow: hidden;
}
.whatsapp-float .ico { width: 26px; height: 26px; fill: #05300f; flex-shrink: 0; }
.whatsapp-float-label {
  white-space: nowrap;
  font-size: 0.86rem; font-weight: 600;
  padding-right: 0.4rem;
}
.whatsapp-float:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 44px -8px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12);
}
@media (max-width: 640px) {
  .whatsapp-float { left: 0.7rem; padding: 0.7rem 0.9rem 0.7rem 0.7rem; }
  .whatsapp-float .ico { width: 22px; height: 22px; }
  .whatsapp-float-label { font-size: 0.78rem; }
}

/* =============================================================
   17b. Descargables
   ============================================================= */
.download-card {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}
.download-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(226,139,46,.12);
}
.download-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.download-body { flex: 1; min-width: 16rem; }
.download-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.download-body p { font-size: 0.92rem; color: var(--cream-3); }
.download-meta { color: var(--cream-3); font-weight: 400; }

/* =============================================================
   17c. Modales de navegación a pantalla completa
   (Catálogo, Testimonios, Preguntas frecuentes, Inspírate)
   ============================================================= */
.nav-modal {
  position: fixed; inset: 0; z-index: 600;
  background: var(--bg);
  visibility: hidden; opacity: 0;
  transition: opacity .4s var(--ease-soft), visibility 0s linear .4s;
  overflow: hidden;
}
.nav-modal.is-open {
  visibility: visible; opacity: 1;
  transition: opacity .4s var(--ease-soft);
}
.nav-modal-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: clamp(4.5rem, 9vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.nav-modal-close {
  position: fixed; top: clamp(1rem, 2.5vw, 1.6rem); right: var(--gutter); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  transition: border-color .3s, color .3s, transform .3s var(--ease-soft);
}
.nav-modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }

/* =============================================================
   17d. Descargables — menú pequeño desplegable
   ============================================================= */
.desc-popover {
  position: fixed; top: calc(var(--header-h) + 0.8rem); right: var(--gutter); z-index: 600;
  width: min(19rem, calc(100vw - 2 * var(--gutter)));
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5);
  padding: 1.5rem 1.4rem 1.4rem;
  opacity: 0; translate: 0 -10px; visibility: hidden;
  transition: opacity .3s var(--ease-soft), translate .3s var(--ease-soft), visibility 0s linear .3s;
}
.desc-popover.is-open {
  opacity: 1; translate: 0 0; visibility: visible;
  transition: opacity .3s var(--ease-soft), translate .3s var(--ease-soft);
}
.desc-popover .download-card {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  padding: 0; border: 0; background: none;
}
.desc-popover .download-icon { width: 40px; height: 40px; flex-shrink: 0; }
.desc-popover .download-icon svg { width: 18px; height: 18px; }
.desc-popover .download-card h3 { font-size: 1rem; margin-right: auto; }
.desc-popover .btn { flex-shrink: 0; }
.desc-popover-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream-3);
  transition: color .3s, background-color .3s;
}
.desc-popover-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.desc-popover-close:hover { color: var(--cream); background: rgba(244,239,228,.08); }
@media (max-width: 480px) {
  .desc-popover { left: var(--gutter); right: var(--gutter); width: auto; }
}

/* =============================================================
   17e. Inspírate — lupa al pasar el cursor + lightbox
   ============================================================= */
.insp-card .photo-frame, .gallery-photo .photo-frame { cursor: zoom-in; }
.insp-card .photo-frame::before, .gallery-photo .photo-frame::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(10,17,26,0);
  transition: background-color .35s var(--ease-out);
  pointer-events: none;
}
.insp-card .photo-frame:hover::before, .gallery-photo .photo-frame:hover::before,
.gallery-photo .photo-frame:focus-within::before,
.insp-card .photo-frame:focus-within::before { background: rgba(10,17,26,.32); }
.insp-zoom-icon {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(10,17,26,.6);
  border: 1px solid rgba(244,239,228,.4);
  display: grid; place-items: center;
  opacity: 0; scale: 0.8;
  transition: opacity .3s var(--ease-soft), scale .3s var(--ease-soft);
  pointer-events: none;
}
.insp-card .photo-frame:hover .insp-zoom-icon, .gallery-photo .photo-frame:hover .insp-zoom-icon,
.gallery-photo .photo-frame:focus-within .insp-zoom-icon,
.insp-card .photo-frame:focus-within .insp-zoom-icon { opacity: 1; scale: 1; }
.insp-zoom-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; }
@media (hover: none) {
  .insp-zoom-icon { opacity: 1; scale: 1; width: 38px; height: 38px; }
  .insp-zoom-icon svg { width: 16px; height: 16px; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 700;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(6,11,18,.94);
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease-soft), visibility 0s linear .35s;
}
.lightbox.is-open {
  visibility: visible; opacity: 1;
  transition: opacity .35s var(--ease-soft);
}
.lightbox-figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.lightbox-img {
  max-width: 100%; max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.6);
  scale: .96;
  transition: scale .35s var(--ease-soft);
}
.lightbox.is-open .lightbox-img { scale: 1; }
.lightbox-caption { font-family: var(--mono); font-size: 0.86rem; color: var(--cream-2); text-align: center; }
.lightbox-close {
  position: fixed; top: clamp(1rem, 2.5vw, 1.6rem); right: var(--gutter); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(244,239,228,.25);
  color: var(--cream);
  transition: border-color .3s, color .3s, transform .3s var(--ease-soft);
}
.lightbox-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .lightbox-img { transition: none; }
}

/* =============================================================
   17f. Chatbot — burbuja + panel flotante (esquina inferior derecha)
   ============================================================= */
.chat-widget { position: fixed; right: 1.1rem; bottom: 1.3rem; z-index: 650; }
@media (max-width: 640px) {
  .chat-widget { right: 0.7rem; bottom: 0.7rem; }
}

.chat-bubble {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #1A0F02;
  box-shadow: 0 14px 34px -8px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), background-color .3s;
}
.chat-bubble:hover { transform: scale(1.06); background: var(--accent-2); }
.chat-bubble-icon { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.chat-bubble-icon-open svg { width: 24px; height: 21px; fill: #1A0F02; }
.chat-bubble-icon-close { opacity: 0; transform: scale(.6) rotate(-45deg); }
.chat-bubble-icon-close svg { width: 20px; height: 20px; fill: none; stroke: #1A0F02; stroke-width: 2; stroke-linecap: round; }
.chat-widget.is-open .chat-bubble-icon-open { opacity: 0; transform: scale(.6) rotate(45deg); }
.chat-widget.is-open .chat-bubble-icon-close { opacity: 1; transform: scale(1) rotate(0); }
.chat-bubble-ping {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0; animation: chatPing 2.6s ease-out 1.2s 3;
  pointer-events: none;
}
.chat-widget.is-open .chat-bubble-ping { display: none; }
@keyframes chatPing {
  0% { opacity: .55; scale: 1; }
  100% { opacity: 0; scale: 1.35; }
}

.chat-panel {
  position: absolute; right: 0; bottom: calc(60px + 0.9rem);
  width: min(23rem, calc(100vw - 2.2rem));
  height: min(34rem, calc(100vh - 7rem));
  max-height: 34rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(226,139,46,0.06);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  visibility: hidden; opacity: 0; scale: 0.94; translate: 0 12px;
  transition: opacity .3s var(--ease-soft), scale .3s var(--ease-soft), translate .3s var(--ease-soft), visibility 0s linear .3s;
}
.chat-widget.is-open .chat-panel {
  visibility: visible; opacity: 1; scale: 1; translate: 0 0;
  transition: opacity .3s var(--ease-soft), scale .3s var(--ease-soft), translate .3s var(--ease-soft);
}
@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 1.4rem); height: min(30rem, calc(100vh - 6.5rem)); }
}

.chat-panel-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 0.9rem 0.9rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.chat-avatar svg { width: 16px; height: 14px; fill: var(--accent); }
.chat-panel-head-text { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.chat-panel-head-text strong { font-size: 0.92rem; color: var(--cream); }
.chat-panel-head-text span { font-size: 0.76rem; color: var(--cream-3); display: flex; align-items: center; gap: 0.35rem; }
.chat-panel-head-text span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #25D366; flex-shrink: 0; }
.chat-close {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: var(--cream-3);
  transition: color .3s, background-color .3s;
}
.chat-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.chat-close:hover { color: var(--cream); background: rgba(244,239,228,.08); }

.chat-messages {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.chat-msg { display: flex; gap: 0.5rem; max-width: 88%; }
.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line-strong);
}
.chat-msg-avatar svg { width: 11px; height: 10px; fill: var(--accent); }
.chat-msg-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg-bot .chat-msg-bubble { background: var(--bg-3); color: var(--cream-2); border-bottom-left-radius: 4px; }
.chat-msg-user .chat-msg-bubble { background: var(--accent); color: #1A0F02; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-msg-group { display: flex; flex-direction: column; gap: 0.4rem; }

.chat-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.3rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #25D366; color: #05300f;
  font-size: 0.84rem; font-weight: 600;
  box-shadow: 0 8px 20px -6px rgba(37,211,102,.55);
  transition: transform .25s var(--ease-soft);
  width: fit-content;
}
.chat-cta:hover { transform: translateY(-2px) scale(1.02); }
.chat-cta svg { width: 16px; height: 16px; fill: currentColor; }

.chat-typing { display: flex; gap: 4px; padding: 0.3rem 0.2rem; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cream-3);
  animation: chatTyping 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping {
  0%, 60%, 100% { opacity: .3; translate: 0 0; }
  30% { opacity: 1; translate: 0 -3px; }
}

.chat-input-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  flex-shrink: 0;
}
.chat-input {
  flex: 1; min-width: 0;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--cream);
  font-family: var(--sans); font-size: 0.88rem;
  transition: border-color .3s;
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent); color: #1A0F02;
  transition: background-color .3s, transform .25s var(--ease-soft), opacity .3s;
}
.chat-send svg { width: 16px; height: 16px; fill: currentColor; }
.chat-send:hover:not(:disabled) { background: var(--accent-2); transform: scale(1.06); }
.chat-send:disabled { opacity: .5; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .chat-bubble-ping { animation: none; display: none; }
  .chat-typing span { animation: none; opacity: .7; }
}

/* =============================================================
   17g. Galería — grilla de fotos reales
   ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.2rem;
}
.gallery-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-photo .photo, .gallery-photo .photo-frame { border-radius: 0; border: 0; }

/* =============================================================
   17h. Recrea tu Proyecto — selector de ambiente/material + resultado instantáneo
   ============================================================= */
.recrea-flow { max-width: 52rem; margin: 0 auto; }
.recrea-step { margin-bottom: clamp(2rem, 5vw, 3rem); }
.recrea-step-title {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-size: 1.15rem; margin-bottom: 1.2rem;
}
.recrea-step-title span {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #1A0F02;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.recrea-step-note { color: var(--cream-3); font-size: 0.9rem; margin: -0.6rem 0 1.2rem; }
.recrea-picker + .recrea-picker { margin-top: 1.4rem; }

.recrea-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.9rem;
}
.recrea-option:not([hidden]) {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--bg-2);
  transition: border-color .3s, transform .3s var(--ease-soft);
  text-align: left;
}
.recrea-option:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.recrea-option img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.recrea-option span {
  padding: 0.6rem 0.7rem; font-size: 0.82rem; font-weight: 600; color: var(--cream);
}
.recrea-option.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226,139,46,0.22);
}
.recrea-option.is-selected span { color: var(--accent); }

.recrea-option--toggle.is-selected::after {
  content: "✓";
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #1A0F02;
  font-size: 0.75rem; font-weight: 700;
  display: grid; place-items: center;
}
.recrea-option--toggle { position: relative; }

.recrea-empty-note:not([hidden]) { color: var(--cream-3); font-size: 0.92rem; text-align: center; padding: 1.5rem 0; }

.recrea-result { max-width: 40rem; margin: clamp(2rem, 5vw, 3rem) auto 0; text-align: center; }
.recrea-result img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  display: block; margin-bottom: 1.4rem;
}
.recrea-result-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* =============================================================
   18. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .kicker::before { box-shadow: none; }
}
