/* Femantech — estilos del sitio público (tema futurista oscuro) */
:root {
  --bg: #04070d;
  --bg-2: #070c16;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(140, 170, 255, .12);
  --border-strong: rgba(120, 170, 255, .3);
  --heading: #f3f7ff;
  --text: #c3cee0;
  --muted: #7f8ca3;
  --blue: #3d8eff;
  --blue-deep: #1f66e5;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, #3d8eff 0%, #22d3ee 100%);
  --wa: #1fa855;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.03em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
strong { color: var(--heading); font-weight: 600; }
::selection { background: rgba(61, 142, 255, .35); color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Fondo: cuadrícula tenue + resplandores */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(31, 102, 229, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(34, 211, 238, .08), transparent 60%),
    var(--bg); }
.bg-fx::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(140, 170, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 170, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); }

/* Botones */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.35em; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s; white-space: nowrap; isolation: isolate; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55em 1.05em; font-size: .88rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(100deg, #2b7bff, #17b6e0); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 30px -10px rgba(34, 150, 255, .8); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 14px 40px -8px rgba(34, 180, 255, .9); }
.btn-ghost, .btn-outline { color: var(--heading); background: var(--surface); border-color: var(--border-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover, .btn-outline:hover { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .06); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }

/* Etiquetas */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 500; color: var(--cyan); margin-bottom: 1.1em; }
.eyebrow span { color: var(--muted); }
.eyebrow span::after { content: " //"; color: rgba(127, 140, 163, .6); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text); max-width: 58ch; }
.chip { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .22); padding: .35em .8em; border-radius: 999px; }
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Tarjetas con brillo que sigue al cursor */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .9), rgba(61, 142, 255, .4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 142, 255, .1), transparent 45%);
  opacity: 0; transition: opacity .35s; }
.spot:hover::before, .spot:hover::after, .spot:focus-visible::before { opacity: 1; }

/* Aparición al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Encabezado */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(4, 7, 13, .72); border-color: var(--border); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav-toggle { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--heading); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.site-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; gap: 16px; padding: 12px 20px 24px; background: rgba(4, 7, 13, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-nav.is-open { display: flex; animation: dropIn .35s var(--ease); }
.nav-links { display: flex; flex-direction: column; }
.nav-links a { color: var(--text); font-weight: 500; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.nav-links a[aria-current="page"] { color: var(--heading); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links { flex-direction: row; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .025); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .nav-links a { border: 0; padding: 8px 16px; border-radius: 999px; font-size: .92rem; transition: color .2s, background .2s; }
  .nav-links a:hover { color: var(--heading); background: var(--surface-2); }
  .nav-links a[aria-current="page"] { background: rgba(61, 142, 255, .16); color: #fff; }
}

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; pointer-events: none;
  background-image: linear-gradient(rgba(61, 142, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 142, 255, .35) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: floor 6s linear infinite; opacity: .5; }
@keyframes floor { to { background-position: 0 60px, 0 0; } }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
.status-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(61, 142, 255, .08); color: var(--heading); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cyan); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hero h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 44px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 0; max-width: 520px; }
.hero-stats div { display: flex; flex-direction: column-reverse; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-stats dt { font-size: .66rem; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }
.hero-stats dd { margin: 0 0 4px; font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; color: var(--heading); line-height: 1.1; }
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } }

/* Marcos tipo HUD */
.hud { position: relative; display: block; overflow: hidden; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--bg-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(61, 142, 255, .4); }
.hud img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; filter: saturate(1.05) contrast(1.05); }
.hud:hover img { transform: scale(1.05); }
.hud::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 7, 13, .85), transparent 55%); pointer-events: none; }
.hud-corners { position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 18px 2px, linear-gradient(var(--cyan), var(--cyan)) top left / 2px 18px,
    linear-gradient(var(--cyan), var(--cyan)) top right / 18px 2px, linear-gradient(var(--cyan), var(--cyan)) top right / 2px 18px,
    linear-gradient(var(--cyan), var(--cyan)) bottom left / 18px 2px, linear-gradient(var(--cyan), var(--cyan)) bottom left / 2px 18px,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 18px 2px, linear-gradient(var(--cyan), var(--cyan)) bottom right / 2px 18px;
  background-repeat: no-repeat; opacity: .8; }
.scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, .18), transparent); animation: scan 4.5s linear infinite; }
@keyframes scan { to { top: 110%; } }
.hud-tag { position: absolute; top: 24px; left: 26px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(4, 7, 13, .6); padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 10px #ff4d5e; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hud-caption { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 3; display: grid; gap: 4px; }
.hud-caption .mono { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); }
.hud-caption strong { font-family: var(--font-display); font-size: 1.25rem; color: #fff; line-height: 1.2; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hud-main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.hud-mini { aspect-ratio: 16 / 10; }
.hud-mini .hud-corners { inset: 8px; }
.hero-visual:not(:has(.hud-mini)) .hud-main { aspect-ratio: 4 / 3.4; }

/* Radar (portada sin proyectos) */
.radar { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid var(--border-strong); }
.r1 { inset: 0; box-shadow: 0 0 80px -20px rgba(61, 142, 255, .5) inset; }
.r2 { inset: 17%; border-style: dashed; animation: spin 40s linear infinite; }
.r3 { inset: 34%; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(34, 211, 238, .35), transparent 22%); animation: spin 5s linear infinite; mask-image: radial-gradient(circle, #000 69%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 69%, transparent 70%); }
.radar-core { position: absolute; inset: 40%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(61, 142, 255, .35), rgba(61, 142, 255, .05)); border: 1px solid var(--border-strong); color: var(--cyan); box-shadow: 0 0 40px rgba(34, 211, 238, .35); }
.radar-core .icon { width: 42%; height: 42%; }
.radar-node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-41%); }
.radar-node > span { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(7, 12, 22, .9); border: 1px solid var(--border-strong); color: var(--blue); transform: rotate(calc(var(--a) * -1)); box-shadow: 0 0 24px -6px rgba(61, 142, 255, .6); }
.radar-node { transform: rotate(var(--a)) translateY(calc(min(100vw - 40px, 460px) * -.41)); }
.radar-node .icon { width: 26px; height: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 64px; }
  .radar-node { transform: rotate(var(--a)) translateY(-188px); }
}

