/* Site interactions: preserve the existing page layout and institutional colors. */
:where(a,button,input,textarea):focus-visible{outline:3px solid #dc990c!important;outline-offset:4px}
:where(button,a){-webkit-tap-highlight-color:transparent}
@media(hover:hover){:where(button){transition:background-color .2s,color .2s,box-shadow .2s,transform .2s}button:active{translate:0 1px}}
.aparecer-automatico{transform:translateY(22px);will-change:auto}
.animate-infinite-slider:focus-within{animation-play-state:paused}
nav div.relative:focus-within>div.absolute{opacity:1;visibility:visible}
nav div.absolute a{transition:background-color .18s,color .18s,padding-left .18s}
@media(hover:hover){nav div.absolute a:hover{padding-left:1.4rem}}
section[id]{scroll-margin-top:110px}
/* Goya component. Every visual rule below is scoped to the widget. */
#scye-assistant{--blue:#012c59;--ink:#163553;--gold:#b88a32;--line:#e2e7ed;--muted:#65778a;position:fixed;right:24px;bottom:max(22px,env(safe-area-inset-bottom));z-index:60;font-family:'Open Sans',sans-serif;font-size:14px;color:var(--ink);line-height:1.5}
#scye-assistant *{box-sizing:border-box}
#scye-assistant [hidden]{display:none!important}
#scye-assistant button,#scye-assistant textarea,#scye-assistant input{font-family:inherit}
#scye-assistant button{cursor:pointer}
#scye-assistant button:disabled{cursor:default;opacity:.5}
#scye-assistant svg{width:20px;height:20px;flex-shrink:0}
.scye-panel{width:min(440px,calc(100vw - 48px));height:min(690px,calc(100dvh - 132px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dce2e9;border-radius:24px;box-shadow:0 24px 70px #012c5933,0 4px 14px #012c5912;margin-bottom:14px;animation:scye-open .32s cubic-bezier(.16,1,.3,1);transform-origin:bottom right}
.scye-head{display:flex;align-items:center;gap:12px;padding:18px 20px;background:var(--blue);color:#fff;flex-shrink:0;position:relative}
.scye-head::after{content:'';position:absolute;bottom:0;left:20px;right:20px;height:1px;background:linear-gradient(90deg,#d4ac61,transparent)}
.scye-avatar-wrap{padding:3px;border:1px solid #d4ac6170;border-radius:50%;display:block;flex-shrink:0}
.scye-avatar{display:block;width:42px;height:42px;border-radius:50%;object-fit:cover;background:#f4e8d0}
.scye-eyebrow{display:block;font-size:8px;font-weight:600;letter-spacing:.18em;color:#d4bd8d;margin-bottom:3px}
.scye-head h2{font-family:'Libre Franklin',sans-serif;font-size:19px;line-height:1.2;font-weight:700;margin:0;letter-spacing:-.04em}
.scye-head h2 span{font-family:'Open Sans',sans-serif;letter-spacing:.04em;font-size:9px;font-weight:400;color:#d2deea;margin-left:8px;border-left:1px solid #66809a;padding-left:8px}
.scye-actions{display:flex;gap:3px;margin-left:auto}.scye-icon{border:0;border-radius:9px;color:#d9e3ed;background:transparent;width:32px;height:36px;display:grid;place-items:center}.scye-icon:hover{background:#ffffff15;color:white}
#scye-assistant .scye-icon svg{width:17px;height:17px}
.scye-toolbar{display:flex;align-items:center;justify-content:space-between;padding:11px 19px;border-bottom:1px solid var(--line);background:white;flex-shrink:0}
.scye-profile,.scye-menu-link{display:flex;align-items:center;gap:7px;font-size:11px;border:0;background:transparent;color:var(--muted);padding:0}.scye-menu-link{color:var(--blue);font-weight:600}.scye-profile:hover,.scye-menu-link:hover{color:#966c20}
#scye-assistant .scye-toolbar svg{width:14px;height:14px}
.scye-connection{padding:8px 16px;font-size:11px;color:#785313;background:#fff5dc;border-bottom:1px solid #ecd9b1}
.scye-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:23px 21px;background:#f8f9fb;scrollbar-width:thin;scrollbar-color:#c3cdd8 transparent}
.scye-content::-webkit-scrollbar{width:5px}.scye-content::-webkit-scrollbar-thumb{background:#c3cdd8;border-radius:9px}
.scye-intro{margin-bottom:20px}.scye-kicker{color:#947026!important;font-size:9px!important;font-weight:700!important;letter-spacing:.12em;line-height:1.6;margin:0 0 9px!important}
.scye-intro h3,.scye-welcome h3{font-family:'Libre Franklin',sans-serif;font-weight:700;font-size:23px;line-height:1.25;letter-spacing:-.045em;margin:0 0 10px;color:var(--blue)}
.scye-intro>p:last-child{font-size:12px;line-height:1.8;color:var(--muted);margin:0;max-width:340px}
.scye-view-welcome{padding:0;background:radial-gradient(ellipse at 50% 15%,#f4ead7 0,transparent 54%),#fcfbf8}
.scye-welcome{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:100%;padding:26px 30px 22px;justify-content:center}
.scye-welcome-art{position:relative;width:152px;height:148px;display:grid;place-items:center;margin-bottom:20px;flex-shrink:0}
.scye-welcome-art>img,.scye-welcome-art>video{width:108px;height:108px;object-fit:cover;border-radius:50%;background:#f5e7c8;border:5px solid #fff;box-shadow:0 9px 24px #9f804426;z-index:1}
.scye-orbit{position:absolute;inset:0;border:1px solid #d6c6a84d;border-radius:50%;transform:rotate(-20deg)}.orbit-two{inset:12px;border-style:dashed;border-color:#b2985c40;transform:rotate(20deg)}
.scye-art-badge{position:absolute;right:-2px;bottom:16px;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--blue);color:#e4c887;box-shadow:0 5px 12px #012c5922;transform:rotate(8deg);z-index:2}
.scye-welcome h3{font-size:31px;margin-bottom:13px}.scye-welcome h3 span{color:#a27725}
.scye-welcome>p:not(.scye-kicker):not(.scye-welcome-note){font-size:13px;line-height:1.85;color:var(--muted);margin:0;max-width:310px}
.scye-welcome-tags{display:flex;gap:17px;justify-content:center;margin:23px 0}.scye-welcome-tags span{display:flex;align-items:center;gap:5px;font-size:10px;color:#647487}#scye-assistant .scye-welcome-tags svg{width:15px;height:15px;color:#b08b45}
.scye-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:13px 16px;background:var(--blue);border:1px solid var(--blue);border-radius:12px;color:#fff;font-size:12px;font-weight:600;box-shadow:0 5px 12px #012c5910;transition:transform .2s,background .2s,box-shadow .2s}
.scye-primary:hover{background:#0c406f;transform:translateY(-1px);box-shadow:0 7px 17px #012c5920}.scye-welcome>.scye-primary{flex-direction:row-reverse}
.scye-welcome-note{font-size:9px;color:#7a8693;margin:12px 0 0;line-height:1.6}
.scye-card-list{display:grid;gap:12px}.scye-profile-card{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid var(--line);border-radius:15px;padding:18px 15px;background:white;color:var(--blue);font-size:13px;font-weight:600;transition:transform .2s,border-color .2s,box-shadow .2s}.scye-profile-card>svg:first-child{box-sizing:content-box!important;padding:10px;background:#f5efdf;border-radius:11px;color:#a27b31}.scye-profile-card>span{flex:1}.scye-profile-card small{display:block;font-size:10px;line-height:1.7;font-weight:400;color:var(--muted);margin-top:5px}.scye-profile-card>svg:last-child{width:15px!important}
.scye-category-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.scye-category{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--line);border-radius:15px;background:white;padding:15px;color:var(--blue);min-height:153px;transition:transform .2s,border-color .2s,box-shadow .2s}.scye-category>svg{box-sizing:content-box!important;background:#f2f5f8;border-radius:10px;padding:9px;margin-bottom:12px;color:#325373}.scye-category:nth-child(2n)>svg{background:#f8f2e6;color:#a57b2b}.scye-category>span{font-size:12px;font-weight:600;line-height:1.5}.scye-category small{font-size:10px;color:var(--muted);margin:5px 0 10px;line-height:1.5}.scye-category em{font-size:9px;color:#9a772e;font-style:normal;margin-top:auto}.scye-category:hover,.scye-profile-card:hover{transform:translateY(-2px);border-color:#c9af79;box-shadow:0 5px 15px #012c5908}
.scye-context-note{margin:18px 0 0;font-size:10px;line-height:1.8;color:#728093;text-align:center}
.scye-back,.scye-return{display:flex;align-items:center;justify-content:center;gap:7px;background:none;border:0;color:var(--blue);font-size:11px;padding:10px 0}.scye-back{justify-content:flex-start;margin:-6px 0 10px}.scye-return{width:100%;margin-top:13px}#scye-assistant .scye-back svg,#scye-assistant .scye-return svg{width:15px;height:15px}
.scye-question-list,.scye-answer-choices{display:grid;gap:8px}.scye-question{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:12px;text-align:left;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);padding:13px 14px;font-size:12px;line-height:1.7}.scye-question>svg{width:15px!important;color:#aa8338}.scye-question:hover{border-color:#bba268;background:#fffdf8}.scye-answer-choices{margin:10px 0 17px}
.scye-view-chat{padding-top:19px}.scye-log{display:block}.scye-message{max-width:95%;margin-bottom:18px;animation:scye-message .25s ease}.scye-message.user{max-width:88%;margin-left:auto}.scye-byline{font-size:9px;color:#708096;margin:0 0 6px 2px;font-weight:600}.user .scye-byline{text-align:right;margin-right:3px}.scye-bubble{border:1px solid var(--line);background:#fff;padding:13px 15px;border-radius:4px 15px 15px;font-size:12px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-line;color:#334b62}.user .scye-bubble{background:var(--blue);border-color:var(--blue);color:#fff;border-radius:15px 4px 15px 15px}.scye-bubble a{color:#1b527e;text-decoration:underline;text-underline-offset:3px;font-weight:600}.scye-followups{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.scye-soft{display:flex;align-items:center;gap:6px;border:1px solid #dce3eb;background:#fff;border-radius:20px;color:var(--blue);font-size:10px;padding:8px 11px}.scye-soft:hover{background:#f8f1e1;border-color:#d6bf88}#scye-assistant .scye-soft svg{width:13px;height:13px}
.scye-compose{padding:12px 16px 8px;background:#fff;border-top:1px solid var(--line);flex-shrink:0}.scye-field{display:flex;align-items:flex-end;gap:8px;padding:6px;border:1px solid #dce3eb;border-radius:13px;background:#f9fafc;transition:box-shadow .2s,border-color .2s}.scye-field:focus-within{border-color:#b08c48;box-shadow:0 0 0 3px #b88a3210;background:#fff}.scye-field textarea{flex:1;min-width:0;resize:none;border:0!important;box-shadow:none!important;outline:none!important;padding:8px;background:transparent;font-size:12px;line-height:20px;max-height:100px;color:var(--ink)}.scye-send{width:36px;height:36px;display:grid;place-items:center;color:#fff;background:var(--blue);border:0;border-radius:10px}.scye-compose-note{display:flex;align-items:center;justify-content:space-between;margin-top:7px;gap:8px}.scye-compose-note>span{font-size:8px;color:#778798}.scye-finish{font-size:9px;background:none;border:0;color:#65768a;text-decoration:underline;text-underline-offset:3px;padding:2px}
.scye-foot{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 8px;background:#fff;color:#7c8997;font-size:9px;flex-shrink:0;line-height:1.5}.scye-foot a{display:flex;align-items:center;gap:4px;color:#5a6f84;text-decoration:none}#scye-assistant .scye-foot svg{width:11px;height:11px}.scye-status-dot{width:5px;height:5px;border-radius:50%;background:#b49352}.scye-foot-divider{color:#b5bec8}
.scye-ratings{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.scye-rating{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:13px;padding:18px 10px;background:white;color:var(--blue);font-size:11px}.scye-rating[aria-pressed="true"]{border-color:#b3914f;background:#fbf6ea;box-shadow:0 0 0 1px #b3914f}.scye-rating svg{color:#a17d35}.scye-feedback-form>label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.scye-feedback-form>label>span{font-weight:400}.scye-feedback-form textarea{display:block;width:100%;border:1px solid #d6dfe8;border-radius:12px;resize:vertical;padding:12px;font-size:12px;min-height:85px;max-height:160px;color:var(--ink);background:white}.scye-feedback-form .scye-consent{display:flex;align-items:flex-start;gap:8px;font-size:10px;line-height:1.7;margin:13px 0 7px}.scye-consent input{margin-top:3px;accent-color:var(--blue);flex-shrink:0}.scye-feedback-note{font-size:9px;color:var(--muted);line-height:1.7;margin:0 0 14px}.scye-feedback-status{font-size:11px;color:#41617a;line-height:1.7;margin:12px 0}.scye-own-feedback{font-size:11px;line-height:1.8;margin-top:20px}.scye-own-feedback summary{cursor:pointer;color:var(--blue)}.scye-own-feedback>div{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.scye-launch{position:relative;display:block;margin-left:auto;width:64px;height:64px;padding:4px;border-radius:50%;border:1px solid #be994f;background:var(--blue);box-shadow:0 8px 28px #012c593b;transition:transform .25s,box-shadow .25s}.scye-launch>img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid #ffffffd0}.scye-launch:hover{transform:translateY(-3px);box-shadow:0 13px 32px #012c5945}.scye-launch-mark{position:absolute;right:-3px;bottom:-1px;background:var(--blue);color:#f0d99f;border:2px solid white;border-radius:50%;width:25px;height:25px;display:grid;place-items:center}#scye-assistant .scye-launch-mark svg{width:12px;height:12px}.scye-launch-label{position:absolute;right:76px;top:16px;white-space:nowrap;background:white;color:var(--blue);border:1px solid var(--line);border-radius:10px;padding:7px 12px;font-size:11px;box-shadow:0 3px 12px #012c5910;opacity:0;transform:translateX(4px);pointer-events:none;transition:opacity .2s,transform .2s}.scye-launch:hover .scye-launch-label,.scye-launch:focus-visible .scye-launch-label{opacity:1;transform:none}.scye-launch[aria-expanded="true"] .scye-launch-label{display:none}
@keyframes scye-open{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
@keyframes scye-message{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:480px){#scye-assistant{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.scye-launch{width:58px;height:58px}.scye-panel{width:calc(100vw - 40px);height:min(690px,calc(100dvh - 96px));margin-bottom:12px;border-radius:20px}.scye-head{padding:15px}.scye-content{padding:20px 16px}.scye-view-welcome{padding:0}.scye-welcome{padding:22px}.scye-welcome h3{font-size:28px}.scye-category{padding:12px;min-height:140px}.scye-category-grid{gap:9px}.scye-compose-note>span{font-size:7px}.scye-toolbar{padding:10px 15px}}
@media(max-height:650px){.scye-welcome-art{width:105px;height:100px;margin-bottom:12px}.scye-welcome-art>img,.scye-welcome-art>video{width:78px;height:78px}.scye-welcome{padding-top:20px;justify-content:flex-start}.scye-welcome-tags{margin:15px 0}.scye-head{padding-top:12px;padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.aparecer-automatico,.escalonado{opacity:1!important;transform:none!important}}
/* A profile with a single available topic uses the full card width. */
.scye-category:only-child{grid-column:1/-1;min-height:145px}
.scye-category:only-child small{font-size:11px}
.scye-own-feedback .scye-clear{margin-top:12px;color:#7b5141}

/* Direct navigation within the current topic; no profile selection step. */
.scye-context-label{font-size:11px;color:var(--muted)}
.scye-question-back{display:flex;align-items:center;gap:7px;min-width:0;max-width:calc(100% - 70px);padding:0;background:none;border:0;color:var(--blue);font-size:11px;text-align:left}
.scye-question-back span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scye-question-back:hover{color:#966c20}
.scye-video-toggle{position:absolute;left:4px;bottom:9px;z-index:3;display:grid;place-items:center;width:29px;height:29px;border:1px solid #d6c49e;border-radius:50%;background:#fff;color:var(--blue);font-size:12px;box-shadow:0 3px 9px #012c5915}
/* Goya: compact welcome and a persistent torso portrait outside the scrolling messages.
   SVG viewBoxes frame the supplied PNGs without modifying the originals. */
.scye-panel{width:min(420px,calc(100vw - 40px));height:min(650px,calc(100dvh - 132px))}
.scye-panel[data-view="welcome"]{height:min(500px,calc(100dvh - 132px));width:min(380px,calc(100vw - 40px))}
.scye-head{padding:12px 16px}
.scye-welcome{padding:18px 24px;justify-content:center}
.scye-welcome-art{width:114px;height:110px;margin-bottom:12px}
.scye-welcome-art>video{width:86px;height:86px}
.scye-welcome h3{font-size:27px;margin-bottom:10px}
.scye-welcome-tags{margin:16px 0}
.scye-welcome>.scye-kicker{max-width:290px}
#scye-assistant .scye-pose{display:block;width:100%;height:100%;overflow:hidden;flex-shrink:0}
.scye-avatar-wrap{width:44px;height:44px;border-radius:12px;background:#fff9e9;padding:1px;overflow:hidden}
.scye-launch{width:76px;height:80px;border-radius:20px;background:#fff9e9;padding:3px}
.scye-launch-label{right:86px}
.scye-launch-mark{right:-4px;bottom:-4px}
.scye-companion{display:flex;align-items:center;gap:12px;min-height:128px;padding:4px 20px 0;background:#fcfaf5;border-bottom:1px solid #e7dfd0;flex-shrink:0}
.scye-companion-art{width:132px;height:124px;flex-shrink:0;animation:scye-message .2s ease}
.scye-companion-copy{min-width:0;max-width:210px}
.scye-companion-copy strong{display:block;font-family:'Libre Franklin',sans-serif;font-size:15px;color:var(--blue);line-height:1.4}
.scye-companion-copy p{font-size:11px;color:#667589;line-height:1.6;margin:6px 0 0}
.scye-view-chat{padding:16px}
.scye-bubble{font-size:13px}
.scye-category{min-height:130px;padding:12px}
.scye-category>svg{margin-bottom:8px;padding:7px}
.scye-category small{margin-bottom:6px}
@media(max-width:480px){
 .scye-panel{width:calc(100vw - 40px);height:min(650px,calc(100dvh - 132px))}
 .scye-panel[data-view="welcome"]{height:min(488px,calc(100dvh - 132px))}
 .scye-companion{min-height:104px;padding:4px 16px 0;gap:10px}
 .scye-companion-art{width:108px;height:100px}
 .scye-companion-copy strong{font-size:14px}
 .scye-companion-copy p{font-size:10px}
 .scye-launch{width:68px;height:72px}
 .scye-field textarea{font-size:16px}
}
@media(max-height:650px){
 .scye-companion{min-height:80px;padding-top:0}
 .scye-companion-art{width:86px;height:80px}
 .scye-companion-copy p{display:none}
 .scye-welcome{justify-content:flex-start;padding:14px 20px}
 .scye-welcome-art{height:86px;width:90px;margin-bottom:8px}
 .scye-welcome-art>video{height:70px;width:70px}
 .scye-welcome-tags{margin:12px 0}
}
