/* Plan: dark, single-world page. Near-black ground, one magenta accent used for
   emphasis only. Montserrat for display, Manrope for reading.
   Layout: stacked sections, each a grid of modules with hairline borders. */
:root {
  --bg: #0a0710;
  --bg-2: #120c1c;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f2f8;
  --muted: #a79eb5;
  --accent: #ff4fa3;
  --accent-deep: #c52e7a;
  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/fondo.webp") center / cover no-repeat;
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; }

/* Header */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 18px;
}
.wordmark { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; font-size: 20px; }
.wordmark span { color: var(--accent); }
.wordmark small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10px; letter-spacing: 0.5em; color: var(--muted); margin-top: 2px; }
header.top {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: rgba(10, 7, 16, 0.72);
  box-shadow: 0 0 0 100vmax rgba(10, 7, 16, 0.72);
  clip-path: inset(0 -100vmax);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav.menu { display: flex; align-items: center; gap: 30px; }
nav.menu a.link {
  position: relative; text-decoration: none; color: var(--muted);
  font-size: 15px; font-weight: 600; padding: 6px 0; transition: color 0.2s ease;
}
nav.menu a.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
nav.menu a.link:hover, nav.menu a.link.active { color: var(--text); }
nav.menu a.link:hover::after, nav.menu a.link.active::after { transform: scaleX(1); }
.nav-cta {
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--text);
  background: rgba(255, 79, 163, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { background: var(--accent); color: #1a0812; box-shadow: 0 0 24px -4px var(--accent); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; border-radius: 12px; font-size: 20px; cursor: pointer;
}
section { scroll-margin-top: 90px; }

/* Hero */
.hero {
  padding: 48px 0 64px;
  display: grid; gap: 24px; align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}
.hero-text { display: grid; gap: 22px; min-width: 0; justify-items: start; }
.hero-visual { min-width: 0; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 5% 0 5%;
  background: radial-gradient(closest-side, rgba(255, 79, 163, 0.45), transparent 75%);
  filter: blur(30px); z-index: -1;
}
.hero-visual::after {
  content: ""; position: absolute; left: 8%; right: 4%; bottom: -14px; height: 40px;
  background: radial-gradient(closest-side, rgba(255, 79, 163, 0.55), transparent);
  filter: blur(10px); z-index: -1;
}
.hero-visual img {
  display: block; width: 108%; max-width: none; height: auto; margin-left: -4%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(22px, 2.5vw, 35px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; text-wrap: initial; }
.hero h1 .l1, .hero h1 em { display: block; white-space: nowrap; }
.hero .lead { font-size: 18px; color: #d9d2e3; max-width: 46ch; }
.hero .eyebrow { font-size: 11px; }
.hero .rule { width: 120px; height: 4px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.pillars svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255,79,163,.5)); }
.pillars > div { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 0 22px; }
.pillars > div + div { border-left: 2px solid var(--accent); }
.pillars > div:first-child { padding-left: 0; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero p.lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: #e6e0ee; max-width: 34ch; margin: 0; }
.hero .rule { margin-top: 4px; }
.pillars { margin-top: 4px; }
.pillars span { font-family: var(--font-display); font-weight: 500; font-size: 13px; }
.pillars svg { width: 28px; height: 28px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--accent); color: #1a0812; box-shadow: 0 10px 40px -10px rgba(255, 79, 163, 0.6); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn:hover { transform: translateY(-2px); }
.pillars { display: flex; flex-wrap: wrap; row-gap: 20px; }
.pillars span { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 640px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.card .tag { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; font-weight: 600; }
.card h3 { font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Divisiones */
.title-line { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.title-line h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; white-space: nowrap; }
.title-line::after {
  content: ""; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 79, 163, 0));
  box-shadow: 0 0 10px rgba(255, 79, 163, 0.5);
}
.divs { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.div-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 16px 28px; border-radius: 18px; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.div-card:hover { transform: translateY(-4px); border-color: rgba(255, 79, 163, 0.55); box-shadow: 0 14px 40px -16px rgba(255, 79, 163, 0.55); }
.div-card svg {
  width: 48px; height: 48px; margin-bottom: 10px;
  stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 79, 163, 0.45));
}
.div-card h3 { font-size: 19px; font-weight: 700; line-height: 1.15; }
.div-card h3 span { display: block; color: var(--accent); }
.div-card p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: #e2dbea; }
@media (max-width: 1000px) { .divs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .divs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-line h2 { white-space: normal; }
}

/* Portafolio destacado */
.pf { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pf-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 16px 14px 24px; border-radius: 18px; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pf-card:hover { transform: translateY(-4px); border-color: rgba(255, 79, 163, 0.55); box-shadow: 0 14px 40px -16px rgba(255, 79, 163, 0.55); }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px 5px 6px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(34, 120, 60, 0.35); border: 1px solid rgba(74, 222, 128, 0.45);
}
.badge i {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #2fbf5b; font-style: normal; font-size: 12px; color: #fff;
}
.badge.dev { background: rgba(120, 70, 200, 0.3); border-color: rgba(180, 140, 255, 0.5); padding-left: 8px; }
.badge.dev svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; }
.pf-card .shot-img { width: 100%; height: auto; display: block; border-radius: 6px; }
.pf-name { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; }
.pf-name svg {
  flex: none; width: 30px; height: 30px; stroke: var(--accent); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(255, 79, 163, 0.45));
}
.pf-name h3 { font-size: 17px; font-weight: 700; line-height: 1.15; text-align: left; }
.pf-card p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #e2dbea; }
@media (max-width: 1000px) { .pf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .pf { grid-template-columns: 1fr; } }

