/* ============================================================
   JARDÍN DEL CIELO
   PANTALLA DE SERVICIOS
   ============================================================ */


/* ============================================================
   CONFIGURACIÓN GENERAL
   ============================================================ */

html,
body {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    font-family: "Roboto", sans-serif;

    background: #f3f3f3;
    color: #262626;
}


* {
    box-sizing: border-box;
}


body {
    min-height: 100vh;
}


/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.pantalla-informacion {
    width: 100vw;
    height: 100vh;

    display: grid;

    /*
        HEADER
        CABECERA TABLA
        SERVICIOS
        FOOTER
    */

    grid-template-rows:
        100px
        48px
        1fr
        54px;

    background: #f3f3f3;

    overflow: hidden;
}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.encabezado {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns:
        135px
        320px
        1fr
        320px;

    align-items: center;

    padding: 0 32px;

    /* Degradado vertical */
    background: linear-gradient(
        180deg,
        #28754d 0%,
        #347d57 45%,
        #4c916c 100%
    );

    color: #ffffff;
}

/* ============================================================
   LOGO
   ============================================================ */

.logo-container {
    height: 62px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    padding-right: 20px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.55);
}


.logo {
    width: 95px;

    max-width: 95px;
    max-height: 65px;

    object-fit: contain;
}


/* ============================================================
   TÍTULO
   ============================================================ */

.titulo-pantalla {
    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;

    padding-left: 25px;

    text-align: left;
}


.titulo-principal {
    font-family: "Besley", serif;

    font-size: 36px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 0;

    color: #ffffff;
}


.titulo-secundario {
    margin-top: 6px;

    font-family: "Roboto", sans-serif;

    font-size: 14px;

    font-weight: 400;

    line-height: 1;

    letter-spacing: 0;

    color: #ffffff;

    opacity: 0.95;
}


/* ============================================================
   FECHA Y HORA
   ============================================================ */

.fecha-hora {
    grid-column: 4;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-end;

    text-align: right;
}


.reloj {
    font-family: "Besley", serif;

    font-size: 40px;

    font-weight: 500;

    line-height: 1;

    letter-spacing: 0;

    color: #ffffff;
}


.fecha-actual {
    margin-top: 7px;

    font-family: "Roboto", sans-serif;

    font-size: 14px;

    font-weight: 400;

    line-height: 1;

    color: #ffffff;

    opacity: 0.95;
}


/* ============================================================
   CABECERA DE LA TABLA
   ============================================================ */

.tabla-header {
    position: relative;

    display: grid;

    /*
        FOTO
        FECHA
        NOMBRE
        LUGAR
        HORARIO
        DESTINO
        INFORMACIÓN
    */

    grid-template-columns:
        125px
        110px
        1.7fr
        1fr
        1fr
        1.2fr
        1.5fr;

    align-items: center;

    width: 100%;
    height: 100%;

    padding: 0 25px;

    background: #ffffff;

    color: #28754d;

    font-family: "Roboto", sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.2px;
}


.tabla-header > div {
    padding-left: 12px;
    padding-right: 12px;

    min-width: 0;
}


/*
   Línea verde debajo de los títulos
*/

.tabla-header::after {
    content: "";

    position: absolute;

    left: 28px;
    right: 28px;

    bottom: 0;

    height: 2px;

    background: #28754d;
}


/* ============================================================
   CONTENEDOR DE SERVICIOS
   ============================================================ */

#contenedor-servicios {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #ffffff;
}


/* ============================================================
   PÁGINAS
   ============================================================ */

.pagina-servicios {
    display: none;

    width: 100%;
    height: 100%;
}


.pagina-servicios.pagina-activa {
    display: grid;

    /*
        5 servicios por pantalla
    */

    grid-template-rows:
        repeat(5, 1fr);

    animation:
        aparecerPagina
        0.35s
        ease;
}


/* ============================================================
   FILA DE SERVICIO
   ============================================================ */

.servicio {
    display: grid;

    grid-template-columns:
        125px
        110px
        1.7fr
        1fr
        1fr
        1.2fr
        1.5fr;

    align-items: center;

    min-height: 0;

    padding: 5px 25px;

    background: #ffffff;

    border: none;
}


/* ============================================================
   FILAS ALTERNADAS
   ============================================================ */

.servicio:nth-child(odd) {
    background: #ffffff;
}


.servicio:nth-child(even) {
    background: #f2f2f2;
}


/* ============================================================
   ESPACIADO DE LAS COLUMNAS
   ============================================================ */

.servicio > div {
    min-width: 0;

    padding-left: 12px;
    padding-right: 12px;
}


/* ============================================================
   FOTO
   ============================================================ */

.foto {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding-top: 5px !important;
    padding-bottom: 5px !important;
}


.foto img {
    width: 76px;
    height: 76px;

    object-fit: cover;

    border-radius: 50%;

    border: none;

    box-shadow: none;
}


/* ============================================================
   FECHA
   ============================================================ */

/* ============================================================
   FECHA
   ============================================================ */

.fecha {
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    text-align: left;

    line-height: 1;
}


/* DÍA */

