/* Media Operating System — landing v2
   Estilo: Neumorphism + Glassmorphism (referencia: LH Designs UI Kit, doc/referencias/kit-neu-glass-*.png).
   Claro = neumorfismo (relieve / hundido). Oscuro = vidrio esmerilado sobre manchas de color. */

:root {
  --neu: #e9eaec;
  --neu-2: #f1f2f3;
  --neu-hi: #ffffff;
  --neu-lo: #c6c8cc;
  --ink: #3a3d47;
  --ink-soft: #7a7d86;
  --ink-faint: #a3a6ad;

  --night: #2b2e3b;
  --night-2: #232633;
  --night-3: #353849;
  --on-night: #f2f3f5;
  --on-night-soft: rgba(242, 243, 245, 0.62);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-2: rgba(255, 255, 255, 0.11);
  --glass-edge: rgba(255, 255, 255, 0.16);

  --blob-red: #e2475e;
  --blob-pink: #c94fd6;
  --blob-violet: #7c6cf2;
  --blob-teal: #2bbcd0;
  --blob-blue: #5b8def;

  --lcd: #a9ae9f;
  --lcd-ink: #3b3f35;
  --lcd-ghost: rgba(59, 63, 53, 0.14);

  --raise: 9px 9px 20px var(--neu-lo), -9px -9px 20px var(--neu-hi);
  --raise-sm: 5px 5px 12px var(--neu-lo), -5px -5px 12px var(--neu-hi);
  --dent: inset 5px 5px 11px var(--neu-lo), inset -5px -5px 11px var(--neu-hi);
  --dent-sm: inset 3px 3px 7px var(--neu-lo), inset -3px -3px 7px var(--neu-hi);
  --glow: 0 0 14px rgba(255, 255, 255, 0.85), 0 0 2px #fff;

  --r: 28px;
  --pill: 999px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --lcd-font: "Share Tech Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--neu); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--blob-violet); outline-offset: 3px; }

.label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.night .label { color: var(--on-night-soft); }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.08; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; color: var(--ink); margin-top: 0.9rem; }
h3 { font-size: 1.1rem; font-weight: 500; }
.night h1, .night h2 { color: var(--on-night); }
.lead { font-size: 1.04rem; color: var(--ink-soft); font-weight: 400; }
.night .lead, .night p { color: var(--on-night-soft); }

/* ── Superficies neumórficas ── */
.neu { background: var(--neu); box-shadow: var(--raise); border-radius: var(--r); }
.neu-sm { background: var(--neu); box-shadow: var(--raise-sm); }
.dent { background: var(--neu); box-shadow: var(--dent); }

/* ── Vidrio sobre noche ── */
.glass {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px -30px rgba(0,0,0,.6);
  color: var(--on-night);
}
.blob { position: absolute; border-radius: 50%; filter: blur(34px); opacity: 0.85; pointer-events: none; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: 54px; padding: 0 1.8rem; border-radius: var(--pill);
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), color 0.2s ease;
}
.btn-neu { background: var(--neu); box-shadow: var(--raise-sm); color: var(--ink); }
.btn-neu:hover { color: #111; }
.btn-neu:active { box-shadow: var(--dent-sm); }
.btn-ink { background: var(--night); color: var(--on-night); box-shadow: 6px 6px 14px var(--neu-lo), -6px -6px 14px var(--neu-hi); }
.btn-ink:hover { background: var(--night-3); }
.btn-ink:active { transform: scale(0.98); }
.btn-glass { background: var(--glass-2); border: 1px solid var(--glass-edge); color: var(--on-night); }
.btn-glass:hover { background: rgba(255,255,255,.16); }

/* ── Nav ── */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: var(--pill);
  background: rgba(233, 234, 236, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--raise-sm); max-width: calc(100vw - 32px);
}
.nav a { height: 42px; padding: 0 1.1rem; border-radius: var(--pill); display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: var(--ink-soft); white-space: nowrap; transition: color .2s, box-shadow .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a.is-active { box-shadow: var(--dent-sm); color: var(--ink); }
.nav .brand { font-weight: 600; color: var(--ink); letter-spacing: 0.04em; }
.nav .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 3px var(--neu), 0 0 0 4px var(--neu-lo); }
.nav .login { background: var(--night); color: var(--on-night); }
.nav .login:hover { color: #fff; }

/* ── HERO: corte diagonal claro / oscuro ── */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--neu); isolation: isolate; }
.hero .split {
  position: absolute; z-index: -1; top: -30%; right: -28%; width: 92vw; height: 160%;
  border-radius: 50%; background: radial-gradient(circle at 40% 50%, var(--night-3), var(--night) 45%, var(--night-2));
}
.hero-in { max-width: 1240px; margin: 0 auto; padding: 150px 32px 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 100svh; }
.hero h1 b { font-weight: 500; }
.hero .lead { margin-top: 1.4rem; max-width: 480px; }
.hero .ctas { margin-top: 2.2rem; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .chips { margin-top: 2.4rem; display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; height: 36px; padding: 0 1rem; border-radius: var(--pill); font-size: 0.75rem; color: var(--ink-soft); box-shadow: var(--dent-sm); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: #4bbf73; box-shadow: 0 0 6px #4bbf73; }

/* Consola de creación (lado oscuro) */
.studio { position: relative; justify-self: end; width: min(500px, 100%); }
.studio .blob.b1 { width: 180px; height: 180px; background: var(--blob-pink); top: 8%; left: -6%; }
.studio .blob.b2 { width: 160px; height: 160px; background: var(--blob-teal); bottom: 10%; right: -4%; }
.studio .blob.b3 { width: 120px; height: 120px; background: var(--blob-violet); top: 46%; left: 40%; opacity: .6; }
.studio-card { position: relative; padding: 24px; display: grid; gap: 18px; }
.studio-head { display: flex; justify-content: space-between; align-items: center; }
.studio-head .t { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-soft); }
.lights { display: flex; gap: 7px; }
.lights span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); }
.lights span.on { background: #fff; box-shadow: var(--glow); }

.preview { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; }
.frame {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 14;
  background: linear-gradient(165deg, #6a5acd 0%, #c94fd6 45%, #f0a37a 100%);
  border: 1px solid var(--glass-edge);
}
.frame::before { /* placeholder de imagen generada */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 50% 62%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(70% 40% at 50% 100%, rgba(30,20,60,.55), transparent 70%);
}
.frame .tag { position: absolute; left: 10px; top: 10px; font-size: 0.62rem; letter-spacing: .14em; padding: 5px 9px; border-radius: var(--pill); background: rgba(0,0,0,.28); color: #fff; }
.frame .play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%,-50%); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); color: #fff; }
.frame .scrub { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); }
.frame .scrub::after { content: ""; position: absolute; inset: 0 40% 0 0; background: #fff; border-radius: 2px; box-shadow: var(--glow); }
.side { display: grid; gap: 14px; align-content: start; }

/* Anillo de progreso con brillo */
.ring { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-edge); }
.ring svg { position: absolute; inset: 8%; width: 84%; height: 84%; transform: rotate(-90deg); }
.ring .v { font-size: 1.6rem; font-weight: 300; color: var(--on-night); }
.ring .k { position: absolute; bottom: 20%; font-size: 0.56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-night-soft); }

