/* =====================================================================
   APPLE HOSPITAL · Estilos del sitio público
   ===================================================================== */
:root {
  --ink: #12121c;
  --ink-2: #1a1a28;
  --ink-3: #232336;
  --line-d: rgba(255, 255, 255, .09);
  --cream: #f2efe9;
  --cream-2: #e8e0d3;
  --sand: #e9c592;
  --gold: #ecc994;
  --violet: #4a3fb4;
  --violet-2: #5b4fd6;
  --violet-3: #2b2470;
  --green: #22c55e;
  --green-2: #16a34a;
  --text: #f4f3f8;
  --muted: #a3a2b6;
  --muted-d: #5d5b6c;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--violet-2); color: #fff; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transform-origin: left; animation: growX 1.2s var(--ease) both; }
.eyebrow.violet { color: var(--violet-2); }
.eyebrow.green { color: var(--green); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1; font-weight: 700; }
.display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .95; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.lead { color: var(--muted); font-size: 1.02rem; line-height: 1.65; max-width: 560px; }
.gold { color: var(--gold); }
.violet-t { color: var(--violet-2); }
.muted { color: var(--muted); }

section { position: relative; }
.sec { padding: clamp(70px, 10vw, 130px) 0; }
.sec.light { background: var(--cream); color: var(--ink); }
.sec.light .lead { color: #55536a; }
.sec.beige { background: var(--cream-2); color: var(--ink); }
.sec.beige .lead { color: #55536a; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--violet); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .9rem;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px) rotate(0deg); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 14px 34px -12px var(--bg); }
.btn-outline { --bg: transparent; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.light .btn-outline, .beige .btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-green { --bg: var(--green-2); }
.btn-gold { --bg: var(--gold); --fg: var(--ink); }
.btn-dark { --bg: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .8rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease) .1s, visibility 0s 1.2s;
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader .pl-logo { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; background: #fff; animation: plPop 1.2s var(--ease-back) both; box-shadow: 0 0 0 0 rgba(91,79,214,.6); }
.preloader .pl-logo img { width: 100%; height: 100%; object-fit: cover; animation: plSpin 2.2s var(--ease) infinite; }
.preloader .pl-bar { position: absolute; bottom: 18%; width: 160px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.preloader .pl-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--violet-2), var(--gold)); animation: plBar 1s ease-in-out infinite; }
@keyframes plPop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plSpin { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(8deg) scale(1.04); } }
@keyframes plBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Barra de progreso + cursor ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1001; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--violet-2), var(--gold), var(--green)); }
.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0; left: 0; top: 0; background: radial-gradient(circle, rgba(91,79,214,.18), transparent 60%); transform: translate(-50%, -50%); transition: opacity .4s; mix-blend-mode: screen; }
.cursor-dot { position: fixed; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); pointer-events: none; z-index: 10000; left: 0; top: 0; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s; mix-blend-mode: difference; }
.cursor-dot.big { width: 46px; height: 46px; background: #fff; }
@media (hover: none), (max-width: 900px) { .cursor-glow, .cursor-dot { display: none; } }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: transform .5s var(--ease), background .4s, padding .4s, border-color .4s;
  padding: 18px 0; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(18,18,28,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); padding: 10px 0; border-color: var(--line-d); }
