:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#FFFFFF;color:#222221;--line:#E4E6EA;--muted:#5A6069;--orange:#A84613}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;min-height:46px}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #A84613;outline-offset:4px}[hidden]{display:none!important}header{display:flex;align-items:center;gap:18px;padding:16px max(22px,5vw);border-bottom:1px solid var(--line);background:#fff}header img{width:130px;height:auto}header>span{font-size:13px;color:var(--muted)}header>span:nth-child(2){border-left:1px solid var(--line);padding-left:18px}.tag{margin-left:auto;border:1px solid var(--line);border-radius:30px;padding:6px 11px}main{max-width:740px;margin:auto;padding:45px 28px 30px}h1{font-size:clamp(30px,5vw,43px);font-weight:650;line-height:1.14;letter-spacing:-1.3px;margin:12px 0 23px}h2{font-size:21px;font-weight:650;line-height:1.3;letter-spacing:-.4px}p{line-height:1.65;margin-top:0;color:var(--muted)}.lead{font-size:18px;line-height:1.7;max-width:590px}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:650;color:#A84613}.welcome-note{margin:28px 0;padding:22px;border:1px solid var(--line);background:#FFFFFF;border-radius:17px}.welcome-note p{font-size:14px;margin:8px 0 0}.label{display:block;font-size:14px;font-weight:600;margin:20px 0 9px}input[type=password],textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff;color:#222221;font-size:16px}textarea{resize:vertical}.check{display:flex;gap:10px;font-size:13px;line-height:1.6;color:var(--muted);margin:20px 0}.check input{flex-shrink:0;width:18px;height:18px;accent-color:#A84613;margin-top:3px}.primary,.secondary{padding:13px 20px;border-radius:12px;border:1px solid var(--line);font-size:14px;font-weight:600}.primary{background:var(--orange);color:#FFFFFF;border-color:var(--orange)}.primary:hover{background:#83350E}.secondary{background:#fff;color:#222221}.secondary:hover{background:#F7F8FA}.text-button{background:none;border:0;padding:8px 0;text-decoration:underline;text-underline-offset:4px;color:var(--muted);font-size:13px}.small{font-size:12px;line-height:1.6}.welcome>.primary{width:100%;margin-bottom:14px}.connection-line{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;color:var(--muted);margin-bottom:15px}#saved{font-size:11px;text-align:right}.voice-stage{padding:15px 0 23px;text-align:center}.voice-stage h1{font-size:30px;margin:10px 0 18px}.voice-stage .eyebrow{margin:15px 0 0}.orb{height:118px;width:118px;margin:0 auto 17px;border-radius:50%;background:#FDF2EA;box-shadow:0 0 0 12px #FDF2EA;display:flex;align-items:center;justify-content:center;gap:5px}.orb span{width:6px;height:21px;background:#CC5A1C;border-radius:6px}.orb span:nth-child(2),.orb span:nth-child(4){height:35px}.orb span:nth-child(3){height:51px}.orb.speaking span{animation:wave .85s ease-in-out infinite alternate}.orb.speaking span:nth-child(2n){animation-delay:.25s}.orb.listening{box-shadow:0 0 0 12px #FDF2EA,0 0 0 13px #F3D9C8}.orb.paused{filter:grayscale(1);opacity:.6}.user-caption{font-size:13px;font-style:italic;margin:14px 0 0}.request{border:1px solid #F3D9C8;border-radius:17px;padding:22px;background:#FFFFFF;margin:5px 0 22px}.request h2{margin:8px 0 12px}.request p{font-size:14px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.actions>.primary{flex:1}.conversation-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.conversation-controls button{padding:11px 6px;font-size:12px}.conversation-controls button[aria-pressed=true]{background:#FDF2EA;border-color:#CC5A1C}.text-alternative{margin:16px 0}.text-alternative summary,.collected summary,.transcript summary{font-size:13px;cursor:pointer;min-height:44px;padding:13px 0;color:var(--muted)}#text-form{display:flex;gap:10px;margin-top:8px}#text-form textarea{min-width:0}.bottom-actions{display:flex;justify-content:space-between;gap:12px;margin:8px 0 14px}.collected,.transcript{border-top:1px solid var(--line);padding:5px 0}.fact{border-bottom:1px solid #E4E6EA;padding:12px 0;font-size:14px}.fact span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.photo-grid figure{margin:0;min-width:0}.photo-grid img{width:100%;height:100px;object-fit:cover;border-radius:9px}.photo-grid figcaption{font-size:11px;overflow-wrap:anywhere;color:var(--muted);margin-top:5px}.transcript ol{list-style:none;margin:0;padding:0}.transcript li{padding:13px 15px;margin:8px 0;background:#FFFFFF;border:1px solid #E4E6EA;border-radius:12px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.transcript li.user{background:#FDF2EA}.transcript li b{font-size:10px;letter-spacing:1px;display:block;margin-bottom:4px;color:var(--muted)}.notice{padding:18px;background:#FDF2EA;border-radius:12px;font-size:14px;line-height:1.6}#error{border-radius:12px;background:#F9DEDC;color:#7A201B;font-size:14px;line-height:1.6;padding:18px;margin:18px 0}footer{margin-top:28px;border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}dialog{width:min(560px,calc(100% - 24px));max-height:94dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:22px;color:#222221;background:#FFFFFF}dialog::backdrop{background:#222221b3}dialog video,dialog img{display:block;width:100%;max-height:53dvh;object-fit:contain;border-radius:12px;background:#222221}dialog video{aspect-ratio:3/4}dialog p{font-size:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#qr{display:flex;justify-content:center;margin:20px 0}#qr img{width:220px;height:220px;background:#fff}#share-url{display:block;font-size:12px;overflow-wrap:anywhere;margin-bottom:20px;color:#A84613}#originals a{display:block;color:#A84613;font-size:13px;padding:10px 0}.muted-caption{font-size:12px;color:var(--muted)}
.conversation-controls{margin-bottom:20px}
#photo-error{background:#F9DEDC;color:#7A201B;padding:12px;border-radius:10px;overflow-wrap:anywhere}#photo-status{font-weight:600;margin:10px 0}#preview-actions{position:sticky;bottom:34px;background:#FFFFFF;padding:8px 0}#recover-photo{margin-bottom:15px;width:100%}
select{font:inherit;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:18px}
.trial-notice{font-size:13px;line-height:1.6;border-left:3px solid #A84613;padding:10px 14px;background:#FDF2EA;border-radius:0 10px 10px 0}
.preferences{margin:16px 0 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:4px 0}
.preferences summary{cursor:pointer;padding:14px 0;font-size:14px;min-height:44px}
.trial-feedback{margin:26px 0;padding:18px;background:#FFFFFF;border:1px solid var(--line);border-radius:16px}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #A84613;outline-offset:4px}
#photo-dock{position:fixed;bottom:0;left:0;right:0;z-index:5;display:flex;align-items:center;gap:8px;padding:12px max(14px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom));background:#FDF2EA;border-top:1px solid #F3D9C8;box-shadow:0 -4px 20px #22222115}
#dock-label{flex:1;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#photo-dock button{padding:10px;font-size:13px}body.has-photo-request main{padding-bottom:150px}
#resume-banner{position:sticky;top:0;z-index:6}#resume-visible{display:block;margin-top:10px}
#awake-status{margin:0 0 14px}#camera-dialog #close-camera{position:sticky;bottom:-12px;width:100%;background:#FFFFFF;min-height:48px}
.turn-hint{font-size:13px!important;min-height:22px;margin:-7px 0 15px;color:#5A6069}
.orb.ready{box-shadow:0 0 0 12px #FDF2EA}
.orb.listening{animation:listen-glow 1.4s ease-in-out infinite alternate}
.orb.thinking{background:#F6EAD0;animation:prepare-glow 1.1s ease-in-out infinite alternate}
.orb.thinking span{background:#A67C1E}
.orb.speaking{background:#F9D3BC;box-shadow:0 0 0 12px #FDE9DC,0 0 32px 10px #CC5A1C44}
@keyframes listen-glow{to{box-shadow:0 0 0 15px #FDF2EA,0 0 18px 3px #F3D9C866}}
@keyframes prepare-glow{to{box-shadow:0 0 0 15px #F6EAD099,0 0 30px 8px #D9B87166}}
@media(prefers-reduced-motion:reduce){.orb.listening,.orb.thinking{animation:none}.orb.thinking{box-shadow:0 0 0 13px #F6EAD0,0 0 20px #D9B871}}
@keyframes wave{to{transform:scaleY(.5)}}@media(prefers-reduced-motion:reduce){.orb.speaking span{animation:none}}@media(max-width:600px){header{padding:13px 18px;gap:12px}header img{width:110px}header>span:nth-child(2){padding-left:12px;font-size:12px}.tag{display:none}main{padding:25px 20px 24px}.lead{font-size:16px}.welcome-note{margin:23px 0;padding:18px}.voice-stage{padding-top:9px}.orb{width:96px;height:96px;margin-top:10px}.voice-stage h1{font-size:27px}.voice-stage>p:not(.eyebrow){font-size:15px}.request{padding:18px}.request .actions>*{width:100%}#text-form{display:block}#text-form button{margin-top:8px;width:100%}.photo-grid{grid-template-columns:repeat(2,1fr)}.bottom-actions button{font-size:12px}footer>span{max-width:170px}.actions{gap:9px}.actions>button{min-width:120px}}@media(max-width:350px){.conversation-controls{grid-template-columns:1fr 1fr}.conversation-controls button:last-child{grid-column:span 2}}

/* Camera owns the available viewport. Controls never scroll with the image. */
#camera-dialog{height:94vh;height:94dvh;max-height:94dvh;padding:12px;overflow:hidden}
#camera-dialog[open]{display:flex;flex-direction:column;gap:8px}
#camera-dialog .camera-copy{flex:0 1 auto;min-height:0;max-height:27%;overflow:auto;overflow-wrap:anywhere}
#camera-dialog h2{font-size:18px;margin:0 0 5px}
#camera-dialog .camera-copy p{font-size:13px;line-height:1.35;margin:4px 0}
#camera-dialog #photo-error{padding:7px}
#camera-dialog .camera-view{flex:1 1 0;min-height:0;overflow:hidden;background:#222221;border-radius:10px}
#camera-dialog .camera-view video,#camera-dialog .camera-view img{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
#camera-dialog .camera-footer{flex:0 0 auto;background:#FFFFFF;padding:0 0 env(safe-area-inset-bottom)}
#camera-dialog .actions{margin:0;gap:8px}
#camera-dialog #camera-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
#camera-dialog #preview-actions{position:static;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);padding:0}
#camera-dialog .actions>button{min-width:0;min-height:48px;padding:10px 8px}
#camera-dialog #close-camera{position:static;min-height:44px;margin:0;padding:6px;width:100%}
#camera-options summary{cursor:pointer;font-size:13px;min-height:36px;padding:8px 4px;text-align:center}
.camera-options-buttons{display:flex;gap:6px;max-height:20dvh;overflow:auto}
.camera-options-buttons button{flex:1;font-size:12px;padding:8px;min-width:0}
@media(max-width:600px){#camera-dialog{inset:0;margin:0;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding: max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))}}

/* Identidad de gaburpal.es (05/11/2026): mismos colores, peso de títulos y tarjetas que la web. */
:root{--red:#CC5A1C;--red-dark:#A84613;--red-soft:#FDF2EA;--red-deep:#83350E;--ink:#222221;--gray:#5A6069;--line:#E4E6EA;--gold:#D9B871;--orange:#A84613}
html{color-scheme:only light}html,body{background:#fff}html{overflow-x:clip}
header{justify-content:flex-start;padding:14px max(20px,calc((100vw - 740px)/2 + 28px));background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);position:relative;z-index:2}
header img{width:176px;height:auto;display:block}
h1,h2{font-weight:800;letter-spacing:-.02em}h1 span{color:var(--red)}
.eyebrow{color:var(--red-dark);font-weight:700;letter-spacing:.12em}
.primary,.secondary{border-radius:8px}.primary{color:#fff;font-weight:700}.primary:hover{background:var(--red-deep);border-color:var(--red-deep)}
.secondary{border-color:var(--line)}.secondary:hover{border-color:var(--red);background:#fff}
.notice{background:var(--red-soft);border-left:3px solid var(--red);border-radius:0 8px 8px 0;color:#3A3A38}
input[type=password],textarea,select{border-color:var(--line);border-radius:8px}
.check input{accent-color:var(--red-dark)}
.orb{background:var(--red-soft)}.orb span{background:var(--red)}
.request{border-color:#F3D9C8;box-shadow:0 8px 24px rgba(34,34,33,.06);border-radius:14px}
dialog{border:0;border-radius:14px;box-shadow:0 24px 60px rgba(34,34,33,.25)}

/* Pantalla de entrada */
main:has(#welcome:not([hidden])){padding-top:0;max-width:none}
main:has(#welcome:not([hidden]))>footer{max-width:684px;margin-inline:auto}
.welcome{margin:0 auto;max-width:684px;position:relative;isolation:isolate}
.welcome::before{content:"";position:absolute;z-index:-1;top:0;left:50%;width:100vw;height:430px;transform:translateX(-50%);background:radial-gradient(120% 100% at 0 0,var(--red-soft) 0,#fff 72%)}
.hero-kicker{display:flex;align-items:center;gap:10px;margin:0;padding-top:34px;font-size:11px}.hero-kicker::before{content:"";width:22px;height:2px;background:var(--red)}
.welcome h1{font-size:clamp(34px,9.4vw,46px);line-height:1.08;margin:14px 0 14px;font-weight:800}
.welcome .lead{font-size:17px;line-height:1.55;color:var(--gray);margin-bottom:24px}
.steps{list-style:none;counter-reset:step;margin:0 0 16px;padding:22px 20px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(34,34,33,.07)}
.steps li{counter-increment:step;position:relative;padding:0 0 20px 50px}.steps li:last-child{padding-bottom:0}
.steps li::before{content:counter(step);position:absolute;left:0;top:0;width:34px;height:34px;border-radius:50%;background:var(--red-dark);color:#fff;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center}
.steps li:not(:last-child)::after{content:"";position:absolute;left:16px;top:38px;bottom:4px;width:2px;background:#F3D9C8}
.steps b{display:block;font-size:16px;line-height:1.35;font-weight:700;color:var(--ink)}.steps p{font-size:14px;line-height:1.5;margin:3px 0 0;color:var(--gray)}
.welcome .welcome-note{margin:0 0 20px;padding:15px 18px;background:var(--red-soft);border:0;border-radius:12px}.welcome-note b{color:var(--red-deep);font-size:14px}.welcome-note p{color:#3A3A38}
.welcome .check{font-size:14px;color:#3A3A38}
.welcome>.primary{min-height:58px;font-size:17px;border-radius:10px;margin-bottom:8px;box-shadow:0 8px 20px rgba(168,70,19,.28)}.welcome>.primary:disabled{box-shadow:none}
#setup:empty{display:none}
.welcome .preferences{margin:10px 0 12px;border-top:0;border-bottom:0}.welcome .preferences .check{margin-top:4px}
.trust{position:relative;margin:26px calc(50% - 50vw) 0;padding:24px max(20px,calc(50vw - 342px));background:#222221;border-top:3px solid #A67C1E;color:#fff;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center}
.trust div{min-width:0}.trust dt{font-size:22px;font-weight:800;color:var(--gold);line-height:1.2}.trust dd{margin:4px 0 0;font-size:12px;line-height:1.35;color:rgba(255,255,255,.8)}
main:has(#welcome:not([hidden]))>footer{border-top:0;margin-top:6px}
@media(max-width:600px){header{padding:12px 20px}header img{width:150px}main{padding-top:22px}#mobile-link{display:none}main:has(#welcome:not([hidden])){padding-left:20px;padding-right:20px}.hero-kicker{padding-top:26px}.trust{padding-left:20px;padding-right:20px}}

/* Condiciones plegables bajo la casilla de consentimiento */
.welcome .check:has(#consent){margin-bottom:6px}
.legal{margin:0 0 20px 28px;font-size:13px}.legal summary{cursor:pointer;color:var(--red-dark);font-weight:600;min-height:40px;padding:8px 0}
.legal[open]{margin-left:0;padding:4px 16px 14px;background:#F7F8FA;border-radius:10px;max-height:52vh;overflow:auto}
.legal h3{font-size:13px;font-weight:700;color:var(--ink);margin:12px 0 2px}.legal p{font-size:13px;line-height:1.5;margin:0 0 4px;color:var(--gray)}.legal a{color:var(--red-dark)}
