html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "TikTok Sans", sans-serif;
    background: black;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    margin: 0 auto;
}

header > div {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 30px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
}

header > div > img {
    display: block;
    height: 30px;
}

header > div > button {
    background: none;
    border: none;
    color: white;
    font-size: 1.4em;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 !important;
}

input, select {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(68,68,68,0.5);
    color: white;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    user-select: none;
    appearance: none;
}

dialog#menuDialog {
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 12px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    user-select: none;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

p {
    margin: 0;
    padding: 0;
}

p > i {
    opacity: 0.5;
    margin-right: 6px;
}

.menu-content {
    padding: 20px;
}

.menu-content h3 {
    margin-top: 0;
}

.menu-content button {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #444;
    color: white;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.menu-content button:focus {
    outline: none;
}

.fichas {
    max-width: 600px;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
}

.fichas::-webkit-scrollbar {
    display: none;
}

.ficha {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: transform 0.5s ease;
}

.media-container {
    display: flex;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.media-container::-webkit-scrollbar {
    display: none;
}

.media-container img {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    object-fit: cover;
    scroll-snap-align: start;
    flex-shrink: 0;
    filter: contrast(1.2) saturate(1.3) brightness(0.95);
    pointer-events: none;
    position: relative;
}

.info {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    color: white;
    padding: 40px 30px;
    box-sizing: border-box;
    z-index: 3;
    pointer-events: none;
}

.info {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.info.hidden {
    opacity: 0;
    pointer-events: none;
}

.info h2, .info p {
    margin: 4px 0;
    line-height: 1.2;
}

.info h2 {
    display: flex;
    justify-content: left;
    align-items: center;
}

.info button {
    pointer-events: auto;
}

.foto-u {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.btn-whatsapp {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: #25d366;
    border: none;
    color: black !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.btn-whatsapp:focus {
    outline: none;
}

.btn-call {
    text-align: center;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: orange;
    border: none;
    color: black !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.btn {
    width: 100% !important;
}

.btn-more {
    width: 30%;
    padding: 14px;
    margin-top: 10px;
    background: #444;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    user-select: none;
    margin-right: 10px;
}

.overlay-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
    pointer-events: none;
    z-index: 2;
    transition: height 0.4s ease;
}

.overlay-bottom.expand {
    height: 700px;
}

.fotos {
    font-size: 14px;
    line-height: 14px;
    width: 68px;
    position: absolute;
    top: 40px;
    right: 30px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 4px 8px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fotos > i {
    opacity: 0.5;
}

.foto-user {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    object-fit: cover;
    padding: 2px;
    border: 2px solid rgba(255,255,255,0.5);
    margin-right: 6px;
}

.acciones {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nombre {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

#globalLoader {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    background-color: transparent;
}

.extra-info {
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.4s ease;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    white-space: pre-line;
    margin: 10px 0;
    color: #fff;
    font-size: 14px !important;
    word-wrap: break-word;
}

.extra-info.open {
    max-height: 200px;
    overflow-y: scroll;
    scrollbar-width: none;
    pointer-events: auto !important;
}

.extra-info.open::-webkit-scrollbar {
    display: none;
}

iframe {
    width: 100% !important;
    height: 200px !important;
    display: none;
}

.fecha-publicacion {
    width: 100% !important;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin-bottom: 10px !important;
    display: flex;
    justify-content: start;
    align-items: center;
}

.fecha-publicacion > span {
    margin-right: 6px;
}

.ne {
    font-weight: 700;
    margin: 20px 0;
}

.filtro-hint {
    position: fixed;
    top: 36px;
    right: 50px;
    background: linear-gradient(to right, rgba(255,99,71,0.4) 0%, rgba(255,99,71,0) 100%);
    color: #fff;
    padding: 10px 15px 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-weight: 700;
}

.filtro-hint.visible {
    opacity: 1;
    pointer-events: auto;
}

.filtro-hint > i {
    opacity: 0.5;
    margin-right: 6px;
}

.encabezado {
    margin-top: 10px;
    font-size: 10px;
    color: rgba(200,200,200,1);
    text-align: center;
}

.reciente {
    font-size: 12px;
    font-weight: 700;
    color: white;
    background-color: tomato;
    border-radius: 8px;
    padding: 4px 8px;
    margin-left: 10px;
}

.tipo {
    font-size: 9px;
    font-weight: 300;
    color: white;
    background-color: transparent;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 2px 8px;
    margin-left: 10px;
    box-sizing: border-box;
}

.videos {
    font-size: 26px;
    line-height: 26px;
    position: absolute;
    top: 38px;
    right: 120px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto !important;
}

.videos > a > i {
    color: white !important;
    text-decoration: none !important;
}

button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    appearance: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: none;
}

button {
    background-color: transparent;
    -webkit-appearance: none;
}

a, button {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

button, select, input, textarea, label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}