*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #FAF7F2; font-family: Lato, sans-serif; font-weight: 300; color: #2C2420; }
input, textarea, button, select { font-family: inherit; border-radius: 0; }

/* ── Nav ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(250,247,242,0.97); backdrop-filter: blur(12px);
  height: 68px; padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #E5DDD3;
}
.nav-brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.nav-brand-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #2C2420; letter-spacing: 0.01em; }
.nav-brand-name span { color: #C9A96E; }
.nav-brand-sub { font-family: Lato, sans-serif; font-size: 9px; color: #9A8878; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link-secondary { font-family: Lato, sans-serif; font-size: 12px; letter-spacing: 0.1em; color: #5A4840; text-decoration: none; text-transform: uppercase; }
.nav-link-current { font-family: Lato, sans-serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #C9A96E; font-weight: 700; }
.nav-link-cta { font-family: Lato, sans-serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: #2C2420; color: #FAF7F2; padding: 10px 22px; text-decoration: none; transition: background 0.2s; }
.nav-link-cta:hover { background: #3D3028; }

/* ── Hero strip ── */
.hero-strip { padding-top: 68px; background: #FAF7F2; }
.hero-inner { padding: 64px 52px 48px; text-align: center; border-bottom: 1px solid #E5DDD3; }
.hero-label { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.hero-label-line { height: 1px; width: 40px; background: #C9A96E; }
.hero-label-text { font-family: Lato, sans-serif; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #C9A96E; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 600; color: #2C2420; line-height: 1.1; margin-bottom: 16px; }
.hero-desc { font-family: Lato, sans-serif; font-size: 14px; color: #6A5848; max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ── Product section ── */
.product-section { position: relative; width: 100%; height: 100vh; overflow: hidden; display: flex; align-items: flex-end; }
.product-slides { position: absolute; inset: 0; z-index: 0; }
.product-slide { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #E8DDD0; transition: opacity 0.7s ease; }

/* ── Demo slide (iframes embebidos) ── */
.pslide-demos { display: flex; align-items: center; justify-content: center; background-color: #FAF7F2; }
.pslide-demos-inner {
  display: flex; gap: 48px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 0 60px; max-width: 100%; box-sizing: border-box;
}
.mini-phone { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mini-phone-frame {
  width: 220px; height: 447px; background: #1C1814; border-radius: 30px; padding: 12px;
  box-shadow: 0 14px 34px rgba(44,36,32,0.25); position: relative;
}
.mini-phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 13px; background: #1C1814; border-radius: 0 0 9px 9px; z-index: 2;
}
.mini-phone-inner { width: 100%; height: 100%; border-radius: 18px; overflow: hidden; background: #fff; position: relative; }
.mini-phone-inner iframe {
  width: 375px; height: 815px; border: 0; transform: scale(0.5227); transform-origin: top left;
  overflow: hidden; scrollbar-width: none; -ms-overflow-style: none;
}
.mini-phone-inner iframe::-webkit-scrollbar { display: none; }
.mini-phone-label { font-family: Lato, sans-serif; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #9A8878; }
.mini-phone-link { font-family: Lato, sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #C9A96E; text-decoration: none; margin-top: -4px; }
.mini-phone-link:hover { color: #B89258; }

/* Demos dentro del modal "Ver detalles" — versión compacta */
.modal-demo-phones { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.modal-demo-phones .mini-phone-frame { width: 130px; height: 264px; }
.modal-demo-phones .mini-phone-inner iframe { height: 855px; transform: scale(0.2827); }

/* Tablet: reduce tamaño para que quepan las 3 sin desbordar */
@media (max-width: 1100px) {
  .pslide-demos-inner { gap: 32px; padding: 0 40px; }
  .mini-phone-frame { width: 180px; height: 366px; }
  .mini-phone-inner iframe { height: 828px; transform: scale(0.416); }
}

/* Móvil: scroll horizontal con snap en vez de apilar (evita cortes en 100vh) */
@media (max-width: 768px) {
  .pslide-demos-inner {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 0 32px; gap: 24px; width: 100%;
  }
  .mini-phone { scroll-snap-align: center; }
  .mini-phone-frame { width: 190px; height: 386px; }
  .mini-phone-inner iframe { height: 823px; transform: scale(0.4427); }

  /* Demos del modal: 1 por fila en móvil, en vez de apretadas 3 en línea */
  .modal-demo-phones { flex-direction: column; align-items: center; gap: 28px; }
  .modal-demo-phones .mini-phone-frame { width: 200px; height: 406px; }
  .modal-demo-phones .mini-phone-inner iframe { height: 820px; transform: scale(0.4693); }
}

@media (max-width: 480px) {
  .pslide-demos-inner { padding: 0 20px; gap: 18px; }
  .mini-phone-frame { width: 165px; height: 335px; }
  .mini-phone-inner iframe { height: 832px; transform: scale(0.376); }

  .modal-demo-phones .mini-phone-frame { width: 170px; height: 345px; }
  .modal-demo-phones .mini-phone-inner iframe { height: 830px; transform: scale(0.3893); }
}
.product-vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center,
    rgba(250,247,242,0.02) 0%,
    rgba(250,247,242,0.12) 40%,
    rgba(250,247,242,0.72) 75%,
    rgba(250,247,242,0.94) 100%);
}
.product-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 58%; z-index: 2;
  background: linear-gradient(to top,
    rgba(250,247,242,0.99) 0%,
    rgba(250,247,242,0.82) 40%,
    rgba(250,247,242,0.4) 70%,
    transparent 100%);
}
.product-content { position: relative; z-index: 5; width: 100%; padding: 0 52px 56px; display: flex; align-items: flex-end; gap: 60px; }
.product-text { flex: 1; max-width: 620px; }
.product-cat { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.product-cat-line { width: 24px; height: 1px; background: #C9A96E; flex-shrink: 0; }
.product-cat-text { font-family: Lato, sans-serif; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: #C9A96E; }
.product-name { font-family: 'Playfair Display', serif; font-size: 46px; font-weight: 600; color: #2C2420; line-height: 1.08; margin-bottom: 14px; }
.product-desc { font-family: Lato, sans-serif; font-size: 15px; line-height: 1.7; color: #5A4840; margin-bottom: 24px; max-width: 520px; font-weight: 300; }
.product-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.product-price { flex-shrink: 0; text-align: right; padding-bottom: 6px; margin-left: auto; }
.product-price-label { font-family: Lato, sans-serif; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #9A8878; margin-bottom: 6px; }
.product-price-value { font-family: 'Playfair Display', serif; font-size: 52px; color: #C9A96E; line-height: 1; font-weight: 600; }
.product-price-note { font-family: Lato, sans-serif; font-size: 11px; color: #8B7355; margin-top: 4px; }
.product-index { position: absolute; top: 24px; left: 28px; z-index: 10; font-family: 'Playfair Display', serif; font-size: 11px; color: rgba(44,36,32,0.35); letter-spacing: 0.1em; }
.product-dots { position: absolute; top: 24px; right: 28px; z-index: 10; display: flex; gap: 6px; align-items: center; }
.product-divider { height: 1px; background: linear-gradient(to right, transparent, #DDD5C8, transparent); }

/* ── Carousel nav ── */
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(250,247,242,0.7); border: 1px solid rgba(201,169,110,0.4);
  width: 48px; height: 48px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; backdrop-filter: blur(4px);
}
.slide-btn:hover { background: rgba(201,169,110,0.15); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(44,36,32,0.25); cursor: pointer; transition: background 0.2s, transform 0.2s; flex-shrink: 0; }
.dot.active { background: #C9A96E; transform: scale(1.4); }

/* ── Buttons ── */
.btn-gold { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: #C9A96E; color: #fff; border: none; padding: 13px 24px; cursor: pointer; transition: background 0.2s; }
.btn-gold:hover { background: #B89258; }
.btn-dark { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: #2C2420; border: 1.5px solid #2C2420; padding: 13px 24px; cursor: pointer; transition: background 0.2s; }
.btn-dark:hover { background: rgba(44,36,32,0.06); }
.btn-outline-gold { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: #C9A96E; border: 1.5px solid rgba(201,169,110,0.6); padding: 13px 24px; cursor: pointer; transition: background 0.2s; }
.btn-outline-gold:hover { background: rgba(201,169,110,0.08); }

/* ── Contact section ── */
.contact-section { background: #FAF7F2; padding: 80px 52px; }
.contact-inner { max-width: 580px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 48px; }
.contact-label { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.contact-label-text { font-family: Lato, sans-serif; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #C9A96E; }
.contact-title { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 600; color: #2C2420; margin-bottom: 12px; }
.contact-desc { font-family: Lato, sans-serif; font-size: 14px; line-height: 1.7; color: #6A5848; }
.form-group { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; }
.form-input { width: 100%; padding: 14px 16px; border: 1.5px solid #DDD5C8; background: #fff; font-size: 13px; color: #2C2420; outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: #C9A96E; }
.form-textarea { height: 110px; resize: vertical; }
.form-submit { background: #C9A96E; color: #fff; border: none; padding: 16px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; width: 100%; }
.form-submit:hover { background: #B89258; }
.form-success { display: none; text-align: center; padding: 24px; background: #F0EAE0; border: 1px solid #DDD0BC; }
.form-success strong { font-family: 'Playfair Display', serif; font-size: 20px; display: block; margin-bottom: 8px; color: #2C2420; }
.form-success p { font-family: Lato, sans-serif; font-size: 14px; color: #5A4840; line-height: 1.7; }

/* ── Footer ── */
.site-footer { background: #2C2420; padding: 28px 52px; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 17px; color: #C9A96E; display: flex; align-items: baseline; gap: 6px; }
.footer-brand span { color: #FAF7F2; }
.footer-brand sub { font-family: Lato, sans-serif; font-size: 10px; color: #4A3830; font-weight: 300; vertical-align: baseline; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-link { font-family: Lato, sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #7A6858; text-decoration: none; }
.footer-sep { color: #3A2A20; }
.footer-copy { font-family: Lato, sans-serif; font-size: 11px; color: #4A3830; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,8,12,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(6px);
}
.modal-overlay.hidden { display: none; }
.modal-box { background: #FAF7F2; max-width: 700px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(44,36,32,0.2); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: #9A8878; font-size: 20px; line-height: 1; z-index: 2; padding: 4px; }
.modal-close:hover { color: #2C2420; }
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: #F0E8DC; }
.modal-box::-webkit-scrollbar-thumb { background: #C9A96E; }
.modal-tag { font-family: Lato, sans-serif; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #C9A96E; margin-bottom: 10px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 28px; color: #2C2420; margin-bottom: 20px; }
.modal-category { font-family: Lato, sans-serif; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #C9A96E; margin-bottom: 8px; }
.modal-label { font-family: Lato, sans-serif; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #9A8878; display: block; margin-bottom: 6px; }
.modal-input { width: 100%; padding: 12px 14px; border: 1.5px solid #DDD5C8; background: #FAF7F2; font-size: 13px; color: #2C2420; outline: none; transition: border-color 0.2s; }
.modal-input:focus { border-color: #C9A96E; }
.modal-textarea { height: 90px; resize: vertical; }
.modal-submit { background: #C9A96E; color: #fff; border: none; padding: 14px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; width: 100%; }
.modal-submit:hover { background: #B89258; }
.modal-cta { display: block; text-align: center; font-family: Lato, sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: #2C2420; color: #FAF7F2; padding: 14px; text-decoration: none; transition: background 0.2s; }
.modal-cta:hover { background: #3D3028; }
.modal-demo-notice { background: #F0E8DC; padding: 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.modal-demo-notice-title { font-family: 'Playfair Display', serif; font-size: 15px; color: #2C2420; margin-bottom: 4px; }
.modal-demo-notice-text { font-family: Lato, sans-serif; font-size: 12px; color: #8B7355; line-height: 1.5; }
.modal-demo-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-demo-btn { font-family: Lato, sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: #C9A96E; color: #fff; padding: 12px 22px; text-decoration: none; transition: background 0.2s; }
.modal-demo-btn:hover { background: #B89258; }
.modal-detail-image { height: 320px; position: relative; overflow: hidden; background-color: #E8DDD0; cursor: zoom-in; }
.modal-image-slide { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; transition: opacity 0.5s ease; }
.modal-image-dots { position: absolute; top: 16px; right: 18px; z-index: 2; display: flex; gap: 6px; align-items: center; }
.modal-image-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(250,247,242,0.6); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.modal-image-dot.active { background: #C9A96E; transform: scale(1.3); }
.modal-image-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(250,247,242,0.7); border: 1px solid rgba(201,169,110,0.4);
  width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; backdrop-filter: blur(4px);
}
.modal-image-nav:hover { background: rgba(201,169,110,0.15); }
.modal-image-nav.prev { left: 14px; }
.modal-image-nav.next { right: 14px; }
.modal-image-zoom {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  background: rgba(250,247,242,0.85); border: 1px solid rgba(201,169,110,0.4);
  width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; backdrop-filter: blur(4px);
}
.modal-image-zoom:hover { background: rgba(201,169,110,0.15); }

/* ── Lightbox: foto ampliada ── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,8,12,0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 32px; cursor: zoom-out;
}
.lightbox-overlay.hidden { display: none; }
.lightbox-img { max-width: 92vw; max-height: 92vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.4); cursor: default; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none; cursor: pointer;
  color: #FAF7F2; font-size: 26px; line-height: 1; padding: 4px; z-index: 2;
}
.lightbox-close:hover { color: #C9A96E; }
.modal-feature-list { display: flex; flex-direction: column; gap: 9px; }
.modal-feature { display: flex; gap: 10px; align-items: flex-start; }
.modal-feature-dot { width: 5px; height: 5px; border-radius: 50%; background: #C9A96E; flex-shrink: 0; margin-top: 5px; }
.modal-feature-text { font-family: Lato, sans-serif; font-size: 13px; color: #5A4840; line-height: 1.5; }
.modal-form-group { display: flex; flex-direction: column; gap: 14px; }

/* ── Modal: tabs de planes ──────────────────────────────────────
   El look de .tier-tab/.tier-panel/.tier-feat/.tier-badge vive en
   pricing-tabs.css (compartido con invitaciones.html). Aquí solo el
   espaciado propio de este modal y el color del tab destacado
   (el plan "Más popular" se marca solo en la cabecera, sin caja
   alrededor del panel). */
#modal-tier-tabs { border-bottom: 1px solid #EDE5D8; margin-bottom: 22px; }
#modal-tier-tabs .tier-tab-featured { background: #FBF6EC; }
#modal-tier-tabs .tier-tab-featured.active { background: #F5EAD3; }

/* ── Responsive ── */
@media (max-width: 768px) {
  #main-nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-link-secondary { display: none; }
  .hero-inner { padding: 48px 24px 36px; }
  .hero-title { font-size: 34px; }
  .product-content { padding: 0 20px 40px; flex-direction: column; gap: 20px; align-items: flex-start; }
  .product-name { font-size: 30px; }
  .contact-section { padding: 60px 24px; }
  .contact-title { font-size: 28px; }
  .form-row { flex-direction: column; }
  .site-footer { flex-direction: column; gap: 16px; padding: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .modal-box { margin: 0; }
}

@media (max-width: 480px) {
  .product-name { font-size: 26px; }
  .product-desc { font-size: 14px; }
  .product-btns { gap: 8px; }
  .btn-gold, .btn-dark, .btn-outline-gold { padding: 11px 18px; font-size: 10px; }
}
