/* =========================================================
   TOKENS / THEME
   ========================================================= */
:root{
  --bg:#0b0b10; --panel:#111118; --muted:#b0b0c2; --text:#f6f6ff;
  --brand:#7c3aed; --brand-400:#8b5cf6; --brand-600:#6d28d9;
  --card:#12121b; --radius:18px; --shadow:0 10px 30px rgba(0,0,0,.45);
  --glow:0 0 45px rgba(124,58,237,.45); --container:70%;
  --phone-ratio:1150/2275; --phone-max-w:280px;
  --overlay-scale:1; --overlay-x:0px; --overlay-y:0px;
}

/* =========================================================
   BASE / RESET
   ========================================================= */
*{ box-sizing:border-box; }
html,body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* =========================================================
   LAYOUT
   ========================================================= */
.grid{ display:grid; gap:28px; }
header{
  margin-inline: auto;
  padding: 1% 0;
}
.nav{
  display:grid; grid-template-columns:1fr auto auto; gap:16px; align-items:center;
}
.nav nav{ display:flex; gap:18px; flex-wrap:wrap; justify-content:center; }
.brand{ font-weight:900; letter-spacing:.5px; }

/* =========================================================
   UI BÁSICOS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}
.badge{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .6rem; border:1px solid #2a2a3a;
  border-radius:10px; color:var(--muted);
  font-weight:700; font-size:.85rem;
}
.muted{ color:var(--muted); }
.kicker{
  font-size:14px; letter-spacing:.06em; color:#a3a3c7;
  text-transform:uppercase; font-weight:800;
}
.section-title{
  margin-top: 0 !important;
}

/* =========================================================
   FEATURES
   ========================================================= */
.features{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px; margin-top:18px; cursor:pointer;
}
.feature{
  display:flex; gap:12px; align-items:flex-start;
  padding:16px; border-radius:14px;
  background:linear-gradient(180deg,#12121b,#0e0e15);
  border:1px solid #1d1d29;
}
.feature i{
  display:inline-grid; place-items:center;
  min-width:50px; min-height:50px;
  border-radius:50px; background:#1d1230;
  box-shadow:inset 0 0 0 1px #37225e;
}

/* =========================================================
   TRY ON
   ========================================================= */
/*.try .card{
  background:linear-gradient(180deg,#12121b,#0e0e15);
  border:1px solid #1d1d29; border-radius:var(--radius);
  box-shadow:var(--shadow);
}*/
.pad{ padding:26px; }
.try-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr));/**/ gap:18px; }
.try-item{
  display: flex;
  border:1px solid #1d1d29; border-radius:14px; padding:14px;
  background:rgba(255,255,255,.02); margin-bottom: 3%;
}
.try-item h3{ margin:.2rem 0 0; }
.try-info{
 display: flex;
 flex-direction: column;
 padding:14px;
 text-align: end;
}
.try-info .cta-row{
  flex-direction: row-reverse;
}
.viewer{
  position:relative; z-index:0;
  aspect-ratio:16/10; border-radius:10px;
  overflow:hidden; margin-bottom:10px;
  /*border:1px solid #1d1d29;*/
}
.viewer model-viewer{ display:block; width:100%; height:100%; }

/* =========================================================
   ADDON + PLUGIN AR
   ========================================================= */
.split-card{
  display:grid; grid-template-columns:1.05fr .95fr;
  align-items:stretch; overflow:hidden;
}
.split-card .media{ min-height:260px; }
.split-card img{ width:100%; height:100%; object-fit:cover; border-radius:8px; }
.media.media--viewer{
  background:#0b0f16; border-left:1px solid #1d1d29; aspect-ratio:16/10;
}
.media.media--viewer model-viewer{ display:block; width:100%; height:100%; }

/* =========================================================
   LISTAS / TEXTOS AUX
   ========================================================= */
.steps{ margin:12px 0 0 16px; }
.steps li{ margin:.4rem 0; }
.caracteristicas__{ list-style:disc !important; }
.titulo__seccion{ margin-bottom:2em !important; }

/* =========================================================
   CONTACTO / FAQ / FOOTER
   ========================================================= */
.contact{
  border:1px solid #1d1d29; border-radius:var(--radius);
  box-shadow:var(--shadow);
  background:linear-gradient(180deg,#12121b,#0e0e15);
}
.contact-form{ display:grid; gap:12px; }
.contact-form .row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%; padding:12px 14px; border-radius:12px;
  border:1px solid #28283a; background:#0c0c13; color:var(--text);
}

