/* Refinement layer. Brand colors are inherited unchanged from styles.css. */
@font-face {
  font-family: Manrope;
  src: url('assets/fonts/design/manrope.woff2') format('woff2'),
       url('assets/fonts/design/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/design/ibm-plex-mono-400.woff2') format('woff2'),
       url('assets/fonts/design/ibm-plex-mono-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/design/ibm-plex-mono-500.woff2') format('woff2'),
       url('assets/fonts/design/ibm-plex-mono-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/design/ibm-plex-mono-600.woff2') format('woff2'),
       url('assets/fonts/design/ibm-plex-mono-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-display: Manrope, Arial, sans-serif;
  --font-body: Manrope, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
}
body { line-height: 1.8; }
/* Scoped to #main (not body): #nav and the floating buttons are fixed-position
   siblings of #main, and a filter/opacity on an ancestor would make them lose
   the viewport as their containing block, so they'd scroll away mid-transition. */
#main { transition: opacity .26s var(--motion-ease), filter .26s var(--motion-ease); }
html.lang-fade #main { opacity: .55; filter: blur(2px); will-change: opacity, filter; }
/* Mismo efecto en las páginas legales (privacidad, términos, cookies), que no
   tienen #main/#nav sino .legal-main/.legal-header. */
.legal-header, .legal-main { transition: opacity .26s var(--motion-ease), filter .26s var(--motion-ease); }
html.lang-fade .legal-header, html.lang-fade .legal-main { opacity: .55; filter: blur(2px); will-change: opacity, filter; }
@media (prefers-reduced-motion: reduce) {
  #main { transition: none; }
  html.lang-fade #main { opacity: 1; filter: none; }
  #nav, .mobile-menu { transition: none; }
  html.lang-fade #nav, html.lang-fade .mobile-menu.open { opacity: 1; filter: none; }
  .legal-header, .legal-main { transition: none; }
  html.lang-fade .legal-header, html.lang-fade .legal-main { opacity: 1; filter: none; }
}
::selection { background: var(--color-teal); color: var(--color-bg); }
:focus-visible { outline: 2px solid var(--color-sky); outline-offset: 5px; }
input, textarea { caret-color: var(--color-teal); }
html { scroll-padding-top: 100px; scrollbar-color: var(--color-muted) var(--color-bg); }
.container { max-width: 1320px; padding-inline: 6%; }
.section-title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.18;
  text-wrap: balance;
}
.section-label { display: none; }
.section-desc { max-width: 550px; }
.section-header { margin-bottom: 3.5rem; }
.nav-link { font-size: .8rem; position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: .9rem; right: .9rem; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--color-teal);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--motion-ease);
}
.nav-link:hover { background: none; }
.nav-link:hover::after { transform: scaleX(1); }
#nav { transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, opacity .26s var(--motion-ease), filter .26s var(--motion-ease); }
html.lang-fade #nav { opacity: .55; filter: blur(2px); }
html.lang-fade .mobile-menu.open { opacity: .55; filter: blur(2px); }
.nav-inner { max-width: 1320px; }
.ncta { white-space: nowrap; flex-shrink: 0; padding: .7rem 1.1rem; font-size: .8rem; }
.btn-primary, .btn-ghost, .btn-outline { border-radius: 8px; font-weight: 700; }
.btn-primary svg, .btn-outline svg { transition: transform .25s var(--motion-ease); }
.btn-primary:hover svg, .btn-outline:hover svg { transform: translateX(4px); }
#hero {
  min-height: 740px; padding: calc(var(--nav-h) + 5rem) 6% 5rem;
  background: radial-gradient(ellipse at 90% 30%, rgba(69,192,232,.065), transparent 58%),
    radial-gradient(ellipse at 65% 95%, rgba(10,171,144,.07), transparent 55%), var(--color-bg);
}
#hero::after {
  content: ''; position: absolute; width: 70%; height: 90%; right: -20%; top: 5%;
  border: 1px solid var(--color-border); border-radius: 50%; transform: rotate(-28deg);
  pointer-events: none; opacity: .6;
}
.hero-grid { max-width: 1160px; grid-template-columns: 1.1fr 1fr; gap: 5rem; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.14;
  text-wrap: balance;
}
.hero-copy h1 em { font-style: normal; font-weight: 650; }
.hero-desc { font-size: .95rem; line-height: 1.9; max-width: 470px; }
.hero-actions { gap: 12px; }
.trust-text { font-size: .78rem; }
.hero-card-wrap { display: block; perspective: 1200px; padding: 30px 0; }
.hero-3d-card { position: relative; }
.hero-model {
  display: block;
  width: 100%;
  height: 440px;
  background-color: transparent;
  --poster-color: transparent;
  pointer-events: none;
}
/* <model-viewer> dibuja su propia barra de progreso de carga (una línea
   gris) mientras baja el modelo; la ocultamos porque el bundle ya se
   carga de forma diferida y esa barra no aporta, solo distrae. */
