:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#f8f2ff;color-scheme:dark;background:#0b0718}*{box-sizing:border-box}body{margin:0;min-height:100vh}.bg{position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 18% 0%,#44307488,transparent 45%),radial-gradient(ellipse at 95% 45%,#602b5c60,transparent 40%),linear-gradient(150deg,#100b23,#090616)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.shell{max-width:1170px;margin:auto;padding:0 25px}.topbar{display:flex;justify-content:space-between;align-items:center;min-height:82px;border-bottom:1px solid #ffffff1c}.brand{display:flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font-size:25px;font-weight:800;letter-spacing:-1px}.brand>span:last-child{color:#d9a1ff}.brand-icon{background:linear-gradient(130deg,#f15bb6,#8552e4);padding:8px 12px;border-radius:12px;box-shadow:0 6px 22px #8e49c955}.status{display:flex;gap:9px;align-items:center}.status span,.pill{font-size:12px;border:1px solid #ffffff25;border-radius:25px;padding:8px 11px;background:#ffffff0a;color:#d7c8e5}.live{color:#f8b5d9!important}main{padding:50px 0}.intro{margin-bottom:38px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#c79af5}.intro h1{font-size:clamp(38px,5vw,66px);letter-spacing:-2px;line-height:1.1;margin:16px 0;font-weight:850}.intro h1 em{font-style:normal;background:linear-gradient(100deg,#fa75be,#ac76f6);background-clip:text;-webkit-background-clip:text;color:transparent}.intro p{max-width:610px;line-height:1.65;color:#b6a9c9}.grid{display:grid;grid-template-columns:0.93fr 1.07fr;gap:22px;align-items:stretch}.panel{background:linear-gradient(145deg,#241832ee,#141025ef);border:1px solid #ffffff20;border-radius:24px;box-shadow:0 18px 50px #0004;overflow:hidden}.radio{padding:28px}.signal{float:right;color:#e2a2fa}.artwork{display:grid;place-items:center;height:245px}.vinyl{width:205px;height:205px;border-radius:50%;background:repeating-radial-gradient(circle,#1b1530 0 3px,#292040 4px 6px);display:grid;place-items:center;box-shadow:0 14px 28px #0008,inset 0 0 0 7px #110c22}.vinyl span{width:82px;height:82px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(125deg,#fa65bc,#7e4bdd);font-size:43px}.radio.playing .vinyl{animation:spin 4s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}h2{font-size:23px;margin:8px 0 0}.muted{font-size:13px;color:#b4a9c3}.player{display:flex;align-items:center;gap:14px;border-top:1px solid #ffffff1b;padding-top:20px;margin-top:22px}.round{border:0;border-radius:50%;background:linear-gradient(130deg,#f06daf,#9954ed);color:white;width:53px;height:53px;font-size:19px;flex-shrink:0}.player-info{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.player-info strong{font-size:13px}.player-info small{font-size:11px;color:#b2a4c4}#volume{width:75px;accent-color:#ce75f5}.settings{border-top:1px solid #ffffff18;margin-top:20px;padding-top:17px}.settings summary{font-size:13px;color:#d7b5ed;cursor:pointer}.settings label,.settings small{display:block;font-size:12px;margin-top:13px;color:#baadd1}.input-row{display:flex;gap:7px;margin-top:7px}.input-row input{width:100%;min-width:0;flex:1}.input-row button,.identity button{background:#492762;border:1px solid #b578e955;border-radius:9px;color:#fff;padding:0 12px}.chat{min-height:550px;display:flex;flex-direction:column}.chat-title{padding:26px 25px 15px;display:flex;justify-content:space-between;align-items:center;gap:12px}.notice{margin:0 25px 16px;padding:12px;color:#f1d5a6;font-size:12px;line-height:1.5;border:1px solid #d69d4a35;border-radius:11px;background:#c88c3820}.notice.online{color:#b2f2d1;border-color:#42b88355;background:#2d8b5b1a}.identity{padding:0 25px 14px;display:flex;align-items:center;gap:8px}.identity label{color:#c0b4d2;font-size:12px}.identity input{flex:1;min-width:0}.identity button{height:40px}input[type=text],input[type=url]{background:#0e0a1c;border:1px solid #544366;border-radius:10px;padding:10px 12px;color:#fff;outline:0;font-size:13px}input:focus{border-color:#d07df2;box-shadow:0 0 0 2px #d07df222}.messages{flex:1;min-height:260px;max-height:380px;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding:20px 25px;background:#0b081550;border-top:1px solid #ffffff15;border-bottom:1px solid #ffffff15}.empty{text-align:center;margin:auto;color:#9b8da9;font-size:13px}.message{display:flex;gap:10px}.avatar{display:grid;place-items:center;background:#5c337c;border-radius:10px;width:34px;height:34px;flex-shrink:0;font-weight:bold}.message-body{flex:1;min-width:0}.message-head{display:flex;justify-content:space-between;gap:10px}.message-head strong{font-size:13px}.message-head time{font-size:10px;color:#92829f}.message-text{font-size:13px;color:#e4d6ed;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px}.composer{display:flex;gap:9px;padding:16px 25px 9px}.composer input{flex:1;min-width:0}.composer button{width:42px;border:0;border-radius:10px;color:white;background:linear-gradient(125deg,#e362b6,#9155ea)}.chat-footer{display:flex;justify-content:space-between;gap:10px;padding:2px 25px 20px;color:#9d8baa;font-size:11px}footer{border-top:1px solid #ffffff18;padding:20px 0 34px;color:#9788a4;font-size:12px;display:flex;justify-content:space-between}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:800px){.grid{grid-template-columns:1fr}.shell{padding:0 17px}main{padding:35px 0}.artwork{height:210px}.vinyl{width:185px;height:185px}}@media(max-width:480px){.topbar{min-height:69px}.live{display:none}.intro h1{letter-spacing:-1.4px}.chat-title{padding:19px}.notice{margin:0 18px 14px}.identity{padding:0 18px 14px}.messages,.composer{padding-left:18px;padding-right:18px}.chat-footer{padding:2px 18px 18px}footer{display:block;line-height:2}}

