html,
body {
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

h3 {
    padding: 1vh 20px 0;
    margin: 0;
    text-decoration: underline;
    font-weight: normal;
    font-size: 2vh;
}

p {
    padding: 1vh 20px;
    margin: 0;
    font-size: 2vh;
}

.parrafos-horizontales {
    display: flex;
    justify-content: space-between;
}

span {
    background: #eef699;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/*----------Parte izquierda estatica----------*/
.izquierda {
    position: relative;
    min-width: 500px;
    width: 50vmax;
    overflow: hidden; /* Sin scroll */
    background: linear-gradient(to bottom, #ffffff, #000000);
    font-family: "Times New Roman", Times, serif;
}

.parrafos-horizontales,
.izquierda > div:not(:first-child) {
    z-index: 2;
    position: relative;
}

.imagen-encima {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    opacity: 1;
    z-index: 1;
}

h1 {
    text-align: center;
    padding: 3vh;
    margin: 0;
    font-size: 3.5vh;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 25px;
    z-index: 0;
}

.table-container {
    margin: 1vh 20px;
    width: 100%;
}

table {
    font-size: small;
    border-collapse: collapse;
    width: 90%;
}

/*css de las filas de la tabla*/
td {
    border-bottom: 1px solid black;
}

/*css de los links*/
a {
    margin: 2vh 30px;
    color: black;
    text-decoration: none;
    font-size: small;
    background: #eef699;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
/* Forzar Glitch a usar cover sí o sí */
.slider-glitch .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/*------------Franja-----------*/
.franja {
    width: 20px;
    background: linear-gradient(to bottom, #ffffff, #eef699);
    flex-shrink: 0;
}

/*------------Parte derecha dinamica-----------*/
.derecha {
    min-width: 350px;
    height: 100vh; /* Fuerza altura completa de la ventana */
    overflow-y: auto;
    background: linear-gradient(to bottom, #000000, #ffffff);
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    font-size: x-small;
}

.derecha h3 {
    text-decoration: none;
    font-size: 1.8vh;
    padding-top: 3vh;
}

.derecha p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.4vh;
    padding-bottom: 3vh;
    color: #000000;
}

/*css del contenedor general del sliderde cada proyecto*/
.slider {
    height: 300px;
    background-color: white;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab; /* Cursor que indica que se puede arrastrar */
    user-select: none; /* Evita selección de texto al arrastrar */
}

.slider:active {
    cursor: grabbing; /* Cambia el cursor cuando se está arrastrando */
}

/* Ocultar barra de scroll */
.slider::-webkit-scrollbar {
    display: none;
}

/*css del contenedor de cada imagen, que se mueve dentro del slider*/
.slide {
    width: auto;
    flex-shrink: 0;
}

/*css de las imagenes*/
.slide img {
    height: 100%;
    max-width: 100%;
    width: auto;
}

.slide video {
    background-color: black;
    height: 100%;
    width: auto;
    max-width: 100%;
    pointer-events: auto; /* permite interactuar con los controles*/
}

@media screen and (max-width: 768px), (hover: none) and (pointer: coarse) {
    body {
        display: block;
        /*flex-direction: column;*/
        margin: 0;
        overflow-y: auto; /* Permite scroll vertical general */
        height: auto;
    }

    .izquierda,
    .derecha,
    .franja {
        width: 100%;
        min-width: 100%;
        min-height: 100dvh;
        overflow: visible; /* Scroll manejado por el body */
    }

    .franja {
        min-height: 1px;
    }
}