/* FAQ (1er y 2º nivel) */
.faq details{
  border:1px solid #1d1d29; border-radius:12px;
  padding:12px 14px; background:rgba(255,255,255,.02); margin:10px 0;
}
.faq > details{ padding:12px 14px; }
.faq details > details{
  margin:10px 0 0; border:1px solid #202033;
  border-radius:10px; padding:10px 12px;
  background:rgba(255,255,255,.02);
}
.faq summary{ cursor:pointer; list-style:none; font-weight:700; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::before{
  content:"▸"; display:inline-block; margin-right:.5rem;
  transition:transform .2s ease; opacity:.75;
}
.faq details[open] > summary::before{ transform:rotate(90deg); }
.faq p{ margin:.5rem 0 0; }

.foot{ opacity:.8; }

/* =========================================================
   PRODUCT DEMO
   ========================================================= */
#como-funciona_color{ padding:1% 0 5%; }
#single-product_demo{
  display:flex; gap:0;
  background-color:#FDF8F4; color:black;
  border-radius:8px; padding:5%; margin-top:1em;
}
.logo__brand{
  display: flex;
}
.logo__brand_text{
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.logo__brand img{ width:80px; }
.logo__brand p{
  margin: 0;
}
.logo__brand span{
  color: var(--muted);
  font-size: 80%;
  font-weight:500;
}
.product__media{ --media-aspect:4/3; }
.product__img, .product__model{ width:100%; }
.product__img img, .product__model model-viewer{
  width:100%; height:auto; aspect-ratio:var(--media-aspect);
  display:block; border-radius:2px;
}
.product__info{
  display:flex; flex-direction:column;
  padding:0 0 0 5%; cursor:default;
}
.product__info h2{ font-size:250%; margin:2px 0; }
.product__controls{ display:flex; justify-content:space-between; margin-top:1em; }
.product__controls button{ width:48%; }
.price{ color:#96C502; font-weight:700; font-size:150%; margin-bottom:.7em; }
.price .antes{ text-decoration:line-through; }
.price .ahora{ background:#fff9c0; }

/* =========================================================
   CART / UTILIDADES
   ========================================================= */
.add-to-cart{
  display:inline-flex; align-items:center; gap:12px;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.add-to-cart__qty input{
  width:72px; height:30px; padding:0 10px;
  border:1px solid #d9d9d9; border-radius:6px; background:#fff; font-size:16px;
}
.add-to-cart__btn,
.areality-to-cart__btn{
  height:36px; padding:0 18px; border-radius:6px;
  font-weight:700; font-size:16px; color:#fff;
}
.add-to-cart__btn{ background:#5a4636; border:0; cursor:default; }
.areality-to-cart__btn{
  background:#222; border:1px solid #5a4636; cursor:pointer;
  transition:all .2s ease;
}
.areality-to-cart__btn:hover{
  background:transparent; color:#5a4636; border-color:#5a4636;
}

/* =========================================================
   BOTONES: TRANSICIONES + EFECTOS
   ========================================================= */
.btn.primary{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg,#45cbe9,#3a75da);  /* color final */
  color:#fff; transition:box-shadow .3s ease;
  -webkit-backface-visibility:hidden; backface-visibility:hidden;
}
.btn.primary::before{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:linear-gradient(180deg,var(--brand-400),var(--brand-600)); /* overlay inicial */
  opacity:1; transition:opacity .35s ease; pointer-events:none; z-index:0;
}
.btn.primary > span{ position:relative; z-index:1; }
.btn.primary:hover::before{ opacity:0; }

.btn.ghost{
  position:relative; overflow:hidden;
  border:1px solid #2a2a3a; background:transparent;
  color:var(--brand-400);
  transition:color .3s ease, border-color .3s ease;
}
.btn.ghost::before{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:linear-gradient(180deg,rgba(124,58,237,.14),rgba(109,40,217,.14));
  opacity:0; transition:opacity .32s ease; pointer-events:none; z-index:0;
}
.btn.ghost > span{ position:relative; z-index:1; }
.btn.ghost:hover::before{ opacity:1; }
.btn.ghost:hover{ color:#fff; border-color:rgba(124,58,237,.6); }

/* Accesibilidad común */
.btn:focus-visible{
  outline:0;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.85),
    0 0 0 6px rgba(124,58,237,.45),
    var(--glow);
}

/* Efecto scale reutilizable */
.fx-scale{
  transform:scale(1);
  transition:transform .28s cubic-bezier(.22,1,.36,1);
  will-change:transform;
  -webkit-backface-visibility:hidden; backface-visibility:hidden;
}
.fx-scale:hover,
.fx-scale:focus-visible{ transform:scale(1.04); }
.fx-scale:active{ transform:scale(.98); }

/* Motion-safe */
@media (prefers-reduced-motion:reduce){
  .btn.primary::before,
  .btn.ghost::before,
  .fx-scale{ transition:none !important; }
  .fx-scale:hover,
  .fx-scale:focus-visible,
  .fx-scale:active{ transform:none !important; }
}

/* =========================================================
   REGLAS ESPECÍFICAS (no hero)
   ========================================================= */
/* (se ha eliminado la regla model-viewer#mvMain [slot="ar-button"]) */

/* =========================================================
   RESPONSIVE (sin reglas del hero)
   ========================================================= */
@media (min-width:980px){
  .solo_moviles{ display:none; }
  .product__media{ width:40%; }
  .product__info{ width:60%; }
  .try-info{width: 60%;}
  .viewer{width:40%;}
  .container{padding: 3% 15%;}
  header{max-width: 80%;}
}

@media (max-width:979px){
  .nav{ grid-template-columns:1fr auto; }
  .nav nav{ display:none; }
  .features{ grid-template-columns:1fr; }
  .split-card{ grid-template-columns:1fr; }
  .try-grid{ grid-template-columns:1fr; }
  .contact-form .row{ grid-template-columns:1fr; }
  .viewer, .media.media--viewer{ aspect-ratio:1/1; }
  .solo_escritorio{ display:none; }
  #single-product_demo{ flex-direction:column-reverse; }
  .product__media{ margin-bottom:5%; }
  #plugin-ar .split-card{ display:flex; flex-direction:column-reverse; }
  .try-item{flex-direction: column;}
  #productos .products-grid{display:flex;flex-direction: column;}
  .case-card{font-size: 55% !important;}
  #servicios .services-grid{display: flex;flex-direction: column;}
  .container{padding: 3% 6%;}
  header{max-width: 95%;}
}

/* Ajuste bullets específico */
#plugin-ar .bullets, #addon-cuadros .bullets{ margin-bottom:2em !important; }

/* Oculta el botón AR nativo de <model-viewer> globalmente */
model-viewer::part(ar-button) { 
  display: none !important; 
}

/* (Opcional) Oculta el pequeño aviso/estado de AR */
model-viewer::part(ar-status) { 
  display: none !important; 
}
