:root {
  --bg-0: #040914;
  --bg-1: #07111f;
  --bg-2: #0a1a32;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.10);
  --text: #f5f9ff;
  --muted: #9fb4d1;
  --primary: #2aa7ff;
  --primary-2: #00d1ff;
  --accent: #7a5cff;
  --wa: #25d366;
  --shadow-xl: 0 30px 70px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 45px rgba(0,0,0,.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

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

body.catalogo-page {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(42,167,255,.14), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(122,92,255,.12), transparent 24%),
    radial-gradient(circle at 50% 90%, rgba(0,209,255,.10), transparent 22%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body.catalogo-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.9));
  z-index: 0;
}

.layer { position: relative; z-index: 1; }

.navbar {
  margin-top: -80px;
  background: rgba(5, 14, 28, 0.76) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.navbar-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(42, 167, 255, 0.16));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.btn-ui,
.btn-ui-outline,
.btn-wa,
.btn-dark-ui {
  border-radius: 14px;
  font-weight: 600;
  transition: .28s ease;
  letter-spacing: .01em;
}

.btn-ui {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(0,174,255,.24);
}

.btn-ui:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,174,255,.34);
}

.btn-ui-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}

.btn-ui-outline:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.08);
}

.btn-dark-ui {
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.btn-dark-ui:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(42,167,255,.35);
}

.btn-wa {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #25d366, #16b85a);
  box-shadow: 0 12px 28px rgba(37,211,102,.22);
}

.btn-wa:hover {
  color: #fff;
  transform: translateY(-2px);
}

.hero {
  padding: 105px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #dceeff;
  backdrop-filter: blur(10px);
  margin-bottom: 22px;
  font-size: .94rem;
}

.hero h1 {
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-size: clamp(2.2rem, 4vw, 4.7rem);
  margin-bottom: 18px;
}

.grad {
  background: linear-gradient(135deg, #fff 20%, #86dbff 55%, #8da3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 840px;
  margin: 0 auto 34px;
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-xl);
}

.catalog-wrap {
  padding: 0 0 88px;
}

.catalog-card {
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.catalog-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(42,167,255,.4), rgba(255,255,255,.04), rgba(122,92,255,.3));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.catalog-top h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
}

.catalog-top p {
  margin: 8px 0 0;
  color: var(--muted);
}

.catalog-body {
  display: block;
}

.catalog-body-full {
  width: 100%;
}

.viewer-shell {
  min-height: 820px;
  height: 820px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 50% 0%, rgba(0,209,255,.11), transparent 24%),
    linear-gradient(180deg, #0b1730 0%, #091221 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.35);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.viewer-toolbar {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.03);
}

.viewer-toolbar-left,
.viewer-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #d9ecff;
  font-size: .92rem;
}

.book-stage {
  flex: 1;
  min-height: 0;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-glow {
  position: absolute;
  width: 70%;
  height: 80px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(42,167,255,.25) 0%, transparent 70%);
  filter: blur(26px);
  pointer-events: none;
}

.book-container {
  width: 100%;
  height: 100%;
  min-height: 600px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#bookViewport {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#bookScaleWrap {
  position: relative;
  transform-origin: center center;
}

#flipbook {
  display: block;
  margin: 0;
  background: #fff;
}

.page-canvas {
  background: #fff;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-canvas img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

.loading-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  z-index: 3;
}

.loading-card {
  width: min(540px, 100%);
  padding: 34px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-lg);
}

.loading-card i {
  font-size: 2.5rem;
  color: #bfe7ff;
  margin-bottom: 14px;
  text-shadow: 0 0 26px rgba(42,167,255,.32);
}

.loading-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.loading-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}

.cta-section {
  padding: 40px 0 90px;
}

.cta-card {
  padding: 38px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,167,255,.22) 0%, transparent 72%);
  pointer-events: none;
}

.cta-card h3 {
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-card p {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 26px;
}

footer {
  padding: 42px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(3,8,18,.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(42,167,255,.15));
}

.footer-copy {
  color: var(--muted);
  margin-bottom: 18px;
}

.social-icons a {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin: 0 6px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: .28s ease;
}

.social-icons a:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(42,167,255,.35);
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contact a {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: .28s ease;
}

.floating-contact a:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
}

.floating-wa { background: linear-gradient(135deg, #25d366, #16b85a); }
.floating-phone { background: linear-gradient(135deg, var(--primary), var(--accent)); }

.modal-content {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background: linear-gradient(180deg, #0b1730 0%, #091221 100%);
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.modal-header,
.modal-footer {
  border-color: rgba(255,255,255,.08);
}

.form-control,
.form-select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  border-radius: 14px;
  min-height: 50px;
}

.form-control::placeholder {
  color: rgba(255,255,255,.45);
}

.form-control:focus,
.form-select:focus {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(42,167,255,.45);
  box-shadow: 0 0 0 .25rem rgba(42,167,255,.14);
}

.formulario-cot {
  background: transparent !important;
}

.viewer-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  user-select: none;
}

.viewer-shell:fullscreen .viewer-toolbar {
  flex: 0 0 auto;
}

.viewer-shell:fullscreen .book-stage {
  height: calc(100vh - 88px);
  min-height: 0;
  padding: 24px;
}

.viewer-shell:fullscreen .book-container {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.viewer-shell:fullscreen #bookViewport {
  cursor: zoom-in;
}

.viewer-shell.zoom-active:fullscreen #bookViewport {
  cursor: grab;
}

.viewer-shell.is-zoom-dragging:fullscreen #bookViewport {
  cursor: grabbing;
}

