/* CONFIGURACIÓN GENERAL */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #eef2f0;
    font-family: "Segoe UI",  Arial, Helvetica, sans-serif;
}


.pantalla-informacion {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #eef2f0;
}


/* ENCABEZADO */

.encabezado {
    flex: 0 0 125px;
    display: grid;
    grid-template-columns: 250px  1fr 300px;
    align-items: center;
    padding: 0 45px;
    box-sizing: border-box;
    background: linear-gradient( 90deg,  #347b54 0%,  #40875e 50%, #347b54 100% );
    color: white;
}


.logo-container {
    display: flex;
    align-items: center;
}


.logo {
    width: 145px;
    max-height: 95px;
    object-fit: contain;
}


.titulo-pantalla {
    text-align: center;
}


.titulo-principal {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 3px;
}


.titulo-secundario {
    margin-top: 5px;
    font-size: 16px;
    opacity: .9;
}


.fecha-hora {
    text-align: right;
}


.fecha-actual {
    font-size: 15px;
    text-transform: capitalize;
    opacity: .9;
    margin-bottom: 3px;
}


.reloj {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 2px;
}


/*  ENCABEZADO DE TABLA */

.tabla-header {
    flex: 0 0 58px;
    display: grid;
    grid-template-columns: 12% 25% 10%  13% 12% 20% 8%;
    align-items: center;
    box-sizing: border-box;
    background: #285e40;
    color: white;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}


/*  CONTENEDOR */
#contenedor-servicios {
    flex: 1;
    position: relative;
    overflow: hidden;
}


/*  PAGINAS */

.pagina-servicios {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity .8s ease,
        transform .8s ease;
    pointer-events: none;

}


.pagina-servicios.pagina-activa {

    opacity: 1;

    transform: translateX(0);

    pointer-events: auto;

}


/* ================================================================
   FILA DEL SERVICIO
   ================================================================ */

.servicio {
    height: 20%;
    min-height: 0;
    display: grid;
    grid-template-columns: 12% 25% 10% 13% 12% 20% 8%;
    align-items: center;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #dfe5e2;
    transition: all .3s ease;

}


/* FILAS ALTERNADAS */
.servicio:nth-child(even) {
    background: #f1f5f3;
}


/* FECHA */

.fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: auto;
    border-radius: 12px;
    background: #f4f8f6;
    box-shadow: inset 0 0 0 1px #dbe5df;
}


.fecha .dia {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #285e40;
}


.fecha .mes {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #347b54;
    letter-spacing: 1px;
}


.fecha .anio {
    margin-top: 3px;
    font-size: 11px;
    color: #7b8580;
}


/* NOMBRE */

.nombre {
    text-transform: uppercase;
    padding: 0 5px;
}


.nombre-persona {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: #26382f;
}


/* SALA */
.sala {
    display: flex;
    align-items: center;
    justify-content: center;
}


.sala-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 44px;
    padding: 0 14px;
    color: #26382f;;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}


/* HORARIO  */

.horario {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 115px;
    height: 48px;
    margin: auto;  
    color: #285e40;
    font-size: 29px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: .5px;
}


/* DESTINO */

.destino {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
    font-size: 29px;
    font-weight: 600;
    color: #34463d;
    line-height: 1.2;
}


/* INFORMACIÓN */

.informacion {
    padding: 0 15px;
    font-size: 16px;
    line-height: 1.35;
    color: #68756e;
}


.sin-informacion {
    color: #b0b8b4;
    font-size: 20px;
}


/*  FOTO  */

.foto {
    display: flex;
    justify-content: center;
    align-items: center;
}


.foto img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);

}


/* INDICADORES DE PAGINACIÓN */

.indicador-paginas {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(40,94,64,.85);

}


.indicador {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: all .4s ease;

}


.indicador.indicador-activo {
    width: 25px;
    border-radius: 10px;
    background: white;

}


/*  SIN SERVICIOS */

.sin-servicios {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #668074;
    font-size: 26px;
    font-weight: 600;
}


.sin-servicios-icono {
    margin-bottom: 15px;
    font-size: 50px;
}


/* PIE DE PANTALLA */

.pie-pantalla {
    flex: 0 0 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-sizing: border-box;
    background: #285e40;
    color: white;
    font-size: 12px;
}


/*  FULL HD */

@media (min-width: 1600px) {

    .encabezado {
        flex-basis: 140px;
        grid-template-columns: 280px 1fr 340px;

    }


    .logo {
        width: 160px;
    }


    .titulo-principal {
        font-size: 40px;
    }


    .titulo-secundario {
        font-size: 18px;
    }


    .reloj {
        font-size: 38px;
    }


    .fecha-actual {
        font-size: 17px;
    }


    .tabla-header {
        flex-basis: 65px;
        font-size: 19px;

    }


    .fecha {
        width: 82px;
        height: 82px;
    }


    .fecha .dia {
        font-size: 33px;
    }


    .fecha .mes {
        font-size: 15px;
    }


    .fecha .anio {
        font-size: 12px;
    }


    .nombre-persona {
        font-size: 26px;
    }


    .sala-numero {
        min-width: 105px;
        height: 48px;
        font-size: 29px;
        font-weight: 600;
        line-height: 1.2;
    }


    .horario {
        width: 130px;
        height: 52px;
        font-size: 29px;
    }


    .destino {
        font-size: 29px;
    }


    .informacion {
        font-size: 18px;
    }


    .foto img {
        width: 72px;
        height: 72px;
    }

}


