/* ===== PDFlow — estilos (fiel al design handoff hifi) ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: #2c2540;
  background: #f7f4fb;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2 { font-family: 'Sora', 'Figtree', sans-serif; }
a { color: inherit; }

/* ---- animaciones ---- */
@keyframes sheen { 0% { left: -60%; opacity: 0; } 25% { opacity: .8; } 100% { left: 130%; opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: translateY(20px) scale(.96); } to { transform: none; } }
@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,20px) scale(1.12); } }
@keyframes floatC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,40px) scale(1.06); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ring { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.5); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---- fondo animado ---- */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; transition: background .6s ease; }
#bg .blob { position: absolute; border-radius: 50%; }
#bg .b1 { top: -200px; left: -160px; width: 680px; height: 680px; background: radial-gradient(circle at 50% 50%, rgba(190,168,255,0.62), rgba(190,168,255,0) 70%); filter: blur(64px); animation: floatA 34s ease-in-out infinite; }
#bg .b2 { top: 60px; right: -220px; width: 720px; height: 720px; background: radial-gradient(circle at 50% 50%, rgba(255,158,186,0.58), rgba(255,158,186,0) 70%); filter: blur(70px); animation: floatB 40s ease-in-out infinite; }
#bg .b3 { bottom: -300px; left: 32%; width: 780px; height: 780px; background: radial-gradient(circle at 50% 50%, rgba(130,222,194,0.5), rgba(130,222,194,0) 70%); filter: blur(74px); animation: floatC 36s ease-in-out infinite; }
#bg .b4 { top: 38%; left: 4%; width: 460px; height: 460px; background: radial-gradient(circle at 50% 50%, rgba(255,196,140,0.42), rgba(255,196,140,0) 70%); filter: blur(66px); animation: floatA 28s ease-in-out infinite; }

.wrap { position: relative; z-index: 1; min-height: 100vh; }