/* LCD */
.lcd {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 14px;
  background: var(--lcd); color: var(--lcd-ink); font-family: var(--lcd-font);
  box-shadow: inset 2px 2px 5px rgba(0,0,0,.25), inset -1px -1px 2px rgba(255,255,255,.4);
}
.lcd .d { font-size: 1.5rem; letter-spacing: 0.06em; position: relative; }
.lcd .d::before { content: attr(data-ghost); position: absolute; left: 0; color: var(--lcd-ghost); }
.lcd .u { font-size: 0.66rem; letter-spacing: .1em; }
.lcd-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lcd-row .k { font-size: 0.66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-soft); }

/* Segmentado (formatos) */
.seg { display: flex; padding: 4px; border-radius: var(--pill); background: rgba(0,0,0,.22); border: 1px solid var(--glass-edge); }
.seg span { flex: 1; text-align: center; padding: 8px 0; border-radius: var(--pill); font-size: 0.72rem; font-weight: 500; letter-spacing: .08em; color: var(--on-night-soft); }
.seg span.on { background: var(--glass-2); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }

/* Slider con brillo */
.slider { position: relative; height: 22px; display: flex; align-items: center; }
.slider::before { content: ""; position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-edge); }
.slider .fill { position: absolute; left: 0; height: 6px; border-radius: 3px; background: #fff; box-shadow: var(--glow); }
.slider .knob { position: absolute; width: 22px; height: 22px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 30%, #6b6f80, #3a3d4c); border: 1px solid var(--glass-edge); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.slider .knob::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff; box-shadow: var(--glow); }

.prompt { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: var(--pill); background: rgba(0,0,0,.24); border: 1px solid var(--glass-edge); }
.prompt span { flex: 1; font-size: 0.82rem; color: var(--on-night-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt b { height: 38px; padding: 0 16px; border-radius: var(--pill); display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 500; background: #fff; color: var(--night); box-shadow: 0 0 18px rgba(255,255,255,.35); }

/* ── Secciones ── */
.section { position: relative; padding: clamp(84px, 11vw, 140px) 32px; }
.wrap { max-width: 1180px; margin: 0 auto; position: relative; }
.head { max-width: 700px; margin-bottom: clamp(40px, 5vw, 64px); }
.head.center { margin-inline: auto; text-align: center; }
.head .lead { margin-top: 1rem; }
.night { background: var(--night); color: var(--on-night); overflow: hidden; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { padding: 30px; }
.card h3 { margin-top: 22px; color: var(--ink); }
.card p { margin-top: 0.6rem; font-size: 0.94rem; color: var(--ink-soft); }
.night .card h3 { color: var(--on-night); }

/* Icono en botón redondo (convex / dent / glass) */
.knob { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--neu); box-shadow: var(--raise-sm); }
.knob.dent { box-shadow: var(--dent-sm); }
.night .knob { background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: none; color: #fff; }
.knob.glow svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }

/* Studio: tiles con mancha de color detrás del vidrio */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; isolation: isolate; }
.tile .blob { width: 150px; height: 150px; z-index: -1; top: 18px; left: 18px; opacity: .75; }
.tile .glass { height: 100%; padding: 28px; }
.tile .glass h3 { margin-top: 20px; }
.tile .glass p { margin-top: .55rem; font-size: .93rem; }
.tile .spec { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile .spec span { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--pill); background: rgba(0,0,0,.22); border: 1px solid var(--glass-edge); color: var(--on-night-soft); }

/* Formatos: marcos de proporción */
.formats { margin-top: 64px; display: flex; gap: 22px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.fmt { display: grid; gap: 10px; justify-items: center; }
.fmt .box { border-radius: 16px; border: 1px solid var(--glass-edge); background: linear-gradient(160deg, rgba(124,108,242,.35), rgba(43,188,208,.18)); position: relative; overflow: hidden; }
.fmt .box::after { content: ""; position: absolute; inset: 30% 35%; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(6px); }
.fmt .k { font-size: .7rem; letter-spacing: .14em; color: var(--on-night-soft); }
.fmt .r { font-size: 1rem; color: #fff; font-weight: 400; }

/* Pipeline */
.pipe { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; position: relative; }
.pipe::before { content: ""; position: absolute; left: 6%; right: 6%; top: 38px; height: 6px; border-radius: 3px; box-shadow: var(--dent-sm); }
.pipe .st { position: relative; display: grid; justify-items: center; text-align: center; gap: 14px; }
.pipe .st .knob { width: 76px; height: 76px; }
.pipe .st.hot .knob { background: var(--night); color: #fff; box-shadow: 6px 6px 14px var(--neu-lo), -6px -6px 14px var(--neu-hi); }
.pipe .st.hot .knob svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.pipe .st b { font-weight: 500; font-size: .92rem; }
.pipe .st span { font-size: .78rem; color: var(--ink-soft); line-height: 1.45; }

/* Costo controlado */
.budget { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.meter { padding: 32px; display: grid; gap: 22px; }
.meter .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meter .row .k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.meter .lcd .d { font-size: 2.2rem; }
.neu-slider { position: relative; height: 26px; display: flex; align-items: center; }
.neu-slider::before { content: ""; position: absolute; left: 0; right: 0; height: 10px; border-radius: 5px; box-shadow: var(--dent-sm); }
.neu-slider .fill { position: absolute; left: 3px; height: 4px; border-radius: 2px; background: var(--night); }
.neu-slider .knob { position: absolute; width: 26px; height: 26px; transform: translateX(-50%); }
.toggle { display: inline-flex; align-items: center; height: 34px; width: 74px; padding: 3px; border-radius: var(--pill); box-shadow: var(--dent-sm); font-size: .72rem; color: var(--ink-soft); }
.toggle i { width: 34px; height: 28px; border-radius: var(--pill); background: var(--neu); box-shadow: var(--raise-sm); display: grid; place-items: center; font-style: normal; }
.toggle.on { justify-content: flex-end; }
.toggle.on::before { content: "on"; margin: 0 auto 0 10px; color: var(--ink); }
.toggle.off::after { content: "off"; margin: 0 10px 0 auto; }
.bullets { list-style: none; display: grid; gap: 16px; margin-top: 26px; }
.bullets li { display: flex; gap: 14px; color: var(--ink-soft); }
.bullets li::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; margin-top: .5em; box-shadow: var(--raise-sm); background: var(--neu); }

/* Pasos */
.step .n { font-family: var(--lcd-font); font-size: .95rem; color: var(--ink-faint); }
.step .when { display: inline-block; margin-top: 18px; font-size: .72rem; letter-spacing: .08em; padding: 7px 14px; border-radius: var(--pill); box-shadow: var(--dent-sm); color: var(--ink-soft); }

/* Panel: módulos */
.mods .card { display: flex; gap: 20px; align-items: flex-start; }
.mods .card h3 { margin-top: 4px; }
.mods .card .k { display: block; margin-top: 12px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

/* Seguridad (noche) */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.checks .glass { padding: 26px; }
.checks h3 { margin-top: 18px; font-size: 1rem; }
.checks p { margin-top: .4rem; font-size: .9rem; }

/* Dúo de productos */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.duo .card .k { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.duo .card h3 { font-size: 1.5rem; font-weight: 300; margin-top: .5rem; }
.duo .link { margin-top: 24px; display: inline-flex; }
.duo .dark { background: var(--night); color: var(--on-night); box-shadow: 9px 9px 20px var(--neu-lo), -9px -9px 20px var(--neu-hi); position: relative; overflow: hidden; isolation: isolate; }
.duo .dark .k { color: var(--on-night-soft); }
.duo .dark h3 { color: #fff; }
.duo .dark p { color: var(--on-night-soft); }
.duo .dark .blob { z-index: -1; width: 200px; height: 200px; right: -40px; top: -40px; background: var(--blob-violet); opacity: .55; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 16px; }
.faq details { border-radius: 24px; padding: 0 28px; background: var(--neu); box-shadow: var(--raise-sm); transition: box-shadow .3s var(--ease); }
.faq details[open] { box-shadow: var(--dent-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .tog { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--raise-sm); flex-shrink: 0; transition: transform .35s var(--ease); }
.faq details[open] .tog { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-soft); max-width: 660px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.form { padding: 34px; display: grid; gap: 16px; border-radius: 34px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px 18px; }
.field input, .field textarea { width: 100%; padding: 15px 20px; border-radius: var(--pill); box-shadow: var(--dent-sm); background: var(--neu); outline: none; color: var(--ink); }
.field textarea { border-radius: 24px; min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { box-shadow: var(--dent), 0 0 0 2px rgba(124,108,242,.35); }
.form .btn { justify-self: start; }
.form-msg { font-size: .9rem; min-height: 1.4em; color: var(--ink-soft); }

.footer { padding: 44px 32px 54px; background: var(--night); color: var(--on-night-soft); font-size: .84rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: #fff; }
.footer b { color: #fff; font-weight: 500; }

.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .35s var(--ease); }
.wa:hover { transform: scale(1.06); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Login (maqueta, mitad noche) ── */
.login-wrap { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); display: grid; place-items: center; padding: 40px; isolation: isolate; }
.login-side .blob { z-index: -1; }
.login-side h2 { color: #fff; }
.login-main { display: grid; place-items: center; padding: 110px 24px 40px; }
.login-card { width: min(420px, 100%); padding: 36px 32px; border-radius: 34px; }
.login-card h1 { font-size: 1.9rem; }
.login-card form { display: grid; gap: 16px; margin-top: 26px; }
.login-card .btn { width: 100%; }
.login-card .forgot { justify-self: end; font-size: .84rem; color: var(--ink-soft); }
.login-card .back { display: block; text-align: center; margin-top: 18px; font-size: .85rem; color: var(--ink-soft); }

/* ── Responsive ── */
@media (max-width: 1060px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 130px; }
  .hero .split { top: 52%; right: -50%; width: 200vw; height: 120%; }
  .studio { justify-self: center; }
  .g4, .checks { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pipe { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .pipe::before { display: none; }
  .budget, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav .opt { display: none; }
  .section { padding-inline: 18px; }
  .hero-in { padding: 110px 18px 70px; }
  .g2, .g3, .g4, .tiles, .checks, .duo, .form .row { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .preview { grid-template-columns: 1fr 1fr; gap: 10px; }
  .studio-card { padding: 18px; }
  .card, .form, .meter { padding: 24px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-side { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim { animation: none !important; }
}
@keyframes spin-glow { to { stroke-dashoffset: 0; } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,-18px); } }
.blob.anim { animation: drift 12s ease-in-out infinite; }

/* fixes de composición */
.hero .split { top: -20%; right: -20%; width: 74vw; height: 140%; }
h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.studio-card { grid-template-columns: minmax(0, 1fr); }
.preview { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.prompt span { min-width: 0; }
.side > * { min-width: 0; }
@media (max-width: 1060px) {
  .hero .split { top: 50%; right: -60%; width: 220vw; height: 110%; }
}
.hero h1 { max-width: 540px; font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.ring .v { transform: translateY(-6px); }
.ring .k { bottom: 32%; font-size: .5rem; }
.knob { flex-shrink: 0; }
@media (max-width: 720px) {
  .studio { width: 100%; }
  .preview { grid-template-columns: minmax(0, 1fr); }
  .frame { aspect-ratio: 4 / 5; }
  .side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .side .ring { display: none; }
  .side .seg { grid-column: 1 / -1; }
  .lcd-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lcd .d { font-size: 1.2rem; }
  .prompt { padding-left: 14px; }
  .prompt b { padding: 0 12px; }
  .formats { gap: 14px; }
  .fmt .box { transform: scale(.72); transform-origin: bottom center; margin-top: -30px; }
  .formats .fmt:last-child .box { margin-top: -10px; }
}
@media (max-width: 720px) { .frame { aspect-ratio: 1 / 1; } }

/* ── Galería del Studio (hero) ── */
.sg-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: var(--pill); background: rgba(0,0,0,.24); border: 1px solid var(--glass-edge); }
.sg-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: var(--pill); font-size: .74rem; font-weight: 500; color: var(--on-night-soft); cursor: pointer; transition: background .25s ease, color .25s ease; }
.sg-tabs button:hover { color: #fff; }
.sg-tabs button[aria-selected="true"] { background: var(--glass-2); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.sg-tabs button[aria-selected="true"] svg { filter: drop-shadow(0 0 5px rgba(255,255,255,.8)); }
.sg-panel { display: grid; gap: 14px; animation: sgIn .5s var(--ease); }
.sg-panel[hidden] { display: none; }
@keyframes sgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sg-shot { position: relative; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-edge); background: var(--night-2); }
.sg-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-shot figcaption { position: absolute; left: 8px; bottom: 8px; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--pill); background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); }
.r-11 { aspect-ratio: 1; } .r-45 { aspect-ratio: 4 / 5; } .r-916 { aspect-ratio: 9 / 16; } .r-169 { aspect-ratio: 16 / 9; }
.sg-shot.picked { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 22px rgba(255,255,255,.25); }
.sg-pick { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--night); }

.sg-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.sg-imgs .wide { grid-column: 1 / -1; }

.sg-vids { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.sg-vids .reel .tag { position: absolute; left: 10px; top: 10px; font-size: .6rem; letter-spacing: .14em; padding: 5px 9px; border-radius: var(--pill); background: rgba(0,0,0,.4); color: #fff; }
.sg-vids .reel .play, .sg-voice .play { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(8px); color: #fff; }
.sg-vids .reel .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.sg-vids .reel .scrub { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); }
.sg-vids .reel .scrub::after { content: ""; position: absolute; inset: 0 40% 0 0; background: #fff; border-radius: 2px; box-shadow: var(--glow); }
.sg-vside { display: grid; gap: 10px; align-content: start; }
.sg-vside .small { width: 58%; justify-self: start; }

.sg-per { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.sg-per .hero-char { aspect-ratio: 3 / 4; background: #e6e7ea; }
.sg-per-list { display: grid; gap: 10px; align-content: space-between; }

.sg-voz { display: grid; gap: 16px; padding: 6px 2px; }
.sg-voice { display: flex; align-items: center; gap: 14px; }
.sg-voice b { display: block; font-weight: 500; color: #fff; }
.sg-voice span { font-size: .78rem; color: var(--on-night-soft); }
.wave { height: 92px; border-radius: 16px; background: rgba(0,0,0,.22); border: 1px solid var(--glass-edge);
  --bar: linear-gradient(#fff, #fff);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 3px, transparent 3px 8px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 92' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C20 20 30 70 50 40 S80 10 100 46 S130 80 150 30 S180 60 200 46 S230 5 250 40 S280 85 300 46 S330 15 350 50 S380 70 400 46 L400 92 L0 92 Z M0 46 C20 72 30 22 50 52 S80 82 100 46 S130 12 150 62 S180 32 200 46 S230 87 250 52 S280 7 300 46 S330 77 350 42 S380 22 400 46 L400 0 L0 0 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 92' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C20 20 30 70 50 40 S80 10 100 46 S130 80 150 30 S180 60 200 46 S230 5 250 40 S280 85 300 46 S330 15 350 50 S380 70 400 46 L400 92 L0 92 Z M0 46 C20 72 30 22 50 52 S80 82 100 46 S130 12 150 62 S180 32 200 46 S230 87 250 52 S280 7 300 46 S330 77 350 42 S380 22 400 46 L400 0 L0 0 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100%;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
.sg-line { font-size: .92rem; color: #fff !important; font-style: italic; }
.sg-voice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.sg-voice-row .k { display: block; margin-bottom: 8px; }

.sg-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sg-foot .k, .sg-voice-row .k { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-soft); }
.sg-foot .lcd .d { font-size: 1.15rem; }
.sg-dots { display: inline-flex; gap: 6px; margin-right: auto; }
.sg-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.sg-dots i.on { background: #fff; box-shadow: var(--glow); }
.sg-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; padding: 6px 11px; border-radius: var(--pill); background: rgba(75,191,115,.18); border: 1px solid rgba(75,191,115,.45); color: #c9f2d6; }

@media (max-width: 720px) {
  .sg-tabs button { font-size: .66rem; gap: 4px; }
  .sg-tabs button svg { display: none; }
  .sg-voice-row { grid-template-columns: 1fr; }
}

/* Redes (hero + footer) */
.nets { margin-top: 2rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nets .label { margin-right: 4px; }
.nets a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--neu); box-shadow: var(--raise-sm); transition: box-shadow .3s var(--ease), color .2s; }
.nets a:hover { color: #000; }
.nets a:active { box-shadow: var(--dent-sm); }
.hero .chips { margin-top: 1.2rem; }
.footer .social { display: flex; gap: 10px; width: 100%; }
.footer .social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--glass-edge); color: var(--on-night); transition: background .2s; }
.footer .social a:hover { background: rgba(255,255,255,.2); }

/* Galería: video largo */
.sg-shot.long .yt { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; }
.sg-shot.long .chapters { position: absolute; left: 8px; right: 8px; bottom: 30px; display: grid; grid-template-columns: 2fr 3fr 1.5fr 2.5fr; gap: 3px; }
.sg-shot.long .chapters i { height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); }
.sg-shot.long .chapters i:first-child { background: #fff; box-shadow: var(--glow); }

/* Studio: 8 tiles en 4 columnas */
.tiles { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .tiles { grid-template-columns: 1fr; } }

/* Galería compacta: cabe en el alto del hero */
.studio-card { gap: 14px; }
.sg-imgs { grid-template-columns: 1fr .8fr 1.65fr; align-items: end; }
.sg-imgs .wide { grid-column: auto; }
.sg-vids { grid-template-columns: .62fr 1fr; align-items: start; }
.sg-vside .small { width: 46%; }
.sg-per { grid-template-columns: .85fr 1fr; align-items: stretch; }
.sg-per-list { grid-template-rows: repeat(3, 1fr); }
.sg-per-list .sg-shot { aspect-ratio: auto; min-height: 0; }
.wave { height: 70px; }
.sg-shot figcaption { font-size: .54rem; padding: 3px 7px; }
@media (max-width: 720px) {
  .sg-imgs { grid-template-columns: 1fr 1fr; }
  .sg-imgs .wide { grid-column: 1 / -1; }
}

/* Escenario de alto fijo: todas las pestañas ocupan lo mismo */
.sg-stage { display: grid; height: 400px; }
.sg-stage > .sg-panel { grid-area: 1 / 1; height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.sg-stage .sg-shot { aspect-ratio: auto; height: 100%; min-height: 0; }
.sg-imgs { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }
.sg-imgs .wide { grid-column: 1 / -1; }
.sg-vids { display: grid; grid-template-columns: .6fr 1fr; gap: 10px; height: 100%; }
.sg-vside { display: grid; grid-template-rows: 1.1fr 1fr auto; gap: 10px; min-height: 0; }
.sg-vside .small { width: auto; }
.sg-vside .seg { align-self: end; }
.sg-per { display: grid; grid-template-columns: .85fr 1fr; gap: 10px; height: 100%; }
.sg-per-list { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.sg-voz { align-content: center; }
@media (max-width: 720px) { .sg-stage { height: 380px; } }
.sg-stage .sg-imgs, .sg-stage .sg-vids, .sg-stage .sg-per { height: auto; min-height: 0; }
.sg-stage .sg-shot img { position: absolute; inset: 0; }
.sg-stage .sg-imgs { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.sg-stage .sg-vside { grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
.sg-stage .sg-vids, .sg-stage .sg-per { grid-template-rows: minmax(0, 1fr); }
/* onda de voz: barras */
.wave { -webkit-mask: none; mask: none; background-image: none; filter: none; display: flex; align-items: center; gap: 3px; padding: 0 12px; }
.wave i { flex: 1; height: var(--h); border-radius: 2px; background: rgba(255,255,255,.85); box-shadow: 0 0 6px rgba(255,255,255,.45); }
.wave i:nth-child(n+30) { background: rgba(255,255,255,.28); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .sg-panel:not([hidden]) .wave i { animation: wv 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -0.02s); }
}
@keyframes wv { to { transform: scaleY(.55); } }

/* Simulador de costo */
.neu-seg { display: inline-flex; padding: 4px; border-radius: var(--pill); box-shadow: var(--dent-sm); }
.neu-seg button { height: 32px; padding: 0 14px; border-radius: var(--pill); font-size: .78rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: box-shadow .3s var(--ease), color .2s; }
.neu-seg button[aria-checked="true"] { background: var(--neu); box-shadow: var(--raise-sm); color: var(--ink); }
button.toggle { cursor: pointer; transition: box-shadow .3s var(--ease); }
button.toggle i { transition: transform .35s var(--ease); }
.neu-slider .fill, .neu-slider .knob { transition: width .5s var(--ease), left .5s var(--ease), background .3s; }
.cm-note { font-size: .82rem; color: var(--ink-soft); padding: 10px 14px; border-radius: 16px; box-shadow: var(--dent-sm); }
.meter.over .neu-slider .fill { background: #c2413a; }
.meter.over #cm-pct { color: #c2413a; font-weight: 600; }
.meter.over .cm-note { color: #9b2f29; }
.meter.over .lcd { background: #c9a69c; }

/* Para quién: tarjeta YouTube */
.yt-card { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-night); border-radius: var(--r); box-shadow: 9px 9px 20px var(--neu-lo), -9px -9px 20px var(--neu-hi); }
.yt-card .blob { z-index: -1; width: 240px; height: 240px; right: -60px; top: -60px; background: var(--blob-red); opacity: .45; }
.yt-card h3 { margin-top: 16px; color: #fff; font-size: 1.25rem; font-weight: 500; }
.yt-card > p { color: var(--on-night-soft); }
.yt-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--pill); background: var(--glass-2); border: 1px solid var(--glass-edge); color: #fff; }
.yt-badge svg { color: #ff4d4d; }
.yt-loop { list-style: none; counter-reset: yt; margin-top: 22px; display: grid; gap: 12px; }
.yt-loop li { counter-increment: yt; position: relative; padding: 12px 14px 12px 52px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); }
.yt-loop li::before { content: counter(yt); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: rgba(255,255,255,.14); color: #fff; }
.yt-loop li:last-child::before { content: "↻"; background: #fff; color: var(--night); box-shadow: var(--glow); }
.yt-loop b { display: block; font-weight: 500; color: #fff; font-size: .95rem; }
.yt-loop span { display: block; margin-top: 2px; font-size: .86rem; color: var(--on-night-soft); }
.nets .net { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--neu); box-shadow: var(--raise-sm); }
.nets .net-more { font-size: .78rem; color: var(--ink-soft); padding: 0 6px; }

/* Logos */
.nav .brand img { display: block; border-radius: 8px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-brand img { display: block; }
.foot-brand .by { color: var(--on-night-soft); }
.foot-brand .wits-logo { height: 22px; width: auto; }

/* IA */
.ai-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.ai-eyebrow svg { color: var(--blob-violet); filter: drop-shadow(0 0 4px rgba(124,108,242,.6)); }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-card { padding: 26px; display: flex; flex-direction: column; }
.ai-card .ai-role { align-self: flex-start; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--pill); box-shadow: var(--dent-sm); color: var(--ink-soft); }
.ai-card h3 { margin-top: 20px; font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.ai-card .ai-by { font-size: .78rem; color: var(--ink-faint); margin-top: 2px; }
.ai-card p { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); }
.ai-legal { margin-top: 28px; font-size: .74rem; color: var(--ink-faint); max-width: 760px; }
.mi-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.mi-link:hover { text-decoration-color: #fff; }
@media (max-width: 1060px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .ai-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.1rem, 3.3vw, 3rem); max-width: 520px; }
.contact-alt { margin-top: 1.2rem; font-size: .95rem; color: var(--ink-soft); }
.contact-alt a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(58,61,71,.3); text-underline-offset: 3px; }
.contact-alt a:hover { text-decoration-color: var(--ink); }

/* Titulares sobre las piezas (HTML, no generados) */
.sg-shot .ov { position: absolute; z-index: 2; pointer-events: none; font-family: var(--font); }
.ov-post { left: 10px; right: 10px; top: 10px; color: #2b2e3b; }
.ov-post b { display: block; font-size: clamp(.8rem, 1.25vw, 1.05rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.ov-post i { display: inline-block; margin-top: 4px; font-style: normal; font-size: .55rem; padding: 2px 7px; border-radius: var(--pill); background: #2b2e3b; color: #fff; }
.ov-cover { left: 10px; right: 10px; top: 10px; color: #fff; font-size: clamp(.62rem, .95vw, .8rem); font-weight: 500; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.ov-cover b { display: block; font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 700; background: linear-gradient(90deg, #ff7ad9, #7ce7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ov-sub { left: 50%; bottom: 30px; transform: translateX(-50%); white-space: nowrap; font-size: .7rem; font-weight: 500; color: #fff; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.55); }

/* Reproductor de voz */
.sg-voice .play { cursor: pointer; color: #fff; }
.sg-voice .play .i-pa { display: none; }
#sg-voz.playing .sg-voice .play .i-pl { display: none; }
#sg-voz.playing .sg-voice .play .i-pa { display: block; }
#sg-voz.playing .sg-voice .play { background: #fff; color: var(--night); box-shadow: var(--glow); }
.sg-lang button { flex: 1; padding: 8px 0; border-radius: var(--pill); font-size: .72rem; font-weight: 500; letter-spacing: .04em; color: var(--on-night-soft); cursor: pointer; }
.sg-lang button[aria-checked="true"] { background: var(--glass-2); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
/* la onda solo se mueve mientras suena */
.sg-panel:not([hidden]) .wave i { animation: none; }
#sg-voz.playing .wave i { animation: wv .9s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -0.015s); }
#sg-voz:not(.playing) .wave i { opacity: .55; }
/* GSAP Studio */
#studio .tile { perspective: 900px; }
#studio .tile .glass { will-change: transform; transition: border-color .3s ease, background .3s ease; }
#studio .tile:hover .glass { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.09); }
#studio .tile .blob { will-change: transform, opacity; }
.sg-per .hero-char { background: #e9eaec; }
.sg-per .hero-char img { object-position: 50% 30%; }
.sg-per-list figcaption { bottom: 6px; left: 6px; }

/* Siete pasos: barra, pasos encendidos y punto viajero */
.pipe::before { display: none; }
.pipe-track { position: absolute; left: 6%; right: 6%; top: 35px; height: 8px; border-radius: 4px; box-shadow: var(--dent-sm); z-index: 0; }
.pipe-fill { position: absolute; left: 0; top: 2px; bottom: 2px; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--blob-pink), var(--blob-violet), var(--blob-teal)); box-shadow: 0 0 12px rgba(124,108,242,.55); }
.pipe-dot { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 0 18px #fff, 0 0 30px rgba(124,108,242,.8); opacity: 0; }
.pipe .st { z-index: 1; }
.pipe .st .knob { transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.pipe .st.lit .knob { background: var(--night); color: #fff; box-shadow: 6px 6px 14px var(--neu-lo), -6px -6px 14px var(--neu-hi), 0 0 0 3px rgba(124,108,242,.25); }
.pipe .st.lit .knob svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.pipe .st.lit b { color: var(--ink); }
.pipe .st.hot.lit .knob { background: linear-gradient(135deg, var(--blob-pink), var(--blob-violet) 55%, var(--blob-teal)); box-shadow: 0 0 0 4px rgba(124,108,242,.25), 0 0 26px rgba(201,79,214,.55); }
@media (max-width: 1060px) { .pipe-track { display: none; } }
.pipe .st { align-content: start; }
.ai-card .ai-img { margin: -26px -26px 20px; aspect-ratio: 16 / 10; border-radius: var(--r) var(--r) 18px 18px; overflow: hidden; box-shadow: var(--dent-sm); }
.ai-card .ai-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.ai-card:hover .ai-img img { transform: scale(1.05); }
.sg-stage .sg-shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-vids .reel .scrub::after { animation: scrub 12s linear infinite; inset: 0 auto 0 0; width: 0; }
@keyframes scrub { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .sg-vids .reel .scrub::after { animation: none; width: 40%; } }
.sg-stage .sg-vside { align-content: stretch; height: 100%; }
.sg-stage .sg-vside .small { justify-self: stretch; width: auto; }
.ai-card .ai-img { border-radius: var(--r) var(--r) 0 0; box-shadow: none; }
/* Play de voz: ondas */
.sg-voice .play { position: relative; overflow: visible; width: 52px; height: 52px; }
.vz-ripple { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 12px rgba(201,79,214,.55); opacity: 0; pointer-events: none; }
.sg-voice .play svg { position: relative; z-index: 1; }
/* Historia en formatos */
.fmt .box.story { background: var(--night-2); }
.fmt .box.story::after { display: none; }
.fmt .box.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fmt:hover .box.story img { transform: scale(1.05); }
.fmt .box.story .st-n { position: absolute; left: 8px; top: 8px; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--pill); background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(6px); }
@media (max-width: 720px) {
  .fmt .box.story { transform: none !important; margin-top: 0 !important; }
  .formats .fmt:nth-child(1) .box { width: 130px !important; height: 130px !important; }
  .formats .fmt:nth-child(2) .box { width: 130px !important; height: 163px !important; }
  .formats .fmt:nth-child(3) .box { width: 130px !important; height: 231px !important; }
  .formats .fmt:nth-child(4) .box { width: 100% !important; max-width: 330px; height: auto !important; aspect-ratio: 16/9; }
}

/* Contacto como hero con el personaje humano */
.contact-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding-block: clamp(90px, 10vw, 130px); }
.contact-hero .ch-bg { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(43,46,59,0) 0%, rgba(43,46,59,.15) 38%, rgba(35,38,51,.88) 58%, var(--night-2) 100%), url("img/contacto-hero.jpg") left center / cover no-repeat; }
.contact-hero-in { width: 100%; display: grid; grid-template-columns: 1fr 1.05fr; }
.contact-hero .ch-col { grid-column: 2; display: grid; gap: 22px; }
.contact-hero h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.contact-hero .lead { color: var(--on-night-soft); }
.contact-hero .label { color: var(--on-night-soft); }
.contact-hero .contact-alt { color: var(--on-night-soft); }
.contact-hero .contact-alt a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.contact-hero .form { padding: 28px; border-radius: 30px; }
.contact-hero .field label { color: var(--on-night-soft); }
.contact-hero .field input, .contact-hero .field textarea { background: rgba(255,255,255,.08); box-shadow: none; border: 1px solid var(--glass-edge); color: #fff; }
.contact-hero .field input::placeholder, .contact-hero .field textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-hero .field input:focus, .contact-hero .field textarea:focus { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 3px rgba(124,108,242,.3); }
.contact-hero .form .btn-ink { background: #fff; color: var(--night); box-shadow: 0 0 24px rgba(255,255,255,.25); }
.contact-hero .form-msg { color: var(--on-night-soft); }
@media (max-width: 1060px) {
  .contact-hero .ch-bg { background: linear-gradient(180deg, rgba(43,46,59,0) 0%, rgba(43,46,59,.3) 30%, var(--night-2) 52%), url("img/contacto-hero.jpg") 20% top / auto 60% no-repeat, var(--night-2); }
  .contact-hero-in { grid-template-columns: 1fr; }
  .contact-hero .ch-col { grid-column: 1; padding-top: 38vh; }
}

/* ══ Modales de "El panel" ══ */
.mod-card { cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mod-card:hover { transform: translateY(-4px); }
.mod-card:active { box-shadow: var(--dent); }
.mod-card .mod-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .78rem; font-weight: 500; color: var(--ink); opacity: .55; transition: opacity .2s, gap .3s var(--ease); }
.mod-card:hover .mod-more { opacity: 1; gap: 10px; }
html.pm-open { overflow: hidden; }

.pm { padding: 0; border: 0; background: transparent; max-width: min(1080px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 40px); color: var(--on-night); overflow: visible; }
.pm::backdrop { background: rgba(20,22,32,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pm-shell { position: relative; overflow: hidden; isolation: isolate; background: rgba(43,46,59,.92); border-radius: 32px; padding: 26px 28px 28px; max-height: calc(100vh - 40px); overflow-y: auto; }
.pm-shell .blob { z-index: -1; }
.pm-b1 { width: 340px; height: 340px; background: var(--blob-pink); top: -140px; right: -80px; opacity: .35; }
.pm-b2 { width: 300px; height: 300px; background: var(--blob-teal); bottom: -140px; left: -80px; opacity: .25; }
.pm-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.pm-head > div { flex: 1; }
.pm-head h2 { color: #fff; margin-top: .3rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.pm-demo { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--pill); border: 1px dashed rgba(255,255,255,.3); color: var(--on-night-soft); white-space: nowrap; margin-top: 6px; }
.pm-close { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--glass-edge); color: #fff; cursor: pointer; flex-shrink: 0; transition: background .2s, transform .3s var(--ease); }
.pm-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.pm .k { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-soft); }
.pm .lcd .d { font-size: 1.3rem; }
.pm-seg { display: flex; }
.pm-seg span { flex: 1; padding: 8px 12px; font-size: .72rem; white-space: nowrap; }
.pm-seg.sm span { padding: 6px 10px; }
.pm-why { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; letter-spacing: .04em; padding: 4px 10px; border-radius: var(--pill); border: 1px solid; }
.pm-why.warn { color: #ffd2a8; border-color: rgba(255,170,90,.45); background: rgba(255,170,90,.12); }
.pm-why.new { color: #d8ccff; border-color: rgba(124,108,242,.5); background: rgba(124,108,242,.15); }
.pm-why.ok { color: #c9f2d6; border-color: rgba(75,191,115,.45); background: rgba(75,191,115,.14); }
.pm-nets { display: inline-flex; gap: 6px; }
.pm-nets svg { width: 15px; height: 15px; color: #fff; opacity: .85; }
.pm-ok { background: #fff; color: var(--night); height: 40px; padding: 0 16px; font-size: .8rem; box-shadow: 0 0 18px rgba(255,255,255,.25); }
.pm .btn-glass { height: 40px; padding: 0 16px; font-size: .8rem; }
.pm-acts { display: flex; gap: 8px; align-items: center; }
.pm-row { display: grid; gap: 14px; margin-bottom: 16px; }

/* Bandeja */
.pm-stats { grid-template-columns: auto auto 1fr; }
.pm-stat { display: grid; gap: 8px; padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); }
.pm-stat .lcd { justify-self: start; }
.pm-list { display: grid; gap: 12px; }
.pm-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge); }
.pm-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; }
.pm-item-b { display: grid; gap: 6px; justify-items: start; }
.pm-item-b b { color: #fff; font-weight: 500; }
.pm-item-b p { font-size: .82rem; color: var(--on-night-soft); }

/* Calendario */
.pm-cal { display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.cal { padding: 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); }
.cal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-top b { color: #fff; font-weight: 500; font-size: 1.05rem; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .68rem; color: var(--on-night-soft); }
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-size: .62rem; letter-spacing: .14em; color: var(--on-night-soft); text-align: center; padding-bottom: 4px; }
.cal-day { min-height: 74px; border-radius: 14px; padding: 6px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-day.out { background: transparent; border-color: transparent; }
.cal-day.past { opacity: .5; }
.cal-day b { font-size: .74rem; font-weight: 500; color: #fff; }
.cal-day i { font-style: normal; font-size: .58rem; line-height: 1.2; padding: 2px 5px; border-radius: 6px; color: #fff; background: color-mix(in srgb, var(--c) 35%, transparent); border-left: 2px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day.today { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); box-shadow: 0 0 20px rgba(124,108,242,.35); }
.cal-day.today b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--night); }
.cal-side { display: grid; gap: 12px; align-content: start; }
.cal-next { list-style: none; display: grid; gap: 10px; }
.cal-next li { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); }
.cal-next img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.cal-next b { display: block; color: #fff; font-weight: 500; font-size: .84rem; }
.cal-next span { font-size: .72rem; color: var(--on-night-soft); }
.cal-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-sum > div { display: grid; gap: 6px; justify-items: start; padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); }

/* Campañas */
.pm-camp { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.camp-main { display: grid; gap: 14px; }
.camp-hero { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); }
.camp-hero img { width: 150px; height: 188px; object-fit: cover; border-radius: 16px; }
.camp-hero > div { display: grid; gap: 10px; align-content: center; justify-items: start; }
.camp-hero h3 { color: #fff; font-size: 1.4rem; font-weight: 400; margin: 0; }
.camp-hero p { font-size: .88rem; color: var(--on-night-soft); }
.camp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.camp-kpis > div { display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); }
.camp-kpis b { color: #fff; font-weight: 500; font-size: 1.2rem; }
.camp-kpis em { font-style: normal; font-size: .78rem; color: var(--on-night-soft); }
.pm .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.pm .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blob-pink), var(--blob-violet), var(--blob-teal)); box-shadow: 0 0 10px rgba(124,108,242,.6); }
.camp-side { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); }
.camp-phases { list-style: none; display: grid; gap: 4px; position: relative; padding-left: 22px; }
.camp-phases::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.15); }
.camp-phases li { position: relative; display: flex; justify-content: space-between; padding: 6px 0; }
.camp-phases li::before { content: ""; position: absolute; left: -21px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid rgba(255,255,255,.3); }
.camp-phases li.done::before { background: #4bbf73; border-color: #4bbf73; }
.camp-phases li.now::before { background: #fff; border-color: #fff; box-shadow: var(--glow); }
.camp-phases b { color: #fff; font-weight: 500; font-size: .86rem; }
.camp-phases span { font-size: .74rem; color: var(--on-night-soft); }
.camp-pieces { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.camp-pieces span { display: grid; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: .74rem; color: var(--on-night-soft); }
.camp-pieces b { color: #fff; font-size: 1.2rem; font-weight: 500; }
.camp-cr { display: flex; justify-content: space-between; align-items: center; }

/* Analítica */
.pm-kpis { grid-template-columns: repeat(4, 1fr); }
.kpi { display: grid; gap: 4px; padding: 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); }
.kpi b { color: #fff; font-size: 1.6rem; font-weight: 400; }
.kpi .up { font-size: .74rem; color: #8ce3ad; }
.pm-ana { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.ana-chart { padding: 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); }
.ana-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ana-svg { width: 100%; height: 220px; display: block; overflow: visible; }
.ana-line { filter: drop-shadow(0 0 6px rgba(124,108,242,.8)); }
.ana-x { display: flex; justify-content: space-between; font-size: .66rem; color: var(--on-night-soft); margin-top: 6px; }
.ana-side { display: grid; gap: 12px; align-content: start; }
.ana-nets { list-style: none; display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); }
.ana-nets li { display: grid; grid-template-columns: 16px 70px 1fr 34px; gap: 8px; align-items: center; font-size: .76rem; color: var(--on-night-soft); }
.ana-nets svg { width: 15px; height: 15px; color: #fff; }
.ana-nets b { color: #fff; font-weight: 500; text-align: right; }
.ana-top-post { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); }
.ana-top-post img { width: 56px; height: 90px; object-fit: cover; border-radius: 12px; }
.ana-top-post b { display: block; color: #fff; font-weight: 500; }
.ana-top-post span:not(.k) { font-size: .74rem; color: var(--on-night-soft); }

/* Monitoreo */
.mon-alert { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; margin-bottom: 16px; background: linear-gradient(90deg, rgba(201,79,214,.22), rgba(43,188,208,.12)); border: 1px solid rgba(255,255,255,.18); }
.mon-alert > div { flex: 1; }
.mon-alert b { display: block; color: #fff; font-weight: 500; }
.mon-alert span:not(.pm-why) { font-size: .78rem; color: var(--on-night-soft); }
.pm-mon { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mon-list { list-style: none; display: grid; gap: 10px; }
.mon-list li { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); }
.mon-list li.sel { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); }
.mon-list .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: #fff; flex-shrink: 0; }
.mon-list b { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; font-size: .86rem; }
.mon-list b svg { width: 13px; height: 13px; opacity: .8; }
.mon-list p { font-size: .84rem; color: var(--on-night-soft); margin: 2px 0 6px; }
.sent { font-size: .62rem; letter-spacing: .06em; padding: 3px 8px; border-radius: var(--pill); }
.sent.pos { background: rgba(75,191,115,.18); color: #b8f0cb; }
.sent.q { background: rgba(124,108,242,.2); color: #d8ccff; }
.sent.neg { background: rgba(226,71,94,.2); color: #ffc0c9; }
.mon-reply { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); }
.mon-bubble { padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.mon-bubble b { color: #fff; font-weight: 500; font-size: .82rem; }
.mon-bubble p { color: #fff; font-size: .92rem; margin-top: 6px; line-height: 1.5; }
.mon-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* Biblioteca */
.bib-top { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.bib-search { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); background: rgba(0,0,0,.22); border: 1px solid var(--glass-edge); font-size: .8rem; color: var(--on-night-soft); min-width: 240px; }
.bib-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 12px; }
.bib-grid figure { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--night-2); border: 1px solid var(--glass-edge); }
.bib-grid figure.t { grid-row: span 2; }
.bib-grid figure.w { grid-column: span 2; }
.bib-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bib-grid figure:hover img { transform: scale(1.06); }
.bib-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: grid; }
.bib-grid figcaption b { color: #fff; font-weight: 500; font-size: .82rem; }
.bib-grid figcaption span { font-size: .68rem; color: rgba(255,255,255,.7); }
.bib-grid .ty { position: absolute; top: 8px; right: 8px; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--pill); background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); }
.bib-grid .voice { background: linear-gradient(135deg, rgba(201,79,214,.35), rgba(43,188,208,.25)); display: grid; place-items: center; }
.mini-wave { display: flex; gap: 4px; align-items: center; height: 60px; margin-bottom: 30px; }
.mini-wave i { width: 5px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.6); height: 30%; animation: wv .9s ease-in-out infinite alternate; }
.mini-wave i:nth-child(3n) { height: 80%; animation-delay: -.3s; } .mini-wave i:nth-child(3n+1) { height: 55%; animation-delay: -.6s; }

@media (max-width: 900px) {
  .pm-cal, .pm-camp, .pm-ana, .pm-mon { grid-template-columns: 1fr; }
  .pm-stats, .pm-kpis { grid-template-columns: 1fr 1fr; }
  .pm-stat.grow { grid-column: 1 / -1; }
  .bib-grid { grid-template-columns: repeat(2, 1fr); }
  .camp-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pm-shell { padding: 20px 16px; border-radius: 24px; }
  .pm-item { grid-template-columns: 64px 1fr; }
  .pm-item img { width: 64px; height: 64px; }
  .pm-item .pm-acts { grid-column: 1 / -1; }
  .cal-day { min-height: 52px; padding: 4px; }
  .cal-day i { font-size: 0; height: 5px; padding: 0; }
  .camp-hero { grid-template-columns: 1fr; }
  .camp-hero img { width: 100%; height: 160px; }
  .pm-demo { display: none; }
}
.pm { margin: auto; }
.contact-addr { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); color: var(--on-night-soft); font-size: .86rem; line-height: 1.45; transition: background .2s, border-color .2s; }
.contact-addr:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.contact-addr svg { flex-shrink: 0; color: #fff; margin-top: 2px; }
.contact-addr b { display: block; color: #fff; font-weight: 500; font-size: .95rem; }
.contact-addr { align-items: center; justify-self: start; }
.login-side { align-items: end; justify-items: center; padding: 0; }
.login-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -1; }
.login-side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 55%, rgba(35,38,51,.9)); }
.login-cap { margin: 0 32px 36px; padding: 22px 26px; max-width: 420px; }

/* Contacto v3: foto completa (Minerva y magueyes visibles) + texto y formulario debajo */
.contact-hero { display: block; min-height: 0; padding-top: 0; }
.contact-hero .ch-bg { position: relative; inset: auto; z-index: 0; height: clamp(300px, 46vw, 680px);
  background: url("img/contacto-hero.jpg") center 35% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.contact-hero-in { margin-top: -40px; position: relative; grid-template-columns: 1fr; }
.contact-hero .ch-col { grid-column: 1; grid-template-columns: 1fr 1.1fr; column-gap: 48px; row-gap: 18px; align-items: start; padding-top: 0; }
.contact-hero .ch-col > :not(form) { grid-column: 1; }
.contact-hero .ch-col > form { grid-column: 2; grid-row: 1 / span 6; }
@media (max-width: 1060px) {
  .contact-hero .ch-bg { height: 62vw; }
  .contact-hero .ch-col { grid-template-columns: 1fr; padding-top: 0; }
  .contact-hero .ch-col > form { grid-column: 1; grid-row: auto; }
}
.contact-hero .ch-bg { width: 100vw; margin-left: calc(50% - 50vw); background-position: center 18%; }

/* Contacto v4: formulario sobrepuesto a la foto, a la derecha */
.contact-hero { position: relative; }
.contact-hero .ch-bg { height: clamp(560px, 50vw, 760px); }
.contact-hero .ch-col { grid-template-columns: 1fr; max-width: 560px; }
.contact-hero .ch-col > :not(form) { grid-column: 1; }
.contact-hero .ch-col > form {
  position: absolute; z-index: 2; grid-row: auto;
  top: clamp(70px, 7vw, 120px); right: max(32px, calc((100vw - 1180px) / 2));
  width: min(500px, 40vw);
  background: rgba(35, 38, 51, .62); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.contact-hero-in { margin-top: -60px; }
@media (max-width: 1060px) {
  .contact-hero .ch-bg { height: 62vw; }
  .contact-hero .ch-col { max-width: none; }
  .contact-hero .ch-col > form { position: static; width: auto; }
}
.contact-hero .contact-hero-in, .contact-hero .wrap { position: static; }
.login-img { object-position: 50% 35%; }
/* Logo WITS en el header */
.nav .by-wits { gap: 6px; padding: 0 1rem 0 .2rem; margin-right: 4px; border-right: 1px solid rgba(58,61,71,.15); border-radius: 0; height: 30px; }
.nav .by-wits span { font-size: .7rem; color: var(--ink-faint); }
.nav .by-wits img { height: 18px; width: auto; display: block; }
.nav .by-wits:hover { opacity: .8; }
@media (max-width: 720px) { .nav .by-wits { border-right: 0; padding-right: .4rem; } .nav .by-wits span { display: none; } }

/* Para profundizar: tarjetas enlace al blog de wits.mx y a Market OS */
.read-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.read-card .k { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.read-card h3 { margin-top: 14px; font-size: 1.12rem; line-height: 1.3; }
.read-card .read-more { margin-top: auto; padding-top: 18px; color: var(--ink); }
.read-card.dark .k, .read-card.dark p { color: rgba(255,255,255,.7); }
.read-card.dark h3, .read-card.dark .read-more { color: #fff; position: relative; }
.read-card:hover { transform: translateY(-3px); }
.read-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.txt-link { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.txt-link:hover { text-decoration-thickness: 2px; }
.read-card.dark { background: var(--night); color: var(--on-night); box-shadow: 9px 9px 20px var(--neu-lo), -9px -9px 20px var(--neu-hi); position: relative; overflow: hidden; isolation: isolate; }
.read-card.dark .k, .read-card.dark p { color: var(--on-night-soft); }
.read-card.dark .blob { z-index: -1; width: 180px; height: 180px; right: -50px; top: -50px; background: var(--blob-violet); opacity: .55; }

/* Familia WITS OS: enlaces a los demás productos */
.fam { margin-top: 56px; }
.fam .grid { margin-top: 18px; }
.fam-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.fam-card h3 { margin: 0; }
.fam-card p { margin: 0; flex: 1; }
.fam-card .dom { font-size: 12px; letter-spacing: .04em; opacity: .6; }
.fam-all { margin-top: 18px; text-align: center; }
.fam-card .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }

/* Selector de idioma (globo + nombre del idioma) */
.nav a.lang { gap: 7px; padding: 0 1rem; }
.nav a.lang .globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
@media (max-width: 720px) { .nav a.lang { padding: 0 .7rem; } }
@media (max-width: 440px) { .nav { gap: 2px; } .nav a.lang span { display: none; } .nav a { padding: 0 .55rem; } .nav .by-wits { margin-right: 0; padding-right: .3rem; } .nav .by-wits img { height: 16px; } }

/* Aviso de idioma según el navegador */
.lang-suggest { position: fixed; top: 86px; right: 24px; z-index: 70; max-width: 360px; padding: 16px 18px; border-radius: 24px;
  background: rgba(233,234,236,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--raise-sm);
  font-size: .88rem; color: var(--ink); }
.lang-suggest p { margin: 0 0 12px; }
.lang-suggest div { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-suggest .btn { padding: 10px 16px; font-size: .82rem; border: 0; cursor: pointer; }
@media (max-width: 600px) { .lang-suggest { left: 16px; right: 16px; max-width: none; top: 78px; } }