.fecha .dia {
    display: block;

    font-family: "Besley", serif;

    font-size: 36px;
    font-weight: 700;

    line-height: 0.90;

    color: #28754d;
}


/* MES + AÑO */

.mes-anio {
    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: 8px;

    white-space: nowrap;
}


.fecha .mes,
.fecha .anio {
    margin: 0;

    font-family: "Roboto", sans-serif;

    font-size: 13px;
    font-weight: 600;

    line-height: 1;

    color: #222222;

    letter-spacing: 0.3px;
}


/* ============================================================
   NOMBRE
   ============================================================ */

.nombre {
    height: 100%;

    display: flex;

    align-items: center;
}


.nombre-persona {
    width: 100%;

    font-family: "Besley", serif;

    font-size: 20px;

    font-weight: 600;

    line-height: 1.08;

    color: #28754d;

    overflow-wrap: break-word;
}


/* ============================================================
   SALA / LUGAR
   ============================================================ */

.sala {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: flex-start;
}


.sala-numero {
    display: inline;

    min-width: 0;

    padding: 0;

    background: transparent;

    border-radius: 0;

    font-family: "Roboto", sans-serif;

    font-size: 15px;

    font-weight: 400;

    line-height: 1.2;

    color: #292929;

    text-align: left;
}


/* ============================================================
   HORARIO
   ============================================================ */

.horario {
    height: 100%;

    display: flex;

    align-items: center;

    font-family: "Roboto", sans-serif;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.2;

    color: #292929;
}


/* ============================================================
   DESTINO
   ============================================================ */

.destino {
    height: 100%;

    display: flex;

    align-items: center;

    font-family: "Roboto", sans-serif;

    font-size: 14px;

    font-weight: 400;

    line-height: 1.2;

    color: #292929;

    overflow-wrap: break-word;
}


/* ============================================================
   INFORMACIÓN
   ============================================================ */

.informacion {
    height: 100%;

    display: flex;

    align-items: center;

    font-family: "Roboto", sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.25;

    color: #292929;

    overflow-wrap: break-word;
}


.sin-informacion {
    font-size: 18px;

    color: #aaaaaa;
}


/* ============================================================
   SIN SERVICIOS
   ============================================================ */

.sin-servicios {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    font-family: "Roboto", sans-serif;

    font-size: 20px;

    font-weight: 500;

    letter-spacing: 1px;

    color: #777777;
}


.sin-servicios-icono {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e7ece9;

    color: #28754d;

    font-size: 28px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.pie-pantalla {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 32px;

    background: #28754d;

    color: #ffffff;
}


/* ============================================================
   CONTENIDO IZQUIERDO DEL FOOTER
   ============================================================ */

.pie-contenido {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: flex-start;
}


/* ============================================================
   MARCA FOOTER
   ============================================================ */

.pie-marca {
    font-family: "Besley", serif;

    font-size: 18px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    color: #ffffff;
}


/* ============================================================
   SEPARADOR DEL FOOTER
   ============================================================ */

.pie-separador {
    width: 1px;
    height: 22px;

    flex-shrink: 0;

    margin-left: 22px;
    margin-right: 22px;

    background:
        rgba(
            255,
            255,
            255,
            0.65
        );
}


/* ============================================================
   TEXTO DEL FOOTER
   ============================================================ */

.pie-texto {
    font-family: "Roboto", sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1;

    white-space: nowrap;

    color: #ffffff;

    opacity: 0.95;
}


/* ============================================================
   INDICADORES DE PÁGINA
   ============================================================ */

.indicador-paginas {
    width: auto;
    height: auto;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-shrink: 0;

    gap: 8px;

    padding: 0;

    background: transparent;
}


.indicador {
    display: block;

    width: 9px;
    height: 9px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.45
        );

    transition:
        width 0.25s ease,
        background 0.25s ease;
}


.indicador-activo {
    width: 24px;

    border-radius: 10px;

    background: #ffffff;
}


/* ============================================================
   ANIMACIÓN ENTRE PÁGINAS
   ============================================================ */