.nav.hide { transform: translateY(-110%); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; transition: transform .8s var(--ease-back); }
.brand:hover img { transform: rotate(360deg) scale(1.08); }
.brand span { font-size: .95rem; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; padding: 8px 14px; font-size: .84rem; font-weight: 500; color: #d8d7e3; border-radius: 999px; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease-back); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after, .nav-links a:hover::after { transform: translateX(-50%) scale(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-d); background: transparent; color: #fff; cursor: pointer; transition: background .3s, transform .4s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.08); transform: rotate(-10deg); }
.icon-btn svg { width: 17px; height: 17px; }
.cur-toggle { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-d); position: relative; }
.cur-toggle button { position: relative; z-index: 1; background: none; border: 0; color: #cfcedc; font-size: .72rem; font-weight: 700; padding: 6px 11px; cursor: pointer; transition: color .3s; }
.cur-toggle button.on { color: var(--ink); }
.cur-toggle .pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--gold); transition: transform .45s var(--ease-back); }
.cur-toggle.ars .pill { transform: translateX(100%); }
.burger { display: none; }
@media (max-width: 920px) {
  .nav-links, .nav-actions .wa-nav { display: none; }
  .burger { display: grid; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; padding: 40px;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease);
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mobile-menu a { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; padding: 6px 0; opacity: 0; transform: translateY(30px); transition: all .6s var(--ease); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(2) { transition-delay: .08s; } .mobile-menu.open a:nth-child(3) { transition-delay: .16s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .24s; } .mobile-menu.open a:nth-child(5) { transition-delay: .32s; }
.mobile-menu.open a:nth-child(6) { transition-delay: .4s; }

/* Buscador overlay */
.search-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(12,12,20,.86); backdrop-filter: blur(14px); display: flex; align-items: flex-start; justify-content: center; padding-top: 16vh; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: min(680px, 92%); transform: translateY(-30px) scale(.97); transition: transform .6s var(--ease); }
.search-overlay.open .search-box { transform: none; }
.search-box input { width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--violet-2); color: #fff; font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 600; padding: 12px 0; outline: none; }
.search-results { margin-top: 18px; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); animation: fadeUp .4s var(--ease) both; }
.search-results a:hover { background: rgba(91,79,214,.25); }
.search-results small { color: var(--gold); white-space: nowrap; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: 130px 0 90px; background: radial-gradient(120% 90% at 80% 10%, #2a2160 0%, #171630 45%, var(--ink) 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; transform: scale(1.15); animation: kenBurns 22s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,28,.95) 0%, rgba(18,18,28,.55) 60%, rgba(18,18,28,.8) 100%); }
@keyframes kenBurns { to { transform: scale(1) translate(-2%, -1%); } }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: orb 18s ease-in-out infinite alternate; pointer-events: none; }
.orb.o1 { width: 520px; height: 520px; background: #4a3fb4; top: -120px; right: -80px; }
.orb.o2 { width: 380px; height: 380px; background: #8a6bd6; bottom: -120px; right: 22%; animation-duration: 22s; opacity: .35; }
.orb.o3 { width: 280px; height: 280px; background: var(--gold); top: 40%; left: -120px; opacity: .14; animation-duration: 26s; }
@keyframes orb { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.15); } 100% { transform: translate(40px, -30px) scale(.9); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 70px 70px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); animation: gridMove 30s linear infinite; }
@keyframes gridMove { to { background-position: 70px 70px; } }
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin: 22px 0 26px; }
.hero .lead { color: #d3d1e2; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.scroll-hint { position: absolute; right: 34px; bottom: 40px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.scroll-hint i { width: 2px; height: 70px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; border-radius: 2px; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: var(--green); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { from { top: -40%; } to { top: 100%; } }
.floating-apple { position: absolute; right: 6%; top: 50%; width: min(36vw, 460px); aspect-ratio: 1; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.floating-apple .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(236,201,148,.25); animation: spin 40s linear infinite; }
.floating-apple .ring.r2 { inset: 12%; border-style: solid; border-color: rgba(91,79,214,.35); animation-duration: 25s; animation-direction: reverse; }
.floating-apple .ring.r2::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px var(--gold); }
.floating-apple .core { position: absolute; inset: 26%; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 30px 80px -20px rgba(91,79,214,.8); animation: float 6s ease-in-out infinite; }
.floating-apple .core img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@media (max-width: 980px) { .floating-apple { opacity: .18; right: -20%; width: 80vw; } .scroll-hint { display: none; } }