/* ================================================================
   4K
   ================================================================ */

@media (min-width: 3000px) {

    .encabezado {

        flex-basis: 190px;

        padding: 0 70px;

    }


    .logo {

        width: 220px;

    }


    .titulo-principal {

        font-size: 55px;

    }


    .titulo-secundario {

        font-size: 24px;

    }


    .reloj {

        font-size: 50px;

    }


    .fecha-actual {

        font-size: 22px;

    }


    .tabla-header {
        flex-basis: 85px;
        font-size: 26px;
    }


    .fecha {

        width: 105px;

        height: 105px;

        border-radius: 16px;

    }


    .fecha .dia {

        font-size: 43px;

    }


    .fecha .mes {

        font-size: 19px;

    }


    .fecha .anio {

        font-size: 14px;

    }


    .nombre-persona {
        font-size: 26px;
    }


    .sala-numero {

        min-width: 135px;

        height: 65px;

        padding: 0 20px;

        font-size: 26px;
        font-weight: 600;
        line-height: 1.2;

    }


    .horario {
        width: 170px;
        height: 70px;
        font-size: 45px;

    }


    .destino {

        font-size: 36px;

    }


    .informacion {

        font-size: 24px;

    }


    .foto img {

        width: 100px;

        height: 100px;

        border-width: 4px;

    }

}


/* ================================================================
   ANIMACIÓN DE PÁGINA
   ================================================================ */

@keyframes aparecer-pagina {

    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }

}




/* ================================================================
   ANDROID TV / GOOGLE TV
   Full HD físico 1920x1080 - WebView CSS aprox. 960x540
   ================================================================ */

@media screen
and (min-width: 800px)
and (max-width: 1100px)
and (max-height: 650px)
and (orientation: landscape) {

    /* ------------------------------------------------------------
       ENCABEZADO
       ------------------------------------------------------------ */

    .encabezado {
        flex: 0 0 100px;
        grid-template-columns: 180px 1fr 230px;
        padding: 0 28px;
    }

    .logo {
        width: 120px;
        max-height: 78px;
    }

    .titulo-principal {
        font-size: 30px;
        letter-spacing: 2px;
    }

    .titulo-secundario {
        margin-top: 4px;
        font-size: 14px;
    }

    .fecha-actual {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .reloj {
        font-size: 29px;
        letter-spacing: 1px;
    }


    /* ------------------------------------------------------------
       COLUMNAS

       Fecha        9%
       Nombre      28%
       Lugar       14%
       Horario     12%
       Destino     15%
       Información 17%
       Foto         5%

       Total       100%
       ------------------------------------------------------------ */

    .tabla-header,
    .servicio {
        grid-template-columns:
            9%
            28%
            14%
            12%
            15%
            17%
            5%;
    }


    /* ------------------------------------------------------------
       CABECERA DE LA TABLA
       ------------------------------------------------------------ */

    .tabla-header {
        flex: 0 0 48px;
        font-size: 12px;
        letter-spacing: .7px;
    }


    /* ------------------------------------------------------------
       FECHA
       ------------------------------------------------------------ */

    .fecha {
        width: 58px;
        height: 58px;
        border-radius: 9px;
    }

    .fecha .dia {
        font-size: 25px;
    }

    .fecha .mes {
        margin-top: 3px;
        font-size: 10px;
    }

    .fecha .anio {
        margin-top: 2px;
        font-size: 8px;
    }


    /* ------------------------------------------------------------
       NOMBRE
       ------------------------------------------------------------ */

    .nombre {
        padding: 0 10px;
    }

    .nombre-persona {
        font-size: 20px;
        line-height: 1.12;
    }


    /* ------------------------------------------------------------
       LUGAR
       ------------------------------------------------------------ */

    .sala {
        justify-content: flex-start;
    }

    .sala-numero {
        min-width: 0;
        width: 100%;
        height: auto;
        padding: 0 5px;
        justify-content: flex-start;

        font-size: 18px;
        line-height: 1.15;
        white-space: nowrap;
    }


    /* ------------------------------------------------------------
       HORARIO
       ------------------------------------------------------------ */

    .horario {
        width: auto;
        height: auto;
        margin: 0;
        justify-content: flex-start;

        font-size: 19px;
        letter-spacing: 0;
        white-space: nowrap;
    }


    /* ------------------------------------------------------------
       DESTINO / ESTADO
       ------------------------------------------------------------ */

    .destino {
        padding: 0 5px;
        font-size: 18px;
        line-height: 1.1;
    }


    /* ------------------------------------------------------------
       INFORMACIÓN
       ------------------------------------------------------------ */

    .informacion {
        padding: 0 8px;
        font-size: 12px;
        line-height: 1.25;
    }

    .sin-informacion {
        font-size: 16px;
    }


    /* ------------------------------------------------------------
       FOTO
       ------------------------------------------------------------ */

    .foto img {
        width: 46px;
        height: 46px;
        border-width: 2px;
    }


    /* ------------------------------------------------------------
       PAGINACIÓN
       ------------------------------------------------------------ */

    .indicador-paginas {
        bottom: 3px;
        gap: 5px;
        padding: 4px 8px;
    }

    .indicador {
        width: 6px;
        height: 6px;
    }

    .indicador.indicador-activo {
        width: 20px;
    }


    /* ------------------------------------------------------------
       PIE
       ------------------------------------------------------------ */

    .pie-pantalla {
        flex: 0 0 28px;
        padding: 0 18px;
        font-size: 9px;
    }
}