/* OndaChat Google + móvil */
[hidden]{display:none!important}
.auth-panel{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;padding:10px 25px 17px}
.auth-copy{display:flex;flex-direction:column;gap:3px;min-width:150px;flex:1}
.auth-copy strong{font-size:12px;color:#f3e9ff}
.auth-copy span{font-size:12px;color:#b7a9cc;overflow-wrap:anywhere}
.google-button,.logout-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:8px 13px;border-radius:12px;font-size:13px;font-weight:650;border:1px solid #d7b6f44f;background:#ede8f9;color:#281343}
.google-button:hover{background:#fff}
.google-mark{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#4285f4;font-size:17px;font-weight:900}
.logout-button{background:#462c58;color:#faf5ff}
.auth-panel button:focus-visible,button:focus-visible{outline:2px solid #e6a5ff;outline-offset:2px}
@media(max-width:1100px){
 .grid{grid-template-columns:minmax(0,1fr)}
 .shell{max-width:800px;padding:0 22px}
 main{padding:32px 0 26px}
 .intro{margin-bottom:23px}
 .intro h1{font-size:clamp(35px,6vw,53px);line-height:1.14;margin:12px 0}
 .intro p{margin:11px 0;font-size:15px}
 .radio{padding:23px}
 .artwork{height:168px}
 .vinyl{width:155px;height:155px}
 .vinyl span{width:65px;height:65px;font-size:31px}
 .chat{min-height:380px}
 .messages{min-height:220px}
 .panel{border-radius:21px}
}
@media(max-width:600px){
 .shell{padding:0 15px}
 .topbar{min-height:72px}
 .brand{font-size:22px}
 .brand-icon{padding:7px 10px}
 .status #mode-badge{font-size:10px;padding:7px}
 main{padding:24px 0}
 .intro h1{font-size:clamp(33px,9vw,44px)}
 .intro p{font-size:14px;line-height:1.5}
 .radio{padding:18px}
 .artwork{height:150px}
 .vinyl{width:135px;height:135px}
 .vinyl span{width:59px;height:59px}
 .chat-title{padding:20px 18px 12px}
 .chat-title h2{font-size:21px}
 .pill{font-size:10px;padding:6px 8px}
 .notice{margin:0 18px 12px}
 .auth-panel{padding:6px 18px 13px;align-items:stretch;flex-direction:column;gap:8px}
 .auth-copy{min-width:0}
 .auth-panel button{width:100%}
 .identity{flex-wrap:wrap;gap:7px;padding:0 18px 14px}
 .identity label{width:100%}
 .identity input{min-width:0}
 .identity button{height:41px;min-width:45px}
 .messages{padding:17px 18px;max-height:360px;min-height:200px}
 .composer{padding:13px 18px 8px}
 .chat-footer{padding:2px 18px 17px}
 #volume{width:67px}
 footer{padding:18px 0 24px}
}

/* OndaChat 0.2: salas y mejoras de uso desde móviles */
.rooms{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:1px 25px 16px;scrollbar-width:thin}
.room-tab{flex:0 0 auto;white-space:nowrap;padding:10px 13px;min-height:42px;border:1px solid #5a416f;border-radius:999px;color:#e3cdef;background:#241735;scroll-snap-align:start;font-size:13px;font-weight:650;transition:background .15s,box-shadow .15s}
.room-tab:hover,.room-tab:focus-visible{border-color:#d394ef;background:#473060}
.room-tab.active{color:#fff;background:linear-gradient(100deg,#b24bb6,#834be0);border-color:transparent;box-shadow:0 2px 12px #a44ed044}
.room-tab:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #ff9edf;outline-offset:3px}
.grid>*{min-width:0}
@media(max-width:800px){
 .grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .intro{margin-bottom:22px}
 .chat{min-height:460px}
 .rooms{padding-left:20px;padding-right:20px}
}
@media(max-width:480px){
 html{scroll-padding-top:12px}
 .shell{padding-left:12px;padding-right:12px}
 .topbar{gap:8px}
 .brand{font-size:22px}
 .status span{font-size:11px;padding:7px}
 .intro .eyebrow{letter-spacing:1.5px}
 .intro h1{font-size:clamp(31px,9vw,40px);margin:12px 0}
 .intro p{font-size:14px;line-height:1.5}
 .panel{border-radius:19px}
 .radio{padding:18px}
 .artwork{height:166px}
 .vinyl{width:145px;height:145px}
 .vinyl span{width:62px;height:62px;font-size:34px}
 .radio h2{font-size:20px}
 .player{gap:9px}
 .round{width:48px;height:48px}
 #volume{width:70px}
 .chat-title{padding:18px 18px 12px}
 .chat-title h2{font-size:21px}
 .rooms{padding:1px 16px 14px;gap:7px}
 .room-tab{min-height:44px;padding:10px 12px}
 .identity{display:grid;grid-template-columns:auto minmax(0,1fr) 42px;gap:6px}
 .identity input,.composer input{font-size:16px;min-width:0}
 .messages{min-height:210px;max-height:48vh}
 .composer{gap:7px}
 .composer button{width:48px;min-height:48px}
 .chat-footer{padding-bottom:14px}
 .input-row{flex-wrap:wrap}
 .input-row button{min-height:42px}
 iframe{max-width:100%}
 footer{padding-bottom:25px}
}
@media(prefers-reduced-motion:reduce){.radio.playing .vinyl{animation:none}.room-tab{transition:none}}

/* Sala de técnicos de informática: vista previa, todavía sin chat público */
.room-tab.preview-room{border-style:dashed;border-color:#b780db8c;background:#2c1e40;color:#eeddf9}
.room-tab.preview-room .room-tag{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;background:#aa68db28;color:#d9b4f7;font-size:10px;letter-spacing:.2px;font-weight:700;vertical-align:middle}
.room-tab.preview-room.active{background:linear-gradient(105deg,#883ac2,#6433b7);color:#fff;border-style:solid}
.room-tab.preview-room.active .room-tag{background:#ffffff26;color:#fff}
.dev-room{align-self:stretch;text-align:center;border:1px dashed #b683d060;background:radial-gradient(circle at 50% 0%,#753b9925,transparent 70%),#1d1531;border-radius:18px;padding:22px 19px;margin:auto 0}
.dev-room-icon{display:inline-grid;place-items:center;width:62px;height:62px;margin-bottom:10px;border-radius:18px;background:#904ed035;font-size:34px}
.dev-room-tag{display:block;width:max-content;max-width:100%;margin:3px auto 10px;color:#e8b8fb;background:#9756ca2f;border:1px solid #c381e75c;padding:5px 10px;border-radius:999px;font-size:10px;letter-spacing:1.4px;font-weight:800}
.dev-room h3{font-size:clamp(19px,3vw,24px);margin:9px 0 12px;color:#f9efff}
.dev-room p{color:#cfc0df;line-height:1.6;font-size:13px;max-width:430px;margin:0 auto 12px}
.dev-room .dev-room-topics{color:#edc7ff;font-size:12px;line-height:2}
.dev-room .dev-room-note{color:#aa9bbc;font-size:12px;margin-top:13px}
@media(max-width:480px){.dev-room{padding:19px 13px}.room-tab.preview-room{max-width:300px}.room-tab.preview-room .room-tag{font-size:9px}}

/* Centro de ayuda informática: preguntas, hilos y conversación */
.chat.tech-active .messages{display:block;max-height:none;min-height:480px;overflow:visible;padding:18px 24px}
.chat.tech-active{min-height:unset}
.tech-center{display:flex;flex-direction:column;gap:15px;min-width:0;color:#f8efff}
.tech-head{display:flex;align-items:center;gap:14px;padding:12px 8px 0}
.tech-symbol{font-size:38px;flex-shrink:0;display:grid;place-items:center;width:65px;height:65px;border-radius:18px;background:linear-gradient(135deg,#9b4aba60,#5337a460);box-shadow:inset 0 0 0 1px #c879d54d}
.tech-head-copy h3{margin:0 0 6px;font-size:clamp(19px,2.4vw,24px)}
.tech-head-copy p{margin:0;color:#c5b3d4;font-size:13px;line-height:1.5}
.tech-badges{display:flex;flex-wrap:wrap;gap:8px}
.tech-badges span{font-size:11px;color:#d0b5ea;border:1px solid #7b579477;background:#4c2c6238;padding:8px 12px;border-radius:999px}
.tech-warning{font-size:12px;line-height:1.55;color:#f0dca7;padding:11px 13px;background:#8c621c2a;border:1px solid #bb874b59;border-radius:12px;margin:0}
.tech-tabs{display:flex;flex-wrap:wrap;gap:8px}
.tech-tab{background:#251a38;border:1px solid #79529d;color:#e0cde9;border-radius:10px;padding:11px 13px;min-height:43px;font-weight:700;font-size:13px}
.tech-tab.selected{background:linear-gradient(115deg,#a847c1,#7545d4);border-color:#c17df3;color:white}
.tech-content{min-width:0}
.tech-content input,.tech-content textarea,.tech-content select{background:#140e25;border:1px solid #6c4a83;border-radius:10px;color:#f8eaff;font-size:14px;padding:12px;min-width:0;max-width:100%;width:100%;font:inherit}
.tech-content input:focus,.tech-content textarea:focus,.tech-content select:focus{outline:2px solid #c779ee;outline-offset:1px}
.tech-content textarea{resize:vertical;line-height:1.5}
.tech-content button{font:inherit;cursor:pointer}
.tech-section-title{margin:4px 0 9px;font-size:17px}
.tech-subtitle{color:#bba9ca;font-size:13px;line-height:1.6;margin:0 0 17px}
.tech-gate,.tech-empty{padding:18px 14px;border-radius:12px;background:#271b38;border:1px dashed #8664a1;color:#d6c4ea;text-align:center;line-height:1.6;font-size:13px}
.tech-new-question{margin-bottom:20px;padding:12px 14px;border:1px solid #ab72d284;border-radius:12px;background:#4c2b652a}
.tech-new-question summary{font-size:14px;color:#eec7ff;font-weight:700;cursor:pointer}
.tech-question-form,.tech-answer-form{display:flex;flex-direction:column;gap:10px;margin-top:13px}
.tech-primary{background:linear-gradient(120deg,#e466be,#8751e6);padding:11px 16px;border-radius:11px;color:white;border:0;min-height:44px;align-self:start;font-weight:700}
.tech-primary:disabled{opacity:.5;cursor:not-allowed}
.tech-feedback{font-size:12px;color:#d3bce4;min-height:14px;margin:0}
.tech-filter-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 15px;color:#c8b6d9;font-size:12px}
.tech-filter-row select{width:auto;max-width:65%}
.tech-question-list,.tech-answer-list{display:flex;flex-direction:column;gap:10px}
.tech-question,.tech-answer,.tech-chat-message{padding:15px;border:1px solid #714c8b85;border-radius:12px;background:linear-gradient(135deg,#322045bb,#21172d)}
.tech-question-meta,.tech-question-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;color:#b7a8c7}
.tech-category{color:#e9b4fa;background:#71359350;border-radius:999px;padding:6px 9px;font-size:11px}
.tech-question-title{padding:10px 0 7px;background:none;border:none;text-align:left;color:#f9eeff;font-size:16px;font-weight:800;line-height:1.35}
.tech-question-title:hover{text-decoration:underline;color:#ffbdf3}
.tech-excerpt,.tech-full-description,.tech-answer p,.tech-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;color:#e5d5ef;margin:5px 0 12px}
.tech-report,.tech-back{font-size:12px;background:transparent;border:1px solid #76538d;color:#d1a8e8;padding:7px 10px;border-radius:9px}
.tech-report:hover,.tech-back:hover{background:#57316f}
.tech-thread-title{font-size:18px;margin:12px 0;color:#f6e5ff}
.tech-question-by{font-size:11px;color:#ad9cbb}
.tech-back{margin:0 0 15px}
.tech-answer-list{margin:10px 0 20px}
.tech-chat-messages{display:flex;flex-direction:column;gap:10px;max-height:480px;overflow-y:auto;padding-right:4px}
.tech-chat-form{display:flex;gap:9px;margin:13px 0}
.tech-chat-form input{flex:1;min-width:0}
.tech-note{color:#cfafe6}
.tech-guide{border:1px solid #714c8b85;border-radius:15px;padding:15px;background:#2d1e40}
.tech-guide p{color:#e7d7ef;font-size:13px;line-height:1.7}
@media(max-width:600px){
  .chat.tech-active .messages{padding:13px 15px}
  .tech-head{align-items:flex-start;padding:8px 1px}
  .tech-symbol{width:52px;height:52px;font-size:27px}
  .tech-head-copy h3{font-size:19px}
  .tech-badges span{font-size:10px}
  .tech-filter-row{align-items:stretch;flex-direction:column}
  .tech-filter-row select{max-width:100%}
  .tech-chat-form{flex-direction:column}
  .tech-chat-form input,.tech-content input,.tech-content select,.tech-content textarea{font-size:16px}
  .tech-chat-form button{width:100%}
}

/* Diagnóstico de acceso y recuperación de controles de chat */
.auth-feedback{margin:0 25px 14px;border:1px solid #c994685e;border-radius:11px;background:#ad6b2a25;color:#f8d3ac;padding:12px 14px;font-size:12px;line-height:1.55}
.auth-feedback[hidden]{display:none!important}
.chat:not(.tech-active) #chat-form{display:flex}
.chat:not(.tech-active) #chat-footer{display:flex}
@media(max-width:600px){.auth-feedback{margin:0 18px 14px}}

/* Centro IT: identificar preguntas resueltas y respuesta aceptada */
.tech-question-solved{border-color:#bc8be4a6}
.tech-solved-label{display:inline-flex;align-items:center;color:#e7d7ff;background:#5d367e91;border:1px solid #a675d2aa;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:750}
.tech-solved-banner{margin:12px 0 9px;padding:11px 13px;border-radius:12px;border:1px solid #a57ccc96;background:#6f458055;color:#f4e7ff;font-size:13px;font-weight:800}
.tech-solved-banner[hidden]{display:none!important}
.tech-accepted-answer{border:2px solid #b685de;background:linear-gradient(145deg,#402453,#24192f)}
.tech-solve-button{margin-top:5px;padding:10px 13px;min-height:42px;border:1px solid #b583e4;border-radius:10px;background:#4b2c68;color:#f8ecff;font-size:12px;font-weight:700}
.tech-solve-button:hover{background:#734197}
.tech-solve-button:disabled{opacity:.55;cursor:not-allowed}

/* Panel de moderación y denuncia, conservando el diseño violeta */
.message-report{display:inline-block;margin-top:6px;padding:3px 0;background:none;border:0;color:#bda4ce;font-size:11px;text-decoration:underline}
.message-report:hover,.message-report:focus-visible{color:#f1c1fb}
.mod-panel{min-width:0;display:flex;flex-direction:column;gap:12px}
.mod-title{font-size:19px;margin:0;color:#f6e8ff}
.mod-intro{font-size:13px;color:#c8b7d5;line-height:1.55;margin:0}
.mod-filters{display:flex;gap:8px;flex-wrap:wrap}
.mod-filter{border:1px solid #79529d;background:#251a38;color:#dfcce8;border-radius:11px;padding:10px 12px;min-height:42px;font-size:13px}
.mod-filter.active{background:linear-gradient(110deg,#a847c1,#7545d4);color:white;border-color:transparent}
.mod-feed{display:flex;flex-direction:column;gap:10px;min-width:0}
.mod-empty{background:#281b3a;border:1px dashed #8664a1;color:#d6c4ea;border-radius:12px;padding:18px;font-size:13px;text-align:center}
.mod-report{padding:15px;border:1px solid #6e5184;border-radius:14px;background:#30213f;overflow-wrap:anywhere}
.mod-report-title{font-size:15px}
.mod-report-meta{font-size:12px;color:#ae9bbb;line-height:1.5}
.mod-actions{display:flex;gap:8px;flex-wrap:wrap}
.mod-action{padding:9px 11px;min-height:39px;background:#49315b;color:#f2e4ff;border:1px solid #8965a0;border-radius:10px;font-size:12px;font-weight:650}
.mod-action:hover{background:#65427c}
.mod-action.mod-danger{background:#6c2a51;border-color:#bd679f;color:#ffe2f5}
.mod-action.mod-danger:hover{background:#833b64}
.mod-action:disabled{opacity:.5;cursor:not-allowed}
.mod-preview{margin-top:10px;color:#e9dcec;font-size:13px;line-height:1.55;white-space:pre-wrap}
.mod-preview p{overflow-wrap:anywhere;margin:8px 0}
.mod-preview small{color:#baa4cf}
@media(max-width:600px){.mod-action{flex:1 1 auto}}


/* Botón de instalación: solo aparece cuando el navegador permite instalar. */
.install-app{padding:8px 12px;min-height:36px;border-radius:999px;border:1px solid #bc83ef;background:linear-gradient(115deg,#a84ab8,#764bd9);color:#fff;font-size:12px;font-weight:750;white-space:nowrap}
.install-app:hover{filter:brightness(1.14)}
.install-app[hidden]{display:none!important}
@media(max-width:500px){.install-app{padding:8px 9px;font-size:11px}.status{flex-wrap:wrap;justify-content:flex-end}}


/* OndaChat: perfiles personales y avatares (sin fotos privadas) */
.profile-settings{margin:0 24px 15px;border:1px solid #8c5baea1;border-radius:15px;background:linear-gradient(130deg,#3b254f80,#261931a8);color:#f9eaff}
.profile-settings>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 16px;color:#f4d6ff;font-size:14px;font-weight:800}
.profile-settings>summary::-webkit-details-marker{display:none}
.profile-settings>summary::after{content:'▾';margin-left:auto;color:#d3a5f0}
.profile-settings[open]>summary::after{content:'▴'}
.profile-summary{color:#bba4d2;font-size:11px;font-weight:500}
.profile-form{display:flex;flex-direction:column;gap:11px;padding:0 16px 17px}
.profile-tip{font-size:12px;color:#cbb3dd;line-height:1.55;margin:0}
.profile-form label,.profile-label{font-size:12px;font-weight:800;color:#f0d4fc}
.profile-form>input{width:100%;min-height:46px;border:1px solid #9569af;background:#140f24;color:#fff;border-radius:10px;padding:12px;font-size:16px;outline-offset:2px}
.profile-avatars{display:flex;flex-wrap:wrap;gap:9px}
.profile-avatar{display:grid;place-items:center;width:47px;height:47px;background:#2b1b42;border:1px solid #7e4caa;border-radius:14px;color:#fff;font-size:24px;cursor:pointer}
.profile-avatar:hover,.profile-avatar:focus-visible{border-color:#e1a8fc;background:#53326f}
.profile-avatar.selected{border:2px solid #f1b5ff;background:linear-gradient(135deg,#a84dc0,#6945b7);box-shadow:0 0 0 2px #cf86ee40}
.profile-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.profile-actions button{min-height:43px;padding:10px 15px;border:0;border-radius:10px;background:linear-gradient(110deg,#e15cc1,#8c4ede);color:#fff;font-size:13px;font-weight:800}
.profile-actions button:disabled{opacity:.5}
.profile-preview{font-size:13px;color:#f4dcff}
.profile-feedback{font-size:12px;line-height:1.5;color:#cdb3dc;min-height:16px;margin:0}
@media(max-width:600px){.profile-settings{margin:0 16px 15px}.profile-form{padding:0 12px 15px}.profile-avatar{width:45px;height:45px}}


/* OndaChat · optimización móvil v3: sin desbordamiento lateral */
html,body{max-width:100%;overflow-x:clip}
.shell,.grid,.panel,.chat,.radio,.tech-center,.tech-content,.profile-settings{min-width:0;max-width:100%}
.chat-title>div,.tech-head-copy,.message-body,.auth-copy,.intro{min-width:0}
.intro h1,.chat-title h2,.radio h2,.tech-head-copy h3{overflow-wrap:break-word}
.message-text,.notice,.profile-tip,.auth-feedback,.tech-question,.tech-answer{overflow-wrap:anywhere}
.rooms-nav{display:flex;align-items:center;width:100%;min-width:0;max-width:100%}
.rooms-nav>.rooms{flex:1 1 auto;width:0;min-width:0}
.rooms-arrow{display:none;border:1px solid #8766a2;background:#302044;color:#f2daff;font-size:30px;font-weight:600;line-height:1;border-radius:12px;min-height:45px;min-width:38px}
.rooms-arrow:hover,.rooms-arrow:focus-visible{border-color:#dca5f9;background:#583173}
@media(max-width:600px){
  .shell{width:100%;max-width:100%;padding-inline:12px}
  .grid{grid-template-columns:minmax(0,1fr);gap:14px;width:100%}
  .panel{width:100%;min-width:0;overflow:hidden}
  main{padding-block:20px}
  .topbar{min-width:0;gap:8px}
  .brand{font-size:20px;min-width:0;white-space:nowrap}
  .brand-icon{flex-shrink:0}
  .status{flex:0 1 auto;min-width:0;justify-content:flex-end;flex-wrap:wrap;gap:5px}
  .status span{font-size:10px;padding:6px 8px}
  .intro h1{font-size:clamp(32px,9vw,44px);line-height:1.15}
  .intro p{font-size:15px}
  .radio{padding:18px 17px}
  .radio .player{width:100%;min-width:0}
  .radio .player-info{overflow-wrap:anywhere}
  .chat-title{gap:8px;align-items:flex-start;padding:18px 16px 10px}
  .chat-title h2{font-size:19px;line-height:1.35}
  .chat-title .pill{flex-shrink:0;max-width:115px;text-align:center}
  .rooms-nav{gap:4px;padding-inline:7px;margin-bottom:12px}
  .rooms-nav>.rooms{padding:1px 2px 4px;gap:7px;scrollbar-width:none}
  .rooms::-webkit-scrollbar{display:none}
  .rooms-arrow{display:grid;place-items:center;flex:0 0 36px}
  .room-tab{min-height:46px;padding:11px 13px;font-size:13px}
  .notice{margin-inline:16px;font-size:12px}
  .auth-panel{padding-inline:16px}
  .identity{padding-inline:16px}
  .messages{padding:14px 16px;min-height:180px;max-height:45dvh}
  .message-text{font-size:14px;line-height:1.5}
  .message-head strong{font-size:13px}
  .composer{padding:13px 16px 8px;align-items:stretch}
  .composer input,.identity input{font-size:16px;min-height:46px}
  .composer button{min-width:48px;min-height:48px}
  .chat-footer{padding-inline:16px}
  .profile-settings{margin-inline:16px}
  .profile-settings>summary{line-height:1.5}
  .chat.tech-active .messages{max-height:none;min-height:300px;padding-inline:13px}
  .tech-tabs{gap:7px}
  .tech-tab{min-height:45px;flex:1 1 auto}
  .tech-question,.tech-answer,.tech-chat-message{padding:13px}
  .tech-head{gap:10px}
  .tech-badges span{white-space:normal}
  footer{overflow-wrap:anywhere}
}
@media(max-width:375px){
  .shell{padding-inline:9px}
  .chat-title{padding-inline:12px}
  .chat-title h2{font-size:18px}
  .room-tab{font-size:12px}
  .rooms-arrow{min-width:32px;flex-basis:32px}
  .notice{margin-inline:12px}
  .auth-panel,.identity{padding-inline:12px}
  .messages{padding-inline:12px}
  .composer{padding-inline:12px}
  .chat-footer{padding-inline:12px}
  .profile-settings{margin-inline:12px}
  .player{gap:7px}
  #volume{width:55px}
  .tech-symbol{width:46px;height:46px}
}


/* OndaChat v6: navegación inferior para móvil y PWA con viewport ancho */
.mobile-bottom-nav{display:none}
@media(max-width:1100px), (display-mode:standalone) and (max-width:1400px){
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .mobile-bottom-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:100;
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;
    gap:7px;padding:8px max(12px,env(safe-area-inset-right,0px)) calc(9px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
    background:#180f2bee;border-top:1px solid #ae78d064;
    box-shadow:0 -8px 24px #0804159c;
    -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)
  }
  .mobile-bottom-nav .mobile-nav-button{
    min-width:0;min-height:55px;border:1px solid transparent;border-radius:14px;
    display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;
    padding:6px 4px;background:transparent;color:#d4bfe8;
    font-size:12px;font-weight:750;line-height:1.2;touch-action:manipulation
  }
  .mobile-bottom-nav .mobile-nav-icon{font-size:22px;line-height:1.12}
  .mobile-bottom-nav .mobile-nav-button.active{
    color:#fff;background:linear-gradient(120deg,#8745b7,#6336ac);
    border-color:#c987ef9a;box-shadow:0 3px 13px #5e279c45
  }
  .mobile-bottom-nav .mobile-nav-button:focus-visible{
    outline:2px solid #f2baff;outline-offset:2px
  }
  .radio,.chat,.profile-settings,.auth-panel{scroll-margin-top:14px;scroll-margin-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:350px){
  .mobile-bottom-nav{gap:4px;padding-left:7px;padding-right:7px}
  .mobile-bottom-nav .mobile-nav-button{font-size:11px}
}