/* Split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(6deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--base, 0ms)); }
.split.in .w > span { transform: none; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), clip-path 1.2s var(--ease); transition-delay: var(--d, 0ms); will-change: transform, opacity; }
[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="down"] { transform: translateY(-40px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="zoom"] { transform: scale(.88); }
[data-reveal="blur"] { filter: blur(14px); transform: translateY(20px); }
[data-reveal="flip"] { transform: perspective(900px) rotateX(25deg) translateY(40px); transform-origin: top; }
[data-reveal="clip"] { opacity: 1; position: relative; overflow: hidden; }
[data-reveal="clip"]::after { content: ""; position: absolute; inset: 0; z-index: 5; background: linear-gradient(90deg, var(--violet), var(--violet-2)); transform-origin: right; transition: transform 1.3s var(--ease); transition-delay: var(--d, 0ms); pointer-events: none; }
[data-reveal="clip"] > * { transform: scale(1.25); transition: transform 1.8s var(--ease); }
[data-reveal="clip"].in::after { transform: scaleX(0); }
[data-reveal="clip"].in > * { transform: none; }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Marquee ---------- */
.marquee { max-width: 100vw; background: var(--violet); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.4deg); margin: -20px -10px 0; position: relative; z-index: 3; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.marquee.alt { background: var(--gold); color: var(--ink); transform: rotate(1.2deg); margin-top: -46px; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee.alt .marquee-track { animation-direction: reverse; animation-duration: 40s; }
.marquee span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.marquee span::after { content: "✦"; font-size: .9rem; opacity: .7; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bloques "La entrada correcta" ---------- */
.intro-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: 50px; }
@media (max-width: 800px) { .intro-head { grid-template-columns: 1fr; } }
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.path {
  position: relative; border-radius: 22px; padding: 26px 28px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.path:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.path .num { font-size: .72rem; font-weight: 700; opacity: .6; display: flex; justify-content: space-between; }
.path .num svg { width: 20px; height: 20px; opacity: .9; transition: transform .6s var(--ease-back); }
.path:hover .num svg { transform: rotate(-20deg) scale(1.25); }
.path small { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.path h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 6px 0 10px; }
.path p { font-size: .86rem; line-height: 1.55; opacity: .8; max-width: 330px; margin: 0 0 18px; }
.path.p1 { background: var(--cream-2); color: var(--ink); }
.path.p2 { background: var(--violet); color: #fff; }
.path.p3 { background: var(--ink-2); color: #fff; }
.path.p4 { background: var(--sand); color: var(--ink); }
.path .bg-ico { position: absolute; right: -30px; bottom: -40px; width: 200px; height: 200px; opacity: .08; transition: transform 1s var(--ease); }
.path:hover .bg-ico { transform: rotate(-12deg) scale(1.15); opacity: .14; }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.25), transparent 45%); opacity: 0; transition: opacity .4s; }
.tilt:hover .glare { opacity: 1; }

/* ---------- Split (imagen + texto) ---------- */
.split-sec { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--ink-2); }
@media (max-width: 860px) { .split-sec { grid-template-columns: 1fr; } }
.split-media { position: relative; overflow: hidden; min-height: 380px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; }
.split-text { padding: clamp(50px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.split-text .h2 { margin: 18px 0 22px; }
.numlist { list-style: none; margin: 30px 0 0; padding: 0; }
.numlist li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line-d); position: relative; }
.numlist li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--green); transition: width 1.4s var(--ease); transition-delay: var(--d, 0ms); }
.numlist li.in::before { width: 100%; }
.numlist b { font-size: .75rem; color: var(--green); }
.numlist strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.numlist span { color: var(--muted); font-size: .84rem; }