/* Cinta de servicios */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: rgba(255, 255, 255, .015); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--heading); white-space: nowrap; }
.ticker i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--grad); box-shadow: 0 0 12px var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones */
.section { position: relative; padding: 88px 0; }
.section-tight { padding: 40px 0 88px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head > p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head-row h2 { margin: 0; }
@media (min-width: 900px) { .section { padding: 128px 0; } }

/* Servicios */
.services-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 1140px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); color: var(--text); transition: transform .35s var(--ease), border-color .35s; overflow: hidden; }
.service-card:hover { transform: translateY(-4px); border-color: transparent; }
.service-num { position: absolute; top: 24px; right: 26px; font-size: .75rem; color: var(--muted); }
.service-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.service-icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--cyan); margin-bottom: 26px; background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, .25), rgba(61, 142, 255, .08)); border: 1px solid rgba(34, 211, 238, .25); box-shadow: 0 0 30px -8px rgba(34, 211, 238, .5); }
.service-icon .icon { width: 26px; height: 26px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.tags li { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; color: var(--heading); margin-top: 6px; }
.link .icon { width: 1em; height: 1em; color: var(--cyan); transition: transform .25s var(--ease); }
.service-card:hover .link .icon { transform: translateX(4px); }

/* Sección: control desde el móvil */
.section-app { overflow: hidden; }
.section-app::before { content: ""; position: absolute; right: -10%; top: 10%; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 142, 255, .22), transparent 60%); pointer-events: none; }
.app-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.app-features { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.app-features li { display: flex; align-items: center; gap: 14px; color: var(--text); }
.app-features li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; color: var(--cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .2); }
.app-features .icon { width: 19px; height: 19px; }
.phone-wrap { display: grid; justify-items: center; gap: 14px; perspective: 1400px; }
.phone { position: relative; width: min(100%, 330px); aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #1b2436, #070b14); box-shadow: 0 0 0 1px rgba(140, 170, 255, .25), 0 0 0 5px #0b111d, 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(61, 142, 255, .7); transform: rotateY(-12deg) rotateX(6deg); transition: transform .8s var(--ease); animation: float 7s ease-in-out infinite; }
.phone-wrap:hover .phone { transform: rotateY(0) rotateX(0); }
@keyframes float { 50% { translate: 0 -12px; } }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #000; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(400px 300px at 100% 0%, rgba(61, 142, 255, .25), transparent 60%), #060a13; }
.ph-status { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; color: var(--heading); padding: 2px 8px 0; min-height: 22px; }
.ph-sys { display: inline-flex; align-items: center; gap: 6px; }
.ph-sys .icon { width: 13px; height: 13px; }
.ph-batt { width: 22px; height: 11px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .6); position: relative; }
.ph-batt::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1px; background: #4ade80; }
.ph-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ph-hello { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--heading); font-size: 1.15rem; line-height: 1.2; }
.ph-place { margin: 0; font-size: .72rem; color: var(--muted); }
.ph-safe { display: inline-flex; align-items: center; gap: 7px; font-size: .66rem; font-weight: 600; color: #6ee7a0; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.ph-safe .pulse { width: 6px; height: 6px; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.ph-safe .pulse::after { border-color: #4ade80; }
.ph-cam { position: relative; flex: none; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: radial-gradient(ellipse at 60% 70%, rgba(80, 110, 150, .55), transparent 60%), linear-gradient(160deg, #1a2a40, #0a1220 70%); }
.ph-cam-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 22px 22px; }
.ph-cam-live { position: absolute; top: 9px; left: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .58rem; color: #fff; background: rgba(0, 0, 0, .5); padding: 3px 7px; border-radius: 5px; letter-spacing: .08em; }
.ph-cam-name { position: absolute; left: 10px; bottom: 8px; font-size: .7rem; font-weight: 600; color: #fff; }
.ph-cam-time { position: absolute; right: 10px; bottom: 8px; font-size: .6rem; color: rgba(255, 255, 255, .8); }
.ph-cam-box { position: absolute; left: 52%; top: 26%; width: 22%; height: 52%; border: 1.5px solid var(--cyan); border-radius: 4px; box-shadow: 0 0 12px rgba(34, 211, 238, .6); animation: track 6s ease-in-out infinite; }
.ph-cam-box span { position: absolute; top: -17px; left: -1px; font-size: .52rem; color: var(--bg); background: var(--cyan); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
@keyframes track { 0%, 100% { left: 52%; } 50% { left: 30%; } }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ph-tile { position: relative; display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; cursor: pointer; transition: background .3s, border-color .3s, box-shadow .3s; }
.ph-tile.is-on { background: linear-gradient(150deg, rgba(61, 142, 255, .28), rgba(34, 211, 238, .08)); border-color: rgba(61, 142, 255, .55); box-shadow: 0 0 24px -8px rgba(61, 142, 255, .8); }
.ph-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--heading); margin-bottom: 6px; }
.ph-tile.is-on .ph-ic { background: var(--grad); color: var(--bg); }
.ph-ic .icon { width: 16px; height: 16px; }
.ph-t { font-size: .66rem; color: var(--muted); }
.ph-v { font-size: .85rem; font-weight: 600; color: var(--heading); }
.ph-sw { position: absolute; top: 12px; right: 12px; width: 26px; height: 15px; border-radius: 999px; background: rgba(255, 255, 255, .15); transition: background .3s; }
.ph-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.ph-tile.is-on .ph-sw { background: var(--cyan); }
.ph-tile.is-on .ph-sw::after { transform: translateX(11px); }
.ph-solar, .ph-wide { cursor: default; }
.ph-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.ph-wide .ph-ic { margin: 0; background: rgba(34, 211, 238, .12); color: var(--cyan); }
.ph-temp { margin-left: auto; font-size: .9rem; color: var(--heading); padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.ph-solar .ph-ic { background: rgba(250, 204, 21, .15); color: #facc15; }
.ph-bar { display: block; width: 100%; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.ph-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #facc15, #fb923c); transition: width 1.2s var(--ease); }
.ph-toast { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(20, 28, 44, .92); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .7rem; line-height: 1.35; color: var(--text); transform: translateY(140%); transition: transform .6s var(--ease); }
.ph-toast.is-shown { transform: none; }
.ph-toast strong { font-size: .74rem; }
.ph-toast .muted { color: var(--muted); }
.ph-toast-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 77, 94, .15); color: #ff6b7a; flex: none; }
.ph-toast-ic .icon { width: 16px; height: 16px; }
.phone-note { font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 0; }
@media (min-width: 960px) { .app-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; } }
@media (max-width: 600px) { .phone { transform: none; } }

/* Proceso */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.process li { position: relative; padding: 28px 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.process .step { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: .85rem; color: var(--bg); background: var(--grad); font-weight: 500; margin-bottom: 22px; box-shadow: 0 0 24px -4px rgba(34, 211, 238, .6); }
.process p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); }
  .process li:not(:last-child)::after { content: ""; position: absolute; top: 49px; left: 82px; right: -10px; height: 1px; background: linear-gradient(90deg, rgba(34, 211, 238, .6), transparent); }
}

/* Tarjetas de proyecto */
.projects-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.project-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); transition: transform .4s var(--ease), border-color .4s; }
.project-card:hover { transform: translateY(-5px); border-color: transparent; }
.project-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0a1120; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.07); }
.project-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 12, 22, .7), transparent 50%); }
.project-card .scan { opacity: 0; transition: opacity .3s; }
.project-card:hover .scan { opacity: 1; }
.photo-count { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(4, 7, 13, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-family: var(--font-mono); font-size: .72rem; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--border); }
.photo-count .icon { width: 14px; height: 14px; }
.project-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-card-body .chip { align-self: flex-start; }
.project-card-body h3 { margin: 14px 0 16px; font-size: 1.15rem; flex: 1; }
.project-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin: 0; }
.meta .icon { width: 16px; height: 16px; }
.arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--heading); transition: background .3s, transform .3s var(--ease), border-color .3s; }
.arrow .icon { width: 16px; height: 16px; }
.project-card:hover .arrow { background: var(--grad); border-color: transparent; color: var(--bg); transform: rotate(-45deg); }