.hero-model::part(default-progress-bar) { display: none; }
#about, #solutions, #catalogo, #gallery, #testimonials, #how-it-works, #faq, #contact, #calculator { padding-top: 96px; padding-bottom: 96px; }
.about-grid { gap: 5rem; }
.about-video-scanline { display: none; }
.about-desc { font-size: .94rem; }
.feature-cards { gap: 0 24px; }
.feature-card { border: 0; border-top: 1px solid var(--color-borderW); border-radius: 0; background: none; padding: 24px 0; box-shadow: none; }
.feature-card:hover { background: none; box-shadow: none; transform: none; }
.feature-icon { background: none; border: 0; padding: 0; width: 28px; height: 28px; }
.feature-card h3 { font-size: .87rem; }
.feature-card p { font-size: .8rem; }
.stat-num { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.02em; }
.stat-label { font-size: .75rem; }
.sol-card { border-radius: 0; border: 0; border-top: 1px solid var(--color-borderW); background: none; box-shadow: none; padding: 30px 12px 30px 0; }
.sol-card:hover { box-shadow: none; background: none; }
.sol-icon { background: none; border: 0; }
.sol-card--cta { background: var(--color-surface); padding-left: 24px; border-radius: 12px; }
.catalog-card { border-radius: 14px; box-shadow: none; }
.catalog-card:hover { box-shadow: 0 15px 24px rgba(0,0,0,.15); }
.catalog-img-wrap { height: 280px; padding: 28px; border-bottom: 1px solid var(--color-borderW); }
.catalog-img-wrap::after, .catalog-card--highlight::before { display: none; }
.catalog-img-wrap img { max-height: 224px; max-width: 90%; transition: transform .55s var(--motion-ease); }
.catalog-card-body { padding: 26px; gap: 14px; }
.catalog-card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.035em; }
.catalog-specs { font-size: .83rem; line-height: 1.8; }
.catalog-badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--color-bg); padding: 7px 11px; font-size: .6rem; letter-spacing: .08em; }
.price-tag { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.01em; }
.catalog-grid { gap: 24px; }
.catalog-tabs { gap: 8px; padding-bottom: 12px; }
.catalog-tab { border-radius: 999px; padding: 11px 23px; }
.catalog-card:hover { box-shadow: 0 16px 34px rgba(0,0,0,.15); }
@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .catalog-img-wrap { height: 210px; padding: 18px; }
  .catalog-img-wrap img { max-height: 170px; }
  .catalog-card-body { padding: 20px; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-img-wrap { height: 260px; }
  .catalog-img-wrap img { max-height: 212px; }
}
.whatsapp-float, .scroll-top-btn { width: 52px; height: 52px; right: 24px; box-sizing: border-box; padding: 0; }
.whatsapp-float { bottom: 92px; animation: none; }
.scroll-top-btn { bottom: 24px; }
.whatsapp-float svg, .scroll-top-btn svg { width: 25px; height: 25px; }
@media (max-width: 768px) {
  .whatsapp-float, .scroll-top-btn { width: 48px; height: 48px; right: 18px; }
  .whatsapp-float { bottom: 82px; }
  .scroll-top-btn { bottom: 18px; }
}
.testi-card { position: relative; transition: transform .3s var(--motion-ease), border-color .3s var(--motion-ease), box-shadow .3s var(--motion-ease); }
.testi-card:hover { transform: translateY(-4px); }
.testi-quote::before {
  content: '\201C'; position: absolute; top: -22px; left: -6px; font-family: Georgia, serif;
  font-size: 4rem; line-height: 1; color: var(--color-teal); opacity: .22; pointer-events: none;
}
.testi-quote { position: relative; padding-top: .5rem; }
.testi-controls { display: none !important; }
.testi-quote { font-size: 1.02rem; line-height: 1.85; }
.step-card { background: none; border: 0; box-shadow: none; border-top: 1px solid var(--color-borderW); border-radius: 0; }
.step-card:hover { box-shadow: none; background: none; }
.faq-item { border-radius: 0; border: 0; border-bottom: 1px solid var(--color-borderW); background: none; }
.faq-question { font-weight: 600; }
.form-card { border-radius: 14px; box-shadow: none; }
.contact-card { background: none; border: 0; border-bottom: 1px solid var(--color-borderW); border-radius: 0; }
.contact-card-icon { background: none; }
.form-group input, .form-group select, .form-group textarea { border-radius: 8px; }
.contact-status { font-size: .8rem; color: var(--color-muted); margin-top: 12px; }
.contact-status:empty { display: none; }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 24px 0; border-top: 1px solid var(--color-borderW); color: var(--color-muted); font-size: .78rem; }
.legal-links a:hover { color: var(--color-teal); }
.form-consent a { text-decoration: underline; text-underline-offset: 3px; }
.mcard:focus-visible, .drag-card:focus-visible { outline: 2px solid var(--color-sky); outline-offset: 4px; }
.charge-btn { width: 100%; }
.drag-card-brand { min-width: 0; max-width: 83px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.drag-card-num { font-size: 10px; line-height: 1.3; }
.form-error { overflow-wrap: anywhere; }
.testi-quote, .section-desc, .contact-card a { overflow-wrap: anywhere; }
/* Native scroll-snap keeps the photo gallery usable without JavaScript. */
#gallery .section-header { text-align: left; max-width: 640px; margin-bottom: 2.5rem; }
#gallery .section-desc { margin-left: 0; }
.gallery-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0 0 16px;
  grid-template-rows: none;
  scroll-padding-inline: 0;
}
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-item, .gallery-item--wide {
  flex: 0 0 42%;
  aspect-ratio: 3/4;
  grid-column: auto;
  border-radius: 14px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}
