﻿body
{
    font-family: "Segoe UI", system-ui, Arial, "Helvetica Neue", sans-serif;
    font-size: 12px;
    color: #000000;
}

.seo-header{
  position: relative;
  z-index: 6;
}
.seo-header h1 {
  padding-top: 9px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.3;
  color: #c8d6e5 ;
  margin-left: 0;
  display: block;
  text-align: center;
}

.seo-footer footer{
    position: absolute;
    z-index: 6;
    bottom: 2px;
    padding-left: 6px;
}
div.page
{
    background-color: #EEEEEE;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

div.body
{
    position: absolute;
    top: 48px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: #c8d6e5 ;
    z-index: 2;
}

div.footer
{
    position: absolute;
    height: 32px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: rgb(0, 96, 138);
    z-index: 2;
}

div.ilogo
{
    position: absolute;
    height: 24px;
    bottom: 4px;
    left: 8px;
    z-index: 3;
}

span.ilogo
{
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    color: #CCCCCC;
    position: relative;
    bottom: 6px;
    left: 4px;
    z-index: 4;
    cursor: default;
}

span.tb
{
    position: absolute;
    top: 12px;
    left: 38px;
}

div.loading
{
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    opacity: 0.5;
    background-color: #111111;
    z-index: 999;
}


div.buzzer
{
  visibility: hidden;
  height: fit-content;
  width: 100px;
  text-align: center;
  font-size: 20px;
  color: #c8d6e5 ;
  padding: 30px;
  position: absolute;
  z-index: 999;
  background-color: crimson;
  border-radius: 6px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#zumbido{
  display: none
  }



div.pwl
{
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    color: #000000;
    font-weight: bold;
    font-size: 24px;
}

/* ── User Context Popup ── */
div.ul_popup {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.ul_popup_inner {
    position: relative;
    width: 300px;
    background-color: rgb(0, 96, 138);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 4px 20px rgba(0,0,0,0.30);
    overflow: hidden;
    animation: ulPopupIn 0.20s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes ulPopupIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes ulPopupUp {
    from { opacity: 0; transform: translateY(64px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Profile header */
div.ul_popup_profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

div.ul_popup_inner img.ul_av {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(200,214,229,0.30);
    object-fit: cover;
    flex-shrink: 0;
    cursor: zoom-in;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

div.ul_popup_inner img.ul_av:hover {
    border-color: rgba(200,214,229,0.70);
    transform: scale(1.06);
}

div.ul_popup_inner span.ct_ul_0 {
    font-size: 15px;
    font-weight: 600;
    color: #c8d6e5;
    word-break: break-all;
    line-height: 1.3;
}

/* Close button */
div.ul_close {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: rgba(200,214,229,0.50);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    z-index: 3;
    padding: 0;
}

div.ul_close:hover {
    background-color: rgba(255,255,255,0.14);
    color: #ffffff;
    border-color: transparent;
}


/* Buttons container */
div.ul_popup_items {
    padding: 8px 0 10px;
}

/* Button row */
div.ul_popup_item {
    margin: 2px 8px;
}

div.ul_popup_item_text {
    min-height: 40px;
    color: #c8d6e5;
    background: transparent;
    background-image: none;
    text-align: left;
    border-radius: 9px;
    border: none;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

div.ul_popup_item_text:hover {
    background-color: rgba(255,255,255,0.10);
    color: #ffffff;
}

div.ul_popup_item_text i.fa {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(200,214,229,0.50);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

div.ul_popup_item_text:hover i.fa {
    color: rgba(255,255,255,0.80);
}

div.ul_popup_item_text_d {
    min-height: 40px;
    color: rgba(200,214,229,0.28);
    background: transparent;
    background-image: none;
    text-align: left;
    border-radius: 9px;
    border: none;
    font-weight: 500;
    font-size: 13px;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

div.ul_popup_item_text_d i.fa {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(200,214,229,0.20);
    flex-shrink: 0;
}

div.ul_popup_item_text2 {
    padding-top: 0;
    flex: 1;
}

/* ── Avatar expanded view ── */
div.ul_popup_avatar_view {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.90);
}

div.ul_popup_avatar_view.open {
    display: flex;
    animation: ulAvatarIn 0.18s ease both;
}

@keyframes ulAvatarIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

div.ul_popup_avatar_view img {
    max-width: 100%;
    max-height: calc(100% - 52px);
    object-fit: contain;
    border-radius: 6px;
    pointer-events: none;
    flex-shrink: 1;
}

div.ul_popup_av_back {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(200,214,229,0.85);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

div.ul_popup_av_back:hover {
    background: rgba(255,255,255,0.20);
    color: #ffffff;
}

/* ── Mobile: bottom sheet ── */
@media (max-width: 640px) {
    div.ul_popup {
        align-items: flex-end;
    }
    div.ul_popup_inner {
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        animation: ulPopupUp 0.22s cubic-bezier(0.25,1,0.5,1) both;
    }
}

div.cc_emoContainer
{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 164px;
    height: 192px;
    margin-left: -76px;
    margin-top: -90px;
    background-color: rgb(0, 96, 138);
    border-radius: 2px;
    border-color: #13161d;
    border-style: solid;
    border-width: 1px;
    opacity: 1;
    padding-bottom: 20px;
}
div.cc_container
{
    position: absolute;
    width: 152px;
    height: 180px;
    margin: 6px;
    opacity: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    top: 16px;
}


div.selected_dialog
{
    position: absolute;
    height: 160px;
    top: 50%;
    margin-top: -80px;
    width: 400px;
    left: 50%;
    margin-left: -200px;
    text-align: center;
    color: #c8d6e5 ;
    background-color: #000000;
    font-weight: bold;
    font-size: 12px;
    border-radius: 10px;
    border-color: #AAAAAA;
    border-style: solid;
    border-width: 2px;
}

.topnav {
  position: absolute;
  background-color: #13161d;
  overflow: hidden;
  z-index: 6;
  width: 100%;  
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #1e2330;
}

.topnav a {
  float: left;
  display: block;
  color: #c8d6e5 ;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.topnav a:hover {
  background-color: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  cursor: pointer;
}

.topnav a.active {
  background-color: rgb(0, 96, 138);
  color: #ffffff;
  border-bottom: 3px solid #4db8e8;
  padding-bottom: 11px;
}

.topnav .icon{
  display: none;
}

.oculto{
    display: none;
}

.cabecera img{
  height: 48px;
  width: 48px;
}
.cabecera span{
    position: absolute;
    font-size: 20px;
    font-family: verdana;
    top: 12px;
    color: #F9E79F;
}
.cabecera{
    width: 100%;
    display: none;
}
.gifImg{
  border-radius: 7px;
  max-width: 128px;
}

@media screen and (max-width: 863px) {
  .topnav a{display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }

 .cabecera{
    float: left;
    display: contents;
  }
}

@media screen and (max-width: 863px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}


/* contenedor general */
#scripty_page #scripty_container {
  position: absolute;
  top: 50px;   /* margen superior para tabs */
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  overflow: hidden;
}

/* sidebar fijo */
#scripty_page #scripty_sidebar {
  position: absolute;
  top: 50px; bottom: 0; left: 0;
  width: 33%;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 12px;
}

/* área principal */
#scripty_page #scripty_main {
  position: absolute;
  top: 50px; bottom: 0; left: 34%; right: 0;
  box-sizing: border-box;
}

/* header */
#scripty_page #scripty_header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;

}

/* chat entre header e input */
#scripty_page #chat {
  position: absolute;
  top: 50px;    /* debajo del header */
  bottom: 60px; /* encima del input */
  left: 0; right: 0;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
  margin-top: 8px;
  margin-bottom: 8px;
  border-radius: 12px;
  scrollbar-width: thin;
}

/* input fijo abajo */
#scripty_page #scripty_input {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem;
  box-sizing: border-box;
  border-radius: 12px;
}

#scripty_page #scripty_input textarea {
  resize: none;
  height: 100%;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* ── Scripty: chat background ── */
#scripty_page #chat {
  background: transparent;
}

/* ── Scripty: responsive (mobile) ── */
@media (max-width: 640px) {
  #scripty_page #scripty_sidebar {
    width: 72%;
    max-width: 265px;
    top: 0;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    z-index: 8;
    box-shadow: 3px 0 18px rgba(0,0,0,0.45);
    border-radius: 0 12px 12px 0;
  }
  #scripty_page #scripty_sidebar.open {
    transform: translateX(0);
  }
  #scripty_page #scripty_main {
    left: 0;
  }
  #scripty_sidebar_backdrop {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 6;
    cursor: pointer;
  }
  #scripty_sidebar_backdrop.visible {
    display: block;
  }
}

/* ── Mic recording state ── */
div.ct_client_toolstrip_item9 {
  overflow: visible !important;
}

.ct_client_toolstrip_item9.mic-recording {
  background: linear-gradient(135deg, #7f1d1d, #ef4444) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.30), 0 0 14px rgba(239,68,68,0.50) !important;
  color: #fff;
}

#mic_rec_timer {
  position: absolute;
  bottom: calc(100% + 28px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 700;
  color: #ff4444;
  background: rgba(0,0,0,0.70);
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.4;
}

.ul_popup *,
.ul_popup *::before,
.ul_popup *::after {
   box-sizing: content-box !important;
  }

.ul_popup *,
.ul_popup *::before,
.ul_popup *::after {
   box-sizing: content-box !important;
  }

.ct_client_outbox *,
.ct_client_outbox *::before,
.ct_client_outbox *::after {
   box-sizing: content-box !important;
  }  

 #register_page {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0d0f14;
    overflow-y: auto;
    z-index: 1;
}