/* Nosotros */
.about-grid { display: grid; gap: 48px; }
.mv { display: grid; gap: 14px; margin-top: 32px; }
.mv .glass { padding: 22px 24px; }
.mv .label { color: var(--cyan); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.mv p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.values li { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.value-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; color: var(--cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .2); }
.values h3 { margin: 0 0 4px; font-size: 1.08rem; }
.values p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (min-width: 700px) { .mv { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .about-grid { grid-template-columns: 1.15fr 1fr; gap: 72px; } }

/* Contacto */
.contact-grid { display: grid; gap: 48px; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.ci { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--cyan); }
.ci .icon { width: 19px; height: 19px; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--heading); }
.contact-form { position: relative; padding: 26px; display: grid; gap: 16px; box-shadow: 0 40px 100px -40px rgba(31, 102, 229, .5); }
.contact-form label { display: grid; gap: 8px; font-weight: 500; font-size: .85rem; color: var(--heading); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.contact-form input, .contact-form select, .contact-form textarea { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 16px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border); background: rgba(4, 7, 13, .6); color: var(--heading); width: 100%; transition: border-color .2s, box-shadow .2s; }
.contact-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form select option { background: var(--bg-2); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15), 0 0 24px -6px rgba(34, 211, 238, .5); }
.contact-form .hud-corners { inset: -1px; opacity: .6; }
.field-row { display: grid; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; margin: 0; font-weight: 500; font-size: .95rem; }
.notice-ok { background: rgba(34, 197, 94, .1); color: #6ee7a0; border: 1px solid rgba(34, 197, 94, .3); }
.notice-error { background: rgba(239, 68, 68, .1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .3); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } .contact-form { padding: 34px; } }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; } }