/* Cierre */
.cta-row { display: flex; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; }
.cta-row .wa-pill { flex: 0 1 auto; }
.wa-pill .txt { flex: 0 1 auto; margin-right: 24px; }
.wa-pill {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 16px 16px 26px; border-radius: 999px; text-decoration: none; color: #1a0812;
  background: linear-gradient(180deg, #ffb3d9 0%, #ff7fc0 55%, #ff63b2 100%);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 79, 163, 0.6), 0 0 34px rgba(255, 79, 163, 0.55), inset 0 2px 10px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-pill:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 79, 163, 0.8), 0 0 50px rgba(255, 79, 163, 0.75), inset 0 2px 10px rgba(255, 255, 255, 0.5); }
.wa-pill .wa-ico { width: 48px; height: 48px; flex: none; }
.wa-pill .sep { width: 2px; align-self: stretch; margin: 6px 0; background: rgba(26, 8, 18, 0.7); }
.wa-pill .txt { flex: 1; min-width: 0; line-height: 1.1; }
.wa-pill .txt small { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.wa-pill .txt strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); white-space: nowrap; letter-spacing: -0.01em; }
.wa-pill .go { width: 52px; height: 52px; flex: none; border-radius: 50%; background: #12070d; color: #fff; display: grid; place-items: center; }
.wa-pill .go svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vbar { width: 3px; height: 90px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.slogan { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.2; margin: 0; }
.slogan em { color: var(--accent); font-style: italic; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.info-row > * { display: flex; align-items: center; gap: 14px; }
.info-row .vb { width: 3px; height: 36px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.loc { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.loc svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 1.4; }
.socials { gap: 14px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--accent); color: #fff; transition: background 0.2s ease, box-shadow 0.2s ease;
}
.socials a:hover { background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.brandline { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: 0.12em; }
#contacto { border-top: 0; padding-top: 16px; padding-bottom: 56px; }
#portafolio { padding-bottom: 40px; }
footer.site-foot {
  position: relative; padding: 44px 0 36px; text-align: center;
  background: linear-gradient(180deg, rgba(10, 7, 16, 0.2), rgba(10, 7, 16, 0.75));
}
footer.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  box-shadow: 0 0 16px var(--accent); opacity: 0.8;
}
.foot-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 0; }
.foot-row img { height: 44px; width: auto; display: block; margin-right: 30px; }
.foot-row a {
  display: inline-flex; align-items: center; gap: 10px;
  color: #f1ecf6; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 4px 24px; border-left: 2px solid var(--accent);
  transition: color 0.2s ease;
}
.foot-row a:hover { color: var(--accent); }
.foot-row a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
footer.site-foot .wrap { display: block; }
.info-row[hidden] { display: none; }
.foot-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px; color: #b9afc6;
}
.foot-bottom .copy { justify-self: start; margin: 0; }
.foot-bottom .place { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom .place svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.foot-bottom .socials { display: flex; gap: 10px; }
.foot-bottom .socials a { width: 32px; height: 32px; border-width: 1.5px; }
.foot-bottom .socials svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .foot-bottom { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .foot-bottom .copy, .foot-bottom .place { justify-self: center; }
  .foot-bottom .socials { order: -1; }
}
@media (max-width: 760px) {
  .foot-row { flex-direction: column; gap: 12px; }
  .foot-row img { margin: 0 0 8px; }
  .foot-row a { border-left: 0; padding: 4px 0; }
}
@media (max-width: 900px) {
  .cta-row { flex-direction: column; gap: 24px; text-align: center; }
  .vbar { display: none; }
  .info-row { justify-content: center; }
  .info-row .vb { display: none; }
}
@media (max-width: 480px) {
  .wa-pill { padding: 12px 12px 12px 16px; gap: 12px; }
  .wa-pill .wa-ico { width: 36px; height: 36px; }
  .wa-pill .go { width: 42px; height: 42px; }
  .wa-pill .txt small { font-size: 12px; }
}

/* Ventanas legales */
dialog.legal {
  width: min(780px, calc(100% - 32px)); max-height: min(86vh, 900px);
  padding: 0; border: 1px solid rgba(255, 79, 163, 0.35); border-radius: 20px;
  background: #120a19; color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(255, 79, 163, 0.35);
}
dialog.legal::backdrop { background: rgba(5, 2, 8, 0.75); backdrop-filter: blur(4px); }
dialog.legal[open] { display: flex; flex-direction: column; }
.legal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 28px; border-bottom: 1px solid var(--line);
}
.legal-head h2 { font-size: 22px; font-weight: 700; }
.legal-head .upd { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.legal-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); font-size: 18px;
}
.legal-close:hover { background: var(--accent); color: #1a0812; }
.legal-body { padding: 8px 28px 32px; overflow-y: auto; font-size: 15px; line-height: 1.65; color: #ddd5e6; }
.legal-body h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 26px 0 8px; }
.legal-body p { margin: 0 0 10px; }
.legal-body ul { margin: 0 0 10px; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: #fff; }
.legal-body a { color: var(--accent); }
.ph { background: rgba(255, 79, 163, 0.14); border: 1px dashed rgba(255, 79, 163, 0.6); border-radius: 4px; padding: 0 5px; color: #ffc2e1; white-space: nowrap; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 14px; }
.legal-body th, .legal-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { color: #fff; font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ===== Asistente ALCRIX (chatbot 3D) ===== */
.bot-launch {
  position: fixed; right: 12px; bottom: 8px; z-index: 90;
  width: 170px; height: 250px; padding: 0; cursor: pointer;
  border: 0; background: none; border-radius: 20px;
}
.bot-launch::before {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 2px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 79, 163, 0.7), transparent);
  filter: blur(4px); animation: botFloor 3s ease-in-out infinite;
}
@keyframes botFloor { 0%, 100% { opacity: 0.6; transform: scaleX(0.9); } 50% { opacity: 1; transform: scaleX(1.05); } }
.bot-launch canvas, .bot-launch .standing {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 0 14px rgba(255, 79, 163, 0.55));
}
.bot-launch .standing { object-fit: contain; object-position: center bottom; padding: 6px 18px 10px; transition: opacity 0.5s ease; }
.bot-launch:hover .standing, .bot-launch:hover canvas { filter: drop-shadow(0 0 22px rgba(255, 79, 163, 0.85)); }
.bot-launch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bot-tip {
  position: fixed; right: 150px; bottom: 210px; z-index: 90; cursor: pointer;
  background: #fff; color: #1a0812; font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bot-tip.hide { opacity: 0; transform: translateY(6px); pointer-events: none; }
.bot-panel {
  position: fixed; right: 186px; bottom: 24px; z-index: 95;
  width: 380px; height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(18, 8, 26, 0.97); border: 1px solid rgba(255, 79, 163, 0.35); border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85), 0 0 40px -12px rgba(255, 79, 163, 0.5);
  transform-origin: bottom right; transition: opacity 0.25s ease, transform 0.25s ease;
}
.bot-panel[hidden] { display: flex; opacity: 0; transform: scale(0.92) translateY(10px); pointer-events: none; visibility: hidden; }
.bot-stage {
  position: relative; flex: none; height: 210px; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 55%, rgba(255, 0, 199, 0.22), transparent 65%), #0d0613;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bot-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bot-stage .fb { position: absolute; left: 50%; top: 8px; height: 190%; transform: translateX(-50%); transition: opacity 0.5s; }
.bot-stage .st { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 11px; color: #cbb9da; background: rgba(0, 0, 0, 0.45); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.bot-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #2fd16b; box-shadow: 0 0 10px #2fd16b; flex: none; }
.bot-head b { font-family: var(--font-display); font-size: 15px; display: block; }
.bot-head small { font-size: 12px; color: var(--muted); }
.bot-head .x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font-size: 15px; }
.bot-head .x:hover { background: var(--accent); color: #1a0812; }
.bot-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.bot-msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.bot-msg.b { background: #2a1040; align-self: flex-start; border-bottom-left-radius: 4px; }
.bot-msg.u { background: linear-gradient(135deg, var(--accent), #b3008c); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-msg.typing { color: var(--muted); font-style: italic; }
.bot-msg a.wa-link { display: inline-block; margin-top: 8px; padding: 7px 12px; border-radius: 999px; background: #25d366; color: #062b14; font-weight: 700; text-decoration: none; font-size: 13px; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.bot-chips button { background: transparent; border: 1px solid #5a2a73; color: #d8c8e6; padding: 6px 11px; font-size: 12px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.bot-chips button:hover { border-color: var(--accent); color: #fff; }
.bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bot-form input { flex: 1; min-width: 0; background: #0f0618; border: 1px solid #3a1450; color: var(--text); border-radius: 12px; padding: 11px 12px; font-size: 14px; font-family: inherit; outline: none; }
.bot-form input:focus { border-color: var(--accent); }
.bot-form button { background: var(--accent); color: #1a0812; border: 0; border-radius: 12px; padding: 0 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
@media (max-width: 520px) {
  .bot-panel { right: 8px; left: 8px; width: auto; bottom: 116px; height: calc(100dvh - 196px); }
  .bot-launch { right: 0; bottom: 0; width: 74px; height: 110px; }
  .bot-tip { right: 70px; bottom: 82px; font-size: 13px; }
}

.bot-launch .standing[hidden] { display: none; }
.bot-tip {
  background: linear-gradient(135deg, rgba(70, 22, 92, 0.95), rgba(30, 10, 42, 0.95));
  color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 12px;
  border: 1px solid rgba(255, 110, 200, 0.7); border-radius: 12px 12px 3px 12px;
  box-shadow: 0 0 14px rgba(255, 79, 163, 0.45), 0 8px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.bot-tip b { color: var(--accent); font-weight: 700; }

/* ===== Chat v2 (diseño vidrio + neón) ===== */
.bot-panel {
  width: 430px; height: min(700px, calc(100vh - 48px));
  border-radius: 30px; border: 1.5px solid rgba(255, 110, 200, 0.75);
  background: linear-gradient(180deg, rgba(40, 14, 52, 0.96), rgba(20, 7, 28, 0.97));
  box-shadow: 0 0 0 1px rgba(255, 79, 163, 0.25), 0 0 28px rgba(255, 79, 163, 0.45), inset 0 0 40px rgba(255, 79, 163, 0.08), 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bot-head { position: relative; gap: 14px; padding: 18px 18px 18px 20px; border-bottom: 0; }
.bot-head::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255, 79, 163, 0.9) 75%, rgba(255,255,255,.9) 88%, transparent);
  box-shadow: 0 0 8px rgba(255, 79, 163, 0.6);
}
.bot-av { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 14px rgba(255, 79, 163, 0.7); }
.bot-av img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.bot-av::after { content: ""; position: absolute; right: -1px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #2fd16b; border: 2px solid #1d0a26; box-shadow: 0 0 8px #2fd16b; }
.bot-head b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.bot-head b span { color: var(--accent); }
.bot-head small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #d8c8e6; margin-top: 3px; }
.bot-head small i { width: 8px; height: 8px; border-radius: 50%; background: #2fd16b; box-shadow: 0 0 8px #2fd16b; }
.bot-head .x { width: 40px; height: 40px; font-size: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.bot-log { padding: 16px 16px 8px; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,79,163,.4) transparent; }
.bot-welcome {
  position: relative; flex: none; display: flex; align-items: center; min-height: 128px;
  padding: 16px 150px 16px 18px; border-radius: 22px; margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(120, 40, 140, 0.55), rgba(60, 18, 80, 0.6));
  border: 1px solid rgba(255, 140, 210, 0.45);
  box-shadow: inset 0 0 22px rgba(255, 79, 163, 0.15), 0 0 18px -6px rgba(255, 79, 163, 0.6);
  font-size: 16px; line-height: 1.38; color: #fff;
}
.bot-welcome::after {
  content: ""; position: absolute; left: 26px; bottom: -11px; width: 22px; height: 22px;
  background: inherit; border: inherit; border-top: 0; border-right: 0;
  transform: skewY(-35deg) rotate(-10deg); border-bottom-left-radius: 4px;
  background: rgba(70, 22, 92, 0.9);
}
.bot-welcome strong { color: var(--accent); }
.bot-welcome img {
  position: absolute; right: 4px; bottom: 0; width: 150px; height: auto;
  filter: drop-shadow(0 0 12px rgba(255, 79, 163, 0.5));
  animation: wave 3.2s ease-in-out infinite; transform-origin: 50% 100%;
}
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg) translateY(-2px); } }
.bot-actions { flex: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: 8px 0 4px; }
.bot-act {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 26px 12px 12px; border-radius: 16px; text-align: left; cursor: pointer; color: #fff; font-family: inherit;
  background: linear-gradient(160deg, rgba(90, 30, 110, 0.55), rgba(40, 12, 55, 0.7));
  border: 1px solid rgba(255, 110, 200, 0.55);
  box-shadow: inset 0 0 14px rgba(255, 79, 163, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bot-act.wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 12px; padding: 14px 28px 14px 14px; }
.bot-act:hover { transform: translateY(-2px); border-color: #ff8fd0; box-shadow: inset 0 0 14px rgba(255, 79, 163, 0.18), 0 0 18px -4px rgba(255, 79, 163, 0.7); }
.bot-act svg.ic { width: 30px; height: 30px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(255, 79, 163, 0.6)); margin-bottom: 4px; }
.bot-act.wide svg.ic { width: 34px; height: 34px; margin: 0; }
.bot-act b { font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1.15; }
.bot-act small { font-size: 11.5px; color: #d6c6e4; line-height: 1.3; }
.bot-act::after { content: "›"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #fff; opacity: 0.85; }
.bot-sugg {
  display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; padding: 8px 10px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto; scrollbar-width: none;
}
.bot-sugg > span { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; font-size: 12.5px; color: #fff; }
.bot-sugg > span svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.bot-sugg button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: #fff;
  background: rgba(255, 79, 163, 0.06); border: 1px solid rgba(255, 110, 200, 0.6);
}
.bot-sugg button:hover { background: rgba(255, 79, 163, 0.2); }
.bot-form {
  margin: 0 12px 12px; padding: 8px; gap: 8px; border-radius: 22px; border-top: 0;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 110, 200, 0.35);
}
.bot-form .clip { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 0; }
.bot-form .clip svg { width: 20px; height: 20px; stroke: #e8dcf2; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.bot-form input { border-radius: 16px; background: rgba(10, 4, 16, 0.6); border-color: rgba(255,255,255,.1); padding: 12px 14px; }
.bot-form button.send {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 16px;
  background: linear-gradient(180deg, #ff5fbf, #e0168f); color: #fff; font-size: 15px;
  box-shadow: 0 0 16px rgba(255, 79, 163, 0.6);
}
.bot-form button.send svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linejoin: round; }
.bot-msg.b { background: rgba(80, 26, 104, 0.75); border: 1px solid rgba(255, 140, 210, 0.25); }
@media (max-width: 520px) {
  .bot-panel { width: auto; height: calc(100vh - 170px); }
  .bot-welcome { padding-right: 112px; font-size: 14.5px; min-height: 110px; }
  .bot-welcome img { width: 112px; }
  .bot-act.wide { grid-column: span 6; }
  .bot-act { grid-column: span 3; }
  .bot-act:nth-child(3) { grid-column: span 6; }
}

/* ===== Chat compacto (todo visible sin bajar) ===== */
.bot-panel { width: 400px; height: auto; max-height: calc(100vh - 40px); }
.bot-head { padding: 12px 14px 12px 16px; gap: 11px; }
.bot-av { width: 44px; height: 44px; }
.bot-av::after { width: 11px; height: 11px; }
.bot-head b { font-size: 16.5px; }
.bot-head small { font-size: 11.5px; margin-top: 1px; }
.bot-head .x { width: 34px; height: 34px; font-size: 14px; }
.bot-log { padding: 12px 12px 6px; gap: 8px; min-height: 0; }
.bot-welcome { min-height: 88px; padding: 11px 112px 11px 14px; font-size: 13.5px; line-height: 1.35; border-radius: 18px; margin-bottom: 4px; }
.bot-welcome::after { left: 20px; bottom: -8px; width: 16px; height: 16px; }
.bot-welcome img { width: 108px; right: 2px; }
.bot-actions { gap: 7px; margin: 6px 0 2px; }
.bot-act { padding: 9px 20px 9px 10px; border-radius: 13px; gap: 1px; }
.bot-act.wide { padding: 9px 22px 9px 11px; gap: 9px; }
.bot-act svg.ic { width: 22px; height: 22px; margin-bottom: 3px; }
.bot-act.wide svg.ic { width: 24px; height: 24px; }
.bot-act b { font-size: 12.5px; }
.bot-act small { font-size: 10.5px; }
.bot-act::after { right: 7px; font-size: 18px; }
.bot-sugg { margin: 0 12px 8px; padding: 6px 8px; gap: 6px; border-radius: 13px; }
.bot-sugg > span { font-size: 11px; gap: 4px; }
.bot-sugg > span svg { width: 14px; height: 14px; }
.bot-sugg button { padding: 4px 9px; font-size: 11px; gap: 4px; }
.bot-form { margin: 0 10px 10px; padding: 6px; gap: 6px; border-radius: 18px; }
.bot-form .clip { width: 36px; height: 36px; }
.bot-form .clip svg { width: 17px; height: 17px; }
.bot-form input { padding: 9px 12px; font-size: 13.5px; border-radius: 13px; }
.bot-form button.send { padding: 0 14px; font-size: 13.5px; border-radius: 13px; gap: 6px; }
.bot-form button.send svg { width: 15px; height: 15px; }
.bot-msg { font-size: 13px; padding: 8px 12px; }
.bot-log { max-height: 440px; }
/* Que nada se aplaste cuando el panel es bajo: solo el historial se desplaza */
.bot-panel { padding: 0; }
.bot-head, .bot-sugg, .bot-form { flex-shrink: 0; }
.bot-log { flex: 1 1 auto; }
.bot-log > * { flex-shrink: 0; }
@media (max-width: 520px) {
  .bot-panel { width: auto; max-height: calc(100vh - 170px); }
  .bot-welcome { padding-right: 96px; font-size: 13px; }
  .bot-welcome img { width: 92px; }
}

/* ===== Página Portafolio ALCRIX (#proyectos) ===== */
.pf-page { display: none; padding: 34px 0 70px; border-top: 0; }
body.view-proyectos .pf-page { display: block; }
body.view-proyectos #inicio, body.view-proyectos #divisiones,
body.view-proyectos #portafolio, body.view-proyectos #contacto { display: none; }
.pfp-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-bottom: 26px; }
.pfp-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid var(--accent); background: rgba(255, 79, 163, 0.1); box-shadow: 0 0 12px rgba(255, 79, 163, 0.35);
}
.pfp-title { border-left: 3px solid var(--accent); padding-left: 22px; box-shadow: -8px 0 12px -10px var(--accent); }
.pfp-title h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.015em; }
.pfp-title h1 span { color: var(--accent); }
.pfp-title p { margin: 8px 0 0; color: #e2d9ec; font-size: 16px; max-width: 56ch; }
.pfp-robot { position: relative; width: 230px; }
.pfp-robot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 18px rgba(255, 79, 163, 0.55)); animation: wave 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.pfp-robot::before { content: ""; position: absolute; inset: 15% 0 0; background: radial-gradient(closest-side, rgba(255, 79, 163, 0.35), transparent); filter: blur(20px); z-index: -1; }
.pfp-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.pfp-filters button {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: inherit;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(30, 10, 40, 0.6); border: 1.5px solid rgba(255, 110, 200, 0.55);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pfp-filters button svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pfp-filters button:hover { transform: translateY(-2px); box-shadow: 0 0 14px -2px rgba(255, 79, 163, 0.6); }
.pfp-filters button[aria-pressed="true"] { background: linear-gradient(180deg, #ff5fbf, #e0168f); border-color: #ff8fd0; box-shadow: 0 0 20px rgba(255, 79, 163, 0.65); }
.pfp-filters button[aria-pressed="true"] svg { stroke: #fff; }
.pfp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pfp-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  border-radius: 20px; border: 1.5px solid rgba(255, 110, 200, 0.6);
  background: linear-gradient(180deg, rgba(50, 14, 62, 0.75), rgba(22, 6, 30, 0.92));
  box-shadow: 0 0 16px -4px rgba(255, 79, 163, 0.45), inset 0 0 20px rgba(255, 79, 163, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pfp-card:hover { transform: translateY(-4px); box-shadow: 0 0 28px -2px rgba(255, 79, 163, 0.7); }
.pfp-card[hidden] { display: none; }
.pfp-media { position: relative; aspect-ratio: 343 / 169; }
.pfp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Páginas Web: la imagen se muestra completa, sin recortes */
.proj-img[src$="paginas-web.jpg"] { aspect-ratio: 1456 / 819; object-fit: contain; background: #12051a; }
.pfp-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(30, 8, 40, 0.95)); }
.pfp-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(30, 8, 40, 0.85); border: 1px solid rgba(255, 110, 200, 0.6); backdrop-filter: blur(6px);
}
.pfp-badge svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pfp-zoom {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; background: rgba(20, 6, 28, 0.8); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
}
.pfp-zoom:hover { background: var(--accent); }
.pfp-zoom svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.pfp-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 2px 18px 18px; margin-top: -14px; flex: 1; }
.pfp-body h3 { font-size: 17.5px; font-weight: 700; }
.pfp-body p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: #e2d9ec; flex: 1; }
.pfp-more {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff;
  background: rgba(255, 79, 163, 0.08); border: 1.5px solid var(--accent); box-shadow: 0 0 10px -2px rgba(255, 79, 163, 0.5);
  transition: background 0.2s ease;
}
.pfp-more:hover { background: var(--accent); color: #1a0812; }
.pfp-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.see-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; border: 1.5px solid var(--accent); background: rgba(255, 79, 163, 0.08); box-shadow: 0 0 12px -2px rgba(255,79,163,.5); }
.see-all:hover { background: var(--accent); color: #1a0812; }
.see-all-wrap { text-align: center; }
/* detalle */
dialog.legal.proj { width: min(860px, calc(100% - 32px)); }
.proj-img { width: 100%; aspect-ratio: 343 / 169; object-fit: cover; border-radius: 14px; display: block; margin: 16px 0 6px; border: 1px solid rgba(255, 110, 200, 0.4); }
.p3d-tabs { display: flex; gap: 8px; margin: 16px 0 -6px; flex-wrap: wrap; }
.p3d-tabs button { min-height: 38px; padding: 7px 16px; border-radius: 999px; cursor: pointer; font: 600 14px/1 inherit; font-family: inherit; color: #eadcf4; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 110, 200, 0.35); transition: background .2s, color .2s, box-shadow .2s; }
.p3d-tabs button:hover { color: #fff; border-color: rgba(255, 110, 200, 0.7); }
.p3d-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(90deg, #ff3fd2, #c21bd0); border-color: transparent; box-shadow: 0 0 14px rgba(255, 63, 210, 0.5); }
.p3d-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.proj-3d { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 16 / 9; margin: 16px 0 6px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 110, 200, 0.4); background: radial-gradient(ellipse at 50% 38%, #4a1460, #14061c 72%); cursor: grab; }
.proj-3d:active { cursor: grabbing; }
.proj-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.p3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }
.proj-3d.ready .p3d-poster { opacity: 0; pointer-events: none; }
/* Pantalla de carga: aparece junta (imagen + barra) y el modelo entra con un fundido solo cuando está listo */
.proj-3d:not(.pl) .p3d-poster, .proj-3d:not(.pl) .p3d-status { opacity: 0; }
.proj-3d canvas { opacity: 0; transition: opacity .5s ease; }
.proj-3d.ready canvas { opacity: 1; }
.p3d-status { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s ease; }
.p3d-lt { display: none !important; position: absolute; left: 23.1%; right: 23.1%; top: 82.9%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; gap: 2.4cqw; color: #f4ecfa; font-size: clamp(7px, 2.6cqw, 22px); font-weight: 500; white-space: nowrap; }
.p3d-lt b { color: #ff3fd2; font-weight: 800; }
.p3d-lt svg { width: 1.6em; height: 1.6em; fill: none; stroke: #ff5fdc; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 63, 210, .8)); }
.p3d-bar { position: absolute; left: 21.9%; right: 21.9%; top: 80.6%; height: 5.9%; border-radius: 999px; border: 1.5px solid rgba(255, 120, 220, .75); background: #1a0722; box-shadow: 0 0 14px rgba(255, 63, 210, .45); overflow: hidden; }
.p3d-bar i { position: absolute; left: 1.1%; top: 22%; bottom: 22%; width: 0; max-width: 86%; border-radius: 999px; background: linear-gradient(90deg, #ff3fd2, #ff7ae6); box-shadow: 0 0 12px #ff3fd2; transition: width .25s ease; }
.p3d-bar span { position: absolute; right: 2.6%; top: 50%; transform: translateY(-50%); color: #fff; font-size: clamp(6px, 2.2cqw, 19px); font-weight: 600; font-variant-numeric: tabular-nums; }
.proj-3d.fail .p3d-bar { display: none; }
.p3d-err { position: absolute; left: 8%; right: 8%; top: 89%; text-align: center; color: #ffb3ec; font-size: 11px; opacity: .8; }
.proj-3d.ready .p3d-status { opacity: 0; }
.proj-3d.fail { cursor: default; }
.p3d-ui { position: absolute; left: 10px; right: 10px; bottom: 10px; display: none; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; pointer-events: none; }
.proj-3d.ready .p3d-ui { display: flex; }
.p3d-hint { font-size: 12px; color: #eadcf4; background: rgba(10, 4, 16, 0.65); padding: 6px 11px; border-radius: 999px; }
.p3d-anim { display: flex; gap: 6px; pointer-events: auto; }
.p3d-anim button { min-height: 34px; padding: 6px 13px; border-radius: 999px; cursor: pointer; font: 600 12.5px/1 inherit; font-family: inherit; color: #fff; background: rgba(255, 79, 163, 0.18); border: 1px solid rgba(255, 110, 200, 0.7); }
.p3d-anim button:hover { background: var(--accent); }
.p3d-anim button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) { .p3d-hint { font-size: 11px; } .p3d-hint { display: none; } }
.proj-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff !important; background: linear-gradient(180deg, #ff5fbf, #e0168f); box-shadow: 0 0 16px rgba(255, 79, 163, 0.6); }
@media (max-width: 1100px) { .pfp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pfp-hero { grid-template-columns: 1fr; }
  .pfp-robot { display: none; }
  .pfp-filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; }
  .pfp-filters button { flex: none; }
}
@media (max-width: 560px) { .pfp-grid { grid-template-columns: 1fr; } }

/* ===== Página Contacto (#hablemos) ===== */
.ct-page { display: none; padding: 30px 0 70px; border-top: 0; }
body.view-hablemos .ct-page { display: block; }
body.view-hablemos #inicio, body.view-hablemos #divisiones,
body.view-hablemos #portafolio, body.view-hablemos #contacto { display: none; }
.ct-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; gap: 20px; margin-bottom: 20px; }
.ct-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.015em; }
.ct-hero h1 span { color: var(--accent); }
.ct-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ct-feats div {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.25; color: #f1e9f7;
  background: rgba(40, 12, 52, 0.55); border: 1px solid rgba(255, 110, 200, 0.3);
}
.ct-feats svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; filter: drop-shadow(0 0 4px rgba(255,79,163,.6)); }
.ct-robot img {
  width: 100%; height: auto; display: block; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 55% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 70% at 55% 50%, #000 60%, transparent 100%);
  animation: float 6s ease-in-out infinite;
}
.ct-grid { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ct-col { display: grid; gap: 12px; min-width: 0; }
.ct-card {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(60, 18, 76, 0.6), rgba(25, 7, 34, 0.8));
  border: 1px solid rgba(255, 110, 200, 0.35); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.ct-card:hover { transform: translateX(3px); border-color: #ff8fd0; box-shadow: 0 0 18px -4px rgba(255, 79, 163, 0.7); }
.ct-card.hl { border: 1.5px solid #ff8fd0; box-shadow: 0 0 22px -4px rgba(255, 79, 163, 0.75), inset 0 0 18px rgba(255, 79, 163, 0.12); }
.ct-card .ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; }
.ct-card .ico svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-card .ico.ico-wa { width: 46px; height: 46px; border-radius: 50%; background: #25d366; box-shadow: 0 0 14px rgba(37, 211, 102, 0.6); }
.ct-card .ico.ico-wa svg { width: 28px; height: 28px; fill: #fff; stroke: none; display: block; }
.ct-card b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.ct-card small { display: block; font-size: 13.5px; color: #e2d9ec; overflow-wrap: anywhere; }
.ct-card .chev { margin-left: auto; font-size: 24px; opacity: 0.85; }
.ct-hours { padding: 16px 20px; border-radius: 16px; background: linear-gradient(160deg, rgba(60, 18, 76, 0.5), rgba(25, 7, 34, 0.8)); border: 1px solid rgba(255, 110, 200, 0.35); }
.ct-hours h3 { display: flex; align-items: center; gap: 12px; font-size: 16px; margin-bottom: 12px; }
.ct-hours h3 svg, .ct-hours li svg { stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.ct-hours h3 svg { width: 28px; height: 28px; }
.ct-hours ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #e8def0; }
.ct-hours li { display: flex; align-items: center; gap: 10px; }
.ct-hours li svg { width: 18px; height: 18px; }
.ct-hours li b { color: #fff; }
.ct-online { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid rgba(255, 110, 200, 0.5); }
.ct-online i { width: 10px; height: 10px; border-radius: 50%; background: #2fd16b; box-shadow: 0 0 8px #2fd16b; }
.ct-social h3 { font-size: 15px; margin: 8px 0 10px 4px; }
.ct-social div { display: flex; gap: 10px; }
.ct-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; border: 1.5px solid var(--accent); background: rgba(255, 79, 163, 0.06); }
.ct-social a:hover { background: var(--accent); }
.ct-social svg { width: 19px; height: 19px; fill: currentColor; }
.ct-form-card, .ct-map {
  padding: 20px 24px 22px; border-radius: 22px;
  background: linear-gradient(170deg, rgba(55, 16, 70, 0.62), rgba(22, 6, 30, 0.85));
  border: 1.5px solid rgba(255, 110, 200, 0.5); box-shadow: 0 0 22px -6px rgba(255, 79, 163, 0.55);
}
.ct-form-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.ct-form-head svg { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ct-form-head h2 { font-size: 22px; font-weight: 700; }
.ct-form-head p { margin: 2px 0 0; font-size: 14px; color: #e2d9ec; }
.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-field { position: relative; min-width: 0; }
.ct-field.full { grid-column: 1 / -1; }
.ct-field > svg { position: absolute; left: 13px; top: 12px; width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: #fff;
  padding: 11px 14px 11px 42px; border-radius: 12px; outline: none;
  background: rgba(10, 3, 16, 0.55); border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ct-field textarea { min-height: 92px; resize: vertical; padding-bottom: 24px; }
.ct-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
.ct-field select option { background: #1d0a26; color: #fff; }
.ct-field .caret { position: absolute; right: 14px; top: 11px; left: auto; width: 18px; height: 18px; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #c9bcd6; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.18); }
.ct-field .count { position: absolute; right: 12px; bottom: 8px; font-size: 11.5px; color: #b9acc8; }
.ct-field.err input, .ct-field.err select, .ct-field.err textarea { border-color: #ff6b6b; }
.ct-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #e2d9ec; }
.ct-consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.ct-consent a { color: var(--accent); }
.ct-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.ct-send {
  flex: 1 1 240px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(180deg, #ff4fb8, #e0168f); box-shadow: 0 0 22px rgba(255, 79, 163, 0.65);
}
.ct-send svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linejoin: round; }
.ct-send:hover { filter: brightness(1.08); }
.ct-sep { width: 1px; align-self: stretch; background: rgba(255, 110, 200, 0.4); }
.ct-wa-alt {
  flex: 0 1 auto; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 14.5px; color: #fff; border: 1.5px solid rgba(255, 110, 200, 0.7);
}
.ct-wa-alt:hover { background: rgba(255, 79, 163, 0.15); }
.ct-wa-alt svg { width: 24px; height: 24px; flex: none; fill: #25d366; stroke: none; filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.55)); }
.ct-msg { grid-column: 1 / -1; font-size: 13px; color: #ff9b9b; margin: 0; }
.ct-done { display: none; text-align: center; padding: 10px 4px 4px; }
.ct-done h3 { font-size: 20px; margin-bottom: 6px; }
.ct-done p { color: #e2d9ec; margin: 0 0 16px; font-size: 14.5px; }
.ct-done .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ct-done .row a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; }
.ct-done .row a.w { background: #25d366; color: #062b14; }
.ct-done .row a.m { border: 1.5px solid var(--accent); }
.ct-done button { margin-top: 14px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-family: inherit; }
.ct-form-card.sent .ct-form { display: none; }
.ct-form-card.sent .ct-done { display: block; }
.ct-right { display: grid; gap: 18px; min-width: 0; }
.ct-map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 14px 24px 14px 14px; }
.ct-map img { width: 100%; height: auto; display: block; border-radius: 12px; }
.ct-map .vline { width: 1px; align-self: stretch; background: rgba(255, 110, 200, 0.5); }
.ct-map h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 6px; }
.ct-map h3 svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.ct-map p { margin: 0 0 4px 32px; font-size: 14.5px; color: #e8def0; }
.ct-map a { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: #fff; border: 1.5px solid var(--accent); }
.ct-map a:hover { background: var(--accent); }
@media (max-width: 960px) {
  .ct-hero { grid-template-columns: 1fr; }
  .ct-robot { max-width: 420px; }
  .ct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ct-form { grid-template-columns: 1fr; }
  .ct-sep { display: none; }
  .ct-wa-alt { flex: 1 1 100%; justify-content: center; }
  .ct-map { grid-template-columns: 1fr; padding: 14px; }
  .ct-map .vline { display: none; }
}

/* ===== Página Cotizar (#cotizar) ===== */
.cz-page { display: none; padding: 30px 0 70px; border-top: 0; }
body.view-cotizar .cz-page { display: block; }
body.view-cotizar #inicio, body.view-cotizar #divisiones,
body.view-cotizar #portafolio, body.view-cotizar #contacto { display: none; }
body.view-cotizar .nav-cta { background: linear-gradient(180deg, #ff5fbf, #e0168f); box-shadow: 0 0 18px rgba(255,79,163,.6); }
.cz-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 0.6fr); align-items: center; gap: 24px; margin-bottom: 22px; }
.cz-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.015em; }
.cz-hero h1 span { color: var(--accent); }
.cz-flow { display: flex; align-items: flex-start; gap: 14px; }
.cz-flow div { display: grid; justify-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.cz-flow i { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 110, 200, 0.7); background: rgba(255, 79, 163, 0.08); box-shadow: 0 0 14px -2px rgba(255, 79, 163, 0.6); }
.cz-flow svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cz-flow .arr { align-self: center; margin-top: -24px; width: 22px; height: 22px; stroke: #fff; }
.cz-robot img { width: 100%; max-width: 280px; height: auto; display: block; margin-left: auto; mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(ellipse 62% 66% at 55% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 62% 66% at 55% 50%, #000 60%, transparent 100%); animation: float 6s ease-in-out infinite; }
.cz-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cz-steps button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; cursor: pointer; font-family: inherit; color: #fff;
  background: linear-gradient(160deg, rgba(50, 14, 62, 0.6), rgba(22, 6, 30, 0.85)); border: 1px solid rgba(255, 255, 255, 0.1);
}
.cz-steps button:disabled { cursor: default; opacity: 0.75; }
.cz-steps .n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.cz-steps b { display: block; font-family: var(--font-display); font-size: 15px; }
.cz-steps small { display: block; font-size: 12px; color: #d6c8e4; }
.cz-steps button.on { background: linear-gradient(180deg, #ff5fbf, #d8158a); border-color: #ff9bd6; box-shadow: 0 0 22px rgba(255, 79, 163, 0.6); }
.cz-steps button.on .n { background: rgba(255,255,255,.2); border-color: #fff; }
.cz-steps button.done .n { background: var(--accent); border-color: var(--accent); }
.cz-card {
  padding: 22px 24px 24px; border-radius: 24px; min-width: 0;
  background: linear-gradient(170deg, rgba(55, 16, 70, 0.62), rgba(22, 6, 30, 0.88));
  border: 1.5px solid rgba(255, 110, 200, 0.55); box-shadow: 0 0 24px -6px rgba(255, 79, 163, 0.6);
}
.cz-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.cz-top h2 { font-size: 22px; font-weight: 700; }
.cz-prog { width: min(250px, 100%); font-size: 12.5px; }
.cz-prog div { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cz-prog b { font-family: var(--font-display); font-size: 17px; }
.cz-bar { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.cz-bar span { display: block; height: 100%; width: 25%; border-radius: 7px; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: width 0.35s ease; }
.cz-q { font-weight: 600; font-size: 15px; margin: 4px 0 10px; }
.cz-pane { display: none; }
.cz-pane.on { display: grid; gap: 12px; }
.cz-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cz-type { position: relative; cursor: pointer; }
.cz-type input { position: absolute; opacity: 0; pointer-events: none; }
.cz-type span {
  display: grid; justify-items: center; text-align: center; gap: 3px; height: 100%; padding: 12px 8px; border-radius: 14px;
  background: rgba(20, 6, 28, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cz-type svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.cz-type b { font-size: 13.5px; font-weight: 700; }
.cz-type small { font-size: 11.5px; color: #d6c8e4; line-height: 1.3; }
.cz-type:hover span { border-color: rgba(255, 110, 200, 0.6); }
.cz-type input:checked + span { border: 1.5px solid #ff8fd0; background: rgba(255, 79, 163, 0.12); box-shadow: 0 0 16px -3px rgba(255, 79, 163, 0.7); }
.cz-type input:checked + span::after { content: "✓"; position: absolute; top: -1px; right: -1px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 0 14px 0 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.cz-type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cz-lbl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 0 0 6px 4px; }
.cz-lbl svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cz-sel select { padding-left: 16px; }
.cz-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-chip { cursor: pointer; }
.cz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cz-chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 13px; border: 1px solid rgba(255, 110, 200, 0.45); background: rgba(20, 6, 28, 0.5); }
.cz-chip input:checked + span { background: rgba(255, 79, 163, 0.22); border-color: #ff8fd0; box-shadow: 0 0 10px -2px rgba(255, 79, 163, 0.7); }
.cz-chip input:checked + span::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.cz-chip input:focus-visible + span { outline: 2px solid var(--accent); }
.cz-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-bottom { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.cz-file { flex: 1 1 280px; position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1.5px dashed rgba(255, 110, 200, 0.5); cursor: pointer; }
.cz-file:hover { background: rgba(255, 79, 163, 0.06); }
.cz-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cz-file svg { width: 32px; height: 32px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cz-file b { display: block; font-size: 14px; font-weight: 600; }
.cz-file small { display: block; font-size: 12px; color: #d6c8e4; overflow-wrap: anywhere; }
.cz-nav { display: flex; gap: 10px; margin-left: auto; }
.cz-back { padding: 13px 20px; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 700; color: #fff; background: none; border: 1.5px solid rgba(255, 255, 255, 0.25); }
.cz-next { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(180deg, #ff4fb8, #e0168f); box-shadow: 0 0 22px rgba(255, 79, 163, 0.65); }
.cz-next:hover { filter: brightness(1.08); }
.cz-err { margin: 0; font-size: 13px; color: #ff9b9b; }
.cz-sum { list-style: none; margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(10, 3, 16, 0.45); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 6px; font-size: 14px; }
.cz-sum b { color: var(--accent); }
.cz-side { display: grid; gap: 18px; }
.cz-get, .cz-help { padding: 22px; border-radius: 22px; background: linear-gradient(170deg, rgba(60, 18, 76, 0.6), rgba(22, 6, 30, 0.88)); border: 1.5px solid rgba(255, 110, 200, 0.5); box-shadow: 0 0 22px -6px rgba(255, 79, 163, 0.55); }
.cz-get h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 14px; }
.cz-get h3 svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.cz-get ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.cz-get li { display: flex; align-items: center; gap: 12px; }
.cz-get li i { width: 24px; height: 24px; flex: none; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 79, 163, 0.15); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; }
.cz-help { position: relative; overflow: hidden; padding-right: 120px; }
.cz-help h3 { font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.cz-help p { margin: 0 0 14px; font-size: 13.5px; color: #e2d9ec; }
.cz-help img { position: absolute; right: -6px; top: 14px; width: 130px; height: auto; mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.cz-help button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 13.5px; color: #fff; background: rgba(255, 79, 163, 0.08); border: 1.5px solid var(--accent); white-space: nowrap; }
.cz-help button:hover { background: var(--accent); }
.cz-help button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.cz-help.cz-help-img { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 26px; overflow: visible; }
.cz-help.cz-help-img img { position: static; display: block; width: 100%; height: auto; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; border-radius: 26px; }
.cz-help .cz-help-hit { position: absolute; left: 9.1%; top: 75.6%; width: 81.8%; height: 14.4%; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; transition: box-shadow 0.2s ease, background 0.2s ease; }
.cz-help .cz-help-hit:hover { background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 22px 2px rgba(255, 63, 210, 0.55); }
.cz-help .cz-help-hit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1180px) {
  .cz-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .cz-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .cz-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .cz-robot { display: none; }
}
@media (max-width: 860px) {
  .cz-hero { grid-template-columns: 1fr; }
  .cz-grid { grid-template-columns: 1fr; }
  .cz-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cz-steps button { flex-direction: column; text-align: center; padding: 8px 4px; gap: 4px; }
  .cz-steps small { display: none; }
  .cz-steps b { font-size: 11.5px; }
  .cz-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-side { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cz-2 { grid-template-columns: 1fr; }
  .cz-card { padding: 18px 14px; }
  .cz-nav { width: 100%; }
  .cz-next { flex: 1; justify-content: center; }
}

/* ===== Página Divisiones (#areas) ===== */
.dv-page { display: none; padding: 30px 0 70px; border-top: 0; }
body.view-areas .dv-page { display: block; }
body.view-areas #inicio, body.view-areas #divisiones,
body.view-areas #portafolio, body.view-areas #contacto { display: none; }
.dv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 20px; margin-bottom: 10px; }
.dv-hero h1 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; letter-spacing: -0.015em; }
.dv-hero h1 span { color: var(--accent); }
.dv-hero .ct-robot img { -webkit-mask-image: radial-gradient(ellipse 70% 78% at 50% 42%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 70% 78% at 50% 42%, #000 62%, transparent 100%); }
.dv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.dv-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, rgba(50, 14, 62, 0.7), rgba(20, 6, 28, 0.92));
  border: 1.5px solid rgba(255, 110, 200, 0.55); box-shadow: 0 0 18px -5px rgba(255, 79, 163, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dv-card:hover { transform: translateY(-5px); box-shadow: 0 0 30px -3px rgba(255, 79, 163, 0.75); }
.dv-card > img { width: 100%; aspect-ratio: 268 / 136; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.dv-body { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 20px; flex: 1; }
.dv-media { position: relative; aspect-ratio: 572 / 272;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.dv-card .dv-media img { width: 100%; height: 100%; object-fit: fill; display: block; -webkit-mask-image: none; mask-image: none; }
.dv-bars i {
  position: absolute; display: block; border-radius: 3px 3px 1px 1px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, #ffd4fb 0%, #f77cf0 22%, #d424d8 60%, #93099c 100%);
  box-shadow: 0 0 6px rgba(255, 79, 200, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: barMove 2s ease-in-out infinite alternate;
}
@keyframes barMove {
  0% { transform: scaleY(0.35); }
  45% { transform: scaleY(1.15); }
  70% { transform: scaleY(0.7); }
  100% { transform: scaleY(1); }
}
.ai-flow {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: url("../img/div/ai_traces.png"); -webkit-mask-size: 100% 100%;
  mask-image: url("../img/div/ai_traces.png"); mask-size: 100% 100%;
}
.ai-flow i {
  position: absolute; left: 50%; top: 44%; width: 120%; aspect-ratio: 1; margin: -60% 0 0 -60%; border-radius: 50%;
  background: radial-gradient(circle, transparent 44%, rgba(255, 80, 210, 0) 50%, rgba(255, 140, 225, 0.9) 56%, #ffffff 59%, rgba(255, 90, 215, 0.85) 62%, rgba(255, 60, 200, 0) 69%);
  opacity: 0; transform: scale(0.3);
  animation: aiPulse 2.4s cubic-bezier(.35,.1,.6,1) infinite;
}
.ai-flow i + i { animation-delay: -1.2s; }
@keyframes aiPulse {
  0% { transform: scale(0.28); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: scale(1.05); opacity: 0; }
}
/* LABS: el matraz hierve, sube la espuma y hace erupción */
.dv-media.labs { overflow: hidden; border-radius: 20px 20px 0 0; }
.lb-wrap { position: relative; }
.dv-card .dv-media.labs .lb-shake > img.lb-a {
  position: absolute; left: 38.97%; top: 51.49%; width: 20.68%; height: auto; object-fit: initial;
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
  animation: lbLogo 7s ease-out infinite; filter: brightness(1.7) drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px #ff3fc8); will-change: opacity, transform;
}
@keyframes lbLogo {
  0%, 58% { opacity: 0; transform: scale(1); }
  62% { opacity: 0.6; }
  65% { opacity: 1; transform: scale(1.06); }
  70% { opacity: 0.85; transform: scale(1); }
  75% { opacity: 1; }
  92%, 100% { opacity: 0; transform: scale(1); }
}
}
.dv-card:has(.lb-wrap) { overflow: visible; position: relative; z-index: 2; }
.lb-burst { z-index: 3; }
.lb-shake { position: absolute; inset: 0; animation: lbShake 7s linear infinite; }
.dv-card .dv-media.labs .lb-shake > img { width: 100%; height: 100%; object-fit: fill; display: block; }
.lb-liq { position: absolute; left: 29%; top: 53%; width: 41.5%; height: 40.5%;
  clip-path: polygon(16.9% 2%, 83% 2%, 100% 80%, 96% 98%, 4% 98%, 0% 80%);
  animation: lbBoil 7s linear infinite; }
.lb-liq i { position: absolute; bottom: 2%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95) 0 25%, rgba(255,220,245,.55) 45%, rgba(255,255,255,.15) 70%);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6); animation: lbBubble 1.2s ease-in infinite; }
@keyframes lbBubble { 0% { transform: translate(0, 0) scale(0.5); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(3px, -95px) scale(1.1); opacity: 0; } }
@keyframes lbBoil { 0%, 12% { opacity: 0.3; } 22%, 66% { opacity: 1; } 82%, 100% { opacity: 0.3; } }
.lb-neck { position: absolute; left: 42.3%; top: 12%; width: 14.4%; height: 41.5%; overflow: hidden; border-radius: 6px 6px 0 0; }
.lb-neck .foam {
  position: absolute; left: 4%; right: 4%; bottom: 0; height: 100%; opacity: 0; transform: scaleY(0); transform-origin: 50% 100%; border-radius: 40% 40% 0 0 / 14px 14px 0 0;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 22%, transparent 26%) 0 0 / 11px 11px,
    radial-gradient(circle at 70% 65%, #ffe0f6 0 20%, transparent 24%) 3px 4px / 8px 8px,
    linear-gradient(180deg, #ffd6f3, #ff7ad9 70%, #ff4fc8);
  box-shadow: 0 0 12px rgba(255, 120, 220, 0.8), inset 0 4px 8px rgba(255, 255, 255, 0.7);
  animation: lbFoam 7s cubic-bezier(.5,0,.6,1) infinite, lbFoamBubble .35s linear infinite;
}
@keyframes lbFoam {
  0%, 28% { transform: scaleY(0); opacity: 0; }
  30% { opacity: 0.95; transform: scaleY(0.04); }
  62% { transform: scaleY(1); opacity: 0.95; }
  66% { transform: scaleY(1.12); }
  74% { transform: scaleY(1); }
  86% { transform: scaleY(0.35); opacity: 0.9; }
  95%, 100% { transform: scaleY(0); opacity: 0; }
}
@keyframes lbFoamBubble { to { background-position: 11px -11px, -5px -4px, 0 0; } }
.lb-burst { position: absolute; left: 49.4%; top: 5.5%; width: 0; height: 0; }
.lb-burst .jet {
  position: absolute; left: -22px; bottom: 0; width: 44px; height: 120px; transform-origin: 50% 100%;
  border-radius: 45% 45% 30% 30% / 70% 70% 20% 20%; opacity: 0; transform: scaleY(0);
  background: radial-gradient(ellipse at 50% 100%, #fff 0 20%, #ffb3ec 40%, rgba(255, 79, 200, 0.6) 65%, transparent 75%);
  filter: blur(1px) drop-shadow(0 0 10px #ff3fc8);
  animation: lbJet 7s ease-out infinite;
}
@keyframes lbJet { 0%, 63% { transform: scaleY(0) scaleX(0.6); opacity: 0; } 65% { transform: scaleY(1.1) scaleX(1); opacity: 1; } 74% { transform: scaleY(1) scaleX(0.9); opacity: 0.85; } 82%, 100% { transform: scaleY(0.3) scaleX(0.5); opacity: 0; } }
.lb-burst i {
  position: absolute; left: 0; top: 0; margin: -5px 0 0 -5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 35%, #fff 0 30%, #ff9be3 55%, rgba(255, 60, 200, 0.4) 75%);
  box-shadow: 0 0 8px rgba(255, 79, 200, 0.9);
  animation: lbDrop 7s cubic-bezier(.2,.8,.4,1) infinite;
}
@keyframes lbDrop {
  0%, 63% { transform: translate(0, 0) scale(0.3); opacity: 0; }
  64% { opacity: 1; transform: translate(0, -6px) scale(0.6); }
  78% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 1; }
  90% { transform: translate(calc(var(--dx) * 1.25), calc(var(--dy) * 0.4 + 60px)) scale(0.8); opacity: 0; }
  100% { opacity: 0; }
}
.lb-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at 49.5% 12%, rgba(255, 230, 250, 0.95), rgba(255, 79, 200, 0.5) 25%, transparent 55%);
  animation: lbFlash 7s ease-out infinite; }
@keyframes lbFlash { 0%, 63% { opacity: 0; } 65% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes lbShake {
  0%, 14% { transform: none; }
  18% { transform: translate(0.5px, 0) rotate(0.2deg); } 22% { transform: translate(-0.5px, 0) rotate(-0.2deg); }
  26% { transform: translate(0.8px, -0.5px) rotate(0.3deg); } 30% { transform: translate(-0.8px, 0) rotate(-0.3deg); }
  34% { transform: translate(1px, -0.5px) rotate(0.4deg); } 38% { transform: translate(-1px, 0) rotate(-0.4deg); }
  42% { transform: translate(1.3px, -1px) rotate(0.5deg); } 46% { transform: translate(-1.3px, 0) rotate(-0.5deg); }
  50% { transform: translate(1.6px, -1px) rotate(0.6deg); } 53% { transform: translate(-1.6px, 0) rotate(-0.6deg); }
  56% { transform: translate(2px, -1px) rotate(0.8deg); } 59% { transform: translate(-2px, 0) rotate(-0.8deg); }
  62% { transform: translate(2.2px, -1.5px) rotate(1deg); }
  64% { transform: translate(0, 3px) scale(0.99, 0.97); }
  67% { transform: translate(0, -2px) scale(1, 1.01); }
  71%, 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .lb-shake, .lb-liq, .lb-liq i, .lb-neck .foam, .lb-burst .jet, .lb-burst i, .lb-flash { animation: none !important; } }

/* XR: la mascota se pone las gafas */
.dv-media.xr { overflow: hidden; perspective: 600px; perspective-origin: 30% 55%; }
.xr-rig { position: absolute; inset: 0; transform-origin: 28% 58%; transform-style: preserve-3d; animation: xrLook 10s ease-in-out infinite; }
.xr-head { position: absolute; left: -1%; top: 18%; width: 50%; animation: xrRise 10s cubic-bezier(.3,.7,.3,1) infinite; }
.dv-card .dv-media .xr-head img { width: 100%; height: auto; object-fit: initial; display: block; }
.dv-card .dv-media img.xr-gog { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
@keyframes xrRise {
  0%, 20% { transform: translateY(125%); opacity: 0; }
  20.5% { opacity: 1; }
  28% { transform: translateY(-4%); }
  31%, 66% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(125%); opacity: 1; }
  76%, 100% { transform: translateY(125%); opacity: 0; }
}
@keyframes xrTurn {
  0%, 44% { transform: scaleX(1); }
  48%, 58% { transform: scaleX(-1); }
  62%, 100% { transform: scaleX(1); }
}
@keyframes xrLook {
  0%, 33% { transform: none; }
  38% { transform: translateX(2.5%) rotateY(30deg) rotateZ(2deg); }
  43% { transform: translateX(2.5%) rotateY(26deg) rotateZ(1deg); }
  50% { transform: translateX(-2.5%) rotateY(-30deg) rotateZ(-2deg); }
  56% { transform: translateX(-2.5%) rotateY(-26deg) rotateZ(-1deg); }
  62%, 100% { transform: none; }
}
.storm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.storm .flash {
  position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 45% 55% at 55% 28%, rgba(255, 150, 230, 0.95), rgba(255, 40, 190, 0.5) 45%, transparent 75%);
  animation: stormFlash 5.2s linear infinite;
}
.storm .rain i {
  position: absolute; top: 30%; width: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 190, 245, 0), rgba(255, 190, 245, 0.85));
  transform: rotate(12deg);
  animation: rainFall 0.8s linear infinite;
}
@keyframes rainFall {
  0% { transform: translate(0, 0) rotate(12deg); opacity: 0; }
  10% { opacity: 0.9; }
  85% { opacity: 0.8; }
  100% { transform: translate(-18px, 190px) rotate(12deg); opacity: 0; }
}
.storm svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.storm .bolt {
  fill: none; stroke: #ff8fe2; stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; opacity: 0;
  filter: drop-shadow(0 0 2px #ff4fd0) drop-shadow(0 0 7px #ff1fb8) drop-shadow(0 0 16px #ff1fb8);
}
.storm .b1 { animation: bolt 5.2s linear infinite; }
.storm .b2 { animation: bolt 7.3s linear infinite; animation-delay: 2.1s; }
.storm .b3 { stroke-width: 1.8; animation: bolt 6.1s linear infinite; animation-delay: 3.6s; }
@keyframes bolt {
  0%, 84% { opacity: 0; }
  85% { opacity: 1; }
  86.5% { opacity: 0.15; }
  88% { opacity: 1; }
  92% { opacity: 0.6; }
  95%, 100% { opacity: 0; }
}
@keyframes stormFlash {
  0%, 84% { opacity: 0; }
  85% { opacity: 0.9; }
  86.5% { opacity: 0.2; }
  88% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dv-bars i, .ai-flow i, .storm i, .storm .flash, .storm .bolt, .xr-rig, .xr-head, .xr-head img { animation: none !important; } .xr-head { opacity: 0; } }
.dv-name { display: flex; align-items: center; gap: 12px; }
.dv-name svg { width: 38px; height: 38px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 79, 163, 0.6)); }
.dv-name h3 { font-size: 19px; font-weight: 700; line-height: 1.1; }
.dv-name h3 span { display: block; color: var(--accent); }
.dv-body > p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #e6dcee; }
.dv-list { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; gap: 7px; flex: 1; align-content: start; }
.dv-list li { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.dv-list li i { width: 17px; height: 17px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--accent); color: var(--accent); font-style: normal; font-size: 10px; font-weight: 800; }
.dv-go { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; color: #fff; background: rgba(255, 79, 163, 0.08); border: 1.5px solid var(--accent); box-shadow: 0 0 12px -3px rgba(255, 79, 163, 0.6); transition: background 0.2s ease; }
.dv-go:hover { background: var(--accent); color: #1a0812; }
.dv-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dv-btns a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff !important; }
.dv-btns a.p { background: linear-gradient(180deg, #ff5fbf, #e0168f); box-shadow: 0 0 16px rgba(255, 79, 163, 0.6); }
.dv-btns a.s { border: 1.5px solid var(--accent); }
html, body { overflow-x: clip; }
/* ===== Encendido de pantallas (portada) ===== */
.hero-visual .dev {
  position: relative; width: 108%; margin-left: -4%; cursor: pointer;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  animation: float 7s ease-in-out infinite;
}
.hero-visual .dev img { width: 100%; max-width: none; margin: 0; filter: none; animation: none; display: block; }
.dev > img:not(.dev-base), .dev .scr { position: absolute; }
.dev-patch.lap, .dev-logo.lap { left: 43.077%; top: 18.571%; width: 24.615% !important; height: auto; }
.dev-patch.pho, .dev-logo.pho { left: 79.231%; top: 34.286%; width: 15.769% !important; height: auto; }
.dev .scr { overflow: hidden; }
.dev .scr.lap { left: 24.462%; top: 4.429%; width: 62.154%; height: 72.714%;
  clip-path: polygon(10.89% 7.27%, 100% 0%, 100% 17.09%, 94.93% 17.29%, 92.33% 18.27%, 90.59% 20.63%, 89.73% 24.36%, 89.11% 29.27%, 83.66% 100%, 0% 95.48%); }
.dev .scr.pho { left: 75.154%; top: 16.857%; width: 22.538%; height: 79.714%;
  clip-path: polygon(22.53% 6.09%, 26.28% 2.15%, 34.47% 0.18%, 93.86% 0%, 97.95% 1.43%, 100% 3.94%, 99.66% 14.7%, 89.76% 95.7%, 87.03% 98.57%, 82.25% 100%, 11.26% 98.92%, 5.46% 97.49%, 1.02% 94.98%, 0% 90.86%); }
.dev .scr i { position: absolute; left: 0; right: 0; display: block; }
.dev .h { height: 51%; background: #050208; }
.dev .h.t { top: 0; }
.dev .h.b { bottom: 0; }
.dev .off { inset: 0; background: #050208; }
.dev .scr.lap .fl { top: 47%; height: 6%; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, #fff 0%, #ffb3e6 25%, rgba(255, 60, 190, 0.6) 55%, transparent 75%); }
.dev .scr.pho .fl { inset: 0; opacity: 0; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.95), rgba(255, 110, 210, 0.6) 45%, transparent 80%); }
.dev .dev-logo { opacity: 0; }
/* estado inicial (pantallas apagadas) antes de iniciar */
.dev:not(.play) .h, .dev:not(.play) .off { transform: none; opacity: 1; }
.dev.play .h.t { animation: lidTop 1.1s cubic-bezier(.7,0,.2,1) .55s both; }
.dev.play .h.b { animation: lidBot 1.1s cubic-bezier(.7,0,.2,1) .55s both; }
.dev.play .scr.lap .fl { animation: scanLine 1.4s ease-out .45s both; }
.dev.play .dev-logo.lap { animation: logoIn 1s cubic-bezier(.2,.8,.2,1) 1.7s both, logoGlow 3.2s ease-in-out 2.8s infinite; }
.dev.play .off { animation: phoneOn 1s ease-out 1.35s both; }
.dev.play .scr.pho .fl { animation: phoneFlash .9s ease-out 1.35s both; }
.dev.play .dev-logo.pho { animation: logoIn 1s cubic-bezier(.2,.8,.2,1) 2.35s both, logoGlow 3.2s ease-in-out 3.4s infinite; }
@keyframes lidTop { from { transform: translateY(0); } to { transform: translateY(-102%); } }
@keyframes lidBot { from { transform: translateY(0); } to { transform: translateY(102%); } }
@keyframes scanLine {
  0% { opacity: 0; transform: scaleX(0.05) scaleY(0.3); }
  15% { opacity: 1; transform: scaleX(1) scaleY(0.3); }
  55% { opacity: 0.9; transform: scaleX(1.1) scaleY(9); }
  100% { opacity: 0; transform: scaleX(1.2) scaleY(16); }
}
@keyframes phoneOn { 0% { opacity: 1; } 18% { opacity: 0.35; } 28% { opacity: 0.85; } 60%, 100% { opacity: 0; } }
@keyframes phoneFlash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes logoIn {
  0% { opacity: 0; transform: scale(0.8); filter: blur(10px) brightness(2.2); }
  60% { opacity: 1; filter: blur(0) brightness(1.6) drop-shadow(0 0 14px rgba(255, 79, 163, 0.9)); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1) drop-shadow(0 0 6px rgba(255, 79, 163, 0.5)); }
}
@keyframes logoGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(255, 79, 163, 0.5)); }
  50% { filter: brightness(1.25) drop-shadow(0 0 16px rgba(255, 79, 163, 0.9)); }
}
@media (max-width: 760px) { .hero-visual .dev { width: 100%; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dev .h, .dev .off, .dev .fl { display: none; }
  .dev .dev-logo { opacity: 1; }
}
.dv-bwrap { position: relative; display: block; width: min(980px, 100vw); container-type: inline-size; }
.holo-glow {
  position: absolute; z-index: 1; pointer-events: none;
  left: 64.6%; top: 34.8%; width: 11.8%; height: 27%;
  border-radius: 8% / 12%; transform: perspective(400px) rotateY(-8deg) skewY(-2deg);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 140, 220, 0.95), rgba(255, 60, 190, 0.55) 45%, rgba(255, 0, 170, 0) 75%);
  box-shadow: 0 0 40px 12px rgba(255, 60, 190, 0.55);
  mix-blend-mode: screen; opacity: 0.1;
  animation: holoPulse 3.2s ease-in-out infinite; filter: blur(3px); will-change: opacity;
}
@keyframes holoPulse {
  0%, 100% { opacity: 0.08; }
  35% { opacity: 0.85; }
  50% { opacity: 0.7; }
  70% { opacity: 0.2; }
}
.dv-banner { margin: -16px calc(50% - 50vw) 0; display: flex; justify-content: center; }
.dv-banner img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent); mask-composite: intersect;
}
.pf-banner { margin-bottom: 18px; }
.dv-banner.pf-banner .dv-bwrap { width: min(804px, 100vw); }
@media (max-width: 760px) { .dv-banner.pf-banner .dv-bwrap { width: 82%; } }
/* Subtítulo de los banners: texto real encima de la imagen (escala con el banner) */
.bn-sub { position: absolute; z-index: 2; margin: 0; font-family: "Montserrat", system-ui, sans-serif; font-weight: 500; line-height: 1.42; color: #ece3f3; text-shadow: 0 1px 8px rgba(10, 0, 20, 0.6); pointer-events: none; }
.bn-sub b { display: inline; font: inherit; font-weight: 700; color: #fff; }
.bn-sub.bn-dv { left: 6.375%; top: 55.6%; width: 58%; font-size: 1.225cqw; text-wrap: balance; }
.bn-sub.bn-pf { left: 5.4%; top: 51.4%; font-size: 1.47cqw; line-height: 1.36; white-space: nowrap; }
/* Ojos felices de la mascota del banner de Portafolio */
.pf-visor, .pf-eyes { position: absolute; left: 74.5625%; top: 31.144%; width: 9%; height: 10.319%; background: url("../img/proy/visor.jpg") 0 0 / 100% 100% no-repeat; pointer-events: none; }
.pf-eyes { background-image: url("../img/proy/ojos.png"); transform-origin: 50% 85%; animation: pfHappy 3s ease-in-out infinite; }
@keyframes pfHappy {
  0%, 30%, 100% { transform: translateY(0) scale(1, 1); filter: none; }
  42%, 70% { transform: translateY(5%) scale(1.08, 0.5); filter: brightness(1.35) drop-shadow(0 0 3px #ff3fd2); }
}
.ct-banner, .cz-banner { margin-bottom: 18px; }
.cz-page .cz-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
/* Banner de Cotizar: el foco se enciende, el robot se sorprende y salta */
.cz-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent); mask-composite: intersect; }
.cz-fx i, .cz-bot { position: absolute; display: block; background-position: 0 0; background-size: 100% 100%; background-repeat: no-repeat; }
.cz-rbg { left:76.875%;top:9.381%;width:17.562%;height:81.614%; background-image: url("../img/cotizar/robot_bg.jpg"); }
.cz-on { left:75.375%;top:0.000%;width:8.625%;height:22.514%; background-image: url("../img/cotizar/foco_on.png"); animation: czOn 7s linear infinite; }
.cz-glow { left:77.500%;top:1.876%;width:4.375%;height:15.009%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, 0.95), rgba(255, 150, 40, 0.4) 42%, transparent 70%); mix-blend-mode: screen; opacity: 0; transform: scale(1.6); animation: czGlow 7s ease-in-out infinite; }
.cz-bot { left:77.625%;top:11.632%;width:16.062%;height:77.111%; transform-origin: 50% 100%; animation: czJump 7s ease-in-out infinite; }
.cz-body { inset: 0; background-image: url("../img/cotizar/robot.webp"); }
.cz-visor { left:31.128%;top:15.572%;width:38.132%;height:12.165%; background-image: url("../img/cotizar/visor.png"); opacity: 0; animation: czShow 7s linear infinite; }
.cz-eye { border-radius: 50%; background-image: radial-gradient(circle at 33% 30%, #fff 0 15%, rgba(255,255,255,0) 18%), radial-gradient(circle at 64% 68%, rgba(255,255,255,0.95) 0 7%, rgba(255,255,255,0) 9.5%), radial-gradient(ellipse at 50% 55%, #ff8ae4 0 30%, #ff3fd2 62%, #e01fb0 72%, rgba(224,31,176,0) 75%); box-shadow: 0 0 7px 1px rgba(255, 63, 210, 0.55); opacity: 0; transform: rotate(-10deg) scale(0.4); animation: czEye 7s ease-out infinite; }
.cz-eye.l { left:36.19%;top:16.55%;width:8.56%;height:6.81%; }
.cz-eye.r { left:54.86%;top:20.19%;width:8.56%;height:6.81%; }
.cz-hbg { left:22.568%;top:26.764%;width:26.459%;height:15.572%; background-image: url("../img/cotizar/mano_bg.png"); }
.cz-hand { left:22.568%;top:26.764%;width:26.459%;height:15.572%; background-image: url("../img/cotizar/mano.png"); transform-origin: 32.4% 84.4%; animation: czHand 7s ease-in-out infinite; }
@keyframes czOn { 0%, 8% { opacity: 0; } 9.5% { opacity: 0.65; } 10.5% { opacity: 0; } 12% { opacity: 0.8; } 13% { opacity: 0.2; } 14.5%, 78% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes czGlow { 0%, 13% { opacity: 0; } 16% { opacity: 0.85; } 28% { opacity: 0.55; } 40% { opacity: 0.8; } 44% { opacity: 1; transform: scale(1.9); } 52% { opacity: 0.7; transform: scale(1.6); } 78% { opacity: 0.6; } 86%, 100% { opacity: 0; } }
@keyframes czShow { 0%, 42.5% { opacity: 0; } 43.5%, 62% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes czEye { 0%, 42.5% { opacity: 0; transform: rotate(-10deg) scale(0.4); } 44.5% { opacity: 1; transform: rotate(-10deg) scale(1.18); } 47.5%, 53% { opacity: 1; transform: rotate(-10deg) scale(1); } 54.5% { opacity: 1; transform: rotate(-10deg) scale(1.05, 0.12); } 56%, 61% { opacity: 1; transform: rotate(-10deg) scale(1); } 64%, 100% { opacity: 0; transform: rotate(-10deg) scale(0.5); } }
@keyframes czJump { 0%, 42% { transform: none; } 44.5% { transform: translateY(0) scale(1.02, 0.96); } 49.5% { transform: translateY(-6%) scale(0.99, 1.03); } 54.5% { transform: translateY(0) scale(1.02, 0.97); } 58%, 100% { transform: none; } }
@keyframes czHand { 0%, 43% { transform: none; } 47%, 61% { transform: rotate(-16deg) scale(1.1); } 66%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cz-fx, .cz-fx * { animation: none !important; } }
/* Banner de Contacto: ondas en movimiento y mano que toca la pantalla */
.ct-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ct-fx ellipse, .ct-fx path { fill: none; }
.ctfx-glow { stroke: #ff3fd2; stroke-width: 9; opacity: 0.15; animation: ctGlow 3.2s ease-in-out infinite; }
.ctfx-ripple { stroke: #ff7ae0; stroke-width: 2.5; opacity: 0; transform-box: view-box; transform-origin: 1260px 396px; animation: ctRipple 3.2s ease-out infinite; }
.ctfx-comet { stroke: #fff0fb; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 91; animation: ctComet 4s linear infinite; }
.ctfx-comet.halo { stroke: #ff5fdc; stroke-width: 12; }
.ctfx-arc { stroke: #fff0fb; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 22 78; stroke-dashoffset: 22; animation: ctArc 2.6s ease-in infinite; }
.ctfx-arc.halo { stroke: #ff5fdc; stroke-width: 10; }
.ctfx-tab { fill: #ff6fdc; opacity: 0; animation: ctTab 2.8s ease-out infinite; }
.ctfx-touch { fill: none; stroke: #ffd6f6; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ctTouch 2.8s ease-out infinite; }
.ct-hand-bg, .ct-hand { position: absolute; left: 68.625%; top: 57.036%; width: 9.625%; height: 21.764%; background: url("../img/contacto/mano_bg.jpg") 0 0 / 100% 100% no-repeat; pointer-events: none; }
.ct-hand { background-image: url("../img/contacto/mano.png"); transform-origin: 84.4% 69.8%; animation: ctTap 2.8s ease-in-out infinite; }
@keyframes ctGlow { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.5; } }
@keyframes ctRipple { 0% { opacity: 0.7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.16); } }
@keyframes ctComet { to { stroke-dashoffset: -100; } }
@keyframes ctArc { 0% { stroke-dashoffset: 22; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes ctTap { 0%, 36%, 100% { transform: none; } 8%, 24% { transform: translate(-2.5%, -3.5%) rotate(2deg); } 15% { transform: none; } }
@keyframes ctTab { 0%, 6%, 100% { opacity: 0; } 9%, 25% { opacity: 0.45; } 17% { opacity: 0.1; } 40% { opacity: 0; } }
@keyframes ctTouch { 0%, 7%, 15%, 23%, 32%, 100% { opacity: 0; transform: scale(0.3); } 8%, 24% { opacity: 0.9; transform: scale(0.3); } 14%, 30% { opacity: 0; transform: scale(2.2); } }
@media (prefers-reduced-motion: reduce) { .ct-fx { display: none; } }
.ct-page .ct-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
.pf-page .pfp-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.dv-page .dv-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .dv-banner { margin-left: -24px; margin-right: -24px; }
  .dv-banner .dv-bwrap { width: 100%; }
}
/* Celular: los banners se agrandan recortando los bordes vacíos (zona útil entre --x0 y --x1 del ancho) */
@media (max-width: 760px) {
  .dv-banner { --x0: 4; --x1: 93.5; overflow: hidden; justify-content: flex-start;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
  .dv-banner.pf-banner { --x0: 3.8; --x1: 92.5; }
  .dv-banner.cz-banner { --x0: 3.5; --x1: 94; }
  .dv-banner.ct-banner { --x0: 2.8; --x1: 95; }
  .dv-banner .dv-bwrap, .dv-banner.pf-banner .dv-bwrap { flex: none; width: calc(100% * 100 / (var(--x1) - var(--x0))); margin-left: calc(-100% * var(--x0) / (var(--x1) - var(--x0))); }
  .bn-sub.bn-dv { font-size: 1.6cqw; width: 44%; }
  .dv-banner img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent); }
}
@media (max-width: 1180px) { .dv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dv-hero { grid-template-columns: 1fr; } .dv-hero .ct-robot { max-width: 320px; } .dv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dv-grid { grid-template-columns: 1fr; } }

/* Portfolio (anterior, oculto) */
.work[hidden] { display: none; }
.work { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.project {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  display: flex; flex-direction: column;
  min-width: 0;
}
.shot {
  aspect-ratio: 16 / 10;
  position: relative;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  color: #fff;
}
.shot b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.shot small { font-size: 13px; opacity: 0.85; }
.s1 { background: linear-gradient(160deg, #1f6b3a, #0f3b20); }
.s2 { background: linear-gradient(160deg, #2a2236, #0b0813); }
.s3 { background: linear-gradient(160deg, #8a6444, #4b3424); }
.s4 { background: linear-gradient(160deg, #2f6fd1, #1b2e5c); }
.s5 { background: linear-gradient(160deg, #c52e7a, #3a0f2b); }
.project .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.project .body h3 { font-size: 17px; font-weight: 600; }
.project .body p { margin: 0; color: var(--muted); font-size: 14px; }
.status {
  align-self: flex-start;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(74, 222, 128, 0.12); color: #7ee8a6;
}
.status.dev { background: rgba(255, 79, 163, 0.14); color: var(--accent); }

/* Contact */
.contact {
  display: grid; gap: 28px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.12), rgba(255, 255, 255, 0.02));
}
.contact h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.contact h2 em { font-style: normal; color: var(--accent); }
.contact p { color: var(--muted); margin: 14px 0 0; max-width: 46ch; }
.wa {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: 18px;
  background: var(--accent); color: #1a0812; text-decoration: none;
  transition: transform 0.2s ease;
}
.wa:hover { transform: translateY(-2px); }
.wa small { display: block; font-weight: 600; font-size: 13px; opacity: 0.8; }
.wa strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: 0.01em; }
.wa .arrow { font-size: 26px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; padding: 28px; }
  .menu-toggle { display: grid; place-items: center; }
  header.top { flex-wrap: wrap; }
  nav.menu {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 0 6px;
  }
  nav.menu.open { display: flex; }
  nav.menu a.link { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  nav.menu a.link::after { display: none; }
  .nav-cta { text-align: center; margin-top: 10px; padding: 14px; }
  .hero { padding: 36px 0 56px; grid-template-columns: 1fr; }
  .hero h1 .l1, .hero h1 em { white-space: normal; }
  .hero p.lead { font-size: 18px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 100%; margin-left: 0; }
  .pillars > div { padding: 0 14px; }
  .pillars span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* Capas animadas: ocultas hasta que todas sus imágenes estén listas (evita parpadeos al abrir la sección) */
.ct-banner .ct-hand-bg, .ct-banner .ct-hand, .cz-banner .cz-fx { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.ct-banner.fx-ok .ct-hand-bg, .ct-banner.fx-ok .ct-hand, .cz-banner.fx-ok .cz-fx { opacity: 1; visibility: visible; transition: opacity .35s ease; }
@media (prefers-reduced-motion: reduce) { .ct-banner .ct-hand-bg, .ct-banner .ct-hand, .cz-banner .cz-fx { transition: none !important; } }

/* ---------- Proyecto AR: ventana especial ---------- */
dialog.legal.proj.ar { width: min(1120px, calc(100% - 32px)); max-height: min(92vh, 980px); position: relative;
  background: radial-gradient(120% 90% at 80% 10%, #2a0f3f 0%, #150a20 55%, #0f0716 100%); }
dialog.legal.proj.ar .legal-head { position: absolute; top: 16px; right: 16px; padding: 0; border: 0; z-index: 3; }
dialog.legal.proj.ar .legal-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
dialog.legal.proj.ar .legal-close { background: rgba(18, 8, 26, 0.7); backdrop-filter: blur(6px); }
dialog.legal.proj.ar .legal-body { padding: 0 0 30px; }
/* ---------- Proyecto Sistemas y Plataformas Web: ventana especial ---------- */
dialog.legal.proj.pl { width: min(1260px, calc(100% - 32px)); max-height: min(94vh, 1000px);
  background: radial-gradient(110% 80% at 85% 0%, #2a0f3f 0%, #150a20 55%, #0f0716 100%); }
dialog.legal.proj.pl .legal-head { padding: 26px 40px 14px; border-bottom: 0; }
dialog.legal.proj.pl .legal-head h2 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; color: #fff; line-height: 1.1; }
dialog.legal.proj.pl .legal-head .upd { font-size: clamp(15px, 1.5vw, 20px); font-weight: 400; color: #d6c9e2; margin-top: 6px; }
dialog.legal.proj.pl .legal-close { width: 56px; height: 56px; font-size: 22px; background: rgba(18, 8, 26, 0.7); }
dialog.legal.proj.pl .legal-body { padding: 4px 40px 34px; }
.pl-hero { position: relative; aspect-ratio: 2.9; border-radius: 16px; overflow: hidden; margin: 0 0 18px;
  border: 1px solid rgba(255, 110, 200, 0.4); background: radial-gradient(90% 120% at 80% 50%, #5a0f5c 0%, #22072d 55%, #12051a 100%);
  box-shadow: 0 0 30px -8px rgba(255, 63, 210, .45); }
.pl-hero img { position: absolute; left: 0; top: 0; width: 79%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
.pl-chips { position: absolute; right: 3.2%; top: 50%; transform: translateY(-50%); width: 24%; list-style: none; margin: 0 !important; padding: 0 !important;
  display: grid; gap: clamp(8px, 1.4vw, 18px); }
.pl-chips li { display: flex; align-items: center; gap: clamp(8px, 1.1vw, 16px); margin: 0 !important; padding: clamp(8px, 1.1vw, 16px) clamp(10px, 1.4vw, 20px);
  border-radius: 12px; background: rgba(60, 14, 70, 0.72); border: 1px solid rgba(255, 120, 220, 0.6); backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(255, 63, 210, .35), inset 0 0 14px rgba(255, 63, 210, .12);
  animation: plFloat 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.6s); }
.pl-chips li:nth-child(2) { transform: translateX(6%); }
.pl-chips svg { flex: none; width: clamp(22px, 2.6vw, 36px); height: clamp(22px, 2.6vw, 36px); fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-chips b { display: block; font-family: var(--font-display); color: #fff; font-size: clamp(14px, 1.7vw, 22px); line-height: 1.1; }
.pl-chips span { display: block; color: #e3d6ee; font-size: clamp(11px, 1.05vw, 14.5px); line-height: 1.3; }
@keyframes plFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.pl-lead { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.5; color: #f1e9f7; margin: 0 0 20px !important; }
.pl-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; }
.pl-cols > div:first-child { padding-right: 34px; border-right: 1px solid rgba(255, 255, 255, .14); }
.pl-keys { padding-left: 36px; }
dialog.legal.proj.pl .pl-cols h3 { font-size: clamp(20px, 1.8vw, 25px); font-weight: 800; margin: 0 0 14px; }
.pl-what { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pl-what li { display: flex; align-items: center; gap: 16px; margin: 0 !important; padding: 12px 18px; min-height: 64px; border-radius: 10px;
  border: 1px solid rgba(255, 110, 200, .28); background: rgba(255, 255, 255, .03); color: #f1e9f7; font-size: 16.5px; line-height: 1.3; transition: border-color .2s, box-shadow .2s; }
.pl-what li:hover { border-color: rgba(255, 110, 200, .7); box-shadow: 0 0 14px rgba(255, 63, 210, .3); }
.pl-what svg { flex: none; width: 36px; height: 36px; fill: none; stroke: #ff5fd0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-keys ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 16px; }
.pl-keys li { display: flex; align-items: center; gap: 16px; margin: 0 !important; color: #f1e9f7; font-size: 17px; line-height: 1.35; }
.pl-keys i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #ff5fbf, #e0168f); box-shadow: 0 0 10px rgba(255, 63, 210, .55); }
.pl-keys i svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-cta { font-size: 19px; padding: 15px 34px; margin-top: 26px; }
@media (max-width: 860px) {
  .pl-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pl-cols > div:first-child { padding-right: 0; border-right: 0; }
  .pl-keys { padding-left: 0; }
}
@media (max-width: 640px) {
  dialog.legal.proj.pl .legal-head { padding: 18px 18px 10px; }
  dialog.legal.proj.pl .legal-close { width: 44px; height: 44px; font-size: 18px; }
  dialog.legal.proj.pl .legal-body { padding: 4px 18px 26px; }
  .pl-hero { aspect-ratio: auto; overflow: visible; border: 0; box-shadow: none; background: none; }
  .pl-hero img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid rgba(255, 110, 200, 0.4); -webkit-mask-image: none; mask-image: none; }
  .pl-chips { position: static; transform: none; width: 100%; margin-top: 10px !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pl-chips li, .pl-chips li:nth-child(2) { transform: none; flex-direction: column; text-align: center; gap: 4px; padding: 10px 6px; animation: none; }
  .pl-what { grid-template-columns: minmax(0, 1fr); }
  .pl-what li { font-size: 15.5px; min-height: 0; }
  .pl-keys li { font-size: 16px; }
  .pl-cta { font-size: 16px; padding: 14px 22px; display: flex; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .pl-chips li { animation: none; } }

/* ---------- Mascotas: visor más grande en celular ---------- */
@media (max-width: 600px) {
  dialog.legal.proj.masc { width: calc(100% - 12px); max-width: none; max-height: calc(100dvh - 12px); }
  dialog.legal.proj.masc .legal-head { padding: 16px 16px 10px; }
  dialog.legal.proj.masc .legal-body { padding: 4px 12px 24px; }
  .masc .p3d-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 8px -12px -2px; padding: 2px 12px 6px; scroll-snap-type: x proximity; }
  .masc .p3d-tabs::-webkit-scrollbar { display: none; }
  .masc .p3d-tabs button { flex: none; scroll-snap-align: start; }
  .masc .proj-3d { aspect-ratio: 4 / 5; max-height: 70dvh; margin-top: 12px; border-radius: 18px; }
  .masc .p3d-poster { object-fit: contain; }
  .masc .p3d-status { inset: auto 0; top: calc(50% - 28.125cqw); height: 56.25cqw; }
  .masc .p3d-ui { left: 8px; right: 8px; bottom: 8px; }
}
/* ---------- Ajustes para celular ---------- */
.ph { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 600px) {
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body td { display: block; width: 100%; }
  .legal-body thead { display: none; }
  .legal-body tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal-body td { border: 0; padding: 3px 0; overflow-wrap: anywhere; }
  .legal-body td[data-l]::before { content: attr(data-l); display: block; color: #fff; font-weight: 700; font-size: 12.5px; margin-bottom: 1px; }
  .bot-sugg { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 600px) {
  /* 16px evita que el iPhone acerque la pantalla al tocar un campo */
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px !important; }
}
.cz-next[hidden], .cz-back[hidden] { display: none !important; }
@media (max-height: 520px) and (min-width: 521px) {
  /* Celular en horizontal: asistente compacto */
  .bot-launch { right: 4px; bottom: 0; width: 74px; height: 110px; }
  .bot-tip { right: 76px; bottom: 70px; font-size: 13px; }
  .bot-panel { right: 84px; bottom: 8px; top: 8px; height: auto; width: min(380px, calc(100vw - 100px)); }
}
@media (max-width: 400px) {
  .wa-pill { gap: 10px; padding: 12px 12px 12px 16px; }
  .wa-pill .wa-ico { width: 38px; height: 38px; }
  .wa-pill .go { width: 42px; height: 42px; }
  .wa-pill .txt { margin-right: 4px; }
  .wa-pill .txt small { font-size: 13px; }
  .wa-pill .txt strong { font-size: 19px; }
}
/* ---------- Proyecto Simulaciones: ventana especial ---------- */
dialog.legal.proj.ar.simd { width: min(1180px, calc(100% - 32px)); background: #12061a; }
dialog.legal.proj.ar.simd .legal-head { top: 22px; right: 22px; }
dialog.legal.proj.ar.simd .legal-body { padding-bottom: 6px; }
dialog.legal.proj.ar.simd .legal-close { width: 54px; height: 54px; font-size: 20px; }
.sim { padding: 24px clamp(18px, 3vw, 40px) 24px; }
.sim svg { fill: none; stroke: #ff3fd2; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sim-head { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); padding-right: 70px; margin-bottom: 20px; }
.sim-head > svg { flex: none; width: clamp(40px, 5vw, 64px); height: clamp(40px, 5vw, 64px); filter: drop-shadow(0 0 8px rgba(255, 63, 210, .6)); }
.sim-head > i { flex: none; width: 1.5px; height: 56px; background: rgba(255, 255, 255, .35); }
.sim-h { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 42px); font-weight: 800; color: #fff; line-height: 1.08; margin: 0; }
.sim-h span { color: #ff2fcf; }
.sim-head p { margin: 4px 0 0 !important; color: #d8cce4; font-size: clamp(15px, 1.6vw, 20px); }
.sim-hero { border-radius: 22px; overflow: hidden; border: 1.5px solid rgba(255, 110, 220, .8); box-shadow: 0 0 22px rgba(255, 63, 210, .45); }
.sim-hero img { display: block; width: 100%; aspect-ratio: 1253 / 478; object-fit: cover; }
.sim-lead { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px 10px !important; color: #f1e9f7; font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.35; }
.sim-lead svg { flex: none; width: 34px; height: 26px; }
.sim-lead i { flex: none; width: 1.5px; height: 26px; background: rgba(255, 255, 255, .35); }
.sim-inc { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
dialog.legal.proj.ar.simd .sim-inc h3 { flex: none; margin: 0; padding: 5px 22px; border-radius: 999px; border: 1.5px solid rgba(255, 110, 220, .85); box-shadow: 0 0 12px rgba(255, 63, 210, .4); color: #fff; font-size: clamp(15px, 1.4vw, 18px); font-weight: 800; }
.sim-inc i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 110, 220, .8), rgba(255, 110, 220, .2)); }
.sim-cards { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sim-cards li { margin: 0 !important; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 10px 13px; border-radius: 12px;
  border: 1px solid rgba(255, 110, 220, .45); background: linear-gradient(180deg, rgba(255, 63, 210, .06), rgba(255, 255, 255, .02)); transition: border-color .2s, box-shadow .2s, transform .2s; }
.sim-cards li:hover { transform: translateY(-3px); border-color: rgba(255, 110, 220, .9); box-shadow: 0 0 18px rgba(255, 63, 210, .35); }
.sim-cards svg { width: 34px; height: 34px; margin-bottom: 5px; filter: drop-shadow(0 0 6px rgba(255, 63, 210, .5)); }
.sim-cards b { color: #fff; font-size: clamp(14px, 1.2vw, 15.5px); line-height: 1.2; }
.sim-cards span { color: #e1d6ea; font-size: clamp(13px, 1.1vw, 14px); line-height: 1.3; margin-top: 2px; }
.sim-cta { font-size: clamp(15px, 1.3vw, 16.5px); padding: 11px 26px; margin-top: 16px; }
@media (max-width: 860px) { .sim-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 600px) {
  dialog.legal.proj.ar.simd .legal-head { top: 14px; right: 14px; }
  dialog.legal.proj.ar.simd .legal-close { width: 42px; height: 42px; font-size: 17px; }
  .sim { padding: 18px 16px 24px; }
  .sim-head { padding-right: 52px; margin-bottom: 14px; } .sim-head > i { height: 44px; }
  .sim-hero img { aspect-ratio: 16 / 10 !important; object-position: 62% 50%; }
  .sim-lead { margin-left: 0 !important; gap: 12px; } .sim-lead svg { width: 36px; height: 28px; }
  .sim-cards svg { width: 30px; height: 30px; }
  .sim-cta { display: flex; justify-content: center; font-size: 15px; padding: 12px 18px; }
}
/* ---------- Proyecto Páginas Web: solo la imagen, grande ---------- */
dialog.legal.proj.ar.wbd { width: min(1440px, calc(100vw - 24px), calc((100vh - 24px) * 1.7778)); max-height: calc(100vh - 24px); background: #0d0414; overflow: hidden; }
dialog.legal.proj.ar.wbd .legal-body { padding: 0; overflow: hidden; }
dialog.legal.proj.ar.wbd .legal-head { top: 2.2%; right: 1.6%; }
.wb-full { position: relative; }
.wb-full .proj-img { margin: 0; border: 0; border-radius: 0; width: 100%; height: auto; }
.wb-hot { position: absolute; left: 4.5%; top: 81.3%; width: 23.7%; height: 8.8%; border-radius: 999px; }
.wb-hot:hover { box-shadow: 0 0 22px rgba(255, 63, 210, .6); }
.wb-hot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) { dialog.legal.proj.ar.wbd .legal-head { top: 6px; right: 6px; } dialog.legal.proj.ar.wbd .legal-close { width: 32px; height: 32px; font-size: 14px; } }
/* ---------- Proyecto Realidad Virtual: ventana especial ---------- */
dialog.legal.proj.ar.vrd { width: min(1260px, calc(100% - 32px)); background: #12051a; }
dialog.legal.proj.ar.vrd .legal-close { width: 52px; height: 52px; font-size: 20px; }
.vr-top { position: relative; container-type: inline-size; aspect-ratio: 1495 / 516; overflow: hidden; border-bottom: 1px solid rgba(255, 110, 200, .18); }
.vr-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; display: block; }
.vr-copy { position: relative; z-index: 1; width: 36cqw; padding: 2.2cqw 0 0 3.5cqw; }
.vr-badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px 9px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 110, 200, .75);
  background: rgba(255, 63, 210, .08); box-shadow: 0 0 14px rgba(255, 63, 210, .35); color: #fff; font-weight: 700; font-size: max(13px, 1.65cqw); padding: .5em 1.2em .5em .8em; }
.vr-badge svg { width: 1.9em; height: 1.4em; fill: none; stroke: #ff4fd0; stroke-width: 1.8; stroke-linejoin: round; }
.vr-badge em { font-style: normal; color: #ff3fd2; }
.vr-h { font-family: var(--font-display); font-size: max(20px, 3.5cqw); font-weight: 800; line-height: 1.04; letter-spacing: -.015em; color: #fff; margin: 1.4cqw 0 1.1cqw; text-wrap: balance; }
.vr-h span { color: #ff2fcf; text-shadow: 0 0 22px rgba(255, 47, 207, .35); }
.vr-lead { font-size: max(13px, 1.5cqw); line-height: 1.38; color: #ddd0e8; margin: 0 0 1.8cqw !important; }
.vr-cta { font-size: max(14px, 1.55cqw); padding: .75em 1.6em; margin-top: 0; }
.vr-bottom { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); padding: 30px clamp(22px, 3.5vw, 54px) 6px; }
.vr-apps { padding-right: 30px; border-right: 1px solid rgba(255, 255, 255, .14); }
.vr-inc { padding-left: 34px; }
dialog.legal.proj.ar.vrd .vr-bottom h3 { font-size: clamp(20px, 2vw, 27px); font-weight: 800; color: #fff; margin: 0 0 18px; letter-spacing: -.01em; }
.vr-apps ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vr-apps li { margin: 0 !important; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 110, 200, .3); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255, 63, 210, .05));
  padding-bottom: 16px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.vr-apps li:hover { transform: translateY(-3px); border-color: rgba(255, 110, 200, .8); box-shadow: 0 0 18px rgba(255, 63, 210, .35); }
.vr-apps img { display: block; width: 100%; aspect-ratio: 205 / 143; object-fit: cover; }
.vr-apps b { display: block; padding: 4px 16px 4px; color: #fff; font-size: 17px; line-height: 1.25; }
.vr-apps span { display: block; padding: 0 16px; color: #cdbfda; font-size: 14.5px; line-height: 1.38; }
.vr-inc ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 14px; }
.vr-inc li { display: flex; align-items: center; gap: 14px; margin: 0 !important; color: #e6dcef; font-size: 16.5px; line-height: 1.35; }
.vr-inc li b { color: #fff; }
.vr-inc i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, #ff5fbf, #e0168f); box-shadow: 0 0 10px rgba(255, 63, 210, .55); }
.vr-inc i svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) {
  .vr-bottom { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vr-apps { padding-right: 0; border-right: 0; }
  .vr-inc { padding-left: 0; }
}
@media (max-width: 760px) {
  .vr-top { aspect-ratio: auto; display: flex; flex-direction: column; }
  .vr-bg { position: static; aspect-ratio: 4 / 3; height: auto; object-position: 78% 50%; }
  .vr-copy { width: auto; padding: 22px 20px 6px; }
  .vr-badge { font-size: 14px; } .vr-h { font-size: 28px; margin: 14px 0 10px; } .vr-lead { font-size: 15.5px; margin-bottom: 18px !important; } .vr-cta { font-size: 16px; }
  .vr-apps ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vr-apps b { font-size: 16px; padding: 4px 12px; } .vr-apps span { font-size: 13.5px; padding: 0 12px; }
  .vr-bottom { padding: 24px 20px 6px; }
  .vr-cta { display: flex; justify-content: center; }
}
.ar-top { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.ar-copy { padding: 40px 0 10px 44px; position: relative; z-index: 2; }
.ar-kick { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #ff5fbf; margin: 0 0 10px !important; }
.ar-h { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; font-weight: 800; color: #fff; margin: 0 0 14px; letter-spacing: -0.01em; }
.ar-h .nw { font-style: normal; white-space: nowrap; }
@media (max-width: 820px) { .ar-h .nw { white-space: normal; } }
.ar-h span { background: linear-gradient(90deg, #ff4fd0, #ff8fe0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-lead { font-size: 16.5px; line-height: 1.5; color: #cfc3da; max-width: 520px; margin: 0 0 20px !important; }
.ar-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.ar-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 110, 200, 0.35); transition: background .2s, box-shadow .2s; }
.ar-chips button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ar-chips button[aria-pressed="true"] { background: linear-gradient(180deg, #ff5fbf, #e0168f); border-color: transparent; box-shadow: 0 0 18px rgba(255, 79, 163, 0.55); }
.ar-chips button:hover:not([aria-pressed="true"]) { background: rgba(255, 79, 163, 0.12); }
.ar-chips { margin-bottom: 22px !important; }
.ar-feats { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 14px; }
.ar-feats li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin: 0 !important; }
.ar-feats i { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 79, 163, 0.08); border: 1px solid rgba(255, 110, 200, 0.28); box-shadow: inset 0 0 14px rgba(255, 79, 163, 0.12); }
.ar-feats i svg { width: 28px; height: 28px; fill: none; stroke: #ff6fd0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ar-feats b { display: block; color: #fff; font-size: 17px; line-height: 1.3; }
.ar-feats span { display: block; color: #bfb2cc; font-size: 14.5px; line-height: 1.45; }
.ar-media { position: relative; align-self: stretch; min-height: 100%; }
.ar-media img.swap { opacity: 0; }
.ar-media img { transition: opacity .25s; display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; border-top-right-radius: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, #000 78%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, #000 78%, transparent 100%); mask-composite: intersect; }
.ar-steps { display: flex; align-items: center; gap: 20px; margin: 14px 44px 0; padding: 20px 28px; border-radius: 18px; border: 1px solid rgba(255, 110, 200, 0.3); background: rgba(255, 255, 255, 0.025); }
.ar-steps > b { font-size: 22px; color: #fff; white-space: nowrap; padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.ar-steps ol { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; }
.ar-steps li { display: flex; align-items: center; gap: 14px; margin: 0 !important; color: #e8dcf2; font-size: 16px; line-height: 1.35; }
.ar-steps li svg { width: 40px; height: 40px; flex: none; fill: none; stroke: #ff5fd0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 79, 200, .5)); }
.ar-steps li strong { color: #fff; font-weight: 600; }
.ar-steps .sep { color: #ff5fd0; font-size: 22px; opacity: .8; }
.ar-cta { text-align: center; margin-top: 22px; }
.ar-cta .proj-cta { font-size: 18px; padding: 15px 44px; }
@media (max-width: 820px) {
  .ar-top { grid-template-columns: 1fr; }
  .ar-media { order: -1; height: 300px; }
  .ar-media img { object-position: 30% 35%; border-radius: 20px 20px 0 0;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .ar-copy { padding: 4px 22px 0; }
  .ar-steps { flex-direction: column; align-items: flex-start; margin: 20px 22px 0; padding: 18px 20px; }
  .ar-steps > b { border: 0; padding: 0; }
  .ar-steps ol { flex-direction: column; align-items: flex-start; }
  .ar-steps .sep { display: none; }
  .ar-cta .proj-cta { font-size: 16px; padding: 14px 26px; }
}

/* ---------- Proyecto Modelado y Render 3D: ventana especial ---------- */
.m3 { display: grid; grid-template-columns: minmax(0, 0.37fr) minmax(0, 0.63fr); grid-template-areas: "copy hero" "copy work" "cmp proc"; column-gap: 22px; padding: 30px 30px 0; }
.m3-copy { grid-area: copy; } .m3-hero { grid-area: hero; } .m3-work { grid-area: work; } .m3-cmp { grid-area: cmp; } .m3-proc { grid-area: proc; }
.m3-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.m3-brand img { height: 42px; width: auto; }
.m3-brand i { width: 1.5px; height: 40px; background: rgba(255, 255, 255, .5); }
.m3-brand span { font-size: 15px; line-height: 1.25; color: #fff; }
.m3-kick { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; padding: 6px 14px; border-radius: 999px; background: rgba(255, 63, 210, .16); border: 1px solid rgba(255, 110, 200, .35); margin: 0 0 14px !important; }
.m3-h { font-family: var(--font-display); font-size: clamp(24px, 2.15vw, 33px); white-space: nowrap; font-weight: 800; line-height: 1.08; color: #fff; margin: 0 0 12px; }
.m3-h span { color: #ff3fd2; }
.m3-lead { font-size: 16.5px; line-height: 1.5; color: #cfc3da; margin: 0 0 18px !important; }
.m3-feats { list-style: none; padding: 0 !important; margin: 0 0 22px !important; display: grid; gap: 10px; }
.m3-feats li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; margin: 0 !important; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 110, 200, .25); background: rgba(255, 255, 255, .025); }
.m3-feats svg, .m3-tabs svg, .m3-steps svg { fill: none; stroke: #ff5fd0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m3-feats svg { width: 34px; height: 34px; }
.m3-feats b { display: block; color: #fff; font-size: 16px; line-height: 1.3; }
.m3-feats span { display: block; color: #bfb2cc; font-size: 13.5px; line-height: 1.4; }
.m3-hero { aspect-ratio: 2.4; border-radius: 16px; overflow: hidden; background: #1a0623; }
.m3-hero img, .m3-cmp img { transition: opacity .25s; } .m3-hero img.swap, .m3-cmp img.swap { opacity: 0; }
.m3-hero img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
.m3-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 14px; }
.m3-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 110, 200, .35); transition: background .2s, box-shadow .2s; }
.m3-tabs button svg { width: 22px; height: 22px; stroke: #fff; }
.m3-tabs button[aria-pressed="true"] { background: linear-gradient(180deg, #ff5fbf, #e0168f); border-color: transparent; box-shadow: 0 0 18px rgba(255, 79, 163, .55); }
.m3-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.m3-cards button { text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 110, 200, .25); background: rgba(255, 255, 255, .03); transition: border-color .2s, box-shadow .2s, transform .2s; }
.m3-cards button:hover { transform: translateY(-2px); }
.m3-cards button[aria-pressed="true"] { border-color: #ff3fd2; box-shadow: 0 0 0 1px #ff3fd2, 0 0 18px rgba(255, 63, 210, .45); }
.m3-cards img { display: block; width: 100%; aspect-ratio: 215 / 127; object-fit: cover; }
.m3-cards b { display: block; padding: 10px 12px 2px; color: #fff; font-size: 15px; line-height: 1.25; }
.m3-cards span { display: block; padding: 0 12px 12px; color: #bfb2cc; font-size: 13px; line-height: 1.4; }
.m3-cmp { align-self: start; margin-top: 20px; }
.m3-cmp img { display: block; width: 100%; aspect-ratio: 2.06; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255, 110, 200, .25); }
.m3-proc { margin-top: 20px; }
.m3-proc h3 { font-size: 24px !important; color: #fff; margin: 0 0 12px !important; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.m3-proc h3 span { color: #ff3fd2; }
.m3-steps { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.m3-steps li { flex: 1; text-align: center; margin: 0 !important; color: #cfc3da; font-size: 14px; line-height: 1.35; }
.m3-steps li i { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 50%; border: 1.5px solid #ff5fd0; box-shadow: 0 0 12px rgba(255, 63, 210, .35); }
.m3-steps li i svg { width: 26px; height: 26px; }
.m3-steps li b { display: block; color: #fff; font-size: 16px; }
.m3-steps .sep { flex: 0 0 auto; color: #ff5fd0; font-size: 26px; padding-top: 14px; }
.m3-cta { text-align: center; margin: 20px 0 4px; }
.m3-cta .proj-cta { font-size: 18px; padding: 15px 40px; }
@media (max-width: 900px) {
  .m3-h { white-space: normal; }
  .m3-brand img { height: 30px; } .m3-brand span { font-size: 12.5px; } .m3-brand i { height: 30px; }
  .m3 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "hero" "work" "proc" "cmp"; padding: 22px 18px 0; }
  .m3-brand { margin-right: 50px; }
  .m3-tabs, .m3-cards { grid-template-columns: repeat(2, 1fr); }
  .m3-steps { flex-wrap: wrap; } .m3-steps li { flex: 1 1 40%; } .m3-steps .sep { display: none; }
  .m3-cta .proj-cta { font-size: 16px; padding: 14px 24px; }
}

/* ---------- Tarjeta Modelado 3D: animación de ensamblado ---------- */
.pfp-media.exp { container-type: inline-size; overflow: hidden; isolation: isolate; z-index: 0; }
.pfp-media.exp::after { z-index: 4; }
.pfp-media.exp > img { position: absolute; inset: 0; }
.exp .exp-base, .exp .exp-full { transition: transform .9s cubic-bezier(.2,.7,.2,1); transform-origin: 62% 60%; }
.exp .exp-full { z-index: 1; transition: opacity 0s 1.15s, transform .9s cubic-bezier(.2,.7,.2,1); }
.pfp-media.exp > img.exp-p { position: absolute; inset: auto; height: auto; object-fit: fill; z-index: 2; pointer-events: none;
  transition: transform .75s cubic-bezier(.55,0,.85,.35) var(--rd), opacity .5s ease var(--rd), filter .5s var(--rd); will-change: transform; }
.pfp-media.exp > img.exp-done { z-index: 2; opacity: 0; transform: scale(1.08); transition: opacity .15s ease, transform .3s ease; }
.exp .exp-veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s ease .1s;
  background: radial-gradient(38% 55% at 22% 58%, rgba(28,6,36,.92), rgba(28,6,36,.55) 60%, transparent 100%), linear-gradient(90deg, rgba(24,5,32,.55), transparent 48%); }
.exp .exp-glow, .exp .exp-ring, .exp .exp-flash { position: absolute; z-index: 3; pointer-events: none; opacity: 0; }
.exp .exp-glow { left: 48%; top: 30%; width: 34cqw; height: 34cqw; margin: -17cqw 0 0 -17cqw; top: 66%; left: 58%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,230,.9), rgba(255,40,200,.45) 35%, rgba(255,0,180,0) 70%); mix-blend-mode: screen; }
.exp .exp-ring { left: 58%; top: 66%; width: 20cqw; height: 20cqw; margin: -10cqw 0 0 -10cqw; border-radius: 50%; border: 0.6cqw solid #ff6fe0; box-shadow: 0 0 3cqw #ff3fd2, inset 0 0 2cqw #ff3fd2; }
.exp .exp-flash { inset: 0; background: radial-gradient(60% 80% at 52% 62%, rgba(255,255,255,.75), rgba(255,120,230,.25) 40%, transparent 70%); mix-blend-mode: screen; }
@media (hover: hover) and (pointer: fine) {
  .pfp-card:hover .exp .exp-full { opacity: 0; transition: opacity 0s 0s, transform .9s; }
  .pfp-card:hover .exp .exp-p { transform: translate(var(--dx), var(--dy)) scale(.45) rotate(8deg); opacity: 0; filter: brightness(1.8) drop-shadow(0 0 6px #ff3fd2);
    transition: transform .75s cubic-bezier(.6,0,.9,.4) var(--d), opacity .2s ease calc(var(--d) + .6s), filter .5s var(--d); }
  .pfp-card:hover .exp .exp-done { opacity: 1; transform: none; transition: opacity .35s ease .9s, transform .9s cubic-bezier(.2,1.4,.4,1) .9s; }
  .pfp-card:hover .exp .exp-base { transform: scale(1.06); transition: transform .5s cubic-bezier(.3,1.6,.5,1) .85s; }
  .pfp-card:hover .exp .exp-glow { animation: expGlow 1.6s ease-out .85s forwards; }
  .pfp-card:hover .exp .exp-ring { animation: expRing .9s ease-out .9s forwards; }
  .pfp-card:hover .exp .exp-flash { animation: expFlash .55s ease-out .85s forwards; }
}
@keyframes expGlow { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.1); } 100% { opacity: .55; transform: scale(1); } }
@keyframes expRing { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes expFlash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .exp .exp-p, .exp .exp-glow, .exp .exp-ring, .exp .exp-flash { display: none; } }

/* ================= ALCRIX CHALLENGE ================= */
.ch-hide { display: none !important; }
/* --- Fase 1: intro de 3 s --- */
.ch-intro { position: fixed; inset: 0; z-index: 300; background: #030006; overflow: hidden; pointer-events: auto;
  display: grid; place-items: center; transition: opacity .45s ease; }
.ch-intro.out { opacity: 0; pointer-events: none; }
.ch-intro .fl { position: absolute; inset: -10%; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(255, 47, 207, .55), rgba(150, 40, 220, .28) 45%, transparent 75%);
  animation: chFlash 3s linear forwards; }
.ch-intro .fl.b { background: radial-gradient(ellipse 40% 60% at 22% 30%, rgba(150, 60, 255, .45), transparent 70%), radial-gradient(ellipse 40% 60% at 80% 72%, rgba(255, 60, 200, .45), transparent 70%);
  animation-name: chFlash2; }
@keyframes chFlash {
  0%, 12% { opacity: 0; } 22% { opacity: .75; } 32% { opacity: .1; }
  44% { opacity: .55; } 52% { opacity: .12; } 60% { opacity: .6; } 68% { opacity: .15; }
  82% { opacity: .35; } 92% { opacity: .9; } 100% { opacity: .5; }
}
@keyframes chFlash2 {
  0%, 30% { opacity: 0; } 40% { opacity: .7; } 48% { opacity: .1; } 57% { opacity: .65; } 64% { opacity: .1; }
  74% { opacity: .5; } 90% { opacity: .8; } 100% { opacity: .3; }
}
.ch-intro .edge { position: absolute; background: linear-gradient(90deg, transparent, #ff4fd8, #fff, #b65cff, transparent);
  box-shadow: 0 0 12px #ff3fd2, 0 0 26px #c23bff; opacity: 0; }
.ch-intro .e1 { top: 0; left: -40%; width: 40%; height: 2px; animation: chEdgeX 1.1s .25s ease-in-out forwards; }
.ch-intro .e2 { bottom: 0; right: -40%; width: 40%; height: 2px; animation: chEdgeXr 1.1s .55s ease-in-out forwards; }
.ch-intro .e3 { left: 0; top: -40%; width: 2px; height: 40%; background: linear-gradient(180deg, transparent, #ff4fd8, #fff, #b65cff, transparent); animation: chEdgeY 1.1s .9s ease-in-out forwards; }
.ch-intro .e4 { right: 0; bottom: -40%; width: 2px; height: 40%; background: linear-gradient(180deg, transparent, #ff4fd8, #fff, #b65cff, transparent); animation: chEdgeYr 1.1s 1.25s ease-in-out forwards; }
@keyframes chEdgeX { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(350%); opacity: 0; } }
@keyframes chEdgeXr { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(-350%); opacity: 0; } }
@keyframes chEdgeY { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(350%); opacity: 0; } }
@keyframes chEdgeYr { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-350%); opacity: 0; } }
.ch-intro .sp { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #ff4fd8, 0 0 16px #ff1fb8; opacity: 0;
  animation: chSpark 1.4s ease-out infinite; }
@keyframes chSpark { 0%, 60% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(.4); } }
.ch-intro .logo { position: relative; width: min(300px, 62vw); opacity: 0; filter: drop-shadow(0 0 14px rgba(255, 63, 210, .7));
  animation: chLogo 3s ease forwards; }
@keyframes chLogo { 0%, 55% { opacity: 0; transform: scale(.96); } 62% { opacity: .5; } 66% { opacity: .15; } 74%, 100% { opacity: 1; transform: scale(1); } }
.ch-intro .boot { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); width: min(220px, 50vw); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ch-intro .boot i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b65cff, #ff3fd2); box-shadow: 0 0 10px #ff3fd2; animation: chBoot 2.8s .1s ease-in-out forwards; }
@keyframes chBoot { to { width: 100%; } }

/* --- Fase 2: banner compacto --- */
.ch-ban { position: fixed; inset: 0; z-index: 290; display: grid; place-items: center; padding: 16px;
  background: rgba(6, 2, 10, .72); backdrop-filter: blur(5px); opacity: 0; transition: opacity .45s ease; }
.ch-ban.on { opacity: 1; }
.ch-card { position: relative; width: min(940px, 100%); max-height: calc(100dvh - 32px); overflow: auto; scrollbar-width: none;
  border-radius: 24px; border: 1.5px solid rgba(255, 110, 220, .7); color: #fff;
  background: radial-gradient(90% 70% at 85% 0%, #3b0b4d 0%, #1a0623 55%, #0d0312 100%);
  box-shadow: 0 0 0 1px rgba(255, 63, 210, .25), 0 0 46px rgba(255, 63, 210, .45), 0 30px 80px -20px rgba(0, 0, 0, .9);
  transform: translateY(16px) scale(.97); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ch-ban.on .ch-card { transform: none; }
.ch-card::-webkit-scrollbar { display: none; }
.ch-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(18, 6, 26, .75); border: 1.5px solid rgba(255, 110, 220, .75); color: #fff; font-size: 18px; line-height: 1; }
.ch-x:hover { background: var(--accent); color: #1a0812; }
.ch-x:focus-visible, .ch-go:focus-visible, .ch-tl:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ch-x:focus-visible, .ch-go:focus-visible, .ch-tl:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* base del banner */
.ch-h { font-family: var(--font-display); font-weight: 800; font-style: italic; line-height: .95; margin: 2px 0 0; letter-spacing: -.01em; }
.ch-h .a { display: block; font-size: clamp(32px, 4.4vw, 46px); background: linear-gradient(180deg, #ffffff 0%, #e9e3f2 45%, #9d93ad 55%, #f3eef9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4)); }
.ch-h .b { display: block; font-size: clamp(32px, 4.4vw, 46px); background: linear-gradient(180deg, #ff9de6 0%, #ff3fd2 50%, #c80fa8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(255, 47, 207, .55)); }
.ch-sub { margin: 0; font-size: clamp(16px, 1.9vw, 20px); font-weight: 700; line-height: 1.25; }
.ch-sub em { font-style: italic; color: #ff4fd8; }
.ch-steps { list-style: none; margin: 2px 0 0; padding: 9px 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  border: 1.5px solid rgba(255, 110, 220, .55); border-radius: 16px; background: rgba(255, 63, 210, .05); }
.ch-steps li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13.5px; line-height: 1.2; color: #f1e9f7; }
.ch-steps li + li::before { content: "›"; position: absolute; left: -9px; top: 26px; color: #ff4fd8; font-size: 22px; line-height: 1; }
.ch-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #ff4fd8; font-size: 13px; color: #fff; box-shadow: 0 0 8px rgba(255, 63, 210, .5); }
.ch-steps svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 63, 210, .6)); }
.ch-steps a { color: inherit; text-decoration: none; display: contents; }
.ch-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; cursor: pointer; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(17px, 2vw, 21px); letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #ff6fd0, #e0169f); box-shadow: 0 0 22px rgba(255, 47, 207, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .2s ease, box-shadow .2s ease; }
.ch-go:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255, 47, 207, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.ch-go[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.ch-tl { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 79, 216, .6); text-underline-offset: 3px; cursor: pointer; }
.ch-note { margin: 0; font-size: 12.5px; color: #ffc2e1; text-align: center; }
/* Banner v2 (diseño con robot y trofeo) */
.ch-card { width: min(1000px, 100%); }
.ch-grid { display: grid; grid-template-columns: 35% minmax(0, 1fr); }
.ch-side { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 8px 0 12px 22px; }
.ch-pic { position: relative; flex: 1 1 auto; min-height: 380px; }
.ch-pic img { position: absolute; top: -9%; left: -9%; width: 118%; height: 109%; object-fit: contain; object-position: 50% 100%; pointer-events: none; }
.ch-feat { position: relative; list-style: none; margin: 0 6px 0 34px; padding: 0; display: grid; gap: 10px; }
.ch-feat li { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 12px; font-size: 12.5px; line-height: 1.3; color: #eadff3;
  border: 1.5px solid rgba(255, 95, 220, .85); background: linear-gradient(100deg, rgba(255, 63, 210, .16), rgba(34, 8, 44, .88) 55%);
  box-shadow: 0 0 14px rgba(255, 47, 207, .45), inset 0 0 14px rgba(255, 47, 207, .14); }
.ch-feat b { display: block; font-family: var(--font-display); font-size: 14.5px; color: #fff; }
.ch-feat svg { flex: none; width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 63, 210, .7)); }
.ch-body { padding: 16px 24px 12px 12px; display: flex; flex-direction: column; gap: 9px; }
.ch-logo { height: 32px; width: auto; align-self: center; }
.ch-h { margin: 0; text-align: center; white-space: nowrap; line-height: 1; }
.ch-h .a, .ch-h .b { display: inline; font-size: clamp(30px, 4.3vw, 52px); }
.ch-sub { margin: -2px 0 0; text-align: center; font-style: italic; font-weight: 800; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.2; }
.ch-how { position: relative; margin-top: 12px; }
.ch-tab { position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%); z-index: 1; white-space: nowrap; padding: 4px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(180deg, #5a1470, #2c0a3a); border: 1.5px solid #ff4fd8; box-shadow: 0 0 12px rgba(255, 63, 210, .5); }
.ch-steps { margin: 0; padding: 16px 8px 9px; }
.ch-steps li { font-size: 13.5px; }
.ch-steps li + li::before { top: 30px; }
.ch-prize { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 14px 8px 4px; border-radius: 16px;
  border: 2px solid #ffc24a; background: linear-gradient(100deg, rgba(255, 63, 210, .22), rgba(60, 12, 72, .6) 45%, rgba(20, 6, 28, .8));
  box-shadow: 0 0 18px rgba(255, 190, 70, .45), inset 0 0 18px rgba(255, 190, 70, .12); }
.ch-prize img { flex: none; width: 108px; height: auto; margin: -16px -8px -10px -8px; filter: drop-shadow(0 0 10px rgba(255, 47, 207, .45)); }
.ch-prize > div { min-width: 0; }
.ch-tag { display: inline-block; padding: 2px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #fff;
  background: linear-gradient(180deg, #ff6fd0, #c80fa8); }
.ch-prize strong { display: block; margin: 4px 0 6px; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.05;
  font-size: clamp(16px, 1.75vw, 21px); background: linear-gradient(180deg, #fff6c9, #ffd257 45%, #f5a623); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 190, 70, .35)); }
.ch-prize ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 0; }
.ch-prize ul li { flex: none; white-space: nowrap; padding: 0 8px; }
.ch-prize ul li:first-child { padding-left: 0; }
.ch-prize ul li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
@media (max-width: 960px) and (min-width: 681px) { .ch-prize ul { flex-wrap: wrap; row-gap: 4px; } .ch-prize ul li { padding: 0 14px 0 0; border: 0 !important; } }
@media (max-width: 680px) { .ch-prize ul { flex-wrap: wrap; gap: 4px 0; } .ch-prize ul li { padding: 0; border: 0 !important; white-space: normal; flex-basis: 100%; } }
.ch-prize li { display: flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 1.2; color: #f1e9f7; }
.ch-prize li svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
/* formulario */
.ch-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px 10px; }
.ch-form .full { grid-column: 1 / -1; }
.ch-form-t { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; }
.ch-form-t em { font-style: normal; color: #ff4fd8; }
.ch-form-t svg, .fld > svg { flex: none; width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fld { display: flex; align-items: center; gap: 12px; padding: 6px 14px; min-height: 54px; border-radius: 14px; cursor: text;
  border: 1.5px solid rgba(255, 110, 220, .45); background: rgba(22, 6, 30, .7); transition: border-color .15s, box-shadow .15s; }
.fld:focus-within { border-color: #ff3fd2; box-shadow: 0 0 0 3px rgba(255, 63, 210, .25); }
.fld:has(input.bad) { border-color: #ff5d7a; box-shadow: 0 0 0 3px rgba(255, 93, 122, .2); }
.fl-in { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fl-l { font-size: 12.5px; font-weight: 700; color: #fff; }
.fl-l span { font-weight: 500; color: #e0d3eb; }
.ch-form .fld input { font: inherit; font-size: 16px; color: #fff; background: transparent; border: 0; padding: 2px 0; min-height: 28px; width: 100%; outline: none; }
.ch-form .fld input::placeholder { color: rgba(241, 233, 247, .55); }
.fl-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc { flex: none; display: flex; padding-right: 8px; border-right: 1px solid rgba(255, 255, 255, .15); }
.cc-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 6px 2px 2px; margin-left: -2px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 600; }
.cc-btn::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border: solid #ff8de6; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.cc-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.cc-btn:hover, .cc-btn[aria-expanded="true"] { background: rgba(255, 63, 210, .14); }
.cc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.cc-f { display: flex; }
.flag { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); overflow: hidden; flex: none; }
/* lista de países */
.cc-pop { position: fixed; z-index: 340; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; color: #fff;
  background: linear-gradient(180deg, #2a0a36, #14041c); border: 1.5px solid rgba(255, 95, 220, .85);
  box-shadow: 0 0 24px rgba(255, 47, 207, .45), 0 24px 50px -10px rgba(0, 0, 0, .9); animation: ccIn .16s ease-out; }
@keyframes ccIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cc-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 110, 220, .3); }
.cc-search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #ff8de6; stroke-width: 2; stroke-linecap: round; }
.cc-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: #fff; background: transparent; border: 0; outline: none; padding: 4px 0; }
.cc-search input::placeholder { color: rgba(241, 233, 247, .5); }
.cc-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ff3fd2 transparent; }
.cc-list li { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 6px 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: #f1e9f7; }
.cc-list li .n { flex: 1; min-width: 0; }
.cc-list li .c { color: #cdbfdb; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.cc-list li .tick { flex: none; width: 18px; height: 18px; fill: none; stroke: #ff4fd8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cc-list li:hover, .cc-list li.act { background: rgba(255, 63, 210, .16); }
.cc-list li.act { box-shadow: inset 0 0 0 1px rgba(255, 110, 220, .6); }
.cc-list li[aria-selected="true"] { color: #fff; font-weight: 700; }
.cc-list li[aria-selected="true"] .c { color: #ff8de6; }
.ch-form .ch-ok { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 14px; line-height: 1.4; color: #f1e9f7; padding: 10px 16px; border-radius: 14px;
  border: 1.5px solid rgba(255, 110, 220, .45); background: rgba(22, 6, 30, .7); cursor: pointer; }
.ch-form .ch-ok.bad { border-color: #ff5d7a; background: rgba(255, 93, 122, .1); }
.ch-form .ch-ok input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: #ff3fd2; cursor: pointer; }
.ch-form .ch-ok a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 79, 216, .8); text-underline-offset: 2px; }
.ch-go svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ch-err { margin: 0; font-size: 13px; color: #ff9db0; }
.ch-err:empty { display: none; }
.ch-state { display: grid; gap: 10px; text-align: center; padding: 14px; border-radius: 16px; border: 1.5px solid rgba(255, 110, 220, .45); background: rgba(255, 63, 210, .06); }
.ch-state p { margin: 0; color: #e6dcef; font-size: 14.5px; line-height: 1.5; }
.ch-state .big { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #ff4fd8; }
.ch-state .wait { color: #cbbfd8; }
.ch-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin: -2px 0 0; font-size: 12px; color: #ffd98a; text-align: center; }
.ch-demo > svg { width: 18px; height: 18px; fill: #ffcf3a; stroke: none; }
.ch-demo button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255, 110, 220, .7); background: rgba(22, 6, 30, .7);
  color: #fff; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ch-demo button svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* pie */
.ch-foot { list-style: none; margin: 0; display: flex; justify-content: center; align-items: center; gap: 10px 0; padding: 10px 18px 12px; border-top: 1px solid rgba(255, 110, 220, .35); font-size: 13px; color: #f1e9f7; }
.ch-foot li { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.ch-foot li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
.ch-foot b { color: #fff; }
.ch-foot svg { flex: none; width: 24px; height: 24px; fill: none; stroke: #ff4fd8; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 860px) {
  .ch-foot { flex-direction: column; align-items: stretch; }
  .ch-foot li { padding: 0; }
  .ch-foot li + li { border-left: 0; }
}
@media (max-width: 680px) {
  .ch-ban { padding: 10px; }
  .ch-card { max-height: calc(100dvh - 20px); border-radius: 20px; }
  .ch-grid { grid-template-columns: 1fr; }
  .ch-side { display: contents; }
  .ch-pic { position: absolute; left: 0; top: 0; width: 40%; height: 220px; min-height: 0; pointer-events: none; }
  .ch-pic img { left: 0; width: 100%; top: 0; height: 100%; object-position: 50% 0; }
  .ch-feat { order: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0 16px 14px; gap: 6px; }
  .ch-feat li { flex-direction: column; text-align: center; gap: 4px; padding: 8px 6px; font-size: 11px; }
  .ch-feat b { font-size: 12px; }
  .ch-feat svg { width: 24px; height: 24px; }
  .ch-body { position: relative; padding: 16px 14px 12px; gap: 10px; }
  .ch-logo { height: 24px; align-self: flex-end; margin-right: 50px; }
  .ch-h { margin-left: 36%; text-align: left; white-space: normal; line-height: .95; }
  .ch-h .a, .ch-h .b { display: block; font-size: min(8.4vw, 38px); }
  .ch-sub { margin-left: 36%; text-align: left; font-size: 14.5px; min-height: 52px; }
  .ch-how { margin-top: 14px; }
  .ch-steps li { font-size: 12px; }
  .ch-prize { gap: 10px; padding: 8px 10px 8px 6px; }
  .ch-prize img { width: 86px; margin: -10px -4px -8px -6px; }
  .ch-prize li { font-size: 12px; }
  .ch-form { grid-template-columns: 1fr; }
  .ch-form .fld { grid-column: 1 / -1; }
  .ch-form .ch-ok { font-size: 13px; padding: 10px 12px; gap: 12px; }
  .ch-foot { font-size: 12.5px; padding: 10px 16px 14px; }
  .ch-x { top: 10px; right: 10px; width: 40px; height: 40px; }
}

/* --- Acceso flotante para volver a abrir el challenge --- */
.ch-pill { position: fixed; left: 14px; bottom: 14px; z-index: 89; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #fff; border: 1.5px solid rgba(255, 110, 220, .8);
  background: linear-gradient(180deg, rgba(60, 12, 72, .92), rgba(28, 6, 36, .92)); box-shadow: 0 0 18px rgba(255, 47, 207, .5); }
.ch-pill svg { width: 22px; height: 22px; fill: none; stroke: #ffcf5a; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ch-pill:hover { box-shadow: 0 0 26px rgba(255, 47, 207, .8); }
@media (max-width: 520px) { .ch-pill { left: 10px; bottom: 10px; padding: 9px 13px 9px 10px; font-size: 13px; } }

/* --- Fase 4: transición --- */
.ch-tr { position: fixed; inset: 0; z-index: 310; pointer-events: none; overflow: hidden; }
.ch-tr i { position: absolute; top: 0; bottom: 0; left: -60%; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 47, 207, .25) 30%, rgba(255, 140, 235, .95) 50%, rgba(182, 92, 255, .3) 70%, transparent);
  filter: blur(2px); animation: chSweep .9s cubic-bezier(.6, 0, .3, 1) forwards; }
.ch-tr::before { content: ""; position: absolute; inset: 0; background: #07020b; opacity: 0; animation: chDim .9s ease forwards; }
.ch-tr::after { content: ""; position: absolute; inset: 0; opacity: 0; background: repeating-linear-gradient(0deg, rgba(255, 79, 216, .12) 0 2px, transparent 2px 6px); animation: chDim .9s ease forwards; }
@keyframes chSweep { to { transform: translateX(270%); } }
@keyframes chDim { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }

/* --- Fase 5 y 6: cuestionario y resultados --- */
.chq { position: fixed; inset: 0; z-index: 280; overflow: auto; color: #fff;
  background: radial-gradient(80% 60% at 80% 0%, #3a0a4c 0%, #160520 50%, #08020d 100%); }
.chq-in { width: min(760px, 100%); margin: 0 auto; padding: 18px 18px 40px; }
.chq-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.chq-top img { height: 30px; width: auto; }
.chq-top .t { flex: 1; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 17px; letter-spacing: .02em; }
.chq-top .t span { color: #ff4fd8; }
.chq-top .tm { font-variant-numeric: tabular-nums; font-size: 13.5px; color: #e0d3eb; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 110, 220, .4); white-space: nowrap; }
.chq-top .q-x { width: 40px; height: 40px; flex: none; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 110, 220, .5); color: #fff; font-size: 16px; }
.chq-card { border-radius: 22px; padding: clamp(18px, 3vw, 30px); border: 1.5px solid rgba(255, 110, 220, .55);
  background: linear-gradient(180deg, rgba(255, 63, 210, .07), rgba(255, 255, 255, .02)); box-shadow: 0 0 34px rgba(255, 47, 207, .2); }
.chq-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #e0d3eb; margin-bottom: 8px; }
.chq-meta b { font-family: var(--font-display); color: #fff; font-size: 15px; }
.chq-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 22px; }
.chq-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #b65cff, #ff3fd2); box-shadow: 0 0 12px #ff3fd2; transition: width .4s ease; }
.chq-cat { display: inline-block; font-size: 12.5px; font-weight: 700; color: #ffc2ef; padding: 4px 12px; border-radius: 999px; background: rgba(255, 63, 210, .14); margin-bottom: 10px; }
.chq-q { font-family: var(--font-display); font-size: clamp(20px, 2.8vw, 26px); line-height: 1.25; margin: 0 0 18px; }
.chq-opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chq-opts button { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; padding: 14px 16px; min-height: 56px; border-radius: 14px;
  font: inherit; font-size: 16px; line-height: 1.3; color: #f1e9f7; background: rgba(255, 255, 255, .03); border: 1.5px solid rgba(255, 255, 255, .14); transition: border-color .15s, background .15s, box-shadow .15s; }
.chq-opts button:hover { border-color: rgba(255, 110, 220, .7); }
.chq-opts button .l { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255, 110, 220, .7); font-weight: 800; font-size: 14px; color: #fff; }
.chq-opts button[aria-checked="true"] { border-color: #ff3fd2; background: rgba(255, 63, 210, .14); box-shadow: 0 0 0 1px #ff3fd2, 0 0 18px rgba(255, 47, 207, .35); color: #fff; }
.chq-opts button[aria-checked="true"] .l { background: linear-gradient(180deg, #ff6fd0, #e0169f); border-color: transparent; }
.chq-opts button:focus-visible, .chq-next:focus-visible, .chq-top .q-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chq-nav { display: flex; justify-content: flex-end; margin-top: 20px; }
.chq-next { min-width: 180px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .03em; color: #fff;
  background: linear-gradient(180deg, #ff6fd0, #e0169f); box-shadow: 0 0 20px rgba(255, 47, 207, .55); }
.chq-next[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.chq-hint { margin: 14px 0 0; font-size: 12.5px; color: #bfb1cc; text-align: center; }
/* resultados */
.chr { text-align: center; }
.chr .score { display: inline-grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; margin: 4px auto 14px; font-family: var(--font-display); font-weight: 800; font-size: 40px;
  border: 3px solid #ff3fd2; box-shadow: 0 0 30px rgba(255, 47, 207, .55), inset 0 0 22px rgba(255, 47, 207, .25); }
.chr .score small { display: block; font-size: 14px; font-weight: 600; color: #e0d3eb; margin-top: -6px; }
.chr h2 { font-family: var(--font-display); font-size: clamp(22px, 3.6vw, 32px); line-height: 1.15; margin: 0 0 8px; }
.chr h2 span { color: #ff4fd8; }
.chr.win h2 { font-style: italic; text-transform: uppercase; }
.chr p { color: #e0d3eb; font-size: 15.5px; line-height: 1.5; margin: 0 auto 10px; max-width: 560px; }
.chr .when { font-size: 13px; color: #bfb1cc; }
.chr .trophy { width: 96px; height: 96px; margin: 0 auto 6px; display: block; fill: none; stroke: #ffcf5a; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 16px rgba(255, 190, 70, .55)); animation: chPop .7s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes chPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.chr form { text-align: left; display: grid; gap: 10px; margin: 18px auto 0; max-width: 460px; }
.chr label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 700; color: #f1e9f7; }
.chr input { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .16); }
.chr input:focus { outline: none; border-color: #ff3fd2; box-shadow: 0 0 0 3px rgba(255, 63, 210, .25); }
.chr input.bad { border-color: #ff5d7a; }
.chr .err { min-height: 18px; margin: 0; font-size: 13px; color: #ff9db0; text-align: left; }
.chr .send { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 16.5px; color: #07210f;
  background: linear-gradient(180deg, #5df08c, #25c45d); box-shadow: 0 0 18px rgba(37, 196, 93, .45); text-decoration: none; }
.chr .code { display: inline-block; margin: 6px 0 2px; padding: 8px 16px; border-radius: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; letter-spacing: .08em; border: 1px dashed rgba(255, 110, 220, .7); color: #fff; }
.chr .home { display: inline-block; margin-top: 16px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; font: inherit; font-weight: 700; }
.chr .sent { margin-top: 12px; font-size: 14px; color: #9ff0bb; }
@media (max-width: 600px) {
  .chq-in { padding: 12px 12px 30px; }
  .chq-top img { height: 24px; }
  .chq-top .t { font-size: 14px; }
  .chq-top .tm { font-size: 12.5px; padding: 5px 9px; }
  .chq-opts button { font-size: 15.5px; padding: 12px 14px; }
  .chq-next { width: 100%; }
}

/* --- Cronómetro de 7 segundos --- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chq-meta .chq-cat { margin: 0; }
.chq-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.chq-head .chq-q { flex: 1; margin: 0; }
.chq-clock { position: relative; flex: none; width: 84px; height: 84px; display: grid; place-items: center; }
.chq-clock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.chq-clock circle { fill: none; stroke-width: 7; }
.chq-clock .bg { stroke: rgba(255, 255, 255, .1); }
.chq-clock .fg { stroke: #ff3fd2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 63, 210, .8)); }
.chq-clock span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 32px; font-variant-numeric: tabular-nums; color: #fff; }
.chq-clock.warn .fg { stroke: #ff4d6d; filter: drop-shadow(0 0 8px rgba(255, 77, 109, .9)); }
.chq-clock.warn span { color: #ff8da1; animation: chBeat .5s ease-in-out infinite alternate; }
.chq-clock.over span { color: #ff8da1; }
@keyframes chBeat { from { transform: scale(1); } to { transform: scale(1.22); } }
.chq-time { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 0 0 18px; }
.chq-time i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff4d6d, #ff3fd2 40%, #b65cff); }
.chq-out { margin-top: 14px; padding: 12px 16px; border-radius: 14px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff;
  background: rgba(255, 77, 109, .18); border: 1.5px solid #ff4d6d; box-shadow: 0 0 22px rgba(255, 77, 109, .35); animation: chPop .35s cubic-bezier(.2, .9, .3, 1.3) both; }
.chq-opts button[disabled] { cursor: default; }
.chq-opts button[disabled]:not([aria-checked="true"]) { opacity: .55; }
.chq-ready { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.chq-ready p { margin: 0; font-size: 17px; color: #e6dcef; }
.chq-ready .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 22vw, 160px); line-height: 1; color: #fff; text-shadow: 0 0 30px rgba(255, 63, 210, .9), 0 0 60px rgba(182, 92, 255, .6); }
.chq-ready .n.pop { animation: chPop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.chr .chr-btn { width: auto; display: inline-flex; padding: 0 30px; margin-top: 14px; }
.chr .small { font-size: 13px; color: #cbbfd8; }
@media (max-width: 600px) {
  .chq-head { gap: 12px; }
  .chq-clock { width: 64px; height: 64px; }
  .chq-clock span { font-size: 24px; }
  .chq-meta { flex-wrap: wrap; gap: 6px; }
}

/* --- Pantalla del ganador --- */
.chw { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 16px; overflow: auto;
  background: rgba(6, 2, 10, .82); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s ease; }
.chw.on { opacity: 1; }
.chw-box { position: relative; z-index: 1; width: min(900px, 100%); display: grid; gap: 14px; justify-items: center; transform: scale(.94); transition: transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.chw.on .chw-box { transform: none; }
.chw-fig { position: relative; width: 100%; border-radius: clamp(14px, 2.4vw, 26px); overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 110, 220, .7), 0 0 50px rgba(255, 63, 210, .5); }
.chw-fig img { display: block; width: 100%; height: auto; }
.chw-x { position: absolute; left: 92.4%; top: 2.2%; width: 5.8%; aspect-ratio: 1; min-width: 32px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.chw-x:hover { background: rgba(255, 255, 255, .12); }
.chw-x:focus-visible, .chw-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chw-note { margin: 0; text-align: center; color: #f1e9f7; font-size: 15px; }
.chw-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.chw-act .ch-go { width: auto; padding: 0 34px; }
.chw-close { min-height: 54px; padding: 0 28px; border-radius: 999px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 110, 220, .6); }
.chw-close:hover { background: rgba(255, 255, 255, .12); }
.chw-conf { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.chw-conf i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; background: #ff4fd8; opacity: 0; animation: chFall linear infinite; }
.chw-conf i:nth-child(3n) { background: #ffcf5a; width: 7px; }
.chw-conf i:nth-child(4n) { background: #b65cff; height: 10px; }
@keyframes chFall { 0% { opacity: 0; transform: translateY(0) rotate(var(--r)); } 10% { opacity: 1; } 100% { opacity: .9; transform: translateY(105vh) rotate(calc(var(--r) + 540deg)); } }
@media (max-width: 600px) {
  .chw { padding: 10px; }
  .chw-act .ch-go, .chw-close { width: 100%; }
  .chw-note { font-size: 14px; }
}

/* --- Bases del concurso (vista propia) --- */
.bs-page { display: none; padding: 30px 0 70px; }
body.view-bases .bs-page { display: block; }
body.view-bases #inicio, body.view-bases #divisiones, body.view-bases #portafolio, body.view-bases #contacto { display: none; }
.bs-wrap { width: min(860px, calc(100% - 32px)); margin: 0 auto; }
.bs-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #fff; font-weight: 700; cursor: pointer; background: none; border: 0; font: inherit; font-weight: 700; padding: 8px 0; }
.bs-head h1 { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 42px); line-height: 1.08; margin: 0 0 6px; }
.bs-head h1 span { color: #ff4fd8; }
.bs-head p { margin: 0 0 22px; color: #cfc3da; font-size: 15.5px; }
.bs-card { border-radius: 20px; border: 1px solid rgba(255, 110, 220, .35); background: rgba(255, 255, 255, .025); padding: clamp(18px, 3vw, 30px); margin-bottom: 16px; }
.bs-card h2 { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 23px); margin: 0 0 12px; }
.bs-card h2 b { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #ff6fd0, #e0169f); font-size: 16px; }
.bs-card ul, .bs-card ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: #e6dcef; line-height: 1.55; font-size: 15.5px; }
.bs-card p { color: #e6dcef; line-height: 1.6; font-size: 15.5px; margin: 0 0 10px; }
.bs-card dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 16px; margin: 12px 0 0; font-size: 15px; }
.bs-card dt { font-weight: 700; color: #fff; }
.bs-card dd { margin: 0; color: #e6dcef; }
.bs-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.bs-cta .ch-go { width: auto; padding: 0 34px; }
.bs-draft { font-size: 13px; color: #ffc2e1; margin: 0 0 16px; }
@media (max-width: 600px) { .bs-card dl { grid-template-columns: 1fr; gap: 2px; } .bs-card dd { margin-bottom: 8px; } .bs-cta .ch-go { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .ch-intro .fl, .ch-intro .edge, .ch-intro .sp, .ch-intro .boot i { animation: none !important; opacity: 0; }
  .ch-intro .logo { animation: none; opacity: 1; }
  .ch-tr i, .ch-tr::before, .ch-tr::after, .chr .trophy, .chq-clock.warn span, .chq-ready .n.pop, .chq-out { animation: none !important; }
  .chw, .chw-box { transition: none; }
  .ch-card, .ch-ban, .ch-intro { transition: none; }
}

/* ================= PROMOCIONES (se manejan desde la intranet) ================= */
.promo { position: fixed; left: 14px; bottom: 72px; z-index: 88; width: min(330px, calc(100vw - 28px)); padding: 16px 18px 18px; border-radius: 18px; color: #fff;
  border: 1.5px solid rgba(255, 95, 220, .85); background: linear-gradient(160deg, rgba(255, 63, 210, .25), #1e0828 55%);
  box-shadow: 0 0 22px rgba(255, 47, 207, .45), 0 18px 40px -10px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; }
.promo.on { opacity: 1; transform: none; }
.promo-k { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; background: linear-gradient(180deg, #ff6fd0, #e0169f); }
.promo h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.2; margin: 8px 34px 4px 0; }
.promo p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #e6dcef; }
.promo-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #ff6fd0, #e0169f); box-shadow: 0 0 14px rgba(255, 47, 207, .5); }
.promo-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: #fff; font-size: 14px;
  background: rgba(18, 6, 26, .7); border: 1px solid rgba(255, 110, 220, .6); }
.promo-x:focus-visible, .promo-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 520px) { .promo { left: 10px; right: 10px; width: auto; bottom: 64px; } }
@media (prefers-reduced-motion: reduce) { .promo { transition: none; } }

/* Enlace discreto a la intranet (pie de página) */
.team-link { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; color: inherit; opacity: .7; text-decoration: none; white-space: nowrap; }
.team-link:hover, .team-link:focus-visible { opacity: 1; color: var(--accent); }
.team-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ================= RENDIMIENTO (celular) ================= */
/* Las animaciones que no están en pantalla se pausan (js/14-rendimiento.js) */
.anim-off, .anim-off * { animation-play-state: paused !important; }
/* En celulares el «vidrio esmerilado» se cambia por un fondo un poco más sólido: se ve igual y no se traba al desplazar */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  header.top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 7, 16, 0.92); box-shadow: 0 0 0 100vmax rgba(10, 7, 16, 0.92); }
  .div-card, .pf-card, .pfp-badge, .bot-tip, .bot-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .div-card, .pf-card { background: linear-gradient(180deg, rgba(40, 20, 52, 0.55), rgba(22, 10, 30, 0.55)); }
}

/* ===================== ALCRIX ERP (página #erp + aviso en el inicio) ===================== */
.erp-page { display: none; padding: 30px 0 70px; }
body.view-erp .erp-page { display: block; }
body.view-erp #inicio, body.view-erp #divisiones, body.view-erp #portafolio, body.view-erp #contacto, body.view-erp .erp-aviso { display: none; }
.menu a.link-erp { color: var(--accent); font-weight: 700; }
.erp-aviso { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 46px; padding: 16px 20px; border: 1px solid rgba(255,79,163,.45); border-radius: 16px; background: linear-gradient(90deg, rgba(255,79,163,.14), rgba(255,79,163,.03)); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.erp-aviso:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -18px rgba(255,79,163,.7); }
.erp-aviso-tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px; }
.erp-aviso-txt { flex: 1 1 380px; color: #e9e2f0; font-size: 15px; } .erp-aviso-txt b { color: #fff; font-family: var(--font-display); }
.erp-aviso-ir { color: var(--accent); font-weight: 700; white-space: nowrap; }
.erp-hero { max-width: 860px; padding: 18px 0 34px; }
.erp-hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; margin: 10px 0 16px; }
.erp-hero h1 em { font-style: normal; color: var(--accent); display: block; }
.erp-hero .lead { font-size: 18px; color: #e2dbea; max-width: 720px; margin: 0 0 24px; }
.erp-botones { display: flex; gap: 12px; flex-wrap: wrap; }
.erp-btn { display: inline-block; padding: 13px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; transition: transform .15s, border-color .15s; }
.erp-btn:hover { transform: translateY(-2px); border-color: rgba(255,79,163,.6); }
.erp-btn.p { background: linear-gradient(180deg, #ff5fbf, #e0168f); border-color: transparent; color: #fff; box-shadow: 0 0 22px rgba(255,79,163,.45); }
.erp-nota { color: var(--muted); font-size: 14px; margin: 14px 0 0; } .erp-nota a { color: var(--accent); }
.erp-beneficios { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 10px 0 56px; }
.erp-beneficios > div, .erp-pasos > div { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px 20px; }
.erp-beneficios h3, .erp-pasos h3 { font-size: 17px; color: #fff; margin-bottom: 6px; }
.erp-beneficios p { margin: 0; color: #d9d1e3; font-size: 14.5px; line-height: 1.5; }
.erp-bloque { margin-bottom: 56px; }
.erp-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.erp-pasos ol { margin: 6px 0 0; padding-left: 20px; color: #d9d1e3; font-size: 14.5px; } .erp-pasos a { color: var(--accent); }
.erp-sub { color: #d9d1e3; margin: -14px 0 18px; } #erp-conteo { color: var(--accent); font-weight: 700; margin-left: 6px; }
.erp-herr { display: grid; gap: 12px; margin-bottom: 18px; }
.erp-herr input { width: 100%; max-width: 520px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; }
.erp-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.erp-filtros button { border: 1px solid var(--line); background: transparent; color: #d9d1e3; padding: 7px 13px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.erp-filtros button.on, .erp-filtros button:hover { border-color: var(--accent); color: #fff; background: rgba(255,79,163,.16); }
.erp-biblio { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.erp-rubro { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.erp-rubro b { font-family: var(--font-display); font-size: 14.5px; color: #fff; line-height: 1.25; }
.erp-rubro small { color: var(--muted); font-size: 12px; }
.erp-rubro span { margin-top: 6px; align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); }
.erp-rubro.disp { border-color: rgba(255,79,163,.6); box-shadow: 0 0 0 1px rgba(255,79,163,.25) inset; }
.erp-rubro.disp span { background: var(--accent); color: #fff; }
.erp-vacio { color: var(--muted); }