@media (max-width: 1199.98px) {
  .viewer-shell {
    min-height: 680px;
    height: 680px;
  }

  .book-container {
    min-height: 520px;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding: 90px 0 54px;
  }

  .navbar-brand img {
    height: 40px;
  }

  .viewer-shell {
    min-height: 640px;
    height: 640px;
  }

  .book-container {
    min-height: 500px;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: .98rem;
  }

  .hero-badge,
  .status-pill {
    display: none;
  }

  .viewer-toolbar-left,
  .viewer-toolbar-right {
    width: 100%;
  }

  .viewer-toolbar-right .btn {
    flex: 1 1 calc(50% - 5px);
  }

  #btnFullscreen {
    flex-basis: 100%;
  }

  .viewer-shell {
    min-height: 560px;
    height: 560px;
  }

  .book-stage {
    padding: 12px;
  }

  .book-container {
    min-height: 420px;
    width: 100%;
  }

  .footer-logo {
    max-width: 180px;
  }

  .floating-contact a {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}

@media (max-width: 575.98px) {
  .catalog-card {
    padding: 14px;
  }

  .viewer-toolbar {
    padding: 12px;
  }

  .viewer-shell {
    min-height: 520px;
    height: 520px;
  }

  .book-container {
    min-height: 380px;
  }
}

@media (max-width: 767.98px) {
  #modalCotizar {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #modalCotizar .modal-dialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 10px auto !important;
  }

  #modalCotizar .modal-content {
    width: 100% !important;
    border-radius: 20px !important;
    overflow: hidden;
  }

  #modalCotizar .modal-header {
    padding: 16px 18px !important;
  }

  #modalCotizar .modal-title {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
  }

  #modalCotizar .modal-body {
    padding: 14px !important;
    display: block !important;
  }

  #modalCotizar .formulario-cot,
  #modalCotizar .cotizacion-wrap,
  #modalCotizar .form-consulta-premium,
  #modalCotizar form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  #modalCotizar .cotizacion-wrap {
    padding: 0 !important;
  }

  #modalCotizar .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #modalCotizar .field,
  #modalCotizar .field-full {
    grid-column: auto !important;
    width: 100% !important;
  }

  #modalCotizar label {
    font-size: 0.92rem !important;
    margin-bottom: 6px !important;
  }

  #modalCotizar .form-control,
  #modalCotizar .form-select,
  #modalCotizar textarea {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  #modalCotizar textarea {
    min-height: 110px !important;
  }

  #modalCotizar .form-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  #modalCotizar .action-btn,
  #modalCotizar .form-actions .btn {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 16px !important;
    justify-content: center !important;
  }
}

#bookScaleWrap,
#flipbook,
.page-canvas,
.page-canvas img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.page-canvas img {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}
@media (max-width: 767.98px) {
  .catalog-card {
    padding: 0;
    border-radius: 0;
  }

  .viewer-shell {
    min-height: calc(100dvh - 110px);
    height: calc(100dvh - 110px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .viewer-toolbar {
    padding: 10px 10px 8px;
    gap: 8px;
  }

  .viewer-toolbar-left,
  .viewer-toolbar-right {
    width: 100%;
  }

  .viewer-toolbar-right .btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 44px;
  }

  #btnFullscreen {
    flex-basis: 100%;
  }

  .book-stage {
    padding: 0;
  }

  .book-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  #bookViewport {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }

  #bookScaleWrap {
    transform-origin: center center;
  }

  #flipbook {
    background: transparent;
  }

  .page-canvas {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .page-canvas img {
    object-fit: cover;
  }

  .hero-badge,
  .status-pill {
    display: none;
  }
}

#statusText {
  display: none !important;
}

@media (max-width: 767.98px) {
  .catalog-card::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .catalog-card {
    padding: 0;
    border-radius: 0;
  }

  .catalog-card::before {
    display: none;
  }

  .viewer-shell {
    min-height: calc(100dvh - 110px);
    height: calc(100dvh - 110px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .viewer-toolbar {
    padding: 10px 10px 8px;
    gap: 8px;
  }

  .viewer-toolbar-left,
  .viewer-toolbar-right {
    width: 100%;
  }

  .viewer-toolbar-right .btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 44px;
  }

  #btnFullscreen {
    flex-basis: 100%;
  }

  .book-stage {
    padding: 0;
  }

  .book-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  #bookViewport {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    touch-action: none;
  }

  #bookScaleWrap {
    transform-origin: center center;
    will-change: transform;
  }

  #flipbook.mobile-flat-mode {
    background: transparent;
  }

  #flipbook.mobile-flat-mode .page-canvas {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  #flipbook.mobile-flat-mode .page-canvas img {
    object-fit: cover;
  }

  .hero-badge,
  .status-pill {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .catalog-card {
    padding: 0;
    border-radius: 0;
  }

  .catalog-card::before {
    display: none;
  }

  .viewer-shell {
    min-height: calc(100dvh - 90px);
    height: calc(100dvh - 90px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .book-stage {
    padding: 0;
  }

  .book-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  #bookViewport {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    touch-action: pan-y;
  }

  #bookScaleWrap {
    transform-origin: center center;
  }

  #flipbook.mobile-flat-mode,
  #flipbook.mobile-flat-mode .page-canvas {
    background: transparent;
  }

  #flipbook.mobile-flat-mode .page-canvas {
    border-radius: 0;
    box-shadow: none;
  }

  #flipbook.mobile-flat-mode .page-canvas img {
    object-fit: cover;
  }
}

@media (max-width: 767.98px) {
  #btnFullscreen {
    display: none !important;
  }
}