@keyframes aparecerPagina {

    from {
        opacity: 0;

        transform:
            translateY(5px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* ============================================================
   PANTALLAS HASTA 1400px
   ============================================================ */

@media (max-width: 1400px) {

    .pantalla-informacion {
        grid-template-rows:
            90px
            42px
            1fr
            48px;
    }


    /* --------------------------------------------------------
       HEADER
       -------------------------------------------------------- */

    .encabezado {
        grid-template-columns:
            120px
            290px
            1fr
            280px;

        padding:
            0 25px;
    }


    .logo-container {
        height: 58px;

        padding-right: 16px;
    }


    .logo {
        width: 85px;

        max-width: 85px;
        max-height: 58px;
    }


    .titulo-pantalla {
        padding-left: 20px;
    }


    .titulo-principal {
        font-size: 30px;
    }


    .titulo-secundario {
        margin-top: 5px;

        font-size: 12px;
    }


    .reloj {
        font-size: 34px;
    }


    .fecha-actual {
        margin-top: 5px;

        font-size: 12px;
    }


    /* --------------------------------------------------------
       TABLA
       -------------------------------------------------------- */

    .tabla-header,
    .servicio {
        grid-template-columns:
            105px
            90px
            1.7fr
            1fr
            1fr
            1.2fr
            1.5fr;

        padding-left: 18px;
        padding-right: 18px;
    }


    .tabla-header {
        font-size: 10px;
    }


    .tabla-header::after {
        left: 20px;
        right: 20px;

        height: 1px;
    }


    .foto img {
        width: 68px;
        height: 68px;
    }


    .fecha .dia {
        font-size: 25px;
    }


    .fecha .mes {
        font-size: 9px;
    }


    .fecha .anio {
        font-size: 9px;
    }


    .nombre-persona {
        font-size: 18px;
    }


    .sala-numero {
        font-size: 14px;
    }


    .horario {
        font-size: 14px;
    }


    .destino {
        font-size: 13px;
    }


    .informacion {
        font-size: 12px;
    }


    /* --------------------------------------------------------
       FOOTER
       -------------------------------------------------------- */

    .pie-pantalla {
        padding:
            0 25px;
    }


    .pie-marca {
        font-size: 16px;
    }


    .pie-separador {
        height: 18px;

        margin-left: 18px;
        margin-right: 18px;
    }


    .pie-texto {
        font-size: 11px;
    }


    .indicador {
        width: 7px;
        height: 7px;
    }


    .indicador-activo {
        width: 20px;
    }

}


/* ============================================================
   ANDROID TV / WEBVIEW
   VIEWPORT APROXIMADO 960 x 540
   ============================================================ */

@media (max-width: 1000px) {

    .pantalla-informacion {
        grid-template-rows:
            88px
            34px
            1fr
            40px;
    }


    /* --------------------------------------------------------
       HEADER
       -------------------------------------------------------- */

    .encabezado {
        grid-template-columns:
            110px
            250px
            1fr
            210px;

        padding:
            0 18px;
    }


    .logo-container {
        height: 54px;

        padding-right: 14px;
    }


    .logo {
        width: 78px;

        max-width: 78px;
        max-height: 52px;
    }


    .titulo-pantalla {
        padding-left: 17px;
    }


    .titulo-principal {
        font-size: 25px;
    }


    .titulo-secundario {
        margin-top: 4px;

        font-size: 9px;
    }


    .reloj {
        font-size: 27px;
    }


    .fecha-actual {
        margin-top: 4px;

        font-size: 9px;
    }


    /* --------------------------------------------------------
       TABLA
       -------------------------------------------------------- */

    .tabla-header,
    .servicio {
        grid-template-columns:
            78px
            67px
            1.8fr
            0.9fr
            0.95fr
            1.15fr
            1.4fr;

        padding-left: 10px;
        padding-right: 10px;
    }


    .tabla-header {
        font-size: 8px;

        letter-spacing: 0.7px;
    }


    .tabla-header::after {
        left: 12px;
        right: 12px;

        height: 1px;
    }


    .tabla-header > div,
    .servicio > div {
        padding-left: 6px;
        padding-right: 6px;
    }


    .servicio {
        padding-top: 3px;
        padding-bottom: 3px;
    }


    .foto img {
        width: 54px;
        height: 54px;
    }


    .fecha .dia {
        font-size: 20px;
    }


    .fecha .mes {
        margin-top: 3px;

        font-size: 8px;
    }


    .fecha .anio {
        font-size: 8px;
    }


    .nombre-persona {
        font-size: 14px;
    }


    .sala-numero {
        font-size: 10px;
    }


    .horario {
        font-size: 11px;
    }


    .destino {
        font-size: 10px;
    }


    .informacion {
        font-size: 9px;

        line-height: 1.15;
    }


    /* --------------------------------------------------------
       FOOTER
       -------------------------------------------------------- */

    .pie-pantalla {
        padding:
            0 18px;
    }


    .pie-marca {
        font-size: 12px;
    }


    .pie-separador {
        height: 14px;

        margin-left: 12px;
        margin-right: 12px;
    }


    .pie-texto {
        font-size: 8px;
    }


    .indicador-paginas {
        gap: 5px;
    }


    .indicador {
        width: 5px;
        height: 5px;
    }


    .indicador-activo {
        width: 16px;
    }

}


/* ============================================================
   RESOLUCIONES MUY PEQUEÑAS
   ============================================================ */

@media (max-width: 700px) {

    .titulo-secundario {
        display: none;
    }


    .fecha-actual {
        display: none;
    }


    .encabezado {
        grid-template-columns:
            95px
            180px
            1fr
            120px;
    }


    .titulo-principal {
        font-size: 18px;
    }


    .reloj {
        font-size: 20px;
    }


    .tabla-header,
    .servicio {
        grid-template-columns:
            65px
            55px
            1.6fr
            0.8fr
            0.9fr
            1fr
            1.2fr;
    }


    .foto img {
        width: 45px;
        height: 45px;
    }


    .nombre-persona {
        font-size: 12px;
    }


    .informacion {
        font-size: 8px;
    }


    .pie-texto {
        display: none;
    }


    .pie-separador {
        display: none;
    }

}