/* =====================================================================
   Tapinci — tema "tech" oscuro
   Fondo azul-noche con grano, blobs de luz (azul → violeta → rosa →
   naranja), superficies de vidrio con borde fino. Se carga DESPUES de
   style.css y solo sobreescribe colores/superficies.
   ===================================================================== */
:root {
  --bg: #07081a;
  --bg-2: #0c0f2e;
  --ink: #eef0ff;
  --muted: #959bc4;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);
  --accent: #8b5cff;
  --accent-dark: #7444ff;
  --accent-bright: #a98bff;
  --blue: #3b6bff;
  --cyan: #4fc3ff;
  --violet: #8b5cff;
  --pink: #ff4f9a;
  --orange: #ff8a3d;
  --grad: linear-gradient(100deg, #3b6bff 0%, #8b5cff 38%, #ff4f9a 70%, #ff8a3d 100%);
  --glass: rgba(255,255,255,0.035);
  --glass-strong: rgba(255,255,255,0.06);
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--bg); }
body {
  background:
    radial-gradient(1200px 700px at 10% 110%, rgba(59,107,255,0.30), transparent 60%),
    radial-gradient(900px 600px at 95% -10%, rgba(139,92,255,0.14), transparent 60%),
    linear-gradient(180deg, #06071a 0%, #0a0c26 60%, #0d1236 100%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
/* grano tipo pelicula encima de todo */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(139,92,255,0.45); color: #fff; }

h1, h2, h3, h4,
.landing-text h1, .tp-head h2, .tp-final h2, body .tapshop-heading {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
a { color: var(--cyan); }

/* ---------- Texto con degradado ---------- */
.tp-grad-text,
.tp-eyebrow,
body .tapshop-eyebrow,
.tp-cmp-header .tp-cmp-hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* ---------- Botones ---------- */
.btn-pill, .btn, .change-pwd-toggle a.toggle-accent {
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0% 50%;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 30px -8px rgba(139,92,255,0.65), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: background-position .4s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-pill:hover, .btn:hover, .change-pwd-toggle a.toggle-accent:hover {
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -8px rgba(255,79,154,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-pill-outline, .btn-outline {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-pill-outline:hover, .btn-outline:hover {
  background: var(--glass-strong);
  border-color: rgba(255,255,255,0.32);
  box-shadow: none;
}

/* ---------- Formularios ---------- */
input, select, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--ink);
}
input::placeholder { color: #6c7299; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,255,0.28); }
input[type="checkbox"] { accent-color: var(--accent); }
code, .pair-url { background: rgba(255,255,255,0.07); color: var(--ink); }
.pwd-toggle { background: rgba(255,255,255,0.06); color: var(--ink); }
.pwd-toggle:hover { background: rgba(255,255,255,0.12); }
.error, .field-error { color: #ff7a9c; }
.success { color: #5fe3b0; }

/* ---------- Superficies de vidrio ---------- */
.card,
.change-pwd-toggle a,
.tp-three-card,
.tp-problem-item,
.tp-cmp,
body .tapshop-card,
.auth-form-card {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.change-pwd-toggle a:hover { border-color: var(--accent); color: var(--accent-bright); }
.scan-badge { background: rgba(139,92,255,0.14); }
.scan-badge-number { color: #c4b2ff; }

/* ---------- Topbar (dashboard / admin) ---------- */
.topbar {
  background: rgba(7,8,26,0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* ---------- Header del home ---------- */
.site-header-link { color: var(--ink); opacity: 0.82; }
.site-header-link:hover { color: #fff; opacity: 1; }
.site-header-sep { background: rgba(255,255,255,0.16); }
.site-header-tienda {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header-tienda:hover { background: rgba(255,255,255,0.14); }

/* ---------- Hero ---------- */
.landing-hero { background: transparent; }
.landing-hero-bg {
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  background:
    radial-gradient(700px circle at 75% 45%, rgba(139,92,255,0.22), transparent 60%),
    radial-gradient(600px circle at 0% 100%, rgba(59,107,255,0.20), transparent 60%);
}
.deco { display: none; }
.landing-text h1 { color: #fff; font-weight: 700; }
.landing-text p { color: var(--muted); }
.landing-visual-blob { display: none; }
.tp-hero-bullets li { color: var(--ink); font-weight: 500; }

/* composicion de blobs + marco (reemplaza la foto del hero) */
.tp-orb {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.tp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px) saturate(1.1);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: tp-float 14s ease-in-out infinite;
  /* hover magnetico: --mx/--my/--ms los pone el JS del home */
  transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--rot, 0deg)) scale(var(--ms, 1));
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.tp-blob-1 { /* azul, izquierda */
  width: 46%; height: 30%; left: 4%; top: 42%;
  background: radial-gradient(circle at 35% 40%, #6fb0ff 0%, #3b6bff 45%, #5a4dff 100%);
  --rot: -18deg;
  box-shadow: 0 0 60px rgba(59,107,255,0.6);
}
.tp-blob-2 { /* violeta arriba-centro */
  width: 34%; height: 46%; left: 32%; top: 22%;
  background: radial-gradient(circle at 30% 30%, #5b7bff 0%, #8b5cff 50%, #ff4f9a 100%);
  --rot: -30deg;
  animation-delay: -3s;
  box-shadow: 0 0 60px rgba(139,92,255,0.5);
}
.tp-blob-3 { /* rosa/rojo arriba-derecha */
  width: 40%; height: 40%; left: 54%; top: 6%;
  background: radial-gradient(circle at 30% 25%, #a46bff 0%, #ff4f9a 55%, #ff5b5b 100%);
  animation-delay: -6s;
  box-shadow: 0 0 70px rgba(255,79,154,0.55);
}
.tp-blob-4 { /* naranja abajo */
  width: 36%; height: 44%; left: 44%; top: 50%;
  background: radial-gradient(circle at 40% 30%, #ff5d8f 0%, #ff7a3d 55%, #ffa63d 100%);
  --rot: -24deg;
  animation-delay: -9s;
  box-shadow: 0 0 70px rgba(255,138,61,0.55);
}
.tp-blob-5 { /* violeta abajo-izquierda */
  width: 24%; height: 24%; left: 24%; top: 62%;
  background: radial-gradient(circle at 40% 40%, #7d6bff 0%, #8b5cff 60%, #b05cff 100%);
  animation-delay: -4s;
}
@keyframes tp-float {
  0%, 100% { translate: 0 0; }
  33% { translate: 2% -2.5%; }
  66% { translate: -2% 1.5%; }
}
@media (prefers-reduced-motion: reduce) { .tp-blob { animation: none; } }

/* ---------- Contenedor y secciones ---------- */
.content-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.tp-section { border-top: 1px solid var(--border); }
.tp-compare { background: transparent; }
.tp-head h2 { color: #fff; font-weight: 700; }
.tp-three-card h3, .tp-steps-grid h3 { color: #fff; }
.tp-three-card p, .tp-steps-grid p, .feature p { color: var(--muted); }
.feature-icon {
  background: rgba(139,92,255,0.14);
  color: #c4b2ff;
  border: 1px solid rgba(139,92,255,0.28);
}
.tp-problem-item p { color: var(--ink); }
.tp-yes { background: rgba(79,195,255,0.14); color: #8fd8ff; }
.tp-no { background: rgba(255,255,255,0.06); color: #6f7499; }
.tp-cmp { box-shadow: 0 30px 80px -30px rgba(59,107,255,0.35); }
.tp-cmp-hl { background: rgba(139,92,255,0.10); }
.tp-cmp-label { color: var(--ink); }
.tp-cmp-header { color: var(--muted); }
.tp-step-n {
  background: var(--grad);
  box-shadow: 0 8px 24px -6px rgba(139,92,255,0.7);
}
.tp-faq-item { border-bottom-color: var(--border); }
.tp-faq-item summary { color: #fff; }
.tp-faq-item summary::after { color: var(--accent-bright); }
.tp-faq-item p { color: var(--muted); }

/* tienda (estilos inline del home -> mas especificidad) */
body .tapshop-heading { color: #fff; }
body .tapshop-subheading { color: var(--muted); }
body .tapshop-card { border-radius: 20px; }
body .tapshop-card:hover { border-color: rgba(139,92,255,0.5); box-shadow: 0 24px 60px -24px rgba(139,92,255,0.6); }
body .tapshop-card-title { color: #fff; }
body .tapshop-card-price { color: #c4b2ff; }
body .tapshop-cta {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(139,92,255,0.65);
}
body .tapshop-cta:hover { background: var(--grad); filter: brightness(1.08); }

/* CTA final: tarjeta oscura con luz de color */
.tp-final {
  position: relative;
  overflow: hidden;
  margin: 24px 0 72px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(500px circle at 15% 120%, rgba(59,107,255,0.55), transparent 60%),
    radial-gradient(420px circle at 85% -20%, rgba(255,79,154,0.45), transparent 60%),
    radial-gradient(380px circle at 100% 100%, rgba(255,138,61,0.35), transparent 60%),
    #0b0d27;
}
.tp-final h2 { color: #fff; }
.tp-final p { color: var(--ink); opacity: 0.8; }
.tp-final .btn-pill { background: #fff; color: #0b0d27; box-shadow: 0 10px 30px -10px rgba(255,255,255,0.5); }
.tp-final .btn-pill:hover { background: #fff; color: #0b0d27; }
.tp-final .btn-pill-outline { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.3); }

/* footer */
.tp-footer {
  background: rgba(3,4,14,0.7);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tp-footer-brand p, .tp-footer-col a { color: var(--muted); }
.tp-footer-col a:hover { color: #fff; }
.tp-footer-bottom { color: #6c7299; border-top-color: var(--border); }
.site-footer { background: transparent; border-top-color: var(--border); }

/* ---------- Modal login/registro ---------- */
.modal-overlay { background: rgba(3,4,14,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-box {
  background: linear-gradient(180deg, rgba(20,22,52,0.96), rgba(10,12,34,0.98));
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px -20px rgba(59,107,255,0.45);
  color: var(--ink);
}
.modal-close { color: var(--muted); }
.modal-close:hover { color: #fff; }
.auth-sub, .auth-forgot a { color: var(--muted); }
.auth-sub a { color: var(--accent-bright); }
.btn-google { background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid var(--border); }
.btn-google:hover { background: rgba(255,255,255,0.12); }
.auth-divider span { color: var(--muted); background: transparent; }
.auth-divider::before, .auth-divider::after { background: var(--border); }

/* ---------- Dashboard / admin ---------- */
.admin-sidebar { background: var(--glass); border-color: var(--border); }
.admin-tab-btn { color: var(--ink); }
.admin-tab-btn:hover { background: rgba(255,255,255,0.06); }
.admin-tab-btn.is-active { background: rgba(139,92,255,0.18); color: #fff; }
.admin-table th { color: var(--muted); }
.admin-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.025); }
.status-pill.status-auto { background: rgba(95,227,176,0.14); color: #5fe3b0; }
.status-pill.status-admin { background: rgba(139,92,255,0.18); color: #c4b2ff; }
.status-pill.status-unused { background: rgba(255,255,255,0.06); color: var(--muted); }
.admin-filter-input { background: rgba(255,255,255,0.05); color: var(--ink); border-color: var(--border); }
.tips-list li::marker { color: var(--accent-bright); }
.toast { background: rgba(20,22,52,0.95); border: 1px solid var(--border); color: #fff; }
.vcard-preview { color: var(--ink); }

@media (max-width: 900px) {
  .landing-visual { background: transparent; padding: 8px 24px 24px; }
  .tp-orb { width: min(360px, 100%); }
}
@media (max-width: 760px) {
  .tp-final { margin: 16px 16px 48px; border-radius: 22px; }
}

/* fondo cubre toda la pantalla aunque la pagina sea corta */
body { min-height: 100vh; }

/* =====================================================================
   Animaciones (las activa /anim.js agregando .tp-anim al <html>)
   ===================================================================== */

/* ---- revelado al hacer scroll ---- */
.tp-anim .tp-reveal {
  opacity: 0;
  translate: 0 26px;
  filter: blur(6px);
  transition:
    opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
    translate .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
    filter .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}
.tp-anim .tp-reveal.is-in { opacity: 1; translate: 0 0; filter: blur(0); }

/* ---- entrada del hero ----
   .tp-anim lo pone un script inline en el <head>, asi el hero arranca
   oculto desde el primer pintado (sin parpadeo) y entra en cascada. */
.tp-anim .landing-text > *,
.tp-anim .tp-hero-bullets li {
  opacity: 0;
  translate: 0 22px;
  filter: blur(8px);
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
    translate .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
    filter .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}
.tp-anim .landing-text > .tp-hero-bullets { opacity: 1; translate: none; filter: none; }
.tp-anim.tp-hero-ready .landing-text > *,
.tp-anim.tp-hero-ready .tp-hero-bullets li { opacity: 1; translate: 0 0; filter: blur(0); }
.tp-anim .tp-orb { opacity: 0; scale: .82; transition: opacity 1.4s ease .2s, scale 1.6s cubic-bezier(.2,.7,.2,1) .2s; }
.tp-anim.tp-hero-ready .tp-orb { opacity: 1; scale: 1; }
/* parallax: el orbe baja y gira un poco al hacer scroll */
.tp-orb { translate: 0 var(--py, 0px); rotate: var(--pr, 0deg); }

/* titulo del hero: brillo de degradado que pasa una vez */
.tp-anim .landing-text h1 {
  background: linear-gradient(100deg, #fff 0%, #fff 40%, #c9b8ff 48%, #ffb3d1 52%, #fff 60%, #fff 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tp-shine 3.2s cubic-bezier(.4,0,.2,1) 1s 1 both;
}
@keyframes tp-shine { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* eyebrows con degradado que se desplaza lento */
.tp-eyebrow, body .tapshop-eyebrow {
  background-size: 200% 100% !important;
  animation: tp-grad-move 6s ease-in-out infinite alternate;
}
@keyframes tp-grad-move { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---- header: vidrio al hacer scroll ---- */
.site-header { transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease; border-bottom: 1px solid transparent; }
.site-header.is-scrolled {
  position: fixed;
  background: rgba(7,8,26,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  animation: tp-drop .45s cubic-bezier(.2,.7,.2,1);
}
.site-header.is-scrolled .site-header-inner { padding-top: 14px; padding-bottom: 14px; }
.site-header-inner { transition: padding .35s ease; }
.site-header-logo { display: none; margin-right: auto; }
.site-header-logo img { height: 22px; display: block; }
.site-header.is-scrolled .site-header-logo { display: block; }
@keyframes tp-drop { from { translate: 0 -100%; } to { translate: 0 0; } }
.topbar.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6); }

/* links del header: subrayado con degradado */
.site-header-link { position: relative; }
.site-header-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.site-header-link:hover::after { transform: scaleX(1); }

/* ---- spotlight que sigue al cursor ---- */
.tp-spot { position: relative; isolation: isolate; }
.tp-spot::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(139,92,255,0.16), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.tp-spot:hover::before { opacity: 1; }
.tp-spot:hover { border-color: rgba(139,92,255,0.38); }
body .tapshop-card.tp-spot::before { z-index: 1; mix-blend-mode: screen; }

/* ---- inclinacion 3D ---- */
.tp-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.tp-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
body .tapshop-card .tapshop-image-wrap img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
body .tapshop-card:hover .tapshop-image-wrap img { transform: scale(1.06); }

/* ---- botones magneticos + brillo ---- */
.tp-magnet {
  position: relative;
  overflow: hidden;
  translate: var(--bx, 0px) var(--by, 0px);
  transition: translate .35s cubic-bezier(.2,.7,.2,1), background-position .4s ease, box-shadow .2s ease, transform .2s ease;
}
.tp-magnet::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.tp-magnet:hover::after { animation: tp-sheen .9s ease; }
@keyframes tp-sheen { to { left: 130%; } }
.btn-pill:active, .btn:active { transform: scale(.97); }

/* ---- iconos y numeros ---- */
.feature-icon { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.tp-three-card:hover .feature-icon { transform: translateY(-3px) rotate(-6deg) scale(1.08); box-shadow: 0 10px 24px -8px rgba(139,92,255,0.7); }
.tp-anim .tp-steps-grid li.is-in .tp-step-n { animation: tp-pop .7s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) + 150ms) both; }
@keyframes tp-pop { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
.tp-step-n::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(139,92,255,0.5); opacity: 0;
  animation: tp-ring 2.8s ease-out infinite;
}
.tp-step-n { position: relative; }
.tp-steps-grid li:nth-child(2) .tp-step-n::after { animation-delay: .7s; }
.tp-steps-grid li:nth-child(3) .tp-step-n::after { animation-delay: 1.4s; }
.tp-steps-grid li:nth-child(4) .tp-step-n::after { animation-delay: 2.1s; }
@keyframes tp-ring { 0% { opacity: .8; scale: .9; } 100% { opacity: 0; scale: 1.5; } }

/* palomitas de la comparativa: aparecen con "pop" */
.tp-anim .tp-cmp-row.is-in .tp-yes svg { animation: tp-pop .6s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) + 250ms) both; }
.tp-cmp-row { transition: background .25s ease; }
.tp-cmp-row:not(.tp-cmp-header):hover { background: rgba(255,255,255,0.03); }

/* problemas: la X se sacude al pasar el mouse */
.tp-problem-item { transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s ease; }
.tp-problem-item:hover { transform: translateX(6px); }
.tp-problem-item:hover .tp-no { animation: tp-shake .45s ease; }
@keyframes tp-shake { 0%,100% { rotate: 0deg; } 25% { rotate: -14deg; } 75% { rotate: 14deg; } }

/* ---- FAQ: apertura suave ---- */
.tp-faq-item summary { transition: color .25s ease, padding-left .3s ease; }
.tp-faq-item summary:hover { color: var(--accent-bright); padding-left: 6px; }
.tp-faq-item summary::after { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tp-faq-item[open] summary::after { content: '+'; transform: translateY(-50%) rotate(45deg); }
.tp-faq-item[open] p { animation: tp-faq-open .45s cubic-bezier(.2,.7,.2,1); }
@keyframes tp-faq-open { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }

/* ---- CTA final: luces que respiran ---- */
.tp-final { background-size: 140% 140%; animation: tp-breathe 10s ease-in-out infinite alternate; }
@keyframes tp-breathe { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* ---- footer ---- */
.tp-footer-col a { transition: color .2s ease, translate .25s ease; }
.tp-footer-col a:hover { translate: 4px 0; }
.tp-footer-social a { transition: background .25s ease, transform .3s cubic-bezier(.3,1.6,.5,1), border-color .25s ease; }
.tp-footer-social a:hover { transform: translateY(-3px) scale(1.08); border-color: rgba(139,92,255,0.6); }

/* ---- modal de login/registro ---- */
.modal-overlay:not([hidden]) { animation: tp-fade .3s ease; }
.modal-overlay:not([hidden]) .modal-box { animation: tp-modal-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes tp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tp-modal-in { from { opacity: 0; translate: 0 18px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---- inputs y tarjetas del dashboard ---- */
input { transition: border-color .2s ease, box-shadow .25s ease, background .2s ease; }
.scan-badge-number { display: inline-block; }
.card:hover .scan-badge { box-shadow: 0 0 0 1px rgba(139,92,255,0.35), 0 10px 30px -10px rgba(139,92,255,0.6); }
.scan-badge { transition: box-shadow .3s ease; }
.admin-tab-btn { transition: background .2s ease, color .2s ease, padding-left .25s ease; }
.admin-tab-btn:hover { padding-left: 22px; }
.toast { animation: tp-modal-in .45s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 900px) {
  .site-header.is-scrolled { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Secciones con banda de color (rompen la monotonia del fondo oscuro)
   La banda ocupa todo el ancho de la pantalla aunque la seccion viva
   dentro del contenedor centrado.
   ===================================================================== */
body { overflow-x: clip; }
.tp-band { position: relative; isolation: isolate; border-top: 0 !important; }
.tp-band + .tp-section, .tp-band + section { border-top: 0 !important; }
.tp-band::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
/* problema: azul-violeta */
.tp-band::before {
  background:
    radial-gradient(700px 380px at 15% 0%, rgba(59,107,255,0.22), transparent 70%),
    radial-gradient(600px 360px at 90% 100%, rgba(139,92,255,0.20), transparent 70%),
    linear-gradient(180deg, #141a4d 0%, #10143e 100%);
}
/* productos: violeta-rosa */
.tp-band-2::before {
  background:
    radial-gradient(760px 420px at 85% 0%, rgba(255,79,154,0.16), transparent 70%),
    radial-gradient(700px 400px at 10% 100%, rgba(139,92,255,0.22), transparent 70%),
    linear-gradient(180deg, #1a1648 0%, #13123c 100%);
}
/* sin complicaciones: azul-naranja */
.tp-band-3::before {
  background:
    radial-gradient(700px 380px at 0% 0%, rgba(79,195,255,0.16), transparent 70%),
    radial-gradient(640px 380px at 100% 100%, rgba(255,138,61,0.16), transparent 70%),
    linear-gradient(180deg, #121a48 0%, #0f153c 100%);
}
body .tapshop-section.tp-band { padding-top: 72px; padding-bottom: 72px; }
/* tarjetas un poco mas claras sobre la banda */
.tp-band .tp-problem-item,
.tp-band .tp-three-card,
.tp-band .tapshop-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

/* =====================================================================
   Newsletter en el footer
   ===================================================================== */
.tp-news { margin: 4px 0 22px; max-width: 420px; }
.tp-news-label {
  display: block;
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tp-news-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tp-news-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,255,0.25); }
.tp-news-row input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
}
.tp-news-row input:focus { outline: none; box-shadow: none; }
.tp-news-row button {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 8px 24px -8px rgba(139,92,255,0.7);
  transition: background-position .4s ease, transform .2s ease;
}
.tp-news-row button:hover { background-position: 100% 50%; transform: translateY(-1px); }
.tp-news-row button:disabled { opacity: .6; cursor: default; }
.tp-news-msg { margin: 10px 4px 0; font-size: 0.85rem; min-height: 1.2em; }
.tp-news-msg.ok { color: #5fe3b0; }
.tp-news-msg.err { color: #ff7a9c; }
@media (max-width: 760px) {
  .tp-news { max-width: none; }
}

/* ---- paginas legales ---- */
.legal { max-width: 760px; margin: 24px auto; line-height: 1.65; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; color: #fff; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.tp-footer-bottom a { color: var(--muted); text-decoration: none; }
.tp-footer-bottom a:hover { color: #fff; }

/* =====================================================================
   Secciones claras (blanco humo #f5f6f8) con flares de color animados.
   Alternan con las secciones oscuras para que el sitio se sienta mas
   amigable y confiable.
   ===================================================================== */
.tp-band { color: #1b1d2e; }
.tp-band::before,
.tp-band-2::before,
.tp-band-3::before {
  background: #f5f6f8;
  border-top: 0;
  border-bottom: 0;
}
/* flares: manchas de color difuminadas que flotan despacio */
.tp-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  opacity: .85;
  filter: blur(30px) saturate(1.2);
  background:
    radial-gradient(420px 300px at 8% 18%, rgba(59,107,255,0.45), transparent 70%),
    radial-gradient(380px 300px at 92% 82%, rgba(139,92,255,0.40), transparent 70%),
    radial-gradient(300px 240px at 78% 10%, rgba(255,79,154,0.30), transparent 70%),
    radial-gradient(320px 240px at 18% 92%, rgba(255,138,61,0.28), transparent 70%);
  background-size: 140% 140%;
  animation: tp-flares 16s ease-in-out infinite alternate;
}
.tp-band-2::after {
  background:
    radial-gradient(440px 320px at 90% 15%, rgba(255,79,154,0.38), transparent 70%),
    radial-gradient(420px 320px at 8% 85%, rgba(139,92,255,0.42), transparent 70%),
    radial-gradient(320px 260px at 50% 0%, rgba(79,195,255,0.30), transparent 70%),
    radial-gradient(300px 240px at 98% 95%, rgba(255,138,61,0.30), transparent 70%);
  background-size: 140% 140%;
  animation-duration: 19s;
}
.tp-band-3::after {
  background:
    radial-gradient(420px 300px at 4% 10%, rgba(79,195,255,0.42), transparent 70%),
    radial-gradient(400px 300px at 96% 90%, rgba(255,138,61,0.36), transparent 70%),
    radial-gradient(300px 240px at 60% 100%, rgba(139,92,255,0.30), transparent 70%),
    radial-gradient(280px 220px at 85% 5%, rgba(255,79,154,0.26), transparent 70%);
  background-size: 140% 140%;
  animation-duration: 17s;
}
@keyframes tp-flares {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 40%; }
  100% { background-position: 40% 100%; }
}

/* textos */
.tp-band .tp-head h2,
body .tp-band .tapshop-heading { color: #12142b; }
body .tp-band .tapshop-subheading { color: #5d6280; }
.tp-band .tp-problem-item p { color: #1b1d2e; }
.tp-band .tp-three-card h3,
body .tp-band .tapshop-card-title { color: #12142b; }
.tp-band .tp-three-card p { color: #5d6280; }
body .tp-band .tapshop-card-price { color: #6a3df0; }

/* tarjetas blancas con sombra suave */
.tp-band .tp-problem-item,
.tp-band .tp-three-card,
body .tp-band .tapshop-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(18,20,43,0.08);
  box-shadow: 0 1px 2px rgba(18,20,43,0.04), 0 12px 32px -14px rgba(18,20,43,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tp-band .tp-spot:hover,
body .tp-band .tapshop-card:hover { border-color: rgba(139,92,255,0.45); box-shadow: 0 18px 44px -16px rgba(139,92,255,0.45); }
.tp-band .tp-spot::before { background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(139,92,255,0.10), transparent 60%); }
body .tp-band .tapshop-card.tp-spot::before { mix-blend-mode: normal; }

/* iconos sobre fondo claro */
.tp-band .feature-icon { background: #efeaff; color: #6a3df0; border-color: #e0d6ff; }
.tp-band .tp-no { background: #ffe8ef; color: #e0457b; }

/* boton "Catalogo" ya trae degradado; solo ajustamos la sombra */
body .tp-band .tapshop-cta { box-shadow: 0 10px 26px -10px rgba(139,92,255,0.6); }

/* ---- "Asi de sencillo" en blanco puro (se distingue del blanco humo de al lado) ---- */
.tp-band-4::before { background: #ffffff; border-top: 1px solid rgba(18,20,43,0.06); border-bottom: 1px solid rgba(18,20,43,0.06); }
.tp-band-4::after {
  opacity: .6;
  background:
    radial-gradient(380px 260px at 6% 20%, rgba(139,92,255,0.30), transparent 70%),
    radial-gradient(360px 260px at 94% 80%, rgba(255,138,61,0.26), transparent 70%),
    radial-gradient(300px 220px at 50% 100%, rgba(59,107,255,0.22), transparent 70%);
  background-size: 140% 140%;
  animation-duration: 18s;
}
.tp-band .tp-steps-grid h3 { color: #12142b; }
.tp-band .tp-steps-grid p { color: #5d6280; }
.tp-band .tp-step-n::after { border-color: rgba(139,92,255,0.35); }

/* =====================================================================
   Todas las secciones claras del home en blanco puro
   ===================================================================== */
.tp-band::before, .tp-band-2::before, .tp-band-3::before, .tp-band-4::before {
  background: #ffffff !important;
  border-top: 1px solid rgba(18,20,43,0.06);
  border-bottom: 1px solid rgba(18,20,43,0.06);
}

/* footer: columna de blog */
.tp-footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1fr; }
.tp-footer-blog a { line-height: 1.4; }
.tp-footer-blog .tp-footer-all { color: #c4b2ff; font-weight: 600; margin-top: 4px; }
.tp-footer-soon { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
@media (max-width: 1000px) { .tp-footer-inner { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   Interfaz clara: dashboard del cliente, admin, legales (body.app-light)
   y paginas del blog (body.page-light)
   ===================================================================== */
body.app-light, body.page-light {
  --ink: #12142b;
  --muted: #62678a;
  --card: #ffffff;
  --border: rgba(18,20,43,0.09);
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(59,107,255,0.10), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(255,79,154,0.08), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(139,92,255,0.10), transparent 60%),
    #f7f8fb;
  color: var(--ink);
}
body.app-light::after, body.page-light::after { opacity: 0.04; mix-blend-mode: multiply; }
.app-light h1, .app-light h2, .app-light h3, .page-light h1, .page-light h2, .page-light h3 { color: #12142b; }
.app-light a { color: #5b35e6; }

/* topbar */
.app-light .topbar {
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.app-light .topbar nav a { color: var(--ink); opacity: .8; }
.app-light .topbar nav a:hover { opacity: 1; color: #5b35e6; }
.app-light .topbar .muted { color: var(--muted); }

/* tarjetas */
.app-light .card,
.app-light .change-pwd-toggle a {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(18,20,43,0.04), 0 14px 34px -18px rgba(18,20,43,0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.app-light .card:hover { border-color: rgba(139,92,255,0.35); }
.app-light .tp-spot::before { background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(139,92,255,0.07), transparent 60%); }
.app-light .change-pwd-toggle a { color: var(--ink); }
.app-light .change-pwd-toggle a:hover { color: #5b35e6; border-color: rgba(139,92,255,0.45); }
.app-light .change-pwd-toggle a.toggle-accent { color: #fff; }

/* formularios */
.app-light input, .app-light select, .app-light textarea {
  background: #ffffff;
  border: 1px solid rgba(18,20,43,0.14);
  color: var(--ink);
}
.app-light input::placeholder, .app-light textarea::placeholder { color: #9aa0bd; }
.app-light code, .app-light .pair-url { background: #f1f2f7; color: var(--ink); }
.app-light .pwd-toggle { background: #f1f2f7; color: var(--ink); }
.app-light .pwd-toggle:hover { background: #e7e9f2; }
.app-light .btn-outline { background: #ffffff; color: var(--ink); border-color: rgba(18,20,43,0.16); }
.app-light .btn-outline:hover { background: #f4f2ff; }
.app-light .error, .app-light .field-error { color: #d6336c; }
.app-light .success { color: #12925f; }

/* pestanas (sidebar) */
.app-light .admin-sidebar { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px -18px rgba(18,20,43,0.18); }
.app-light .admin-tab-btn { color: var(--ink); }
.app-light .admin-tab-btn:hover { background: #f4f2ff; }
.app-light .admin-tab-btn.is-active { background: linear-gradient(100deg, rgba(59,107,255,0.12), rgba(139,92,255,0.14)); color: #3d1fc2; }

/* datos */
.app-light .scan-badge { background: #f1ecff; }
.app-light .scan-badge-number { color: #5b35e6; }
.app-light .admin-table th { color: var(--muted); }
.app-light .admin-table tbody tr:nth-child(even) { background: #fafbfd; }
.app-light .status-pill.status-auto { background: #e3f7ee; color: #12925f; }
.app-light .status-pill.status-admin { background: #efeaff; color: #5b35e6; }
.app-light .status-pill.status-unused { background: #f1f2f7; color: var(--muted); }
.app-light .admin-filter-input { background: #fff; color: var(--ink); }
.app-light .archive-link-btn { color: var(--muted); }
.app-light .tips-list li::marker { color: #5b35e6; }
.app-light .toast { background: #12142b; color: #fff; }
.app-light .feature-icon { background: #efeaff; color: #5b35e6; border-color: #e0d6ff; }

/* =====================================================================
   Paginas publicas del blog
   ===================================================================== */
.pub-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.pub-header-inner { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pub-logo img { height: 26px; width: auto; display: block; }
.pub-header nav { display: flex; align-items: center; gap: 22px; }
.pub-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: .85; }
.pub-header nav a:hover { opacity: 1; color: #5b35e6; }
.pub-header .pub-shop { background: var(--grad); color: #fff !important; padding: 9px 20px; border-radius: 999px; opacity: 1; box-shadow: 0 8px 22px -10px rgba(139,92,255,0.7); }
@media (max-width: 760px) {
  .pub-header nav a:not(.pub-shop):not([href="/blog"]) { display: none; }
}
.pub-main { min-height: 60vh; }

.blog-hero { max-width: 820px; margin: 0 auto; padding: 72px 24px 32px; text-align: center; }
.blog-hero h1 { font-size: 2.8rem; line-height: 1.1; letter-spacing: -0.03em; margin: 8px 0 14px; }
.blog-hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.blog-list, .blog-related { max-width: 1160px; margin: 0 auto; padding: 24px 24px 80px; }
.blog-related h2 { font-size: 1.6rem; margin: 0 0 24px; }
.blog-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } .blog-hero h1 { font-size: 2rem; } }
.blog-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(18,20,43,0.04), 0 14px 34px -18px rgba(18,20,43,0.2);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(139,92,255,0.4); box-shadow: 0 24px 50px -22px rgba(139,92,255,0.45); }
.blog-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(120deg, #e8eeff, #f6e9ff, #ffeede); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-ph { display: block; width: 100%; height: 100%; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-body h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.blog-card-body p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
.blog-card-more { margin-top: auto; padding-top: 8px; font-weight: 700; color: #5b35e6; font-size: 0.92rem; }
.blog-meta { color: var(--muted); font-size: 0.85rem; margin: 0; }

.post { max-width: 760px; margin: 0 auto; padding: 48px 24px 40px; }
.post-crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.post-crumbs a { color: var(--muted); text-decoration: none; }
.post-crumbs a:hover { color: #5b35e6; }
.post-crumbs span { margin: 0 6px; opacity: .6; }
.post-head h1 { font-size: 2.6rem; line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 14px; }
.post-lead { font-size: 1.2rem; color: #474c6c; line-height: 1.55; margin: 0 0 14px; }
.post-cover { margin: 28px 0 8px; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(18,20,43,0.35); }
.post-cover img { width: 100%; display: block; }
@media (max-width: 620px) { .post-head h1 { font-size: 1.9rem; } }
.prose { font-size: 1.08rem; line-height: 1.8; color: #2a2d45; }
.prose h2 { font-size: 1.65rem; line-height: 1.25; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.25rem; margin: 30px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose a { color: #5b35e6; text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; margin: 12px 0; display: block; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid #8b5cff; background: #f4f2ff; border-radius: 0 12px 12px 0; color: #3b3f5c; }
.post-cta {
  margin: 48px 0 0; padding: 32px; border-radius: 22px; text-align: center; color: #fff;
  background:
    radial-gradient(360px circle at 10% 120%, rgba(59,107,255,0.6), transparent 60%),
    radial-gradient(320px circle at 90% -20%, rgba(255,79,154,0.5), transparent 60%),
    #0b0d27;
}
.post-cta h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; }
.post-cta p { color: #cfd2ee; margin: 0 0 20px; }
.blog-preview-bar { background: #fff4d6; color: #6b4e00; text-align: center; padding: 10px 16px; font-size: 0.92rem; }

/* =====================================================================
   Editor del blog (admin)
   ===================================================================== */
.blog-admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.blog-admin-head h2 { margin: 0 0 4px; }
.blog-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .blog-editor { grid-template-columns: 1fr; } }
.blog-editor-side { display: flex; flex-direction: column; gap: 0; position: sticky; top: 80px; }
.blog-editor-side h3 { margin: 0 0 12px; font-size: 1.05rem; }
.blog-editor textarea { width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 0.95rem; resize: vertical; }
.blog-editor select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 8px; font: inherit; }
.blog-editor .btn-outline { margin-left: 6px; }
#editor { min-height: 460px; background: #fff; font-size: 1.05rem; }
.blog-editor .ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; border-color: rgba(18,20,43,0.14); background: #fafbfd; position: sticky; top: 64px; z-index: 5; }
.blog-editor .ql-container.ql-snow { border-radius: 0 0 10px 10px; border-color: rgba(18,20,43,0.14); font-family: var(--font-body); }
.blog-editor .ql-editor { min-height: 460px; line-height: 1.75; }
.blog-editor .ql-editor img { border-radius: 10px; }
.cover-preview { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #f1f2f7; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.serp { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; background: #fff; }
.serp-url { margin: 0; font-size: 0.8rem; color: #4d5156; }
.serp-title { margin: 4px 0; font-size: 1.05rem; color: #1a0dab; line-height: 1.3; }
.serp-desc { margin: 0; font-size: 0.85rem; color: #4d5156; line-height: 1.45; }
.seo-checks { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.seo-checks li { padding: 4px 0; }
.seo-checks li.ok { color: #12925f; }
.seo-checks li.no { color: #8a8fae; }
.seo-checks .seo-score { color: var(--ink); padding-bottom: 8px; }
.blog-delete { margin-top: 12px; }
.page-light .tp-footer { background: #07081a; backdrop-filter: none; -webkit-backdrop-filter: none; }

.tp-footer-bottom .tp-powered { color: #fff; font-weight: 700; }
@media (hover: none) { .tp-orb { translate: none !important; rotate: none !important; } }

/* =====================================================================
   Imagenes flotantes (placas y tarjetas) repartidas por el home
   span.tp-float = posicion + hover magnetico (--fx/--fy via JS)
   img           = flotacion corta en bucle
   ===================================================================== */
.tp-section, .tapshop-section, .tp-final, .landing-visual { position: relative; }
.tp-section > :not(.tp-float), .tapshop-section > :not(.tp-float), .tp-final > :not(.tp-float) { position: relative; z-index: 1; }
.tp-float {
  position: absolute;
  z-index: 0;
  width: 190px;
  pointer-events: auto;
  translate: var(--fx, 0px) var(--fy, 0px);
  transition: translate .6s cubic-bezier(.2,.8,.2,1), opacity .9s ease, scale .9s cubic-bezier(.2,.7,.2,1);
}
.tp-float img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(18,20,43,0.28));
  animation: tp-bob 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform-origin: 50% 60%;
}
.landing-visual .tp-float img, .tp-compare .tp-float img, .tp-final .tp-float img { filter: drop-shadow(0 18px 26px rgba(0,0,0,0.35)); }
.tp-float:hover img { filter: drop-shadow(0 30px 40px rgba(139,92,255,0.45)); }
@keyframes tp-bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, -6deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--r, -6deg) + 4deg)); }
}
/* entrada al hacer scroll */
.tp-anim .tp-float { opacity: 0; scale: .8; }
.tp-anim .tp-float.is-in { opacity: 1; scale: 1; }

/* posiciones (escritorio) */
.tp-f-hero1   { width: 170px; top: 2%;   left: -4%;   --r: -8deg; --delay: -1s; z-index: 4; }
.tp-f-hero2   { width: 150px; bottom: 0; right: -2%;  --r: 10deg; --delay: -3s; z-index: 4; }
.tp-f-problem { width: 170px; top: 40px; right: 10px; --r: 8deg;  --delay: -2s; }
.tp-f-compare { width: 200px; top: 110px; left: -10px; --r: -10deg; --delay: -4s; }
.tp-f-prod1   { width: 150px; top: 20px; left: 10px;  --r: -12deg; --delay: -1.5s; }
.tp-f-prod2   { width: 150px; top: 40px; right: 30px; --r: 6deg;  --delay: -3.5s; }
.tp-f-steps   { width: 170px; top: 20px; right: 30px; --r: 10deg; --delay: -2.5s; }
.tp-f-nofric  { width: 160px; top: 20px; left: 20px;  --r: -8deg; --delay: -0.5s; }
.tp-f-final1  { width: 130px; top: 50%; left: 4%;  margin-top: -80px; --r: -14deg; --delay: -2s; }
.tp-f-final2  { width: 110px; top: 50%; right: 5%; margin-top: -80px; --r: 8deg;  --delay: -4s; }

@media (max-width: 1100px) {
  .tp-f-problem, .tp-f-compare { width: 130px; }
  .tp-f-prod1, .tp-f-prod2, .tp-f-steps, .tp-f-nofric { width: 120px; top: 6px; }
}
@media (max-width: 760px) {
  .tp-f-hero1 { width: 96px; top: 0; left: 4%; }
  .tp-f-hero2 { width: 96px; bottom: 4%; right: 4%; }
  .tp-f-problem, .tp-f-steps, .tp-f-prod2 { width: 74px; top: 14px; right: 8px; left: auto; }
  .tp-f-compare, .tp-f-nofric, .tp-f-prod1 { width: 74px; top: 14px; left: 8px; right: auto; }
  .tp-f-final1, .tp-f-final2 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tp-float img { animation: none; } }
/* que no herede los estilos de la foto vieja del hero */
.landing-visual .tp-float img { box-shadow: none; border-radius: 0; max-width: none; position: static; }

/* intercambio: placas cuadradas en "El problema", placa de mesa en la comparativa */
.tp-f-problem { width: 210px; top: 60px; right: 0; --r: 6deg; }
.tp-f-compare { width: 150px; top: 100px; left: 10px; --r: -8deg; }
@media (max-width: 1100px) { .tp-f-problem { width: 150px; } .tp-f-compare { width: 110px; } }
@media (max-width: 760px) { .tp-f-problem { width: 84px; top: 14px; right: 8px; } .tp-f-compare { width: 64px; top: 14px; left: 8px; } }

/* comparativa: Instagram a la izquierda y LinkedIn a la derecha de la tabla */
.tp-f-cmpL { width: 200px; top: 120px; left: -10px; --r: -10deg; --delay: -2s; }
.tp-f-cmpR { width: 210px; bottom: 60px; right: -10px; --r: 8deg; --delay: -4s; }
.tp-f-prod1 { width: 130px; top: 20px; left: 20px; --r: -8deg; }
@media (max-width: 1100px) { .tp-f-cmpL, .tp-f-cmpR { width: 130px; } .tp-f-prod1 { width: 100px; } }
@media (max-width: 760px) {
  .tp-f-cmpL { width: 74px; top: 14px; left: 8px; }
  .tp-f-cmpR { width: 74px; top: 14px; right: 8px; bottom: auto; }
  .tp-f-prod1 { width: 64px; top: 14px; left: 8px; }
}

/* WhatsApp en "Nadie tiene que descargar nada": mas grande y a la derecha */
.tp-f-nofric { width: 240px; top: 0; right: -10px; left: auto; --r: 8deg; }
@media (max-width: 1100px) { .tp-f-nofric { width: 160px; top: 0; right: 0; left: auto; } }
@media (max-width: 760px) { .tp-f-nofric { width: 96px; top: 10px; right: 6px; left: auto; } }

/* =====================================================================
   Widgets de resenas (hero: notificaciones, Asi de sencillo: grafica,
   debajo de FAQ: lluvia de estrellas). JS en anim.js
   ===================================================================== */
.tpw-G { width: 22px; height: 22px; flex: none; }
.tpw-row { display: flex; align-items: center; gap: 8px; }
.tpw-between { justify-content: space-between; }
.tpw-big { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tpw-glass, .tpw-toast, .tpw-total, .tpw-starcard {
  background: rgba(14,16,42,.58);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08);
  color: #eef0ff;
}

/* ---- hero: notificaciones ---- */
.tpw-toasts { position: absolute; z-index: 5; right: -2%; top: 8%; width: 280px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.tpw-toast { padding: 12px 14px; display: flex; gap: 10px; align-items: center; animation: tpw-in .6s cubic-bezier(.2,.8,.2,1) both; }
.tpw-toast .av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; }
.tpw-toast b { font-size: .9rem; }
.tpw-toast .s { color: #fbbc04; font-size: .75rem; letter-spacing: 1px; margin-left: 4px; }
.tpw-toast small { display: block; color: #959bc4; font-size: .75rem; margin-top: 2px; }
.tpw-toast.out { animation: tpw-out .45s ease both; }
@keyframes tpw-in { from { opacity: 0; translate: 40px 0; scale: .95; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes tpw-out { to { opacity: 0; translate: 0 -18px; scale: .95; } }
.tpw-total { position: absolute; z-index: 5; left: 2%; bottom: 6%; padding: 14px 18px; font-size: .85rem; color: #959bc4; }
.tpw-total .tpw-big { font-size: 2.2rem; color: #fff; line-height: 1.1; margin-top: 4px; }
.tpw-total.bump .tpw-big { animation: tpw-bump .45s ease; }
@keyframes tpw-bump { 40% { scale: 1.08; color: #5fe3b0; } }
@media (max-width: 900px) {
  .tpw-toasts { width: 230px; right: 4%; top: 4%; }
  .tpw-toast:nth-child(n+3) { display: none; }
  .tpw-total { left: 4%; bottom: 4%; padding: 10px 14px; }
  .tpw-total .tpw-big { font-size: 1.6rem; }
}

/* ---- Asi de sencillo: grafica ---- */
.tpw-chart {
  max-width: 440px; margin: 48px auto 0; padding: 22px 24px 18px;
  background: #fff; border: 1px solid rgba(18,20,43,.08); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(18,20,43,.04), 0 24px 50px -24px rgba(18,20,43,.28);
  color: #12142b;
}
.tpw-chart b { font-size: .95rem; }
.tpw-chart .tpw-big { font-size: 2.6rem; margin: 8px 0 2px; }
.tpw-up { color: #12925f; font-weight: 700; background: #e3f7ee; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.tpw-svg { display: block; width: 100%; height: 120px; margin-top: 6px; overflow: visible; }
.tpw-months { color: #8a8fae; font-size: .74rem; margin-top: 6px; }
.tpw-note { margin: 10px 0 0; font-size: .74rem; color: #9aa0bd; text-align: center; }

/* ---- debajo de FAQ: lluvia de estrellas ---- */
.tpw-stars { height: 300px; padding: 0 !important; overflow: hidden; border-top: 0 !important; display: flex; align-items: center; justify-content: center; }
.tpw-stars > .tpw-starcard { position: relative; z-index: 2; padding: 18px 24px; width: auto; display: inline-block; font-size: .9rem; color: #959bc4; }
.tpw-starcard .tpw-big { font-size: 2.8rem; color: #fff; line-height: 1.1; }
.tpw-stars5 { color: #fbbc04; letter-spacing: 2px; font-size: 1.1rem; }
.tpw-starcard.pop { animation: tpw-pop .4s ease; }
@keyframes tpw-pop { 50% { scale: 1.06; } }
.tpw-stars > .tpw-fly { position: absolute; z-index: 3; font-size: 22px; color: #fbbc04; pointer-events: none; text-shadow: 0 0 14px rgba(251,188,4,.75); }
@media (max-width: 760px) { .tpw-stars { height: 240px; } .tpw-starcard .tpw-big { font-size: 2.2rem; } }

/* hero: notificaciones y total mas juntos, sobre los ovalos */
.tpw-toasts { top: 18%; right: 12%; width: 260px; gap: 8px; }
.tpw-toast { padding: 10px 12px; }
.tpw-total { left: 14%; bottom: 20%; padding: 12px 16px; }
@media (max-width: 1200px) { .tpw-toasts { right: 4%; } .tpw-total { left: 6%; } }
@media (max-width: 900px) {
  .tpw-toasts { width: 230px; right: 6%; top: 10%; }
  .tpw-total { left: 6%; bottom: 10%; }
}

/* lluvia de estrellas mas pegada a las preguntas */
.tpw-stars { height: 190px; margin-top: -56px; margin-bottom: -20px; overflow: visible; z-index: 0; }
@media (max-width: 760px) { .tpw-stars { height: 170px; margin-top: -40px; } }

/* boton de menu viejo que ya no se usa */
.site-header-toggle { display: none !important; }

/* celular: mostrar las 3 notificaciones */
@media (max-width: 900px) {
  .tpw-toast:nth-child(n+3) { display: flex; }
  .tpw-toasts { top: 4%; gap: 6px; }
  .tpw-toast { padding: 8px 12px; }
  .tpw-toast .av { width: 30px; height: 30px; }
}

/* dashboard: el boton destacado (Editar mi perfil) siempre con degradado */
.app-light .change-pwd-toggle a.toggle-accent,
.app-light .change-pwd-toggle a.toggle-accent:hover {
  background: var(--grad);
  background-size: 160% 100%;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px -8px rgba(139,92,255,0.55);
}
.app-light .change-pwd-toggle a.toggle-accent:hover { background-position: 100% 50%; color: #fff; }

/* dashboard: Activar producto y Generar vCard como boton de degradado (azul a rosa) */
.app-light .change-pwd-toggle { text-align: left; }
.app-light .change-pwd-toggle a.toggle-cta {
  display: inline-block;
  width: auto;
  padding: 14px 28px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(100deg, #3b6bff 0%, #8b5cff 55%, #ff4f9a 100%);
  background-size: 160% 100%;
  box-shadow: 0 12px 30px -10px rgba(91,80,255,0.6);
  transition: background-position .4s ease, transform .2s ease, box-shadow .2s ease;
}
.app-light .change-pwd-toggle a.toggle-cta:hover {
  color: #fff;
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -10px rgba(255,79,154,0.55);
}

/* dashboard: los botones de degradado conservan el tamano original (ancho completo) */
.app-light .change-pwd-toggle { text-align: center; }
.app-light .change-pwd-toggle a.toggle-cta {
  display: block;
  width: auto;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
}

/* links con estilo de boton: texto blanco y en una sola linea */
.app-light a.btn, .app-light a.btn:hover, .page-light a.btn-pill, .app-light a.btn-pill { color: #fff; }
.app-light a.btn-outline, .app-light a.btn-outline:hover { color: var(--ink); }
.blog-admin-head .btn { white-space: nowrap; flex-shrink: 0; }

/* ---- /contacto ---- */
.contact-wrap { max-width: 1060px; margin: 0 auto; padding: 64px 24px 96px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-intro h1 { font-size: 2.8rem; letter-spacing: -0.03em; margin: 8px 0 14px; }
.contact-intro p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.contact-alt a { color: #5b35e6; font-weight: 600; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: 0 1px 2px rgba(18,20,43,.04), 0 24px 50px -24px rgba(18,20,43,.25); }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; color: #12142b; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(18,20,43,.14); background: #fff; color: #12142b; font: inherit; font-weight: 400; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #8b5cff; box-shadow: 0 0 0 3px rgba(139,92,255,.2); }
.contact-form .btn-pill { border: 0; cursor: pointer; width: 100%; margin: 4px 0 0; color: #fff; }
.contact-form .error { color: #d6336c; margin: 0 0 14px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-ok { text-align: center; padding: 20px 0; }
.contact-ok-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: var(--grad); }
.contact-ok h2 { margin: 0 0 8px; }
.contact-ok p { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; } .contact-intro h1 { font-size: 2.1rem; } }

/* ---- admin: mensajes ---- */
.msg-item { border: 1px solid var(--border); border-left: 4px solid #8b5cff; border-radius: 12px; padding: 14px 16px; margin-top: 12px; background: #fff; }
.msg-item.is-read { border-left-color: rgba(18,20,43,.12); opacity: .8; }
.msg-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.msg-body { margin: 10px 0; line-height: 1.6; white-space: normal; }
.msg-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.msg-actions form { margin: 0; }
.msg-actions button.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.msg-actions .link-btn, .msg-actions button.link-btn { font-size: .9rem; font-weight: 600; color: #5b35e6; text-decoration: none; }

/* ---- /blog: tarjetas mas cuadradas y atractivas ---- */
.blog-list { max-width: 1160px; }
.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.blog-card { border-radius: 24px; }
.blog-card-img { aspect-ratio: 4 / 3; position: relative; }
.blog-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18,20,43,.35)); pointer-events: none; }
.blog-card-body { padding: 22px 24px 26px; gap: 10px; }
.blog-card-body h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-meta { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: #8b5cff; text-transform: uppercase; }
.blog-card-more { display: inline-flex; align-items: center; gap: 6px; transition: gap .3s ease; }
.blog-card:hover .blog-card-more { gap: 12px; }

/* el articulo mas reciente va destacado: grande y horizontal */
.blog-list .blog-grid > .blog-card:first-child { grid-column: 1 / -1; flex-direction: row; min-height: 380px; }
.blog-list .blog-grid > .blog-card:first-child .blog-card-img { flex: 1.15 1 0; aspect-ratio: auto; min-height: 100%; }
.blog-list .blog-grid > .blog-card:first-child .blog-card-body { flex: 1 1 0; padding: 40px 44px; justify-content: center; gap: 14px; }
.blog-list .blog-grid > .blog-card:first-child h3 { font-size: 2rem; -webkit-line-clamp: 4; }
.blog-list .blog-grid > .blog-card:first-child p { font-size: 1.05rem; -webkit-line-clamp: 4; }
.blog-list .blog-grid > .blog-card:first-child .blog-card-more { margin-top: 10px; padding: 12px 22px; border-radius: 999px; color: #fff; background: var(--grad); background-size: 160% 100%; align-self: flex-start; box-shadow: 0 10px 26px -10px rgba(139,92,255,.6); }

@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-list .blog-grid > .blog-card:first-child { flex-direction: column; min-height: 0; }
  .blog-list .blog-grid > .blog-card:first-child .blog-card-img { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
  .blog-list .blog-grid > .blog-card:first-child .blog-card-body { padding: 24px; }
  .blog-list .blog-grid > .blog-card:first-child h3 { font-size: 1.5rem; }
}

/* el contenedor del blog no hereda el ancho angosto de <main> */
main.pub-main { max-width: none; margin: 0; padding: 0; }

/* /contacto: mas ancho y cuadrado, nombre y empresa lado a lado */
.contact-wrap { max-width: 1200px; grid-template-columns: 0.8fr 1.4fr; gap: 56px; align-items: center; }
.contact-card { padding: 40px 44px; border-radius: 24px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.contact-form > * { grid-column: 1 / -1; }
.contact-form > label:nth-of-type(1), .contact-form > label:nth-of-type(2) { grid-column: auto; }
.contact-form textarea { min-height: 150px; }
.contact-form .btn-pill { width: auto; justify-self: start; padding: 15px 40px; }
@media (max-width: 820px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-card { padding: 26px 22px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form > label:nth-of-type(1), .contact-form > label:nth-of-type(2) { grid-column: 1 / -1; }
  .contact-form .btn-pill { width: 100%; }
}

/* contacto: correo y telefono lado a lado */
.contact-form > label:nth-of-type(3), .contact-form > label:nth-of-type(4) { grid-column: auto; }
@media (max-width: 820px) { .contact-form > label:nth-of-type(3), .contact-form > label:nth-of-type(4) { grid-column: 1 / -1; } }
