@media (orientation:portrait) {

    * {
        height: 100%;
        width: 100%;
        border-collapse: collapse;
    }

    html,
    body {
        height: 100%;
        width: 100%;
        background-color: var(--gris);
        margin: 0;
        padding: 0;
        overflow: hidden;
        position: absolute;
    }

    sup {
        vertical-align: text-top;
    }

    .progress_p {
        width: calc(75% - 50px);
    }

    .loading-gif {
        width: 50px;
    }

    /* index.php */
    .modal.cargando.met {
        background-color: var(--verde);
    }

    .modal.cargando.mar {
        background-color: var(--azul);
    }

    .version-item {
        max-height: 50%;
    }

    .modal-head-index {
        height: 5%;
    }

    #btnAcercaDe-v {
        height: 100%;
        width: auto;
    }

    .modal-body-index {
        max-height: 80%;
    }

    .version-select {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;

    }

    .modal-footer-index {
        height: 10%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .portrait-hidden {
        display: none !important;
    }

    .modal {
        display: none;
    }

    #logo_hm {
        display: none;
    }

    .modal-logo-container {
        display: flex;
        justify-content: center;
    }

    #logo2 {
        display: flex;
    }

    .modal-logo-container,
    #closeEstacion {
        height: 10%;
    }

    #modalSelectEstacion {
        visibility: visible;
        height: 100%;
        width: 100%;
    }

    #modalSelectEstacionMet {
        background: var(--verde);
    }

    .modal-content-mar {
        height: 100%;
        width: 100%;
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;
    }

    .selector-estacion-wrapper {
        height: 30%;
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
    }

    .webapp-select {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-self: center;
        color: white;
        width: 80%;
    }

    .select-label {
        height: initial;
    }

    .select-input {
        align-self: center;
        height: initial;
    }

    .panel-root {
        visibility: visible;
        height: 100%;
        width: 100%;
        display: flex;
        flex-flow: column nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        overflow: hidden;
    }

    .topbar-portrait {
        height: 10%;
        width: 100%;
        background: var(--gris);
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        align-items: center;
    }

    .select-caletas {
        height: 5%;
        width: 100%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-end;
        align-items: center;
        position: absolute;
        top: 10%;
    }

    .select-caletas span {
        width: auto;
        height: 100%;
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
    }

    .select-caletas select {
        height: 100%;
        width: auto;
    }

    .topbar-portrait-el {
        height: 95%;
        padding-top: 2%;
    }

    .topbar-landscape {
        display: none;
    }

    .icoModuloLink {
        width: 20%;
        margin-left: 5%;
    }

    .desc-seccion,
    #full-screen {
        display: none;
    }

    .logo-ceaza {
        display: flex;
        width: 17%;
        height: 100%;
        padding-left: 3%;
    }

    .logo-link {
        width: 100%;
        height: 100%;
    }

    .btnEstaciones {
        width: 25%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btnEstaciones-25 {
        width: 25%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btnEstaciones-33 {
        width: 33%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sidebar {
        height: 10%;
        width: 100%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-end;
        position: absolute;
        bottom: 0;
    }

    .flex-me {
        display: flex !important;
    }

    .sidebar-inner-container {
        height: 100%;
        width: 90%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        background: var(--gris);
        align-items: flex-start;
        gap: 0px;
    }

    .img-seccion {
        height: 95%;
        width: 95%;
        align-self: center;
        transition: 0.12s;
        background: var(--azul);
    }

    .img-seccion-on {
        background: var(--verde);
    }

    .menu-el {
        height: 100%;
        width: 50%;
        /* width: auto; */
        flex: 1;
        text-align: center;
    }

    .menu-item {
        display: flex;
        width: 33%;
        flex-flow: row nowrap;
        /* flex: 1 0 0; */
        height: 100%;
    }

    .menu-item-50 {
        display: flex;
        width: 50%;
        flex-flow: row nowrap;
        flex: 1 0 0;
        height: 100%;
    }

    .sidemenu {
        display: flex;
        flex-flow: row nowrap;
        flex: 1;
        gap: 2px;
        justify-content: flex-end;
    }

    #ico_udato {
        border-radius: 10px 0 0 10px;
    }

    .geo-div {
        background: var(--gris);
        text-align: left;
        display: flex;
        flex-flow: row nowrap;
        flex: 1;
        justify-content: flex-start;
    }

    .geo-div.menu-el.landscape-hidden {
        max-width: 50%;
    }


    .seccion-oculta,
    .hidden-sidebar-option {
        display: none;
    }

    .seccion-main-activa {
        display: flex;
        flex-flow: column nowrap;
        height: 75%;
        overflow: hidden;
        position: absolute;
        top: 15%;
        justify-content: flex-start;
        width: 100%;
        align-items: center;
    }

    .s1 {
        flex-flow: column nowrap;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .s1-columna {
        display: flex;
        flex-flow: column wrap;
        width: 100%;
        height: 55%;
        padding-bottom: 5%;
        align-items: center;
        justify-content: center;
    }

    .s1-columna-marquee {
        width: 100%;
        height: 40%;
    }

    .s1-marquee {
        background: var(--verde);
        width: 90%;
        height: 90%;
        border-radius: 30px;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: space-evenly;
    }

    .marquee-ico {
        width: 40%;
        margin-left: auto;
        height: 100%;
        display: flex;
        flex-flow: column;
        justify-content: center;
    }

    .marquee-ico>img {
        height: 70%;
        width: auto;
    }

    .p-marquee {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;
        font-size: clamp(36px, 38px, 70px);
        height: 100%;
        color: white;
        font-size: 30px;
        width: 50%;
        margin-right: auto;
    }

    .unidad-marquee {
        width: auto;
        align-self: self-start;
    }

    .dato-marquee {
        width: 100%;
        height: 50%;
        align-self: self-start;
    }

    #temperatura {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-self: center;
        border-collapse: collapse;
        height: auto;
        line-height: 1;
        letter-spacing: 0em;
        font-size: clamp(58px, 5vw, 90px);
        font-weight: 500;
        font-style: normal;
        letter-spacing: -0.08em;
    }

    .s1-columna-datos-sec {
        align-items: center;
        justify-content: center;
    }

    .s1-fila {
        display: flex;
        flex-flow: column nowrap;
        width: 50%;
        height: 50%;
    }

    .nom-udato {
        display: none;
    }

    .dato {
        font-size: clamp(20px, 4vw, 50px);
        width: auto;
        align-self: center;
    }

    .iconos-dashboard {
        height: 75%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
    }

    .dashboard-img {
        width: auto;
        height: 90%;
    }

    .s1-contenido {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        height: auto;
    }

    .unidad {
        align-self: center;
        width: auto;
        height: auto;
    }

    .p-udato {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
    }

    .desc-seccion {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;
        width: auto;
        margin-right: 5%;
        gap: 0px;
    }

    .titulo-seccion,
    .subtitulo-seccion,
    .ultimodato-subtitulo-seccion {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        height: 30%;
        align-items: flex-end;
        font-size: 1.5rem;
    }

    .titulo-seccion {
        font-weight: 700;
        font-size: 1.7rem;
        /* font-size: clamp(18px, 2vw, 30px);
        padding-top: 5%; */
    }

    span.titulo-estacion {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        justify-content: center;
        font-weight: bold;
    }

    span.titulo-comuna {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        justify-content: center;
        font-weight: regular;
    }

    .ultimodato-subtitulo-seccion {
        height: 20%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
        font-size: 0.7rem;
    }

    .subtitulo-seccion {
        font-size: 1.2rem;
        height: 20%;
        display: flex;
        flex-flow: row;
    }

    div#ultimo {
        height: 75%;
    }

    .titulo-comuna {
        display: none;
    }

    .ulectura-prefijo,
    .ultima-lectura,
    .estacion-cercana {
        width: auto;
        /* font-size: clamp(5px,10px,15px); */
    }

    /* pronostico */

    .s3 {
        flex-flow: column nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .mod-s3.sub-menu {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-evenly;
        align-items: center;
        height: 15%;
        flex: 0 1 60px;
        background: var(--azul);
    }

    #id-s2 {
        height: 90%;
        width: 100%;
        position: absolute;
        top: 10%;
    }

    .mod-s2.sub-menu,
    .mod-s3.sub-menu {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-evenly;
        align-items: center;
        height: 10%;
        flex: 0 1 60px;
        width: 100%;
        overflow: hidden;
        background: var(--azul);
        position: absolute;
    }

    .s2-img,
    .s3-link {
        height: 90%;
        max-width: 20%;
        align-self: center;
        width: auto;
    }

    /* orden */

    #topbar-v {
        order: 1;
    }

    #sidebar {
        order: 4;
    }

    #el-select-caletas {
        order: 2;
    }

    #pronostico {
        order: 3;
    }

    .widget-tsm-gif {
        width: auto;
        max-height: 80%;
        align-self: center;
    }

    #id-s3 {
        display: flex;
        flex-flow: column nowrap;
    }

    .d-flex-col {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        height: 100%;
    }

    .prod-cita {
        margin: 0;
        height: auto;
    }

    .modal-logo-container,
    #closeEstacion {
        height: 25%;
    }

    .selector-estacion-wrapper {
        height: 20%;
    }

    .webapp-select {
        justify-content: center;
        align-self: center;
        gap: 15px;
    }


    #closeEstacion {
        padding-top: 0;
        height: 15%;
        width: 30%;
        align-self: center;
    }


    .modal-mod-body {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: 80%;
        border: 1px solid #989898;
        border-radius: 1%;
        box-shadow: 4px 5px 7px 1px #a7a7a7;
        background: var(--azul);
    }

    .label_estaciones {
        font-size: 20px;
    }

    .desc-seccion {
        width: 90%;
        margin: 0;
        display: flex;
        padding: 0;
        align-items: flex-start;
        justify-content: center;
    }

    .sidebar-inner-container {
        width: 100%;
    }

    .img-seccion {
        height: 95%;
        width: 100%;
    }

    .dato-marquee {
        height: auto;
    }

    #marquee-ahora {
        height: 25%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
    }

    .s3-contenido {
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        height: 90%;
        position: absolute;
        top: 10%;
        align-items: center;
    }


    /* Modal Header */
    .modal-header {
        background-color: var(--azul);
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0%;
        width: 100%;
        height: 10%;
        flex-flow: row nowrap;
    }

    #modalSelectVersion {
        height: 100%;
    }

    .close_viento {
        font-size: clamp(20px, 100%, 40px);
        font-weight: bold;
        width: 5%;
        align-self: center;
        color: var(--gris);
        background: var(--azul);
        min-height: 20%;
        display: flex;
        align-items: center;
    }

    h2.acercaDe {
        display: flex;
        align-items: center;
    }

    .modal-body p,
    h3 {
        height: auto;
        width: 100%;
        text-align: justify;
    }

    .modal-body {
        overflow: hidden scroll;
        height: 85%;
    }

    .modal-footer {
        height: 5%;
    }

    .modal-body-index {
        overflow: hidden;
    }

    .modal-footer-index {
        height: 10%;
    }

    .acerca-nosotros {
        font-size: clamp(18px, 1vh, 30px);
    }

    .acerca-mail {
        font-size: clamp(15px, 1vh, 25px);
    }

    .acercaDe_links {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: space-around;
    }

    .acercaDe_links a {
        height: 100%;
        width: auto;
        max-width: 30%;
    }

    .widget-oce {
        height: 85%;
    }

    .p-contenido {
        height: 5%;
        width: 100%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
    }

    .widget-viento {
        height: 95%;
    }

    /* breakpoints */

    @media (max-width: 376px) {
        .titulo-seccion {
            font-size: 1.3rem;
        }

        span.titulo-estacion {
            font-size: 1rem;
        }

    }

    @media (min-width: 377px) and (max-width: 434.99px) {
        .titulo-seccion {
            font-size: 1.5rem;
        }

        span.titulo-estacion {
            font-size: 1.1rem;
        }
    }

    @media (min-width: 435px) and (max-width: 700px) {
        .titulo-seccion {
            font-size: 2.5rem;
        }

        span.titulo-estacion {
            font-size: 1.8rem;
        }

        .ultimodato-subtitulo-seccion {
            font-size: 1.2rem;
        }
    }

    @media (min-width: 701px) and (max-width: 1025px) {
        .titulo-seccion {
            font-size: 1.5rem;
        }

        .subtitulo-seccion>* {
            font-size: 1rem;
        }
    }


    @media (max-width: 740px) {
        .widget-viento-gif {
            max-height: 85%;
            width: auto;
        }

    }

    .actualizar {
        width: 25%;
    }

    .btn-actualizar {
        width: 100%;
    }
}