/* Página de proyectos */
.page-hero { position: relative; padding: 150px 0 40px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-hero .lead { margin: 0; color: var(--muted); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 24px; margin-bottom: 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: .9rem; background: var(--surface); transition: border-color .2s, color .2s; }
.filters a:hover { border-color: var(--border-strong); color: var(--heading); }
.filters a span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.filters a[aria-current="page"] { background: rgba(61, 142, 255, .15); border-color: rgba(61, 142, 255, .6); color: #fff; box-shadow: 0 0 20px -6px rgba(61, 142, 255, .7); }
.filters a[aria-current="page"] span { color: var(--cyan); }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty > .icon { width: 48px; height: 48px; color: var(--cyan); }
.empty h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* Detalle de proyecto */
.project-detail { padding-top: 120px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9rem; margin-bottom: 26px; color: var(--muted); transition: color .2s; }
.back-link:hover { color: var(--heading); }
.back-link .icon { width: 18px; height: 18px; }
.project-head h1 { margin: 16px 0 14px; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 22ch; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .95rem; }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row .icon { width: 17px; height: 17px; color: var(--cyan); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 32px 0 44px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); aspect-ratio: 1; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.is-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery-item.is-main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  /* 1 foto: ancho completo · 2 fotos: dos columnas iguales */
  .gallery:has(.gallery-item:only-child) .gallery-item.is-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .gallery:has(> .gallery-item:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
  .gallery:has(> .gallery-item:nth-child(2):last-child) .gallery-item { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
}
.project-body { display: grid; gap: 32px; }
.prose { font-size: 1.08rem; max-width: 70ch; }
.legal-col { max-width: 860px; margin-inline: auto; }
.legal-hero { padding-bottom: 24px; }
.legal { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .02); font-size: 1.04rem; }
.legal > :first-child { margin-top: 0; }
.legal h2 { font-size: 1.3rem; margin: 2em 0 .7em; padding-top: 1.4em; border-top: 1px solid var(--border); scroll-margin-top: 110px; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }
@media (min-width: 700px) { .legal p, .legal li { text-align: justify; hyphens: auto; } }
.legal p { margin: 0 0 1em; }
.legal strong { color: var(--text); }
.legal ul, .legal ol { margin: 0 0 1em; padding-left: 1.4em; display: grid; gap: .6em; }
.legal li::marker { color: var(--cyan); }
.legal a { color: var(--cyan); word-break: break-word; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cyan); }
.cta-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: linear-gradient(160deg, rgba(61, 142, 255, .12), rgba(34, 211, 238, .03)); display: grid; gap: 12px; align-self: start; box-shadow: 0 30px 80px -40px rgba(61, 142, 255, .6); }
.cta-card h2 { font-size: 1.5rem; margin: 0; }
.cta-card p { margin: 0 0 6px; color: var(--muted); }
@media (min-width: 980px) {
  .project-body { grid-template-columns: 1fr 360px; gap: 64px; }
  .cta-card { position: sticky; top: 104px; }
}

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2, 4, 8, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 12px; user-select: none; box-shadow: 0 0 80px -20px rgba(61, 142, 255, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .06); border: 1px solid var(--border-strong); color: #fff; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(61, 142, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: .85rem; margin: 0; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 8px; } .lb-prev { left: 16px; } .lb-next { right: 16px; } }

