/* Captura simple: ajuste visual y responsive, sin cambiar el flujo. */
:root { --page-bg: #f5f7fc; --muted-ink: #505b6d; --focus-ring: #173fc6; --surface-shadow: 0 12px 36px #1526430a; }
html { scroll-padding-block: 24px; }
body { background: radial-gradient(ellipse at 12% 0%, #e8efff 0, transparent 52%), var(--page-bg); padding: clamp(16px, 4vw, 48px) 20px 40px; }
main { gap: 18px; max-width: 920px; }
.top-strip { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.brand { background: transparent; border: 0; box-shadow: none; padding: 0; min-height: 68px; }
.brand-logo { max-height: 64px; max-width: min(280px, 100%); filter: none; }
.folio { font-size: 12px; font-weight: 700; min-width: auto; min-height: 32px; padding: 8px 12px; color: var(--muted-ink); border-radius: 999px; box-shadow: none; background: #ffffffb3; white-space: nowrap; }
main > label { font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -.6px; margin-top: 18px; }
.help { color: var(--muted-ink); font-size: 15px; line-height: 1.6; }
textarea { min-height: clamp(260px, 34vh, 420px); font-size: 18px; line-height: 1.65; padding: 24px; border-color: #c9d3e3; border-radius: 12px; box-shadow: var(--surface-shadow); }
textarea::placeholder { color: #697487; opacity: 1; }
.status-row { grid-template-columns: auto minmax(0,1fr); gap: 12px; }
.word-count, .warnings { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 24px; color: var(--muted-ink); font-size: 13px; line-height: 1.5; }
.word-count { white-space: nowrap; } .warnings { text-align: right; }
.actions { gap: 12px; }
.btn { min-height: 60px; border-radius: 10px; gap: 12px; padding: 12px 20px; font-size: 15px; box-shadow: none; transition: background 140ms, box-shadow 140ms; }
.btn span { min-width: 0; text-align: center; } .btn img { width: 32px; height: 32px; flex-basis: 32px; }
.btn:hover { transform: none; filter: none; box-shadow: 0 5px 15px #1526431a; } .btn:hover img { transform: none; box-shadow: none; }
.btn:active { transform: none; box-shadow: inset 0 0 0 2px #12121233; }
.btn-mic { background: #2454f5; } .btn-clear { background: #f6b400; } .btn-create { background: #176b3a; }
.btn-create:hover { background: #11562d; } .btn:disabled { box-shadow: none; }
button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
section { padding-top: 24px; gap: 16px; border-color: #ccd6e6; } section h2 { font-size: 20px; margin: 0; } section .btn { width: 100%; }
.doodle { display: none; }
dialog { max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; border-radius: 14px; box-shadow: 0 24px 70px #15264330; }
dialog h2 { margin: 0 0 14px; font-size: 23px; } dialog p { line-height: 1.65; color: var(--muted-ink); }
dialog button { border: 1px solid #c9d3e3; border-radius: 8px; background: white; margin: 6px 6px 0 0; font-weight: 700; }
dialog button:last-child { background: #2454f5; color: white; border-color: #2454f5; } dialog button:last-child:hover { background: #173fc6; }
.toast { bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; max-width: min(360px, calc(100vw - 40px)); line-height: 1.5; }
@media(max-width: 640px) { body { padding: 20px 16px 32px; } main { gap: 16px; } .top-strip { grid-template-columns: minmax(0,1fr) auto; gap: 12px; } .brand { justify-content: flex-start; min-height: 52px; } .brand-logo { max-width: 190px; max-height: 48px; } .folio { font-size: 11px; padding: 7px 9px; } main > label { margin-top: 14px; font-size: 24px; letter-spacing: -.5px; } textarea { padding: 18px; font-size: 16px; min-height: 280px; } .actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } #createBtn { grid-column: 1 / -1; } .btn { min-height: 56px; padding: 12px; } .help { font-size: 14px; } .warnings { font-size: 12px; } dialog { padding: 22px; } dialog button { width: 100%; margin: 6px 0 0; } }
@media(max-width: 359px) { .top-strip { grid-template-columns: 1fr; gap: 8px; } .folio { justify-self: start; } .status-row { grid-template-columns: 1fr; gap: 4px; } .warnings { text-align: left; } }
@media(prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
main, .actions, .status-row, .btn { min-width: 0; }
.help, .warnings, .toast, dialog p { overflow-wrap: anywhere; }
.btn-clear.used { background: #15783a; }
:root { --text-scale: 1; }
body { padding-bottom: max(112px, calc(env(safe-area-inset-bottom) + 88px)); }
main { min-width: 0; }
.site-credit { max-width: 920px; margin: 34px auto 0; padding: 22px 0; border-top: 1px solid #ccd6e6; color: var(--muted-ink); text-align: center; font-size: calc(13px * var(--text-scale)); line-height: 1.7; }
.site-credit span { display: block; font-size: calc(12px * var(--text-scale)); }
.floating-tool { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border: 3px solid white; border-radius: 50%; background: #2454f5; color: white; cursor: pointer; box-shadow: 0 6px 20px #15264330; z-index: 20; padding: 10px; }
.floating-tool:hover { background: #173fc6; box-shadow: 0 6px 24px #15264350; }
.ecosystem-toggle { left: max(18px, env(safe-area-inset-left)); padding: 0; background: white; border-color: #2454f5; }
.portrait { display: block; width: 100%; height: 100%; border-radius: 50%; background: white url('assets/entiendia-identidad.png') 84% 40% / 265% auto no-repeat; }
.menu-badge { position: absolute; bottom: -3px; right: -4px; border: 2px solid white; border-radius: 50%; width: 24px; height: 24px; background: #2454f5; color: white; font-size: 13px; display: grid; place-items: center; }
.access-toggle { right: max(18px, env(safe-area-inset-right)); } .access-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ecosystem-links { display: grid; gap: 10px; margin: 20px 0; }.ecosystem-links a { display: block; padding: 14px; min-height: 48px; background: #f1f5ff; color: #173fc6; border: 1px solid #ccd6e6; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: calc(16px * var(--text-scale)); }.ecosystem-links a:hover { background: #e2eaff; }.ecosystem-links a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.access-actions { display: flex; gap: 8px; }.access-actions button { flex: 1; margin-right: 0; }.toast { bottom: max(90px,calc(env(safe-area-inset-bottom) + 78px)); }
main > label { font-size: calc(clamp(22px, 3vw, 30px) * var(--text-scale)); }.help { font-size: calc(15px * var(--text-scale)); } textarea { font-size: calc(18px * var(--text-scale)); }.btn { font-size: calc(15px * var(--text-scale)); }dialog p, dialog button { font-size: calc(16px * var(--text-scale)); } dialog h2, section h2 { font-size: calc(22px * var(--text-scale)); }.word-count,.warnings { font-size: calc(13px * var(--text-scale)); }
body.high-contrast { background: #000; color: #fff; }
.high-contrast :is(main,section,footer,dialog,textarea,button,.help,.folio,.word-count,.warnings,.toast) { background: #000; color: #fff; border-color: #ffeb00; box-shadow: none; }
.high-contrast :is(button,a) { color: #ffeb00; border: 2px solid #ffeb00; background: #000; }.high-contrast .floating-tool svg { color: #ffeb00; }.high-contrast textarea::placeholder { color: #ddd; }.high-contrast :focus-visible { outline: 3px solid #00ffff; }.high-contrast button[aria-pressed="true"] { background: #ffeb00; color: #000; }
@media(max-width:640px) { main > label { font-size: calc(24px * var(--text-scale)); } .help { font-size: calc(14px * var(--text-scale)); } textarea { font-size: calc(16px * var(--text-scale)); } }
/* Componentes canónicos EntiendIA: ubicación superior, como el sitio original. */
body { padding-top: max(96px,calc(env(safe-area-inset-top) + 84px)); }
.site-credit nav { margin-top: 12px; line-height: 2; }.site-credit a { color: #173fc6; text-underline-offset: 3px; }.site-credit button { min-height: 44px; padding: 10px 14px; background: white; color: #173fc6; border: 1px solid #c9d3e3; border-radius: 8px; cursor: pointer; font: inherit; margin-top: 12px; }.site-credit button:hover { background: #e8efff; }
.storage-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(620px,calc(100vw - 32px)); max-height: calc(100dvh - 112px); overflow-y: auto; z-index: 1100; padding: 22px; background: white; color: #152643; border: 1px solid #c9d3e3; box-shadow: 0 12px 45px #15264330; border-radius: 14px; }
.storage-banner h2 { margin: 0 0 10px; font-size: 19px; }.storage-banner p { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }.storage-banner a { color: #173fc6; }.storage-banner div { display: flex; gap: 10px; flex-wrap: wrap; }.storage-banner button { flex: 1; min-height: 44px; min-width: 160px; padding: 10px; border: 1px solid #173fc6; color: #173fc6; border-radius: 8px; background: white; cursor: pointer; font-weight: 700; }.storage-banner button:hover { background: #e8efff; }
#storageDialog label { line-height: 1.6; margin: 14px 0; }
@media print { .storage-banner,.site-credit,entiendia-menu,entiendia-accessibility { display: none !important; } }
/* Identidad EntiendIA: profundidad y vidrio, revisión 10. */
:root { --brand-blue: #2454f5; --brand-deep: #173fc6; --brand-gold: #f6b400; --glass-line: #ffffffdb; --glass-shadow: 0 22px 70px #244bc51a; }
body { position: relative; isolation: isolate; background: radial-gradient(ellipse at 10% 14%,#bfd3ff 0,transparent 55%),radial-gradient(ellipse at 94% 35%,#ffdf806b 0,transparent 48%),linear-gradient(140deg,#e7efff 0%,#f0f5ff 48%,#fff7df 100%); background-attachment: fixed; }
main { position: relative; isolation: isolate; padding: clamp(20px,4vw,42px); border: 1px solid var(--glass-line); border-radius: 28px; background: #f8fafff5; box-shadow: var(--glass-shadow),inset 0 1px 0 #fff; }
@supports(backdrop-filter:blur(20px)) { main { background: #f8faffd9; backdrop-filter: blur(22px) saturate(120%); -webkit-backdrop-filter: blur(22px) saturate(120%); } }
.top-strip { display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; padding-bottom: 26px; border-bottom: 1px solid #2454f51c; }
.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 14px; min-height: 0; text-align: center; }
.brand-logo { width: min(390px,85%); max-width: none; max-height: none; height: auto; border-radius: 14px; box-shadow: 0 12px 30px #1526430d; }
.brand-connection { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 5px 15px 5px 7px; border: 1px solid #fff; border-radius: 999px; background: #ffffffc9; box-shadow: 0 7px 22px #2454f515,inset 0 1px 0 #fff; color: #53637a; font-size: calc(14px * var(--entiendia-text-scale,1)); }
.brand-connection img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; border: 1px solid #2454f52e; order: -1; }
.brand-connection strong { color: #152643; font-size: 18px; letter-spacing: -.4px; }.brand-connection strong span { color: #a76b00; }
.brand-purpose { margin: 0; color: #405371; font-size: 13px; line-height: 1.5; }
.folio { background: #edf2ff; border-color: #ced9fa; font-size: 10px; min-height: 26px; padding: 5px 10px; letter-spacing: .5px; }
main > label { margin-top: 12px; font-size: 26px; letter-spacing: -.7px; color: #152643; }
textarea { background: #fffffffa; border: 1px solid #b9c9e7; box-shadow: inset 0 2px 5px #15264306,0 9px 22px #2454f507; border-radius: 16px; min-height: 240px; }
textarea:focus { outline: 0; border-color: #2454f5; box-shadow: 0 0 0 4px #2454f51a,0 12px 28px #2454f510; }
.actions { gap: 14px; padding-bottom: 6px; perspective: 900px; }
.btn { position: relative; isolation: isolate; overflow: visible; background: transparent; border: 0; box-shadow: none; color: #fff; transform: none; transition: none; min-height: 62px; border-radius: 13px; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--button-face,#2454f5); border: 1px solid #ffffff50; border-top-color: #ffffffb3; box-shadow: 0 5px 0 var(--button-edge,#173fc6),0 12px 22px var(--button-shade,#2454f530),inset 0 1px 0 #ffffff50; transition: transform 220ms ease,box-shadow 220ms ease; transform: perspective(700px) rotateX(2deg); }
.btn::after { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 1px 1px 50%; border-radius: 12px 12px 32% 32%; background: linear-gradient(180deg,#ffffff26,transparent); }
.btn:hover { background: transparent; box-shadow: none; transform: none; }.btn:hover::before { transform: perspective(700px) translateY(-3px) rotateX(5deg); box-shadow: 0 8px 0 var(--button-edge,#173fc6),0 18px 28px var(--button-shade,#2454f530),inset 0 1px 0 #ffffff70; }
.btn:active { transform: none; box-shadow: none; }.btn:active::before { transform: translateY(4px); box-shadow: 0 1px 0 var(--button-edge,#173fc6),0 4px 10px var(--button-shade,#2454f530); }
.btn-mic { --button-face: linear-gradient(135deg,#2454f5,#1744dc); --button-edge:#1235ac; --button-shade:#2454f530; }
.btn-clear { --button-face: linear-gradient(135deg,#ffd158,#f6b400); --button-edge:#b77a00; --button-shade:#b77a0024; color:#152643; }
.btn-create { --button-face: linear-gradient(135deg,#2454f5,#1744dc); --button-edge:#1235ac; --button-shade:#2454f530; }
.btn img { box-shadow: 0 2px 8px #15264315; }
.btn:disabled::before { transform: none; box-shadow: none; }.btn:disabled:hover::before { transform: none; }
.brand-orbit { position: absolute; z-index: -1; pointer-events: none; border: 1px solid #ffffffd1; border-radius: 50%; box-shadow: inset 0 2px 12px #fff8,0 14px 30px #2454f512; animation: brand-drift 12s ease-in-out infinite; }
.orbit-blue { width: 74px; height: 74px; top: 100px; right: 6%; background: radial-gradient(circle at 28% 23%,#ffffffb3,#2454f524 55%,#2454f541); }
.orbit-gold { width: 43px; height: 43px; top: 30px; left: 9%; background: radial-gradient(circle at 28% 23%,#fff8,#f6b40025 55%,#f6b40060); animation-delay: -5s; }
@keyframes brand-drift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(5px,-10px,0); } }
.site-credit { margin-top: 28px; border-color: #2454f522; }
html[data-animations-paused=true] .brand-orbit { animation: none !important; }html[data-animations-paused=true] .btn::before { transition: none;transform:none; }
.high-contrast main { background:#000; border-color:#ffeb00; box-shadow:none; backdrop-filter:none; }
.high-contrast .brand-orbit { display:none; }.high-contrast .brand-purpose { color:#fff; }.high-contrast .brand-connection { background:#000;color:#fff;border-color:#ffeb00; }.high-contrast .brand-connection strong,.high-contrast .brand-connection strong span { color:#ffeb00; }
.high-contrast .btn { background:#000; color:#ffeb00; border:2px solid #ffeb00; }.high-contrast .btn::before,.high-contrast .btn::after { display:none; }
@media(max-width:640px) { body { padding-left:12px;padding-right:12px; } main { padding:24px 18px;border-radius:22px; } .brand-logo { width:min(290px,94%); } .brand { gap:12px; } .brand-purpose { max-width:220px;font-size:12px; } main > label { font-size:23px;line-height:1.3; } .top-strip { gap:12px;padding-bottom:22px; } textarea { padding:16px;min-height:250px; } .btn { min-height:58px; } .orbit-blue { width:40px;height:40px;right:2%;top:160px; } .orbit-gold { width:26px;height:26px;left:4%;top:20px; } }
@media(prefers-reduced-motion:reduce) { .brand-orbit { animation:none !important; } .btn::before { transition:none;transform:none !important; } }
@media(forced-colors:active) { main { background:Canvas;backdrop-filter:none;border:1px solid CanvasText; } .brand-orbit { display:none; }.btn::before,.btn::after { display:none; }.btn { background:ButtonFace;color:ButtonText;border:1px solid ButtonText; } }
/* Claymorphism blanco: dirección aprobada, revisión 11. */
body { background: #fff; background-attachment: scroll; }
main { background: #fff; border: 1px solid #e7edf9; border-radius: 32px; box-shadow: 16px 18px 42px #2454f50d,-10px -10px 30px #fff,inset 3px 3px 7px #fff,inset -3px -3px 8px #e7edf952; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand-logo { box-shadow: none; border-radius: 0; }
.brand-connection { background: #f4f7ff; border: 1px solid #e5ecfb; box-shadow: 5px 6px 14px #2454f510,-4px -4px 12px #fff,inset 1px 1px 2px #fff,inset -1px -1px 3px #dce5fa; border-radius: 20px; }
.folio { background: #f4f7ff; box-shadow: inset 1px 1px 3px #dbe5fc,inset -1px -1px 3px #fff; }
textarea { background: #fff; border-color: #bdcbe3; border-radius: 20px; box-shadow: inset 4px 4px 10px #15264308,inset -4px -4px 10px #fff; }
textarea:focus { box-shadow: 0 0 0 4px #2454f515,inset 3px 3px 8px #15264307; }
.btn { border-radius: 20px; }
.btn::before { transform: none; border-top-color: #ffffff80; box-shadow: inset 3px 3px 7px #ffffff38,inset -4px -4px 9px #00000016,0 5px 0 var(--button-edge,#173fc6),0 12px 22px var(--button-shade,#2454f525); }
.btn::after { display: none; }
.btn:hover::before { transform: translateY(-2px); box-shadow: inset 3px 3px 7px #ffffff45,inset -4px -4px 9px #00000012,0 7px 0 var(--button-edge,#173fc6),0 16px 26px var(--button-shade,#2454f525); }
.btn:active::before { transform: translateY(3px); box-shadow: inset 3px 3px 7px #00000016,inset -2px -2px 6px #ffffff18,0 2px 0 var(--button-edge,#173fc6),0 5px 10px var(--button-shade,#2454f525); }
.brand-orbit { border: 0; box-shadow: inset 6px 6px 12px #ffffffb3,inset -7px -7px 14px #2454f51a,8px 12px 22px #2454f50f; }
.orbit-blue { background: #e4ecff; }.orbit-gold { background: #fff1bd; box-shadow: inset 5px 5px 10px #ffffff9c,inset -5px -5px 11px #b77a001c,6px 10px 18px #b77a000d; }
.high-contrast main { background: #000; box-shadow: none; border-color: #ffeb00; }.high-contrast .brand-connection { background:#000;box-shadow:none; }
@media(max-width:640px) { main { border-radius:24px; } }
@media(forced-colors:active) { main { background:Canvas; border-color:CanvasText;box-shadow:none; } .brand-connection { background:Canvas;color:CanvasText;box-shadow:none; } }
/* Jerarquía de captura y confirmación, revisión13. */
main > label[for="captureText"] { text-align:center; font-family:"Avenir Next","Trebuchet MS",Arial,sans-serif; font-size:clamp(24px,3.2vw,32px); font-weight:750; letter-spacing:-.8px; line-height:1.25; margin-top:16px; }
main > label[for="captureText"] + .help { text-align:center; max-width:650px; justify-self:center; }
#copyDialog { border-radius:26px; border:1px solid #dae3f6; box-shadow:0 24px 70px #15264333,inset 3px 3px 8px #fff,inset -3px -3px 8px #e8eef8; padding:30px; }
#copyTitle { text-align:center; font-family:"Avenir Next","Trebuchet MS",Arial,sans-serif; font-size:26px;letter-spacing:-.6px; }
#copyDialog .copy-symbol { display:grid; place-items:center; width:56px; height:56px; margin:0 auto 18px; border-radius:18px; background:#edf3ff; color:#2454f5; box-shadow:inset 2px 2px 5px #fff,inset -2px -2px 6px #d5dff6,4px 5px 10px #2454f510; }
.copy-symbol svg { width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
#copyNotice { font-size:16px;line-height:1.65;color:#405371;margin:18px 0 24px; }
.copy-controls { display:grid;grid-template-columns:1fr;gap:12px; }
#copyDialog .copy-controls button { margin:0;width:100%;min-height:52px; }
#copyDialog #confirmCopy { border:1px solid #1842d2;border-radius:16px;background:linear-gradient(140deg,#2454f5,#173fc6);color:#fff;font-size:16px;box-shadow:inset 2px 2px 5px #ffffff38,inset -3px -3px 7px #00000010,0 4px 0 #1235ac,0 9px 18px #2454f524;cursor:pointer; }
#copyDialog #confirmCopy:hover { background:#173fc6;box-shadow:inset 2px 2px 5px #ffffff30,0 5px 0 #1235ac,0 12px 20px #2454f530; }
#copyDialog #confirmCopy:active { box-shadow:inset 2px 2px 5px #00000020,0 1px 0 #1235ac; }
#copyDialog #cancelCopy { background:#fff;color:#53637a;border:1px solid #d6deec;border-radius:12px;box-shadow:none;font-weight:600; }
.priority-notice { margin:0;padding:16px 18px;background:#fff7de;border:1px solid #dbc27d;border-radius:14px;color:#554014;font-size:14px;line-height:1.6; }
body.high-contrast #copyDialog { background:#000;box-shadow:none;border-color:#ffeb00; }body.high-contrast #copyNotice { color:#fff; }body.high-contrast #copyDialog :is(#confirmCopy,#cancelCopy,.copy-symbol) { background:#000;color:#ffeb00;border:2px solid #ffeb00;box-shadow:none; }
@media(max-width:640px){#copyDialog{padding:24px;}#copyTitle{font-size:24px;} main > label[for="captureText"]{font-size:25px;} }
