* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}


body {
    font-family: Arial, sans-serif;
    background: #000;
    color: white;
}


/* ============================== */
/* VISOR */
/* ============================== */

#visor {
    position: relative;

    width: 100vw;
    height: 100vh;

    background: #000;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* ============================== */
/* IMAGEN */
/* ============================== */

#imagen {
    display: none;

    width: auto;
    height: auto;

    max-width: 100vw;
    max-height: 100vh;

    object-fit: contain;

    user-select: none;

    transform-origin: center center;

    cursor: grab;

    will-change: transform;
}


#imagen:active {
    cursor: grabbing;
}


/* ============================== */
/* PANTALLA COMPLETA */
/* ============================== */

#visor:fullscreen {
    width: 100vw;
    height: 100vh;

    background: #000;

    overflow: hidden;
}


#visor:fullscreen #imagen {
    max-width: none;
    max-height: none;

    object-fit: contain;
}


/* ============================== */
/* PANTALLA INICIAL */
/* ============================== */

#mensajeInicial {
    text-align: center;
}


#mensajeInicial h1 {
    font-size: 40px;

    margin-bottom: 15px;
}


#mensajeInicial p {
    color: #aaa;

    font-size: 17px;

    margin-bottom: 30px;
}


/* ============================== */
/* BOTONES */
/* ============================== */

button,
.boton,
.botonSeleccionar {
    background: rgba(35, 35, 35, 0.9);

    color: white;

    border: 1px solid #555;

    border-radius: 8px;

    padding: 10px 16px;

    font-size: 15px;

    cursor: pointer;

    transition: 0.2s;
}


button:hover,
.boton:hover,
.botonSeleccionar:hover {
    background: rgba(80, 80, 80, 0.95);

    border-color: #888;
}


input[type="file"] {
    display: none;
}


.botonSeleccionar {
    display: inline-block;

    padding: 14px 25px;

    font-size: 17px;
}


/* ============================== */
/* BARRA SUPERIOR */
/* ============================== */

#barraSuperior {
    position: fixed;

    top: 15px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 100;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 8px 10px;

    background: rgba(0, 0, 0, 0.7);

    border-radius: 10px;

    backdrop-filter: blur(5px);
}


/* ============================== */
/* CONTROLES INFERIORES */
/* ============================== */

#controles {
    position: fixed;

    bottom: 20px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 100;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px;

    background: rgba(0, 0, 0, 0.7);

    border-radius: 10px;

    backdrop-filter: blur(5px);
}


#zoomTexto {
    min-width: 65px;

    text-align: center;
}


/* ============================== */
/* AYUDA */
/* ============================== */

#ayuda {
    position: fixed;

    bottom: 80px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 100;

    background: rgba(0, 0, 0, 0.6);

    padding: 8px 15px;

    border-radius: 8px;

    color: #aaa;

    font-size: 13px;

    white-space: nowrap;

    pointer-events: none;
}


/* ============================== */
/* OCULTAR */
/* ============================== */

.oculto {
    display: none !important;
}


/* ============================== */
/* OCULTAR TODOS LOS CONTROLES */
/* ============================== */

.controlesOcultos #barraSuperior,
.controlesOcultos #controles,
.controlesOcultos #ayuda {
    display: none !important;
}