/* ---- header ---- */
header.top { max-width: 1180px; margin: 0 auto; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo .mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #ff8fab, #b07cff); display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(176,124,255,0.6); }
.logo .name { font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
nav.top { display: flex; align-items: center; gap: 8px; }
nav.top a { text-decoration: none; color: #5b5470; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 99px; transition: background .25s; }
nav.top a:hover { background: rgba(255,255,255,0.6); }

/* ---- hero ---- */
.hero { max-width: 960px; margin: 0 auto; padding: 40px 28px 20px; text-align: center; }
.hero h1 { margin: 22px 0 0; font-size: 56px; line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; color: #2c2540; }
.hero p { margin: 20px auto 0; max-width: 560px; font-size: 18.5px; line-height: 1.6; color: #635c79; font-weight: 500; text-wrap: pretty; }
.dropzone {
  margin: 38px auto 0; max-width: 540px; padding: 44px 32px; border-radius: 28px;
  border: 2px dashed rgba(176,124,255,0.45); background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -28px rgba(120,80,170,0.4); cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.dropzone:hover, .dropzone.drag { transform: translateY(-6px); box-shadow: 0 34px 70px -28px rgba(120,80,170,0.5); border-color: rgba(176,124,255,0.85); }
.dropzone .art { position: relative; width: 72px; height: 72px; margin: 0 auto 18px; }
.dropzone .art .halo { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, #ff8fab, #b07cff); animation: ring 2.4s ease-out infinite; }
.dropzone .art .box { position: relative; width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(135deg, #ff8fab, #b07cff); display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(176,124,255,0.7); animation: bob 3s ease-in-out infinite; }
.dropzone .t1 { font-size: 19px; font-weight: 700; color: #2c2540; }
.dropzone .t2 { margin-top: 6px; font-size: 14.5px; color: #7a7290; font-weight: 500; }

/* ---- secciones de herramientas ---- */
.tools { max-width: 1180px; margin: 0 auto; padding: 56px 28px 20px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.cat-head .chip { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.cat-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; margin-bottom: 44px; }

.tool {
  display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 22px;
  border-radius: 22px; border: 1px solid rgba(255,255,255,0.65); background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px -14px rgba(90,60,130,0.22); cursor: pointer; font: inherit; color: inherit;
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s, border-color .35s;
}
.tool:hover { transform: translateY(-8px); background: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.97);
  box-shadow: 0 26px 52px -16px rgba(120,80,170,0.42), inset 0 0 0 1px rgba(255,255,255,0.75), 0 0 32px rgba(176,124,255,0.22); }
.tool::after { content: ""; position: absolute; top: 0; left: -60%; width: 55%; height: 100%; background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.tool:hover::after { animation: sheen .9s ease; }
.tool .ic { flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; transition: transform .45s cubic-bezier(.2,.85,.25,1); }
.tool:hover .ic { transform: scale(1.14) rotate(-6deg); }
.tool .ic svg { transition: transform .45s cubic-bezier(.2,.85,.25,1); }
.tool:hover .ic svg { transform: scale(1.08) rotate(6deg); }
.tool .tt { display: block; font-size: 16.5px; font-weight: 700; color: #2c2540; }
.tool .td { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: #7a7290; font-weight: 500; }

/* ---- cómo funciona ---- */
.como { max-width: 1180px; margin: 0 auto; padding: 70px 28px; }
.como .card { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 40px; border-radius: 28px; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 50px -24px rgba(120,80,170,0.32); }
.step { display: flex; align-items: flex-start; gap: 16px; }
.step .n { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.step .st { font-size: 16px; font-weight: 700; color: #2c2540; }
.step .ss { margin-top: 5px; font-size: 14px; line-height: 1.55; color: #7a7290; font-weight: 500; }

/* ---- footer ---- */
footer.bottom { max-width: 1180px; margin: 0 auto; padding: 10px 28px 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: #8a829e; font-size: 14px; font-weight: 500; }
footer.bottom .fl { display: flex; align-items: center; gap: 10px; }
footer.bottom .fmark { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #ff8fab, #b07cff); display: grid; place-items: center; }

/* ---- flotantes ---- */
.floaters { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.totop { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.8); background: rgba(255,255,255,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 28px -10px rgba(90,60,130,0.4); cursor: pointer; display: grid; place-items: center; color: #6a4f8a; animation: slideUp .3s cubic-bezier(.2,.85,.25,1) both; transition: transform .2s, background .2s; }
.totop:hover { transform: translateY(-3px); background: rgba(255,255,255,0.95); }
.palette-btn { width: 54px; height: 54px; border-radius: 50%; border: none; background: linear-gradient(135deg, #ff8fab, #b07cff); box-shadow: 0 14px 30px -10px rgba(176,124,255,0.7); cursor: pointer; display: grid; place-items: center; transition: transform .25s; }
.palette-btn:hover { transform: translateY(-3px) rotate(8deg); }

.panel { position: absolute; right: 0; bottom: 64px; width: 286px; padding: 20px; border-radius: 22px; background: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 28px 70px -24px rgba(80,50,130,0.5); animation: slideUp .3s cubic-bezier(.2,.85,.25,1) both; }
.panel .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.panel .ph .pt { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: #2c2540; }
.panel .x { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(150,120,200,0.12); color: #6a4f8a; cursor: pointer; display: grid; place-items: center; }
.panel .x:hover { background: rgba(150,120,200,0.22); }
.panel .lbl { font-size: 12px; font-weight: 700; color: #8a829e; text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 9px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.swatch { aspect-ratio: 1; border-radius: 13px; border: 2px solid rgba(120,90,170,0.12); cursor: pointer; box-shadow: 0 4px 10px -4px rgba(90,60,130,0.3); transition: transform .2s; }
.swatch:hover { transform: scale(1.06); }
.swatch.active { border-color: #8b7bff; }
.mono-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.mono-row .mt { font-size: 13.5px; font-weight: 700; color: #2c2540; }
.mono-row .ms { font-size: 11.5px; color: #8a829e; font-weight: 500; }
.switch { flex: none; width: 46px; height: 27px; border-radius: 99px; border: none; cursor: pointer; position: relative; background: #d8d2e4; transition: background .25s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); transition: left .25s cubic-bezier(.2,.85,.25,1); }
.switch.on .knob { left: 22px; }
.mono-colors { display: flex; gap: 10px; margin-top: 14px; }
.mono-colors button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .2s; }
.mono-colors button:hover { transform: scale(1.12); }
.mono-colors button.active { border-color: #2c2540; }

/* modo mono: pinta chips e íconos de un color sólido */
body[data-mono="on"] .ic,
body[data-mono="on"] .pf-tint { background: var(--mono, #6b7280) !important; box-shadow: none !important; }

/* ---- modal ---- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(60,40,90,0.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .2s ease both; }
.modal { width: 100%; max-width: 480px; border-radius: 26px; background: rgba(255,255,255,0.94); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 40px 90px -30px rgba(80,50,130,0.55); overflow: hidden; animation: popIn .35s cubic-bezier(.2,.85,.25,1) both; max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.modal .mhead { position: relative; padding: 26px 26px 22px; flex: none; }
.modal .mclose { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,0.25); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.modal .mclose:hover { background: rgba(255,255,255,0.42); }
.modal .mtitle { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.modal .mdesc { margin-top: 6px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.92); font-weight: 500; max-width: 90%; }
.modal .mbody { padding: 26px; overflow-y: auto; }

.filechip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(150,120,200,0.08); margin-bottom: 18px; }
.filechip .fic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #ff8fab, #b07cff); display: grid; place-items: center; }
.filechip .fn { display: block; font-size: 14px; font-weight: 700; color: #2c2540; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.filechip .fs { display: block; font-size: 12.5px; color: #8a829e; font-weight: 600; }

.updrop { padding: 40px 24px; border-radius: 20px; border: 2px dashed rgba(150,120,200,0.4); background: rgba(150,120,200,0.05); text-align: center; cursor: pointer; transition: border-color .25s, background .25s; }
.updrop:hover, .updrop.drag { border-color: rgba(150,120,200,0.75); background: rgba(150,120,200,0.1); }
.updrop .uic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; animation: bob 3s ease-in-out infinite; }
.updrop .u1 { font-size: 16px; font-weight: 700; color: #2c2540; }
.updrop .u2 { margin-top: 5px; font-size: 13px; color: #8a829e; font-weight: 500; }

.btn-primary { margin-top: 16px; width: 100%; padding: 15px; border: none; border-radius: 16px; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 28px -12px rgba(120,80,170,0.6); transition: transform .2s, opacity .2s; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { margin-top: 10px; width: 100%; padding: 13px; border: none; border-radius: 16px; background: rgba(150,120,200,0.1); color: #6a4f8a; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-ghost:hover { background: rgba(150,120,200,0.18); }

/* choose list */
.choose-title { font-size: 14.5px; font-weight: 700; color: #2c2540; margin-bottom: 12px; }
.choose-list { display: flex; flex-direction: column; gap: 8px; max-height: 290px; overflow-y: auto; overflow-x: hidden; margin: -4px; padding: 4px; }
.choice { flex: none; display: flex; align-items: center; gap: 13px; text-align: left; padding: 11px 13px; border-radius: 14px; border: 1px solid rgba(150,120,200,0.16); background: rgba(255,255,255,0.6); cursor: pointer; font: inherit; color: inherit; transition: background .2s, transform .2s; }
.choice:hover { background: rgba(150,120,200,0.1); transform: translateX(3px); }
.choice .cic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.choice .cn { display: block; font-size: 14.5px; font-weight: 700; color: #2c2540; }
.choice .cd { display: block; font-size: 12.5px; color: #8a829e; font-weight: 500; }
.choice .cx { flex: 1; min-width: 0; }

/* opciones genéricas de herramienta */
.opt-group { margin-bottom: 16px; }
.opt-group > label.h { display: block; font-size: 13.5px; font-weight: 700; color: #2c2540; margin-bottom: 8px; }
.field { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(150,120,200,0.28); background: rgba(255,255,255,0.7); font: inherit; font-size: 14.5px; color: #2c2540; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: #9b7bff; box-shadow: 0 0 0 3px rgba(155,123,255,0.16); }
select.field { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a829e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { padding: 9px 15px; border-radius: 12px; border: 1px solid rgba(150,120,200,0.24); background: rgba(255,255,255,0.6); font: inherit; font-size: 14px; font-weight: 600; color: #4a4360; cursor: pointer; transition: all .2s; }
.chipbtn.sel { border-color: #9b7bff; background: rgba(155,123,255,0.12); color: #6a4f8a; }
.hint { font-size: 12.5px; color: #8a829e; font-weight: 500; margin-top: 7px; line-height: 1.5; }
.filelist { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.filelist .row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(150,120,200,0.07); font-size: 13.5px; }
.filelist .row .idx { flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(155,123,255,0.16); color: #7a5fb0; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.filelist .row .rn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.filelist .row .rs { flex: none; color: #8a829e; font-weight: 600; font-size: 12px; }
.filelist .row .del { flex: none; border: none; background: none; color: #b0a8c4; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.filelist .row .del:hover { background: rgba(255,111,147,0.14); color: #ff5d83; }

/* compresión (niveles) */
.level { position: relative; display: block; text-align: left; padding: 15px 16px; border-radius: 16px; border: 1px solid rgba(150,120,200,0.18); background: rgba(255,255,255,0.6); cursor: pointer; font: inherit; color: inherit; transition: background .2s; width: 100%; }
.level:hover { background: rgba(150,120,200,0.08); }
.level.sel::before { content: ""; position: absolute; inset: 0; border-radius: 16px; border: 2px solid #2fc9a6; box-shadow: 0 0 0 4px rgba(47,201,166,0.14); pointer-events: none; }
.level .lr { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.level .ll { font-size: 15px; font-weight: 700; color: #2c2540; }
.level .lsub { margin-top: 3px; font-size: 12.5px; color: #8a829e; font-weight: 500; }
.level .lout { font-size: 15px; font-weight: 800; color: #1faf87; text-align: right; }
.level .lred { font-size: 12px; color: #8a829e; font-weight: 700; text-align: right; }
.level .bar { margin-top: 11px; height: 7px; border-radius: 99px; background: rgba(150,120,200,0.14); overflow: hidden; }
.level .bar > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6fe3c6, #2fc9a6); transition: width .3s ease; }

/* processing */
.proc { text-align: center; padding: 12px 0 4px; }
.proc .sp { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; border: 4px solid rgba(150,120,200,0.18); border-top-color: #9b7bff; animation: spin .8s linear infinite; }
.proc .pl { font-size: 17px; font-weight: 700; color: #2c2540; }
.proc .pbar { margin: 18px 0 8px; height: 9px; border-radius: 99px; background: rgba(150,120,200,0.14); overflow: hidden; }
.proc .pbar > div { height: 100%; border-radius: 99px; transition: width .22s ease; }
.proc .pp { font-size: 13.5px; font-weight: 700; color: #9b7bff; }

/* done */
.done { text-align: center; padding: 8px 0; }
.done .check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, #6fe3c6, #2fc9a6); display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(47,201,166,0.6); animation: pop .45s cubic-bezier(.2,.85,.25,1) both; }
.done .dt { font-size: 19px; font-weight: 800; color: #2c2540; letter-spacing: -0.01em; }
.done .dd { margin-top: 6px; font-size: 14px; color: #7a7290; font-weight: 500; }
.done .resultchip { margin-top: 14px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 99px; background: rgba(47,201,166,0.12); font-size: 13.5px; font-weight: 700; color: #1faf87; }
.done .dl { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 9px; background: linear-gradient(135deg, #6fe3c6, #2fc9a6); }

/* error */
.err { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,93,131,0.1); border: 1px solid rgba(255,93,131,0.3); color: #c0335a; font-size: 13.5px; font-weight: 600; line-height: 1.5; }

/* signature pad */
.sigpad { width: 100%; height: 160px; border-radius: 14px; border: 2px dashed rgba(150,120,200,0.4); background: rgba(255,255,255,0.75); touch-action: none; cursor: crosshair; display: block; }
.sigrow { display: flex; gap: 10px; margin-top: 10px; align-items: center; }

/* filtros por categoría */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.fpill { padding: 11px 22px; border-radius: 99px; border: 1px solid rgba(150,120,200,0.22); background: rgba(255,255,255,0.6); color: #5b5470; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fpill.active { background: linear-gradient(135deg, #ff8fab, #b07cff); color: #fff; border-color: transparent; }

/* opiniones */
.opinions { max-width: 1180px; margin: 0 auto; padding: 20px 28px 70px; }
.op-head { text-align: center; margin-bottom: 32px; }
.op-head h2 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -0.01em; color: #2c2540; }
.op-head p { margin: 8px 0 0; font-size: 15px; color: #7a7290; font-weight: 500; }
.op-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 28px; align-items: start; }

.fb-card { padding: 32px; border-radius: 26px; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 50px -24px rgba(120,80,170,0.32); }
.fb-err { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,93,131,0.1); border: 1px solid rgba(255,93,131,0.3); color: #c0335a; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.fb-lbl { font-size: 13.5px; font-weight: 700; color: #5b5470; margin-bottom: 8px; }
.fb-stars { display: flex; gap: 8px; margin-bottom: 22px; }
.fb-stars button { border: none; background: none; padding: 0; cursor: pointer; line-height: 0; }
.fb-field { width: 100%; box-sizing: border-box; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(120,90,170,0.18); background: rgba(255,255,255,0.7); font: inherit; font-size: 14.5px; color: #2c2540; margin-bottom: 18px; outline: none; }
textarea.fb-field { resize: vertical; margin-bottom: 20px; }
.fb-submit { width: 100%; padding: 15px; border: none; border-radius: 14px; background: linear-gradient(135deg, #ff8fab, #b07cff); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 28px -10px rgba(176,124,255,0.55); }
.fb-submit:disabled { background: #d8d2e4; cursor: not-allowed; box-shadow: none; }
.fb-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 20px 0; }
.fb-thanks .ok { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #6fe3c6, #2fc9a6); display: grid; place-items: center; animation: pop .45s cubic-bezier(.2,.85,.25,1) both; }
.fb-thanks .tt { font-size: 17px; font-weight: 700; color: #2c2540; }
.fb-thanks .ts { font-size: 14px; color: #7a7290; font-weight: 500; }

.fb-col { display: flex; flex-direction: column; gap: 14px; }
.review { padding: 22px; border-radius: 20px; background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 12px 30px -18px rgba(120,80,170,0.28); }
.review.pin { background: rgba(255,255,255,0.62); border: 1px solid rgba(176,124,255,0.35); box-shadow: 0 12px 30px -18px rgba(120,80,170,0.3); }
.review .rh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review .rid { display: flex; align-items: center; gap: 8px; min-width: 0; }
.review .badge { display: flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: linear-gradient(135deg, #ff8fab, #b07cff); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; flex: none; }
.review .rn { font-size: 15px; font-weight: 700; color: #2c2540; overflow-wrap: anywhere; }
.review .rs { display: flex; gap: 2px; flex: none; }
.review .rt { margin-top: 10px; font-size: 14px; line-height: 1.55; color: #6b6480; font-weight: 500; overflow-wrap: anywhere; white-space: pre-wrap; }
.review .rt a { color: #8b5fc9; font-weight: 700; text-decoration: none; }
.fb-empty { padding: 30px; border-radius: 20px; border: 1px dashed rgba(120,90,170,0.3); text-align: center; color: #9c94ae; font-size: 14px; font-weight: 500; }

/* crédito del diseñador (footer) */
.credit { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #8a829e; font-size: 13.5px; font-weight: 500; opacity: 0.85; transition: opacity .2s; }
.credit:hover { opacity: 1; }
.credit img { width: 18px; height: 18px; object-fit: contain; opacity: 0.75; }
.credit .cn { font-weight: 700; color: #6b6480; }
.credit .cd { color: #b0a8c4; }
.credit .ch { font-weight: 600; color: #6b6480; }

.hidden { display: none !important; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .op-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 40px; }
}
