:root {
  --navy-950: #04101f;
  --navy-900: #07172c;
  --navy-800: #0d2442;
  --blue: #497cff;
  --blue-light: #7fa4ff;
  --white: #ffffff;
  --off-white: #f5f6f9;
  --gray-light: #e9ebf0;
  --text: #17233a;
  --muted: #667085;
  --border: rgba(23, 35, 58, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Manrope", sans-serif; color: var(--text); background: var(--off-white); overflow-x: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.topbar {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 100%; height: 82px; padding: 0 6vw;
  display: flex; align-items: center; justify-content: space-between;
  color: white; background: rgba(4, 16, 31, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo, .footer-logo { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.logo-symbol { font-family: "Space Grotesk", sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--blue-light); letter-spacing: -0.15em; }
.logo-text { display: flex; flex-direction: column; letter-spacing: 0.25em; }
.logo-text strong { font-size: 0.9rem; }
.logo-text small { margin-top: 3px; font-size: 0.62rem; color: rgba(255, 255, 255, 0.68); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { position: relative; color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.78rem; transition: color 0.25s ease; }
.nav a:hover, .nav a.active { color: white; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 1px; background: var(--blue-light); transition: width 0.25s ease; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: white; background: transparent; }

.showroom {position: relative;min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 45% 55%; align-items: center; overflow: hidden;}
.dark-section { color: white; background: radial-gradient(circle at 70% 50%, rgba(73,124,255,.16), transparent 35%), linear-gradient(135deg, var(--navy-950), var(--navy-900)); }
.light-section { color: var(--text); background: radial-gradient(circle at 70% 50%, rgba(73,124,255,.06), transparent 32%), linear-gradient(135deg, #fff, #f2f3f6); }
.showroom-content { position: relative; z-index: 3; padding: 110px 7vw 80px 12vw; }
.eyebrow { margin-bottom: 24px; color: var(--blue-light); font-size: .72rem; font-weight: 700; letter-spacing: .19em; }
.blue-text { color: var(--blue); }
h1, h2 { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: -.05em; }
h1 { font-size: clamp(3.6rem, 6vw, 7.4rem); line-height: .94; }
h1 span { color: var(--blue); }
h2 { font-size: clamp(3rem, 5vw, 6rem); line-height: .95; text-transform: uppercase; }
.description { max-width: 460px; margin-top: 28px; color: rgba(255,255,255,.68); line-height: 1.8; }
.dark-description { color: var(--muted); }
.outline-button, .text-button, .whatsapp-button { width: fit-content; margin-top: 35px; display: inline-flex; align-items: center; gap: 22px; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; transition: .3s ease; }
.outline-button { padding: 0; border: 0; color: white; background: transparent; }
.outline-button span, .text-button span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; transition: .3s ease; }
.outline-button:hover span, .text-button:hover span { color: white; background: var(--blue); border-color: var(--blue); transform: translateX(6px); }
.text-button { padding: 0; border: 0; color: var(--blue); background: transparent; }
.feature-list { display: grid; gap: 17px; margin-top: 30px; list-style: none; }
.feature-list li { position: relative; padding-left: 30px; color: var(--muted); font-size: .88rem; }
.feature-list li::before { content: "◇"; position: absolute; left: 0; color: var(--blue); }
.dark-list li { color: rgba(255,255,255,.68); }

.showroom-visual {
  position: relative;

  min-height: 100vh;
  min-height: 100dvh;

  display: grid;
  place-items: center;
  overflow: hidden;
}
.light-visual { background: radial-gradient(circle at center, rgba(73,124,255,.06), transparent 42%); }
.neon-circle, .soft-circle { position: absolute; width: min(55vw, 630px); aspect-ratio: 1; border-radius: 50%; }
.neon-circle { border: 4px solid rgba(112,160,255,.8); box-shadow: 0 0 25px rgba(73,124,255,.7), inset 0 0 25px rgba(73,124,255,.3); }
.soft-circle { border: 1px solid rgba(23,35,58,.1); background: radial-gradient(circle, rgba(255,255,255,.7), transparent 70%); }
.platform { position: absolute; bottom: 12%; width: 65%; height: 90px; border-radius: 50%; background: linear-gradient(180deg, #213858, #07101e); box-shadow: 0 35px 50px rgba(0,0,0,.5); }
.light-platform { background: linear-gradient(180deg, #989ba1, #4d5056); box-shadow: 0 30px 50px rgba(23,35,58,.25); }
.hero-product, .section-product, .medal-product { position: relative; z-index: 2; max-height: 72vh; object-fit: contain; filter: drop-shadow(0 40px 35px rgba(0,0,0,.35)); transition: opacity .25s ease, transform .25s ease; }
.hero-product { width: 62%; }
.section-product { width: 64%; }
.statue-product { width: 70%; max-height: 78vh; }
.medal-product { width: 82%; }
.floating-product { animation: floating 4.8s ease-in-out infinite; }
@keyframes floating { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.section-product.changing { opacity: 0; transform: scale(.94); }

.section-index { position: absolute; z-index: 10; top: 0; left: 0; width: 78px; height: 100%; padding-top: 120px; display: flex; flex-direction: column; align-items: center; color: var(--blue-light); border-right: 1px solid rgba(255,255,255,.12); }
.dark-index { color: var(--blue); border-right: 1px solid rgba(23,35,58,.1); }
.section-index strong { font-size: .72rem; }
.index-line { width: 1px; height: 40px; margin: 13px 0; background: currentColor; }
.index-dots { display: grid; gap: 15px; }
.index-dots button { width: 5px; height: 5px; border: 0; border-radius: 50%; background: currentColor; opacity: .3; }
.index-dots button.active { opacity: 1; transform: scale(1.5); }
.scroll-label { position: absolute; bottom: 84px; left: 50%; color: rgba(255,255,255,.68); font-size: .55rem; letter-spacing: .1em; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); }
.section-counter { position: absolute; right: 35px; bottom: 30px; z-index: 5; color: rgba(255,255,255,.75); font-size: .72rem; }
.dark-counter { color: var(--muted); }
.thumbnail-list { position: absolute; z-index: 6; right: 4%; display: grid; gap: 12px; }
.thumbnail { width: 78px; height: 78px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: white; transition: .25s ease; }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.thumbnail.active, .thumbnail:hover { border-color: var(--blue); transform: translateX(-5px); }

.footer { min-height: 170px; padding: 35px 7vw; display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; align-items: center; gap: 50px; color: white; background: var(--navy-900); }
.footer-message { padding-left: 40px; border-left: 1px solid rgba(255,255,255,.2); }
.footer-message h3 { font-size: 1.35rem; }
.footer-message p { margin-top: 6px; color: rgba(255,255,255,.6); }
.footer-contact { display: flex; align-items: center; justify-content: flex-end; gap: 26px; }
.footer-contact > span { font-size: .7rem; color: rgba(255,255,255,.7); }
.social-links { display: flex; gap: 14px; }
.social-links a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: white; text-decoration: none; font-size: .7rem; transition: .25s ease; }
.social-links a:hover { color: white; background: var(--blue); border-color: var(--blue); transform: translateY(-4px); }

.gallery-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.gallery-modal.open { display: block; }
.modal-background { position: absolute; inset: 0; background: rgba(2,8,18,.82); backdrop-filter: blur(14px); }
.modal-content { position: absolute; inset: 6vh 5vw; display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; border-radius: 28px; background: var(--off-white); box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.close-modal { position: absolute; z-index: 5; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: white; background: var(--navy-900); font-size: 1.5rem; }
.modal-image-wrapper { min-height: 100%; display: grid; place-items: center; background: radial-gradient(circle, white, #e5e7ec); }
.modal-image-wrapper img { width: 65%; max-height: 75vh; object-fit: contain; filter: drop-shadow(0 35px 30px rgba(23,35,58,.25)); }
.modal-information { padding: 70px 50px; display: flex; flex-direction: column; justify-content: center; color: white; background: var(--navy-900); }
.modal-information h2 { font-size: clamp(2.5rem, 4vw, 4.6rem); text-transform: none; }
.modal-information > p:not(.eyebrow) { margin-top: 25px; color: rgba(255,255,255,.68); line-height: 1.8; }
.modal-thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.modal-thumbnails button { height: 78px; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: white; }
.modal-thumbnails button.active { border-color: var(--blue); }
.modal-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.whatsapp-button { padding: 15px 22px; border-radius: 999px; color: white; background: var(--blue); }
.whatsapp-button:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(73,124,255,.32); }

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}

@media (max-width: 950px) {
  .showroom { grid-template-columns: 1fr; min-height: auto; }
  .showroom-content { padding: 130px 8vw 60px 13vw; }
  .showroom-visual { min-height: 600px; }
  .hero-product, .section-product { width: 58%; }
  .section-index { width: 58px; }
  .footer { grid-template-columns: 1fr; }
  .footer-message { padding-left: 0; border-left: 0; }
  .footer-contact { justify-content: flex-start; }
  .modal-content { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-image-wrapper { min-height: 480px; }
}

@media (max-width: 720px) {
  .menu-button { display: grid; place-items: center; }
  .nav { position: fixed; top: 82px; right: -100%; width: 240px; padding: 25px; display: grid; background: var(--navy-900); transition: right .3s ease; }
  .nav.open { right: 0; }
  .section-index { display: none; }
  .showroom-content { padding: 130px 25px 55px; }
  h1 { font-size: 3.4rem; }
  h2 { font-size: 3rem; }
  .showroom-visual { min-height: 480px; }
  .hero-product, .section-product { width: 72%; }
  .thumbnail-list { right: 12px; }
  .thumbnail { width: 58px; height: 58px; }
  .neon-circle, .soft-circle { width: 88vw; }
  .platform { width: 75%; height: 65px; }
  .footer { padding: 40px 25px; }
  .footer-contact { align-items: flex-start; flex-direction: column; }
  .modal-content { inset: 15px; }
  .modal-information { padding: 45px 25px; }
  .modal-image-wrapper { min-height: 370px; }
}

.model-3d {
  position: relative;
  z-index: 3;

  width: 85%;

  height: 75vh;
  height: 75dvh;

  background: transparent;

  --poster-color: transparent;
}

model-viewer::part(default-progress-bar) {
  background-color: #497cff;
}

model-viewer::part(default-progress-mask) {
  background-color: transparent;
}

@media (max-width: 720px) {
  .model-3d {
    width: 100%;
    height: 480px;
  }
}

.viewer{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.88);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.viewer.active{

    display:flex;

}

.viewer img{

    width:75%;

    max-width:900px;

    max-height:85vh;

    object-fit:contain;

    animation:fade .3s;

}

.close{

    position:absolute;

    top:35px;

    right:45px;

    color:white;

    font-size:45px;

    cursor:pointer;

}

.arrow{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:60px;

    height:60px;

    border:none;

    border-radius:50%;

    background:white;

    cursor:pointer;

    font-size:28px;

}

.left{

    left:40px;

}

.right{

    right:40px;

}

@keyframes fade{

    from{

        opacity:0;

        transform:scale(.95);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}


/* ===== AJUSTES SHOWROOM Y GALERÍAS POR SECCIÓN ===== */
.thumbnail-list {
  top: 50%;
  transform: translateY(-50%);
}

.thumbnail img {
  object-fit: cover;
}

.gallery-trigger {
  cursor: pointer;
}

.viewer {
  padding: 28px;
  background: #ffffff;
  backdrop-filter: blur(14px);
}

.viewer-content {
  width: min(1000px, 78vw);
  display: grid;
  justify-items: center;
  gap: 16px;
}

.viewer-content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.viewer-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--text);
  font-size: 0.84rem;
}

.image-enter {
  animation: galleryFade 0.28s ease;
}

.close {

  width: 48px;

  height: 48px;

  display: grid;

  place-items: center;

  color: var(--navy-900);

  border: 1px solid rgba(7, 23, 44, 0.18);

  border-radius: 50%;

  background: rgba(7, 23, 44, 0.08);

  line-height: 1;

}

.arrow {

  color: var(--navy-900);

  background: rgba(7, 23, 44, 0.08);

  border: 1px solid rgba(7, 23, 44, 0.18);

  transition: 0.25s ease;

}

.arrow:hover,
.close:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

@keyframes galleryFade {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .viewer-content { width: 100%; }
  .arrow { width: 46px; height: 46px; }
  .left { left: 12px; }
  .right { right: 12px; }
  .close { top: 14px; right: 14px; }
}