.gallery-item img { height: 100%; object-fit: cover; transition: transform .8s var(--motion-ease); }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-overlay { opacity: 1; transform: none; padding: 28px; pointer-events: none; background: linear-gradient(transparent 55%, rgba(7,14,28,.9)); }
.gallery-overlay .gallery-client { color: #f2f8ff; font-size: 1.15rem; }
.gallery-overlay .gallery-device { color: #45c0e8; }
.gallery-zoom { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.gallery-zoom span { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 42px; height: 42px; color: #f2f8ff; background: rgba(7,14,28,.7); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: background .2s, transform .2s; }
.gallery-zoom:hover span { background: #070e1c; transform: scale(1.08); }
.gallery-zoom svg { width: 18px; height: 18px; }
.gallery-controls { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.gallery-status { color: var(--color-muted); font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 50px; }
.gallery-dots { display: flex; align-items: center; gap: 5px; margin-right: auto; }
.gallery-dot { width: 32px; height: 36px; display: grid; place-items: center; }
.gallery-dot::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted); transition: width .25s, background .25s; }
.gallery-dot[aria-current="true"]::after { width: 24px; border-radius: 4px; background: var(--color-teal); }
.gallery-arrow { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--color-borderW); color: var(--color-white); border-radius: 50%; transition: background .2s, border-color .2s; }
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow:hover:not(:disabled) { background: var(--color-surface2); border-color: var(--color-teal); }
.gallery-arrow:disabled { opacity: .3; cursor: default; }
/* Enhanced gallery: one complete photograph, with a separate editorial caption. */
.gallery-showcase { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 0; align-items: stretch; border: 1px solid var(--color-borderW); border-radius: 22px; overflow: hidden; background: var(--color-surface); }
.gallery-showcase .gallery-grid { min-width: 0; gap: 0; padding: 0; background: var(--color-bg); border: 0; border-radius: 0; }
.gallery-showcase .gallery-item { flex-basis: 100%; height: clamp(380px, 45vw, 560px); aspect-ratio: auto; border-radius: 0; }
.gallery-showcase .gallery-item img { width: 100%; height: 100%; object-fit: contain; }
.gallery-showcase .gallery-item:hover img { transform: none; }
.gallery-showcase .gallery-overlay { display: none; }
.gallery-sidebar { min-width: 0; display: flex; flex-direction: column; padding: clamp(24px, 3.5vw, 48px); border-left: 1px solid var(--color-borderW); }
.gallery-caption-device { color: var(--color-teal); font-size: .75rem; font-weight: 700; margin-top: 12px; }
.gallery-caption h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 550; color: var(--color-white); }
.gallery-caption-hint { color: var(--color-muted); font-size: .83rem; line-height: 1.8; margin-top: 18px; max-width: 30ch; }
.gallery-showcase .gallery-dots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.gallery-thumb { min-width: 0; position: relative; border: 2px solid transparent; border-radius: 8px; padding: 3px; transition: border-color .2s, opacity .2s; opacity: .58; }
.gallery-thumb img { display: block; width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb[aria-current="true"] { border-color: var(--color-teal); opacity: 1; }
.gallery-showcase .gallery-controls { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--color-borderW); gap: 10px; }
.gallery-showcase .gallery-status { margin-right: auto; }
.photo-viewer-image { touch-action: pan-y pinch-zoom; }
@media (max-width: 900px) {
  .gallery-showcase { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gallery-showcase .gallery-item { height: clamp(350px, 110vw, 500px); }
  .gallery-sidebar { padding: 24px; border-left: 0; border-top: 1px solid var(--color-borderW); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 12px; }
  .gallery-caption { grid-column: 1 / -1; }
  .gallery-caption h3 { font-size: 1.65rem; }
  .gallery-caption-device { margin-top: 8px; }
  .gallery-caption-hint { max-width: none; margin-top: 10px; }
  .gallery-showcase .gallery-dots { display: flex; gap: 7px; margin: 0; align-self: center; }
  .gallery-thumb { width: 44px; padding: 2px; border-radius: 6px; }
  .gallery-thumb img { height: 46px; border-radius: 2px; }
  .gallery-showcase .gallery-controls { align-self: center; border: 0; padding: 0; margin: 0; }
  .gallery-showcase .gallery-status { position: absolute; width: 1px; min-width: 0; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 360px) {
  .gallery-thumb { width: 42px; }
  .gallery-thumb img { height: 38px; }
  .gallery-showcase .gallery-controls { gap: 6px; }
  .gallery-showcase .gallery-arrow { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .gallery-sidebar { padding: 22px 18px; gap: 20px 10px; }
  .gallery-showcase .gallery-dots { min-width: 0; width: 100%; gap: 5px; }
  .gallery-thumb { width: 0; flex: 1; padding: 2px; }
  .gallery-showcase .gallery-controls { gap: 6px; }
  .gallery-showcase .gallery-arrow { width: 38px; height: 38px; }
}
.photo-viewer { position: fixed; inset: 0; width: min(1100px, 94vw); height: min(850px, 94dvh); max-width: 94vw; max-height: 94dvh; margin: auto; padding: 20px; border: 1px solid var(--color-borderW); border-radius: 16px; background: var(--color-bg); color: var(--color-text); overflow: hidden; }
.photo-viewer::backdrop { background: rgba(7,14,28,.92); }
.photo-viewer[open] { display: flex; flex-direction: column; gap: 14px; animation: viewer-in .25s var(--motion-ease); }
.photo-viewer-header { display: flex; align-items: center; gap: 16px; }
.photo-viewer-title { font-size: .88rem; font-weight: 600; margin-right: auto; }
.photo-viewer-image { width: 100%; min-height: 0; flex: 1; object-fit: contain; border-radius: 6px; }
.photo-viewer-footer { display: flex; align-items: center; justify-content: center; gap: 20px; }
.photo-viewer-count { color: var(--color-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
body.photo-viewer-open { overflow: hidden; }
@keyframes viewer-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
/* Visible defaults preserve content if scripts fail. Motion runs only once. */
.reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
.tilt-card { transform: none !important; }
.hero-copy h1 { animation: none; }
.hero-3d-card { animation: hero-3d-arrive 1s var(--motion-ease) backwards; }
@keyframes copy-arrive { from { opacity: .2; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hero-3d-arrive { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.reading-progress { position: fixed; z-index: 1100; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad-primary); transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-inner { padding-inline: 3%; gap: 10px; }
  .nav-link { padding-inline: .35rem; font-size: .7rem; }
  .ncta { display: none; }
  .hero-grid { gap: 2.5rem; }
  .hero-copy h1 { font-size: 3rem; }
  .hero-model { height: 360px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-copy { max-width: 680px; text-align: left; }
  .hero-copy h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); }
  .hero-actions, .trust-bar { justify-content: flex-start; }
  .hero-card-wrap { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 768px) {
  #hero { min-height: 0; padding: calc(var(--nav-h) + 2.7rem) 6% 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-copy { text-align: left; max-width: none; }
  .hero-copy h1 { font-size: clamp(2.25rem, 7.5vw, 3.4rem); letter-spacing: -.04em; line-height: 1.15; }
  .hero-desc { font-size: .9rem; }
  .hero-actions { flex-direction: row; align-items: stretch; gap: 10px; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: auto; flex: 1; padding: .9rem .65rem; font-size: .77rem; }
  .trust-bar { justify-content: flex-start; }
  .hero-card-wrap { max-width: 500px; width: 100%; margin-inline: auto; padding: 20px 10px; }
  .hero-model { height: 300px; }
  #about, #solutions, #catalogo, #gallery, #testimonials, #how-it-works, #faq, #contact, #calculator { padding-top: 64px; padding-bottom: 64px; }
  .section-title { font-size: 2rem; }
  .about-grid { gap: 2.5rem; }
  .testi-card { padding: 1.6rem; }
  .section-header { margin-bottom: 2.5rem; }
  .feature-card { padding: 20px 0; }
  .gallery-grid { gap: 14px; }
  .gallery-item, .gallery-item--wide { flex-basis: 86%; aspect-ratio: 3/4; }
  .gallery-overlay { padding: 20px; }
  .gallery-overlay .gallery-client { font-size: 1rem; }
  .gallery-controls { gap: 8px; }
  .gallery-arrow { width: 42px; height: 42px; }
  .gallery-dot { width: 26px; }
  .photo-viewer { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
