/* ===== Base: tema oscuro cálido ===== */
:root {
  color-scheme: dark;
  --bg: #2b2a28;          /* gris cálido claro */
  --surface: #353330;     /* tarjetas */
  --surface-2: #403d39;   /* chips, recuadros */
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);
  --ink: #ffffff;         /* títulos */
  --text: #e8e6e3;        /* texto */
  --muted: #b5b1ab;       /* secundario */
  --acento: #ffffff;      /* acentos en blanco */
  --marca: #6fb4f2;       /* azul del logo, aclarado para fondo oscuro */
  --foto: #ffffff;        /* marco de fotos de producto (fondo blanco) */
  --wa: #25a35a;
  --grad: linear-gradient(120deg, #38c6f4, #9a86f2 50%, #f064c8);
  --r: 18px;
  --sombra: 0 1px 2px rgba(0,0,0,.2), 0 10px 30px rgba(0,0,0,.25);
  --sombra-alta: 0 2px 6px rgba(0,0,0,.25), 0 28px 60px rgba(0,0,0,.45);
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, .brand-txt b, .cifras dt, .precio { font-family: Montserrat, Inter, sans-serif; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
button, select, input { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--acento); color: var(--bg); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
.grad { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo 6s ease-in-out infinite alternate; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin-top: 10px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; border: 1px solid var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.4); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-claro { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa svg { width: 20px; height: 20px; }

/* ===== Encabezado ===== */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px; padding: 14px var(--gutter);
  background: rgba(43,42,40,.82); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s;
}
.nav.sombra { box-shadow: 0 10px 30px rgba(0,0,0,.35); background: rgba(43,42,40,.94); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { object-fit: contain; }
.brand-txt { display: grid; line-height: 1.05; }
.brand-txt b { font-size: 15px; font-weight: 800; color: var(--marca); letter-spacing: -.01em; }
.brand-txt small { font-size: 10.5px; font-weight: 600; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--text); }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acento); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ===== Portada ===== */
.hero {
  position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero::before { /* luz cálida de fondo */
  content: ""; position: absolute; z-index: -1; left: -10%; top: -10%; width: 60%; height: 90%;
  background: radial-gradient(closest-side, rgba(255,255,255,.06), transparent); pointer-events: none;
}
.hero h1 { margin: 18px 0 20px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.lead { max-width: 500px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cifras { display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.cifras dt { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.cifras dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.hero-vitrina { position: relative; aspect-ratio: 1 / .92; }
.vitrina-item {
  position: absolute; overflow: hidden; border-radius: 24px; background: var(--surface);
  box-shadow: var(--sombra-alta); outline: 1px solid var(--line); outline-offset: -1px;
}
.vitrina-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vitrina-item:hover img { transform: scale(1.04); }
.vitrina-item.v0 { left: 0; top: 0; width: 54%; height: 100%; }
.vitrina-item.v1 { right: 0; top: 0; width: 42%; height: 48%; animation: flotar 8s ease-in-out infinite; }
.vitrina-item.v2 { right: 0; bottom: 0; width: 42%; height: 48%; animation: flotar 8s ease-in-out -4s infinite; }
@keyframes flotar { 50% { transform: translateY(-8px); } }

/* Franja de confianza */
.confianza {
  list-style: none; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.confianza li { display: flex; gap: 14px; align-items: center; padding: 26px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confianza li + li { border-left: 1px solid var(--line); }
.confianza svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--surface-2); color: var(--acento); }
.confianza b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.confianza span { font-size: 13px; color: var(--muted); }

/* Categorías (con fotografía) */
.categorias { max-width: 1280px; margin: 0 auto; padding: clamp(72px, 9vw, 112px) var(--gutter) 40px; }
.sec-head { margin-bottom: 32px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-tile {
  position: relative; display: flex; align-items: flex-end; height: 300px; padding: 28px;
  border-radius: 24px; overflow: hidden; background: var(--surface); outline: 1px solid var(--line); outline-offset: -1px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,12,10,.88), rgba(14,12,10,.15) 60%, transparent); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile > div { position: relative; z-index: 1; }
.cat-tile h3 { font-size: 24px; letter-spacing: -.02em; color: #fff; }
.cat-tile p { color: rgba(255,255,255,.75); font-size: 14px; margin: 4px 0 16px; }
.cat-tile .ver { color: #fff; }
.ver { font-size: 13px; font-weight: 600; color: var(--ink); }

/* Marcas en movimiento */
.marcas { overflow: hidden; padding: 40px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marcas-track { display: flex; gap: 80px; width: max-content; animation: marquee 30s linear infinite; }
.marcas span { font-family: Montserrat, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: rgba(246,241,234,.22); }
.marcas:hover .marcas-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Catálogo ===== */
.catalogo { max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 120px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.conteo { font-size: 14px; color: var(--muted); }
.toolbar {
  position: sticky; top: 68px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 14px 0; margin-bottom: 28px; background: rgba(43,42,40,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip {
  flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer; transition: all .2s, transform .15s;
}
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.controles { display: flex; gap: 8px; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; min-width: 240px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--acento); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.search svg { width: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 14px; background: none; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
select {
  height: 40px; padding: 0 36px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background-color: var(--surface); font-size: 13.5px; color: var(--text); cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5b1ab' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
select:focus { outline: 0; border-color: var(--acento); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
option { background: var(--surface); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s, opacity .7s var(--ease) var(--d, 0s);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); border-color: var(--line-2); }
/* Marco blanco: las fotos de producto (fondo blanco) llenan el cuadro sin verse "cuadradas" */
.card-img { position: relative; aspect-ratio: 1; background: var(--foto); overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .6s var(--ease), opacity .45s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img img.ph { padding: 32%; opacity: .15; filter: grayscale(1); }
.card-img img.alt { opacity: 0; }
.card:hover .card-img img.alt { opacity: 1; }
.card:hover .card-img img:not(.alt):not(:only-child) { opacity: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card .marca { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--acento); }
.card .marca span { color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.35; margin: 6px 0 10px; letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.card-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.card .precio { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.card .precio.cotiza { font-size: 14px; color: var(--acento); }
.card .ver { color: var(--muted); font-size: 12.5px; transition: color .2s, transform .2s; }
.card:hover .ver { color: var(--ink); transform: translateX(2px); }
.vacio { text-align: center; color: var(--muted); padding: 60px 0; }

/* ===== Nosotros ===== */
.historia {
  max-width: 1280px; margin: 0 auto; padding: 112px var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); border-top: 1px solid var(--line);
}
.historia h2 { font-size: clamp(30px, 4vw, 46px); }
.historia-texto { display: grid; gap: 18px; font-size: 16.5px; line-height: 1.8; color: var(--muted); }
.valores { grid-column: 1 / -1; list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.valores li { padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; transition: transform .4s var(--ease), box-shadow .4s; }
.valores li:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.valores .num { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 13px; color: var(--acento); }
.valores b { font-size: 17px; color: var(--ink); }
.valores span:last-child { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Banda de contacto */
.cta-banda {
  max-width: calc(1280px - 2 * 64px); margin: 0 auto 112px; padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 64px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border-radius: 28px; background: var(--surface-2); color: var(--text); position: relative; overflow: hidden; border: 1px solid var(--line);
}
.cta-banda::before { content: ""; position: absolute; inset: auto -10% -70% auto; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent); }
.cta-banda > * { position: relative; }
.cta-banda h2 { margin: 0 0 8px; }
.cta-banda p { max-width: 520px; line-height: 1.6; color: var(--muted); }

/* ===== Pie de página ===== */
.footer { background: #242321; border-top: 1px solid var(--line); padding: 72px var(--gutter) 28px; font-size: 14px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-marca .brand { margin-bottom: 16px; }
.footer-marca p { max-width: 300px; line-height: 1.7; color: var(--muted); }
.footer h3 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; color: var(--ink); }
.footer-grid > div:not(.footer-marca) { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.footer-grid a { transition: color .2s; }
.footer-grid a:hover { color: var(--ink); }
.footer .wa-link { color: #5fd08d; font-weight: 600; }
.footer-pie { max-width: 1280px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }

/* ===== Página de producto ===== */
.detalle { max-width: 1280px; margin: 0 auto; padding: 24px var(--gutter) 96px; }
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.migas a:hover { color: var(--ink); }
.migas span:last-child { color: var(--ink); font-weight: 500; }
.detalle-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detalle-grid > * { min-width: 0; }
.galeria { position: sticky; top: 96px; animation: entrar .9s var(--ease) both; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 24px; background: var(--foto); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; position: relative; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.slide img.ph { padding: 34%; opacity: .15; filter: grayscale(1); }
.flecha {
  position: absolute; top: calc(50% - 60px); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(43,42,40,.88); box-shadow: var(--sombra); font-size: 24px; line-height: 1; color: var(--ink);
  cursor: pointer; opacity: 0; transition: opacity .25s, transform .25s;
}
.flecha.ant { left: 16px; } .flecha.sig { right: 16px; }
.galeria:hover .flecha { opacity: 1; }
.flecha:hover { transform: scale(1.08); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: 0 0 76px; aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: var(--foto); padding: 6px; cursor: pointer; transition: border-color .2s, opacity .2s; opacity: .55; }
.thumbs button.activa, .thumbs button:hover { border-color: var(--acento); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detalle-info > * { animation: entrar .9s var(--ease) both; }
.detalle-info > :nth-child(n+3) { animation-delay: .08s; }
.detalle-info > :nth-child(n+5) { animation-delay: .16s; }
.marca-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--acento); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.detalle h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; margin: 14px 0 8px; }
.sku { color: var(--muted); font-size: 14px; }
.precio-box { margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detalle .precio { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.precio-nota { font-size: 13px; color: var(--muted); margin-top: 4px; }
.destacados { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.destacados li { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.destacados span { font-size: 12px; color: var(--muted); }
.destacados b { font-size: 14px; color: var(--ink); font-weight: 600; }
.detalle-info .btn { width: 100%; }
.beneficios { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; gap: 14px; font-size: 14px; color: var(--muted); }
.beneficios li { display: flex; gap: 12px; align-items: flex-start; }
.beneficios svg { flex: none; width: 22px; height: 22px; color: var(--acento); }
.beneficios b { color: var(--ink); font-weight: 600; }
.beneficios a { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }
.detalle h2 { font-size: 20px; letter-spacing: -.01em; margin: 40px 0 12px; }
.specs { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); font-size: 14px; }
.specs dt, .specs dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); padding-right: 24px; }
.specs dd { text-align: right; font-weight: 500; color: var(--ink); }
.ficha, .relacionados { margin-top: 96px; }
.ficha h2, .relacionados h2 { font-size: clamp(22px, 2.6vw, 28px); }
.specs-2col { grid-template-columns: auto 1fr auto 1fr; column-gap: 48px; }
.barra-movil { display: none; }

/* Botón flotante de WhatsApp */
.wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35); transition: transform .25s var(--ease), box-shadow .25s;
  animation: entrar .8s var(--ease) 1.2s both;
}
.wa-flotante svg { width: 26px; height: 26px; }
.wa-flotante:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.wa-flotante::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,163,90,.5); animation: latido 2.6s ease-out 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 16px rgba(37,163,90,0); } 100% { box-shadow: 0 0 0 0 rgba(37,163,90,0); } }

/* ===== Animaciones ===== */
@keyframes entrar { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@keyframes brillo { to { background-position: 100% center; } }
.hero-txt > * { animation: entrar .9s var(--ease) both; }
.hero-txt > :nth-child(2) { animation-delay: .08s; }
.hero-txt > :nth-child(3) { animation-delay: .16s; }
.hero-txt > :nth-child(4) { animation-delay: .24s; }
.hero-txt > :nth-child(5) { animation-delay: .32s; }
.hero-vitrina { animation: entrar 1.1s var(--ease) .2s both; }
.reveal, .card { opacity: 0; }
.reveal { transform: translateY(28px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.visible { opacity: 1; }
.reveal.visible { transform: none; }

/* ===== Intro de carga: ícono al centro ===== */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity .8s cubic-bezier(.76,0,.24,1) .15s; }
.intro-logo { position: relative; width: clamp(112px, 14vw, 148px); aspect-ratio: 1; overflow: hidden; animation: logo-entra 1s cubic-bezier(.34,1.56,.64,1) both; transition: transform .9s cubic-bezier(.7,0,.84,0), opacity .5s ease .35s; -webkit-mask: url(assets/icono.png) center / contain no-repeat; mask: url(assets/icono.png) center / contain no-repeat; }
.intro-logo img { width: 100%; height: 100%; }
.intro-logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%); transform: translateX(-120%); animation: logo-brillo .9s ease .85s forwards; }
@keyframes logo-entra { from { opacity: 0; transform: scale(.4) rotate(-12deg); filter: blur(10px); } }
@keyframes logo-brillo { to { transform: translateX(120%); } }
.intro.sale { opacity: 0; pointer-events: none; }
.intro.sale .intro-logo { transform: scale(18); opacity: 0; }
.intro-activa, .intro-activa body { overflow: hidden; }
.intro-activa .hero-txt > *, .intro-activa .hero-vitrina { animation-play-state: paused; }
.intro-activa main { transform: scale(.96); filter: blur(8px); }
main { transition: transform 1.1s var(--ease), filter 1.1s var(--ease); }

/* ===== Página de políticas ===== */
.legal { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px) 96px; }
.legal-head { padding: 72px 0 24px; animation: entrar .9s var(--ease) both; }
.legal-head h1 { margin: 14px 0 10px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; }
.legal-head .lead { font-size: 15px; }
.legal-indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal-indice a { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text); transition: all .2s; }
.legal-indice a:hover { border-color: var(--ink); color: var(--ink); }
.legal section { padding-top: 56px; scroll-margin-top: 80px; }
.legal h2 { font-size: 26px; margin: 0 0 16px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--text); }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
.legal b { color: var(--ink); }
.legal a { color: var(--acento); }
.legal-contacto { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-contacto a { color: #5fd08d; font-weight: 600; }

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .confianza { grid-template-columns: repeat(2, 1fr); }
  .confianza li:nth-child(3) { border-left: 0; }
  .confianza li:nth-child(n+3) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-vitrina { max-width: 560px; width: 100%; margin: 0 auto; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile { height: 220px; }
  .historia { grid-template-columns: 1fr; padding: 80px var(--gutter); }
  .valores { grid-template-columns: 1fr; margin-top: 16px; }
  .detalle-grid { grid-template-columns: 1fr; }
  .galeria { position: static; }
  .flecha { display: none; }
  .specs-2col { grid-template-columns: auto 1fr; }
  .controles { width: 100%; }
  .search { flex: 1 1 100%; min-width: 0; }
  .controles select { flex: 1 1 40%; min-width: 0; }
  .barra-movil {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(43,42,40,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .barra-movil small { display: block; font-size: 12px; color: var(--muted); }
  .barra-movil b { font-family: Montserrat, sans-serif; color: var(--ink); }
  .detalle { padding-bottom: 120px; }
  .wa-flotante span { display: none; }
  .wa-flotante { width: 56px; padding: 0; justify-content: center; }
  .detalle ~ .wa-flotante { display: none; } /* en producto ya está la barra inferior con WhatsApp */
}
@media (max-width: 600px) {
  .brand-txt b { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 14px; }
  .card .precio { font-size: 15px; }
  .card .ver, .tags span:nth-child(2) { display: none; }
  .cifras dt { font-size: 22px; }
  .cta-banda { margin: 0 16px 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .card { opacity: 1; transform: none; }
}

/* ===== Financiamiento (plan ASI) ===== */
.card .desde { display: grid; gap: 1px; }
.card .desde small { font-size: 11.5px; color: var(--muted); }
.card .desde b { font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.card .desde.cotiza b { font-size: 14px; font-weight: 700; }
.financia { margin: 24px 0; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.financia-tit { display: grid; gap: 2px; margin-bottom: 16px; }
.financia-tit b { font-family: Montserrat, sans-serif; font-size: 17px; color: var(--ink); }
.financia-tit span { font-size: 13px; color: var(--muted); }
.plazos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plazo {
  display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: var(--surface-2); border: 2px solid transparent; transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.plazo:hover { transform: translateY(-2px); border-color: var(--line-2); }
.plazo[aria-checked="true"] { border-color: #fff; background: rgba(255,255,255,.07); }
.plazo-n { font-size: 13px; color: var(--muted); }
.plazo-n b { color: var(--ink); font-size: 15px; }
.plazo-pago { font-family: Montserrat, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.plazo-meses { font-size: 12px; color: var(--muted); }
.cotiza-msg { grid-column: 1 / -1; font-size: 14px; line-height: 1.6; color: var(--muted); }
.financia .precio-nota { margin-top: 14px; font-size: 12.5px; line-height: 1.5; }
.plan { max-width: 1280px; margin: 0 auto; padding: 24px var(--gutter) 24px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px clamp(32px, 6vw, 80px); align-items: center; }
.plan-txt p:last-child { margin-top: 14px; line-height: 1.75; color: var(--muted); max-width: 460px; }
.plan-plazos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plan-plazos li { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; transition: transform .4s var(--ease), box-shadow .4s; }
.plan-plazos li:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.plan-plazos b { font-family: Montserrat, sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.plan-plazos span { font-size: 14px; color: var(--text); }
.plan-plazos small { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .plazo-pago { font-size: 19px; } .financia { padding: 16px; } }