/* Soporte y tickets */
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.support-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .support-grid { grid-template-columns: 1.5fr 1fr; gap: 40px; } .support-side { position: sticky; top: 100px; } }
.ticket-form { position: relative; padding: 24px; display: grid; gap: 22px; box-shadow: 0 40px 100px -40px rgba(31, 102, 229, .5); }
.ticket-form .hud-corners { inset: -1px; opacity: .6; }
@media (min-width: 600px) { .ticket-form { padding: 34px; } }
.form-title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 0; }
.form-title .icon { color: var(--cyan); }
.ticket-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticket-form legend { padding: 0; margin-bottom: 14px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.ticket-form label, .field-label { display: grid; gap: 8px; font-weight: 500; font-size: .85rem; color: var(--heading); margin: 0; }
.opt { color: var(--muted); font-weight: 400; font-size: .78rem; }
.ticket-form input:not([type="radio"]):not([type="file"]), .ticket-form select, .ticket-form textarea, .lookup input { font: inherit; font-size: 16px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border); background: rgba(4, 7, 13, .6); color: var(--heading); width: 100%; transition: border-color .2s, box-shadow .2s; }
.ticket-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ticket-form select option { background: var(--bg-2); }
.ticket-form input[type="date"] { color-scheme: dark; min-height: 50px; }
.ticket-form :is(input, select, textarea):focus, .lookup input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15), 0 0 24px -6px rgba(34, 211, 238, .5); }
.ticket-form ::placeholder, .lookup ::placeholder { color: #56627a; }
.field-error { color: #fca5a5; font-size: .84rem; font-weight: 500; margin: 0; }
.hint { color: var(--muted); font-size: .86rem; margin: 0; }
.hint.center { text-align: center; }
.urgency { display: grid; gap: 8px; }
@media (min-width: 600px) { .urgency { grid-template-columns: 1fr 1fr; } .urgency .field-label, .urgency .field-error { grid-column: 1 / -1; } }
.urgency-opt { position: relative; display: flex !important; align-items: flex-start; gap: 12px !important; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; --c: var(--blue); }
.urgency-opt input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 50%; border: 2px solid var(--border-strong); background: transparent; transition: border-color .2s, box-shadow .2s; }
.urgency-opt input:checked { border: 5px solid var(--c); box-shadow: 0 0 12px -2px var(--c); }
.urgency-opt span { display: grid; gap: 2px; }
.urgency-opt strong { font-size: .95rem; }
.urgency-opt small { color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.35; }
.urgency-opt:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.urgency-opt:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.prio-urgente { --c: #f87171; } .prio-alta { --c: #fb923c; } .prio-media { --c: #3d8eff; } .prio-baja { --c: #34d399; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
.photo, .photo-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-loading img { opacity: .55; }
.photo.no-preview::before { content: "Foto"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.photo-remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 999px; background: rgba(4, 7, 13, .75); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.photo-remove .icon { width: 16px; height: 16px; }
.photo-add { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px !important; border: 1.5px dashed rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .05); color: var(--cyan) !important; font-weight: 600; font-size: .8rem !important; cursor: pointer; text-align: center; }
.photo-add .icon { width: 26px; height: 26px; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--cyan); transition: width .2s; }

.support-side { display: grid; gap: 16px; }
.lookup, .steps-card { padding: 24px; display: grid; gap: 14px; }
.lookup-row { display: flex; gap: 8px; }
.lookup-row input { text-transform: uppercase; letter-spacing: .08em; min-width: 0; }
.steps-card .eyebrow { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; }
.steps li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--cyan); font-size: .75rem; }
.steps strong { font-size: .95rem; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.emergency { display: flex; gap: 14px; align-items: center; padding: 18px 20px; color: var(--text); font-size: .92rem; line-height: 1.45; transition: border-color .2s; }
.emergency .ci { color: #4ade80; }
.emergency:hover { border-color: rgba(74, 222, 128, .5); }

/* Mapa para marcar la ubicación (estilo Uber: el pin queda en el centro) */
.map-picker { display: grid; gap: 10px; }
.map-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.map-search input { font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(4, 7, 13, .6); color: var(--heading); width: 100%; min-width: 0; }
.map-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.map-search [data-map-locate] { grid-column: 1 / -1; }
@media (min-width: 520px) { .map-search { grid-template-columns: 1fr auto auto; } .map-search [data-map-locate] { grid-column: auto; } }
.map-results { list-style: none; margin: 0; padding: 6px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-2); display: grid; gap: 2px; font-size: .88rem; }
.map-results li.muted { padding: 8px 10px; }
.map-results button { display: grid; gap: 1px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.map-results small { color: var(--muted); font-size: .78rem; }
.map-results strong { font-weight: 600; }
.map-results button:hover, .map-results button:focus-visible { background: rgba(61, 142, 255, .14); color: var(--heading); }
.map-frame { position: relative; height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong); background: #0b111d; }
@media (min-width: 700px) { .map-frame { height: 320px; } }
.map-frame .map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -100%); color: var(--cyan); pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)) drop-shadow(0 0 10px rgba(34, 211, 238, .6)); transition: transform .2s var(--ease); }
.map-pin .icon { width: 42px; height: 42px; fill: rgba(4, 7, 13, .85); stroke-width: 2.2; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 4px; margin-left: -4px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.map-picker.is-moving .map-pin { transform: translate(-50%, -115%); }
.map-picker:not(.is-set) .map-pin { color: #9fb0c8; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.map-hint { position: absolute; left: 50%; bottom: 12px; z-index: 500; transform: translateX(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(4, 7, 13, .85); border: 1px solid var(--border-strong); color: var(--heading); font-size: .75rem; pointer-events: none; transition: opacity .3s; }
.map-picker.is-set .map-hint { opacity: 0; }
.map-status { margin: 0; font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.map-picker.is-set .map-status span { color: #6ee7a0; }
.map-clear { border: 0; background: none; padding: 0; font: inherit; color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Mapa oscuro para combinar con el sitio */
.map-frame .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.9) contrast(.9) saturate(.55); }
.map-frame .leaflet-control-attribution { background: rgba(4, 7, 13, .75) !important; color: var(--muted); font-size: 10px; }
.map-frame .leaflet-control-attribution a { color: var(--text); }
.map-frame .leaflet-bar a { background: var(--bg-2); color: var(--heading); border-color: var(--border); }

/* Seguimiento del ticket */
.ticket-hero { padding-bottom: 28px; }
.ticket-hero .back-link { display: flex; width: fit-content; }
.ticket-code { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 0 0 16px; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); }
.badge.prio-urgente, .badge.prio-alta, .badge.prio-media, .badge.prio-baja { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.status-nuevo { color: #9cc3ff; } .status-agendado { color: var(--cyan); border-color: rgba(34, 211, 238, .4); } .status-en_proceso { color: #fcd34d; border-color: rgba(252, 211, 77, .4); }
.status-resuelto { color: #6ee7a0; border-color: rgba(110, 231, 160, .45); background: rgba(34, 197, 94, .1); } .status-cancelado { color: #fca5a5; border-color: rgba(252, 165, 165, .4); }
.ticket-layout { display: grid; gap: 20px; align-items: start; }
.ticket-main, .ticket-side { display: grid; gap: 20px; }
@media (min-width: 980px) { .ticket-layout { grid-template-columns: 1.6fr 1fr; gap: 32px; } }
.ticket-main > .glass, .ticket-side > .glass:not(.emergency) { padding: 24px; }
.ticket-main .eyebrow, .ticket-side .eyebrow { margin-bottom: .8em; }
.created { display: flex; gap: 16px; border-color: rgba(110, 231, 160, .4) !important; background: linear-gradient(160deg, rgba(34, 197, 94, .12), rgba(34, 211, 238, .03)); }
.created h2 { font-size: 1.35rem; margin-bottom: .4em; }
.created p { color: var(--text); }
.created-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(34, 197, 94, .18); color: #6ee7a0; }
.created-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tracker { list-style: none; margin: 0; padding: 22px 8px 4px; display: grid; grid-template-columns: repeat(4, 1fr); }
.tracker li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: .8rem; }
.tracker li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--border); }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.current::before { background: var(--grad); box-shadow: 0 0 10px var(--cyan); }
.tracker .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg); }
.tracker .dot .icon { width: 16px; height: 16px; }
.tracker li.done .dot { background: var(--grad); border-color: transparent; color: var(--bg); }
.tracker li.current { color: var(--heading); font-weight: 600; }
.tracker li.current .dot { border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(34, 211, 238, .15), 0 0 20px var(--cyan); }
.tracker li.current:not(:last-child) .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); animation: blink 1.6s ease-in-out infinite; }
.tracker li.current:last-child .dot { background: var(--grad); color: var(--bg); border-color: transparent; }
@keyframes blink { 50% { opacity: .3; } }
.appointment { display: flex; gap: 16px; align-items: flex-start; }
.appointment .label { margin: 0 0 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.appointment .big { font-family: var(--font-display); font-size: 1.3rem; color: var(--heading); margin: 0 0 6px; line-height: 1.25; }
.appointment p:last-child { margin: 0; font-size: .9rem; }
.pre { white-space: pre-line; }
.detail .pre:last-child, .report .pre:last-child { margin-bottom: 0; }
.report { border-color: rgba(110, 231, 160, .35) !important; }
.report h2 { font-size: 1.5rem; margin-bottom: .2em; }
.report h3 { font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); margin: 20px 0 6px; font-weight: 500; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 16px; }
.thumbs a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.thumbs a:hover img { transform: scale(1.06); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--border-strong); display: grid; gap: 16px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.timeline li:first-child::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.timeline span { font-size: .74rem; }
.timeline p { margin: 2px 0 0; font-size: .92rem; }