/* Ilustración animada cuando no hay foto */
.art { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, #2f2775, #15142a 70%); display: grid; place-items: center; overflow: hidden; }
.art .chip { width: 46%; aspect-ratio: 1; border-radius: 24px; border: 2px solid rgba(236,201,148,.6); position: relative; animation: float 7s ease-in-out infinite; background: linear-gradient(145deg, rgba(91,79,214,.25), rgba(18,18,28,.4)); box-shadow: 0 0 60px rgba(91,79,214,.5) inset; }
.art .chip::before { content: ""; position: absolute; inset: 22%; border-radius: 12px; background: linear-gradient(135deg, var(--gold), #b48a4c); box-shadow: 0 0 40px rgba(236,201,148,.5); }
.art .chip i { position: absolute; background: rgba(236,201,148,.6); }
.art .trace { position: absolute; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 50%; animation: trace 3s linear infinite; opacity: .6; }
@keyframes trace { from { transform: translateX(-120%); } to { transform: translateX(220%); } }
.art .spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #9ea0ff; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }

/* ---------- Productos (tarjetas) ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
@media (max-width: 1000px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }
.pcard { display: block; position: relative; }
.pcard .pimg {
  position: relative; aspect-ratio: 1.1; border-radius: 16px; background: #fff; overflow: hidden;
  display: grid; place-items: center; transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .5s;
}
.pcard:hover .pimg { transform: translateY(-8px); box-shadow: 0 26px 40px -22px rgba(91,79,214,.75); }
.pcard .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 9%; object-fit: contain; transition: transform .8s var(--ease); }
.pcard:hover .pimg img { transform: scale(1.08) rotate(-2deg); }
.pcard .pimg .ph { width: 46%; color: #cfcac2; transition: transform .8s var(--ease), color .4s; }
.pcard:hover .pimg .ph { transform: scale(1.1) rotate(-4deg); color: var(--violet-2); }
.pcard .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.pcard .quick { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease-back); }
.pcard .quick svg { width: 16px; height: 16px; }
.pcard:hover .quick { transform: scale(1) rotate(0); }
.pcard .pcat { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 14px 0 4px; }
.pcard h4 { margin: 0 0 4px; font-size: .9rem; font-weight: 600; letter-spacing: -.01em; transition: color .3s; }
.pcard:hover h4 { color: var(--gold); }
.pcard .price { font-size: .82rem; font-weight: 600; color: #8f86ff; }
.light .pcard .pimg, .beige .pcard .pimg { background: #fff; }
.light .pcard .price { color: var(--violet); }
.badge { display: inline-block; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; }
.badge.new { background: var(--violet-2); }
.badge.gold { background: var(--gold); color: var(--ink); }
.badge.pulse { animation: badgePulse 2.4s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91,79,214,.55); } 50% { box-shadow: 0 0 0 6px rgba(91,79,214,0); } }

/* ---------- Spotlight producto destacado ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } }
.spot-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.spot-visual .halo { position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, var(--violet-2), var(--gold), var(--green), var(--violet-2)); filter: blur(50px); opacity: .45; animation: spin 14s linear infinite; }
.spot-visual .plate { position: relative; width: 78%; aspect-ratio: 1; border-radius: 30px; background: #fff; display: grid; place-items: center; overflow: hidden; animation: float 7s ease-in-out infinite; box-shadow: 0 50px 90px -40px rgba(0,0,0,.8); }
.spot-visual .plate img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 9%; object-fit: contain; }
.spot-visual .plate .ph { width: 45%; color: #c9c3ba; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 26px; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; }
.checks li i { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; transform: scale(0); transition: transform .6s var(--ease-back); transition-delay: var(--d, 0ms); }
.checks li i svg { width: 12px; height: 12px; }
.in .checks li i, .checks.in li i { transform: scale(1); }
.photo-frame { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; background: var(--ink-3); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.photo-frame:hover img { transform: scale(1.06); }
.photo-badge { position: absolute; left: 18px; bottom: 18px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; }
.photo-badge b { font-size: 1.8rem; color: var(--gold); display: block; line-height: 1; }
.photo-badge small { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-d); border-radius: 20px; overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { padding: 30px 26px; border-right: 1px solid var(--line-d); position: relative; overflow: hidden; }
.stat:last-child { border-right: 0; }
.stat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(91,79,214,.18), transparent); transform: translateY(100%); transition: transform .6s var(--ease); }
.stat:hover::before { transform: none; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; position: relative; }
.stat span { color: var(--muted); font-size: .78rem; position: relative; }

/* ---------- Reseñas ---------- */
.reviews { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }
.rv-score { text-align: center; }
.rv-score h3 { font-size: 1.3rem; letter-spacing: .02em; }
.stars { color: #fbbc05; display: inline-flex; gap: 2px; }
.stars svg { width: 22px; height: 22px; }
.rv-score .stars svg { animation: starPop .6s var(--ease-back) both; }
.rv-score .stars svg:nth-child(2) { animation-delay: .1s; } .rv-score .stars svg:nth-child(3) { animation-delay: .2s; }
.rv-score .stars svg:nth-child(4) { animation-delay: .3s; } .rv-score .stars svg:nth-child(5) { animation-delay: .4s; }
@keyframes starPop { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.rv-track-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.rv-track { display: flex; gap: 16px; transition: transform .8s var(--ease); }
.rv { flex: 0 0 min(320px, 80vw); background: #fff; color: var(--ink); border-radius: 16px; padding: 20px; border: 1px solid #e6e2da; transition: transform .5s var(--ease), box-shadow .5s; }
.rv:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
.rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rv-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--violet); }
.rv-head b { font-size: .86rem; display: block; }
.rv-head small { color: #8b8999; font-size: .72rem; }
.rv-head .g { margin-left: auto; font-weight: 800; font-size: 1.1rem; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv .stars svg { width: 15px; height: 15px; }
.rv p { font-size: .84rem; line-height: 1.55; margin: 10px 0 0; }
.rv-nav { display: flex; gap: 8px; margin-top: 18px; }
.rv-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s; }
.rv-nav button:hover { background: var(--violet); color: #fff; border-color: var(--violet); transform: scale(1.08); }
.rv-nav svg { width: 16px; height: 16px; }

/* ---------- CTA ---------- */
.cta-band { position: relative; border-radius: 30px; padding: clamp(40px, 6vw, 70px); overflow: hidden; background: linear-gradient(120deg, var(--violet-3), var(--violet) 60%, #7a63e0); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; right: -100px; top: -160px; border: 60px solid rgba(255,255,255,.06); animation: spin 30s linear infinite; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; }

/* ---------- Tienda ---------- */
.shop-hero { padding: 140px 0 70px; position: relative; overflow: hidden; }
.shop-hero::before { content: ""; position: absolute; right: -8%; top: 90px; bottom: 0; width: 58%; background: linear-gradient(135deg, var(--violet), var(--violet-3)); transform: skewX(-12deg); transform-origin: bottom; animation: slideSkew 1.4s var(--ease) both; }
@keyframes slideSkew { from { transform: skewX(-12deg) translateX(60%); opacity: 0; } }
.shop-hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .shop-hero .container { grid-template-columns: 1fr; } .shop-hero::before { width: 100%; right: -30%; opacity: .5; } }
.feat-card { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; background: var(--ink-2); border-radius: 24px; padding: 18px; border: 1px solid var(--line-d); box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); transition: transform .6s var(--ease); }
.feat-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.feat-card .pimg { position: relative; aspect-ratio: 1; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.feat-card .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8%; object-fit: contain; animation: float 6s ease-in-out infinite; }
.feat-card .pimg .ph { width: 50%; color: #c9c3ba; }
.feat-card h3 { font-size: 1.5rem; margin: 10px 0 6px; }
.feat-card p { font-size: .8rem; color: var(--muted); margin: 0 0 12px; }
.feat-card .from { font-size: .6rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.feat-card .big { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
@media (max-width: 500px) { .feat-card { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-d);
  background: var(--ink-2); color: #d6d5e3; font-size: .78rem; font-weight: 500; cursor: pointer; transition: all .35s var(--ease);
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: var(--violet-2); transform: translateY(-2px); }
.chip.on { background: var(--violet); color: #fff; border-color: var(--violet); box-shadow: 0 10px 24px -10px var(--violet-2); }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.shop-bar .count { color: var(--muted); font-size: .8rem; }
.shop-bar .count b { color: #fff; }
.selects { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.selects label { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.field-dark { background: var(--ink-2); border: 1px solid var(--line-d); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: .8rem; outline: none; transition: border-color .3s; }
.field-dark:focus { border-color: var(--violet-2); }
.pcard.hide { display: none; }
.pcard.appear { animation: cardIn .7s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }
.empty.show { display: block; animation: fadeUp .5s var(--ease); }

/* ---------- Producto ---------- */
.product-page { padding: 120px 0 60px; position: relative; }
.product-page::before { content: ""; position: absolute; left: 0; top: 0; height: 620px; width: 52%; background: linear-gradient(135deg, var(--violet-3), var(--violet)); clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); z-index: 0; animation: fadeIn 1.2s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } }
.product-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } .product-page::before { width: 100%; height: 420px; } }
.gallery-main { position: relative; aspect-ratio: 1; background: #fff; border-radius: 26px; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8%; object-fit: contain; transition: transform .25s ease-out, opacity .4s; }
.gallery-main .ph { width: 40%; color: #c9c3ba; }
.gallery-main.zoom img { transform: scale(1.9); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 74px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 6px; cursor: pointer; transition: border-color .3s, transform .3s; }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button.on, .thumbs button:hover { border-color: var(--violet-2); transform: translateY(-3px); }
.pinfo { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 24px; padding: 28px; position: sticky; top: 90px; }
.pinfo .tags { display: flex; gap: 8px; align-items: center; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pinfo h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 12px 0 10px; }
.pinfo .bigprice { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; display: block; }
.pinfo .bigprice.pflash { animation: priceFlash .6s var(--ease); }
@keyframes priceFlash { 0% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(-12px); opacity: 0; } 41% { transform: translateY(12px); } 100% { transform: none; opacity: 1; } }
.pinfo .note { color: var(--muted); font-size: .8rem; line-height: 1.6; margin: 10px 0; }
.stock { display: flex; align-items: center; gap: 10px; font-size: .78rem; margin: 14px 0 20px; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.opt-label { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-d); background: var(--ink-3); color: #ddd; font-size: .78rem; cursor: pointer; transition: all .3s var(--ease); }
.opt:hover { border-color: var(--violet-2); }
.opt.on { background: var(--violet); border-color: var(--violet-2); color: #fff; transform: scale(1.04); }
.pay-list { display: grid; gap: 8px; margin-top: 10px; }
.pay {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-d); background: var(--ink-3);
  cursor: pointer; text-align: left; color: #fff; transition: all .35s var(--ease); width: 100%;
}
.pay .ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(34,197,94,.14); color: var(--green); display: grid; place-items: center; flex: none; transition: transform .5s var(--ease-back); }
.pay .ic svg { width: 16px; height: 16px; }
.pay b { font-size: .82rem; display: block; }
.pay small { font-size: .68rem; color: var(--muted); }
.pay .go { margin-left: auto; width: 14px; height: 14px; opacity: .5; transition: transform .35s var(--ease); }
.pay:hover { border-color: var(--green); transform: translateX(4px); }
.pay:hover .ic { transform: rotate(-12deg) scale(1.1); }
.pay:hover .go { transform: translateX(4px); opacity: 1; }
.pay.on { border-color: var(--green); background: rgba(34,197,94,.08); }
.wa-preview { margin-top: 16px; background: #0d0d16; border: 1px solid var(--line-d); border-radius: 14px; padding: 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; line-height: 1.6; white-space: pre-wrap; color: #d6d5e3; min-height: 110px; }
.wa-preview .lbl { font-family: var(--font); font-size: .6rem; font-weight: 700; letter-spacing: .14em; color: var(--green); text-transform: uppercase; display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.wa-preview .lbl svg { width: 13px; height: 13px; }
.caret { display: inline-block; width: 7px; height: 1em; background: var(--green); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.guarantees { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.guarantees li { display: flex; gap: 10px; align-items: center; font-size: .76rem; color: var(--muted); }
.guarantees svg { width: 15px; height: 15px; color: var(--violet-2); flex: none; }
.desc-box { margin-top: 50px; max-width: 760px; }
.desc-box .tab { display: inline-block; background: var(--violet); padding: 8px 16px; border-radius: 10px; font-size: .8rem; font-weight: 600; margin-bottom: 18px; }
.desc-box p { color: #c6c5d4; font-size: .9rem; line-height: 1.75; margin: 0 0 8px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(10,10,16,.92); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: all .4s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 16px; background: var(--cream); transform: scale(.9); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox .icon-btn { position: absolute; top: 20px; right: 20px; }

/* ---------- Reparaciones ---------- */
.repair-hero { min-height: 92vh; display: flex; align-items: center; padding: 130px 0 60px; background: radial-gradient(90% 80% at 20% 20%, #1d2a2a, var(--ink) 70%); overflow: hidden; }
.repair-hero .container { position: relative; z-index: 2; }
.repair-hero .grid2 { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .repair-hero .grid2 { grid-template-columns: 1fr; } }
.diag { border-left: 2px solid var(--gold); padding-left: 22px; }
.diag small { color: var(--gold); font-weight: 700; letter-spacing: .1em; font-size: 1.1rem; }
.diag h3 { font-size: 1.8rem; margin: 20px 0 8px; }
.diag p { color: var(--gold); opacity: .8; font-size: .9rem; line-height: 1.5; margin: 0; }
.features4 { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border: 1px solid var(--line-d); border-radius: 16px; overflow: hidden; background: rgba(18,18,28,.5); backdrop-filter: blur(8px); }
@media (max-width: 860px) { .features4 { grid-template-columns: 1fr 1fr; } }
.features4 > div { padding: 22px; border-right: 1px solid var(--line-d); transition: background .4s; }
.features4 > div:hover { background: rgba(34,197,94,.08); }
.features4 > div:last-child { border-right: 0; }
.features4 b { display: flex; gap: 8px; align-items: center; font-size: .8rem; margin-bottom: 6px; }
.features4 b svg { width: 15px; height: 15px; color: var(--green); }
.features4 span { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.scanline { position: absolute; left: 0; right: 0; height: 160px; background: linear-gradient(180deg, transparent, rgba(34,197,94,.08), transparent); animation: scan 6s linear infinite; z-index: 1; pointer-events: none; }
@keyframes scan { from { top: -160px; } to { top: 100%; } }
.problems { list-style: none; padding: 0; margin: 26px 0; }
.problems li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.problems li svg { width: 16px; height: 16px; color: var(--green-2); margin-top: 2px; }
.problems strong { font-size: .88rem; }
.problems span { display: block; font-size: .76rem; color: #6b697b; }
.device-art { position: relative; aspect-ratio: 3/4; width: 100%; max-width: 380px; margin: 0 auto; }
.device-art .frame { position: absolute; inset: 0; border-radius: 40px; border: 3px solid #2a2a3a; background: linear-gradient(160deg, #e9e5ff, #f7f3ec); overflow: hidden; transform: rotate(8deg); animation: float 8s ease-in-out infinite; box-shadow: 0 40px 80px -30px rgba(0,0,0,.4); }
.device-art .frame::before { content: ""; position: absolute; inset: 14px; border-radius: 28px; border: 1px dashed rgba(74,63,180,.35); }
.device-art .comp { position: absolute; border-radius: 8px; background: rgba(74,63,180,.12); border: 1px solid rgba(74,63,180,.35); }
.device-art .lbl { position: absolute; right: -18px; top: 30%; writing-mode: vertical-rl; font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; color: #1c1b2b; transform: rotate(8deg); }

.builder { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }
.step-label { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b697b; margin: 22px 0 10px; }
.pick { padding: 9px 15px; border-radius: 10px; border: 1px solid #d6d0c4; background: #fff; color: var(--ink); font-size: .8rem; cursor: pointer; transition: all .3s var(--ease); margin: 0 6px 8px 0; }
.pick:hover { border-color: var(--violet); transform: translateY(-2px); }
.pick.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.field-light { width: 100%; border: 1px solid #d6d0c4; background: #fff; border-radius: 12px; padding: 14px 16px; color: var(--ink); outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.field-light:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(74,63,180,.12); }
.bubble { background: #dcf8c6; color: #1b2a14; border-radius: 14px 14px 14px 4px; padding: 14px 16px; font-size: .86rem; line-height: 1.55; white-space: pre-wrap; min-height: 50px; position: relative; animation: bubbleIn .5s var(--ease-back); }
@keyframes bubbleIn { from { transform: scale(.85); opacity: 0; } }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; counter-reset: s; }
@media (max-width: 860px) { .steps4 { grid-template-columns: 1fr 1fr; } }
.steps4 > div { padding: 26px 22px 0 0; border-top: 1px solid var(--line-d); position: relative; }
.steps4 > div::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--gold); transition: width 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.steps4 > div.in::before { width: 100%; }
.steps4 small { font-size: .72rem; color: var(--gold); font-weight: 700; }
.steps4 h4 { margin: 10px 0 8px; font-size: 1rem; }
.steps4 p { color: var(--muted); font-size: .8rem; line-height: 1.55; margin: 0; }

/* ---------- Nosotros ---------- */
.page-hero { padding: 160px 0 80px; position: relative; overflow: hidden; background: radial-gradient(100% 80% at 80% 0%, #2a2160, var(--ink) 60%); }
.page-hero .bgimg { position: absolute; inset: 0; }
.page-hero .bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.page-hero .container { position: relative; z-index: 2; }
.history { display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; margin-top: 40px; }
@media (max-width: 860px) { .history { grid-template-columns: 1fr; } }
.history p { color: #d3d1e2; line-height: 1.8; font-size: .95rem; margin: 0; }
.slider { position: relative; }
.slides { display: flex; gap: 16px; transition: transform .9s var(--ease); }
.slide { flex: 0 0 76%; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; position: relative; transition: transform .9s var(--ease), opacity .9s, filter .9s; filter: grayscale(.8); opacity: .5; transform: scale(.92); background: var(--ink-3); }
.slide.on { filter: none; opacity: 1; transform: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide small { position: absolute; left: 14px; bottom: 14px; color: #fff; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.slider-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.slider-ctrl .bars { flex: 1; display: flex; gap: 6px; }
.slider-ctrl .bars i { flex: 1; height: 2px; background: rgba(0,0,0,.15); position: relative; overflow: hidden; }
.slider-ctrl .bars i.on::after { content: ""; position: absolute; inset: 0; background: var(--violet); animation: barFill 5s linear forwards; }
@keyframes barFill { from { transform: translateX(-100%); } to { transform: none; } }
.mission { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .mission { grid-template-columns: 1fr; } }
.nonneg { display: grid; grid-template-columns: 1fr 1.2fr; }
@media (max-width: 860px) { .nonneg { grid-template-columns: 1fr; } }
.place { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .place { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 24px 0; }
.info-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: .86rem; transition: padding .3s var(--ease); }
.info-list li:hover { padding-left: 8px; }
.info-list svg { width: 17px; height: 17px; color: var(--violet); flex: none; }
.map-frame { border-radius: 22px; overflow: hidden; aspect-ratio: 4/3.4; border: 0; width: 100%; filter: grayscale(.4) contrast(1.05); transition: filter .5s; }
.map-frame:hover { filter: none; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-d); border-radius: 18px; overflow: hidden; margin-top: 50px; background: rgba(18,18,28,.55); backdrop-filter: blur(10px); }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-cards a { padding: 22px; border-right: 1px solid var(--line-d); position: relative; transition: background .4s; }
.contact-cards a:last-child { border-right: 0; }
.contact-cards a:hover { background: rgba(91,79,214,.18); }
.contact-cards small { display: flex; gap: 8px; align-items: center; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-cards small svg { width: 14px; height: 14px; }
.contact-cards b { display: block; margin-top: 10px; font-size: .92rem; }
.contact-cards .arr { position: absolute; top: 20px; right: 20px; width: 14px; height: 14px; opacity: .5; transition: transform .4s var(--ease), opacity .3s; }
.contact-cards a:hover .arr { transform: translate(3px, -3px); opacity: 1; }
.hours small { font-size: .62rem; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.hours b { display: block; font-size: 2rem; letter-spacing: -.03em; margin: 6px 0; }
.form-sec { display: grid; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) { .form-sec { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b697b; display: block; margin-bottom: 6px; }
.flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .86rem; animation: bubbleIn .6s var(--ease-back); }
.flash.ok { background: #dcfce7; color: #14532d; }
.flash.error { background: #fee2e2; color: #7f1d1d; }

/* ---------- Footer ---------- */
footer { background: #0d0d16; padding: 70px 0 30px; position: relative; overflow: hidden; }
.foot-big { font-size: clamp(3rem, 12vw, 10rem); font-weight: 800; letter-spacing: -.06em; line-height: .85; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); white-space: nowrap; margin-top: 50px; user-select: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot-grid a, .foot-grid p { display: block; font-size: .85rem; color: #cfcedc; margin: 0 0 8px; transition: color .3s, transform .3s; }
.foot-grid a:hover { color: var(--gold); transform: translateX(4px); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line-d); padding-top: 20px; margin-top: 20px; font-size: .74rem; color: var(--muted-d); }

/* ---------- Flotantes ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .4s var(--ease-back); animation: waIn 1s var(--ease-back) 1.5s both; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before, .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.4s ease-out infinite; }
.wa-float::after { animation-delay: 1.2s; }
.wa-float:hover { transform: scale(1.12) rotate(-8deg); }
.wa-float .tip { position: absolute; right: 70px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 600; padding: 8px 14px; border-radius: 10px; white-space: nowrap; opacity: 0; transform: translateX(10px); transition: all .4s var(--ease); pointer-events: none; }
.wa-float:hover .tip { opacity: 1; transform: none; }
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
@keyframes waIn { from { transform: scale(0) rotate(-180deg); } }
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 900; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink-3); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: all .4s var(--ease); }
.to-top.show { opacity: 1; transform: none; }
.to-top svg.arrow { width: 16px; height: 16px; position: relative; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 126; stroke-dashoffset: 126; }

/* Transición entre páginas */
.page-fade { position: fixed; inset: 0; z-index: 9998; background: var(--violet); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); pointer-events: none; }
.page-fade.go { transform: scaleY(1); }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(6rem, 20vw, 14rem); background: linear-gradient(90deg, var(--violet-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: float 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  [data-reveal="clip"]::after { display: none; }
}

/* Fondo de la tarjeta = color del fondo de la foto (lo calcula main.js) */
.pimg, .plate, .gallery-main, .thumbs button { transition: background .5s; }

/* =====================================================================
   CELULAR (pantallas chicas)
   ===================================================================== */
@media (max-width: 700px) {
  .floating-apple, .scroll-hint, .cursor-glow, .cursor-dot { display: none; }
  .nav { padding: 12px 0; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: .82rem; line-height: 1.1; max-width: 84px; }
  .nav-actions { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
  .cur-toggle button { padding: 5px 8px; font-size: .68rem; }
  .mobile-menu a { font-size: 2rem; }

  .hero { min-height: auto; padding: 118px 0 86px; }
  .display { font-size: clamp(2.3rem, 11.5vw, 3.2rem); }
  .h2 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
  .lead { font-size: .95rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .sec { padding: 64px 0; }
  .intro-head { margin-bottom: 28px; gap: 18px; }
  .intro-head > div[style*="justify-self"] { justify-self: start !important; }
  .marquee span { font-size: .95rem; }
  .path { min-height: 220px; padding: 22px; }
  .split-text { padding: 54px 20px; }
  .split-media { min-height: 300px; }
  .spotlight { margin-bottom: 70px !important; gap: 24px; }
  .stat { padding: 20px 16px; }
  .numlist li { grid-template-columns: 34px 1fr; }
  .cta-band { padding: 34px 22px; border-radius: 24px; }
  .cta-band .actions { justify-content: flex-start; }
  .cta-band .actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Tienda: categorías en una fila deslizable */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 4px 20px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .shop-hero { padding: 118px 0 50px; }
  .shop-bar { flex-direction: column; align-items: stretch; }
  .selects { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .selects #shopSearch { grid-column: 1 / -1; width: 100%; }
  .selects label { flex-direction: column; align-items: stretch; gap: 4px; }
  .selects select { width: 100%; }
  .products-grid { gap: 22px 12px; }
  .pcard h4 { font-size: .84rem; }
  .pcard .quick { display: none; }

  /* Producto */
  .product-page { padding-top: 96px; }
  .pinfo { position: static; padding: 20px; }
  .thumbs button { width: 62px; height: 62px; }
  .desc-box { margin-top: 34px; }

  /* Reparaciones */
  .repair-hero { min-height: auto; padding: 118px 0 50px; }
  .features4 { margin-top: 40px; }
  .features4 > div { padding: 16px; }
  .device-art { max-width: 250px; }
  .device-art .lbl { display: none; }

  /* Contacto */
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards a { border-right: 0; border-bottom: 1px solid var(--line-d); }
  .contact-cards a:last-child { border-bottom: 0; }
  .hours { justify-self: start !important; min-width: 0 !important; }
  .form-grid { grid-template-columns: 1fr; }
  .form-sec > .sec { padding-inline: 20px !important; }
  .form-grid .hero-cta .btn { flex: 1 1 100%; }

  /* Evita que el iPhone haga zoom al escribir */
  input, select, textarea, .field-light, .field-dark { font-size: 16px !important; }

  /* Botones flotantes más chicos */
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float .tip { display: none; }
  .to-top { right: 20px; bottom: 78px; width: 38px; height: 38px; }
  .foot-grid { gap: 26px 20px; }
}

/* Colores con foto */
.opt.has-img { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; }
.opt.has-img img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff; }

/* Color no disponible para la capacidad elegida */
.opt.na { opacity: .38; text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.opt.na:hover { border-color: var(--line-d); }
