* {
    box-sizing: border-box;
}

body {
    font-family: Bahnschrift,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgba(226, 226, 226, 0.3);
}

.video-background {
    position:fixed;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para que el video cubra toda la pantalla */
    z-index: -3; /* Para que el video esté detrás del contenido */
}

/* Normalizamos todos los elementos */
body, div, ul, nav, header, footer,a, li, label,h1,table,th,thead {
    margin: 0;
    padding: 0;
}

/*------------------EDICIÓN DEL HEADER------------------*/
    .header{
        display: flex;
        position: sticky;
        background-color: rgba(255, 255, 255, 0.9);
        container-type: inline-size;
        container-name: header;
        align-items: center;
        z-index: 101;
    }
    /* ESTILOS DEL CONTENEDOR DEL LOGO*/
    .header__logo-container {
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        width: 100px;
    }

    .header__logo{
        width: 100px;
    }

    /* ESTILOS TÍTULO PRINCIPAL */
    .header__title {
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        min-width: 200px;
        flex-grow: 1;
        text-align: center;
        color: #048;
        height: 60px;
    }

    /* ESTILOS DEL CONTENEDOR DEL NAVEGADOR*/
    .header__nav {
        background: radial-gradient(#bbbaba80,transparent);
        display: none;
        position: absolute;
        z-index: -1;
        top: 0;
        width: 100%;
        height: 100vh;
    }

    .header__nav-list{
        display: flex;
        flex-direction: column;
        height: 60vh;
        width: 60%;
        margin: auto;
        justify-content: space-evenly;
        align-items: center;
    }

    .header__nav-item{
        list-style: none;
        text-decoration: none;
        padding: 20px;
        border-radius: 10px;
    }

    .header__nav-item a{
        font-size: 1.5rem;
        font-weight: 800;
        color: #048;
        list-style: none;
        text-decoration: none;
        padding: 20px;
        border-radius: 10px;
    }

    .header__nav-item :is(:hover,:active){
        background-color: rgba(0, 68, 136, 0.8);
        color: white;
    }

    /* ESTILOS DEL BOTÓN DESPLIEGUE DEL MENÚ*/
    .header__checkbox{
        display: none;
    }

    .header__menuico{
        padding: 5px;
        min-width: 50px;
        height: 50px;
        width: 50px;
    }

    .header__openmenu{
        color: #048;
        min-width: 50px;
        font-size: 20px;
        font-weight: 100;
    }

    /* CONTROL DEL ESTADO DE VISIBILIDAD DEL NAV*/
    .header__checkbox:checked ~ .header__nav {
        display:flex;
    }

    /* CONTAINER QUERIES HEADER */
    @container header (min-width: 600px) {

        .header__title {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            min-width: 200px;
            flex-grow: 1;
            text-align: center;
            color: #048;
            height: 60px;
        }

        .header__nav{
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            position: absolute;
            height: 60px;
            top: 60px;
            z-index: 0;
            width: 100%;
            gap: 20px;
            border: 1px solid rgba(189, 189, 189, 0.3);
        }
        .header__nav-list{
            width: 100%;
            height: 60px;
            top: 60px;
            z-index: 0;
            flex-direction: row;
        }    
        .header__nav-item{
            border-radius: 10px;
            font-size: 1.3rem;
            font-weight: 500;
            padding: 10px;
            border-radius: 10px;
        }
    
        .header__nav-item a{
            font-size: 1.3rem;
            font-weight: 500;
            color: #048;
            list-style: none;
            text-decoration: none;
            padding: 10px;
        }
    
        .header__nav-item :is(:hover,:active){
            background-color: rgba(0, 68, 136, 0.8);
            color: white;
        }
        .header__openmenu{
            display: none;
        }
    }

/*---------------MAIN  CONTENT---------------*/
    main{
        margin: auto;
        width: 100%;
        margin-top: 60px;
    }

    .boton-modal {
        padding: 1em;
        margin: auto;
        min-width: 1130px;
        max-width: 1200px;
        background-color: rgba(255, 255, 255, 0.8);
    }

    .boton-modal label {
        padding: 10px 15px;
        text-align: center;
        background-color: #084;
        color: white;
        border-radius: 6px;
        cursor: pointer;
        transition: all 300ms ease;
    }
    .boton-modal label:hover {
        background-color: rgb(2, 255, 129);
        color: black;
        font-weight: bolder;
    }

    #btnModal {
        display: none;
    }

    .container-modal {
        margin-top: 0;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        display: none;
        background-color: #bbbaba9c;
        justify-content: center;
        align-items: start;
        z-index: 100;
    }

    .ce-modal {
        margin: 150px auto;
        width: 100%;
        min-width: 400px;
        max-width: 750px;
        min-height: 400px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: #ffffffbd;
        border-radius: 8px;
    }

    .btn-cerrar label {
        cursor: pointer;
        transition: all 300ms ease;
    }

    .btn-cerrar {
        margin: auto;
        flex-grow: 0.4;
        aspect-ratio: 1/1;
        background-color: black;
        font-family: Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        color: white;
        border-radius: 50px;
        align-content: center;
        text-align: center;
        cursor: pointer;
        transition: all 200ms ease;
    }

    .btn-cerrar:hover {
        background-color: grey;
        color: black;
    }

    .ce-title {
        flex-grow: 1;
        display: flex;
        gap: 0.5rem;
    }

    .ce-title h2 {
        margin: auto;
        min-height: 40px;
        flex-grow: 9;
        text-align: center;
        align-content: center;
        background: #048;
        color: white;
        border-radius: 15px;
    }

    .interfaz-CE {
        flex-grow: 50;
        display: grid;
        grid-template-columns: 1fr 1.5fr 1fr;
        grid-template-rows: 1fr 4fr 1fr 2fr;
        grid-template-areas: 
        "ice-hiloTin ice-descripcion ice-hiloTout"
        "ice-entrada ice-descripcion ice-salida"
        "ice-hiloRin ice-descripcion ice-hiloRout"
        "ice-acciones ice-acciones ice-acciones"
        ;
    }
    .ice-hiloTin {
        grid-area: ice-hiloTin;
        display: flex;
        align-items: center;
    }

    .ice-hiloTout {
        grid-area: ice-hiloTout;
        display: flex;
        align-items: center;
    }

    .ice-hiloRin {
        grid-area: ice-hiloRin;
        display: flex;
        align-items: center;
    }

    .ice-hiloRout {
        grid-area: ice-hiloRout;
        display: flex;
        align-items: center;
    }

    .ice-entrada {
        grid-area: ice-entrada;
        border: 3px solid #048;
        border-radius: 5px;
        color: #048;
        display: flex;
        flex-direction: column;
        margin: 30px 10px;
        padding: 10px;
    }

    .ice-salida {
        grid-area: ice-salida;
        border: 3px solid #048;
        border-radius: 5px;
        color: #048;
        display: flex;
        flex-direction: column;
        margin: 30px 10px;
        padding: 10px;
    }

    .ice-descripcion {
        grid-area: ice-descripcion;
        border: 3px solid rgba(90, 90, 90, 0.9);
        border-radius: 5px;
        background-color: rgba(159, 159, 159, 0.9);
        color: white;
        display: flex;
        flex-direction: column;
    }
    .input-modal{
        flex-grow: 1;
        align-content: center;
        display: flex;
        align-items: center;
        padding: 10px;
    }

    .input-modal input{
        padding: 5px;
        border: none;
        max-height: 30px;
        min-width: 100px;
        width: 50%;
        font-size: 15px;
        border-radius: 5px;
        flex-grow: 1;
    }

    .input-modal label {
        text-align: end;
        display: inline-block;
        width: 100px;
        padding: 2px;
        border-radius: 5px;
    }

    .input-modalIO{
        display: flex;
        flex-direction: column;
        width:30%;
        max-width: 45px;
        flex-grow: 3;
    }

    .input-modalES{
        flex-grow: 1;
        align-content: center;
        display: flex;
        flex-direction: column ;
        align-items: center;
        padding: 10px;
    }

    .input-modalES input{
        padding: 5px;
        max-height: 30px;
        min-width: 20px;
        width: 100%;
        font-size: 15px;
        border-radius: 5px;
        flex-grow: 1;
        text-align: center;
    }

    .input-modalES label {
        font-size: 12px;
        text-align: center;
        display: inline-block;
        width: 100%;
        padding: 2px;
        border-radius: 5px;
    }

    .hilo-fibra {
        margin-top: 20px;
        width: 70%;
        min-width: none;
        flex-grow: 1;
        background-color: yellow;
        border: 1px solid rgba(68, 67, 67, 0.418);
        height: 6px;
    }

    .input-modalIO input{
        padding: 5px;
        width: 100%;
        font-size: 15px;
        border-radius: 5px;
        flex-grow: 1;
        align-content: center;
        text-align: center;
    }

    .input-modalIO label{
        text-align: center;
        white-space: nowrap;
        display: inline-block;
        width: 100%;
        padding: 2px;
        border-radius: 5px;
    }

    .ice-salida {
        grid-area: ice-salida;
    }

    .ice-acciones {
        margin: auto;
        grid-area: ice-acciones;
    }

    .btn-OK {
        font-family: Bahnschrift,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: green;
        color: white;
        margin: 5px;
        border-radius: 10px;
        border: none;
        padding: 10px;
        width: 100px;
        aspect-ratio: 5/1;
        cursor: pointer;
        transition: all 300ms ease;
    }

    .btn-Cancelar {
        font-family: Bahnschrift,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: rgb(97, 97, 97);
        color: white;
        margin: 5px;
        border-radius: 10px;
        border: none;
        padding: 10px;
        width: 100px;
        aspect-ratio: 5/1;
        cursor: pointer;
        transition: all 300ms ease;
    }

    .main-table{
        border-collapse:collapse;
        margin: auto;
        min-width: 1130px;
        max-width: 1200px;
        top: 200px;
        background-color: #aaaaaa80;
    }

    thead {
        background-color: #048;
    }
    th {
        height: 40px;
        max-width: auto;
        border: 2px solid #ccc;
        color: white;
        padding: 2px 2px;
        font-size: 12px;
    }

    .hilos {
        width: 60px;
        min-width: 40px;
        max-width: auto;
    }

    .thead-corto {
        width: 30px;
        min-width: 30px;
        max-width: auto;
    }

    .thead-medio{
        width: 100px;
        min-width: 50px;
        max-width: auto;
    }

    .thead-largo{
        width: auto;
        min-width: 180px;
        max-width: auto;
    }
    .thead-descripcion{
        width: auto;
        min-width: 250px;
        max-width: auto;
    }
    .td-start {
        text-align: start;
    }
    td {
        border: 2px solid #ccc;
        background-color: #efefef62;
        text-align: center;
        padding: 3px 5px;
    }
    .no-wrap {
        white-space: nowrap;
    }

    .subtable {
        width: 100%;
        border: 0px;
        margin: 0;
        border-spacing: 2px;
    }

    .subhead {
        background-color: #4dad52;
        border-radius: 2px;
        border: none;
        white-space: nowrap;
        height: auto;
        padding: 3px;
    }

    .cellwithtable {
        padding: 5px;
    }

    .subcell {
        padding: none;
        border: 1px solid #aaa;
        border-radius: 10px;
        white-space: nowrap;
    }

    .desc {
        white-space: normal;
    }

    .bmod {
        font-family: Bahnschrift,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #048;
        color: white;
        margin: 5px;
        border: none;
        border-radius: 10px;
        padding: 10px;
        width: 100px;
        cursor: pointer;
        transition: all 300ms ease;
    }
    .bmod:hover {
        background-color: rgb(1, 103, 206);
    }
    .bdel {
        font-family: Bahnschrift,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #804;
        color: white;
        margin: 5px;
        border-radius: 10px;
        border: none;
        padding: 10px;
        width: 100px;
        cursor: pointer;
        transition: all 300ms ease;
    }
    .bdel:hover {
        background-color: rgb(189, 2, 95);
    }