/* Pie de página */
.site-footer { position: relative; padding: 40px 0 28px; border-top: 1px solid var(--border); background: linear-gradient(to bottom, transparent, rgba(31, 102, 229, .06)); overflow: hidden; font-size: .94rem; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 30px; margin: 0 0 64px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: radial-gradient(600px 200px at 0% 0%, rgba(61, 142, 255, .25), transparent), radial-gradient(500px 200px at 100% 100%, rgba(34, 211, 238, .15), transparent), var(--bg-2); }
.footer-cta h2 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.footer-cta .eyebrow { margin-bottom: .6em; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 36ch; }
.footer-title { color: var(--heading); font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: var(--text); transition: color .2s; }
.site-footer a:hover { color: var(--heading); }
.footer-contact li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.footer-contact .icon { width: 17px; height: 17px; color: var(--cyan); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, box-shadow .2s, color .2s; }
.social a:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 20px -6px var(--cyan); }
.footer-wordmark { margin: 56px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 15vw, 12rem); line-height: .8; letter-spacing: -.05em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(140, 170, 255, .16); user-select: none; background: linear-gradient(to bottom, rgba(61, 142, 255, .12), transparent 80%); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 22px; font-size: .82rem; color: var(--muted); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 64px; } .footer-cta { padding: 44px 48px; } }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 18px; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 14px 34px -8px rgba(31, 168, 85, .8); transition: transform .25s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float .icon { width: 30px; height: 30px; }
body.lightbox-open .wa-float { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scan { display: none; }
  .phone { transform: none; }
}
