@font-face {
    font-family: Calibri-Light;
    src: url('../fonts/Calibri/Calibri-Light.woff');
}

@font-face {
    font-family: AngencyFb;
    src: url('../fonts/Agency/AGENCYR.woff');
}

@font-face {
    font-family: HelveticaNeue;
    src: url('../fonts/helvetica/HelveticaNeueLTStd-LtCn.woff');
}

@font-face {
    font-family: HelveticaNeue-light;
    src: url('../fonts/helvetica/HelveticaNeueLTStd-UltLtCn.woff');
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 0.83vw;
    font-family: 'AngencyFb';
    width: 1920px;
    height: 1080px;
    overflow: hidden;
}

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: white;
    position: relative;
}

.green-background {
    height: 60%;
    width: 5%;
    background-color: white;
    position: absolute;
    z-index: 0;
    top: 35%;
    left: 15%;
    opacity: 0;
}

#header {
    z-index: 10;
    box-sizing: border-box;
    height: 10.5%;
    width: 100%;
    position: absolute;
    top: 1.7rem;
    left: 0;
    padding: 1.5rem 2.9rem;
    display: flex;
    color: #515254;
    justify-content: space-between;
    background: white;
    box-shadow: 5px 5px 48px 0px grey;
    opacity: 0;
}

#header .seccion-titulo-principal {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    font-size: 2.3rem;
    text-transform: uppercase;
    font-weight: 100;
}

#header .titulo-plantilla {
    font-weight: 100;
    opacity: 0;
}

.icono-accidente {
    height: 56px;
    opacity: 0;
}

.car-fine {
    position: absolute;
    left: -200px;
    top: 5%;
    z-index: 10;
}

.fecha-hoy {
    position: absolute;
    left: 18%;
    top: 26%;
    box-shadow: 0 0 10px rgb(0 0 0 / 50%), 0 0 30px rgb(0 0 0 / 50%);
    background: white;
    color: grey;
    width: 7%;
    border-radius: 25px;
    font-family: 'HelveticaNeue';
    font-size: 3rem;
    padding: 0.7rem 1.2rem;
    transform: rotate(5deg);
    z-index: 9;
    opacity: 0;
    transform-origin: top right;
}

.month {
    font-weight: 100;
    font-family: 'HelveticaNeue-light';
    line-height: 1;
}

.dia {
    font-size: 3.5rem;
    line-height: 0.8;
}


#header .seccion-titulo-secundario {
    opacity: 0;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    font-size: 3.2rem;
}

.container-avisos {
    position: relative;
    width: 63px;
    height: 57px;
}

.icono-excla {
    position: absolute;
    left: 38%;
    top: 29%;
    height: 34px;
    opacity: 0.5;
}

.icono-avisos {
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.titulo-avisos {
    margin-right: 1rem;
}



#content {
    opacity: 0;
    z-index: 10;
    height: 70%;
    box-sizing: border-box;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    left: 17.5%;
    top: 16.5%;
}

.line1,
.line2,
.line3 {
    opacity: 0;
}

.line0,
.line2 {
    background-color: #F5F5F5;
}

.table {
    width: 50%;
    display: none;
}

.img-container {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.soloTexto .img-container {
    display: none;
}


.tipo0,
.tipo1,
.tipo2 {
    opacity: 0;
}

.fade {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 1000;
    background-color: white;
    opacity: 1;
}

table {
    width: 100%;
}

.leyenda-container {
    background-color: rgba(99, 98, 93, 0.9);
    color: white;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

p.titulo-leyenda {
    font-size: 3rem;
    text-align: center;
    width: 95%;
}

p.mas {
    margin-top: 2rem;
    font-size: 3rem;
    text-align: center;
}

.azul {
    color: orange;
}

ul.lista-tipos {
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1.5rem;
}

.icono-tipo {
    margin-right: 1rem;
}

.mas-info-flecha {
    position: absolute;
    left: 88.5%;
    top: 24%;
    z-index: 9;
    opacity: 0;
    animation: floatRandom 10s 3s ease-in-out infinite;
}

.mas-info {
    position: absolute;
    left: 76.5%;
    top: 16%;
    z-index: 9;
    opacity: 0;
    animation: floatRandom 20s 3s ease-in-out infinite;
}

.codigo-qr {
    width: 17%;
    position: absolute;
    left: 73.5%;
    top: 34%;
    border-radius: 0px 25px 25px 0px;
    /* transform: rotate(85deg); */
    transform: rotate(-5deg);
    padding: 1rem 1rem;
    background: white;
    box-shadow: 5px 5px 33px 0px grey;
    z-index: 9;
    opacity: 0;
    transform-origin: top left;
}


#leafletMap {
    width: 1187px;
    height: 773px;
    /* width: 50%;
    height: 100%; */
    mask-image: url('./../imgs/VENTANA\ 3D\ copia2.png.png');
    -webkit-mask-image: url('./../imgs/VENTANA\ 3D\ copia2.png');
    /* margin-top: calc( (100vh - 10rem - 700px ) / 2 ); */

    /* box-shadow: 0 0 10px rgb(0 0 0 / 50%), 0 0 30px rgb(0 0 0 / 50%); */
}

.border-map {
    position: absolute;
    left: 50%;
    top: -3px;
    transform: translateX(-50%);
    width: 1162px;
}

.vertical #title {
    font-size: 2.5rem;
}

.leyenda {
    position: absolute;
    right: 0.7%;
    bottom: 0.7%;
    font-size: 1.2rem;
    z-index: 9;
    opacity: 0;
}

.background {
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    z-index: -1;
}

.background img {
    width: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.popup-text {
    font-size: 2rem;
    line-height: 2rem;
    font-weight: 100;
    font-family: 'Calibri-Light';
}

.leaflet-popup-content {
    width: 500px !important;
}

/* animacion inicio */
.container-inicio {
    position: relative;
    width: 1920px;
    height: 1080px;
}

.layer {
    position: absolute;
    width: 100%;
    height: auto;
    opacity: 0;
}

/* Opcional: Ajustes para cada capa */
#fondo {
    z-index: 1;
    bottom: -840px;
}

#carretera {
    z-index: 3;
    bottom: 0;
}

#edificios {
    z-index: 2;
    bottom: 12%;
    transform-origin: top;
    /* El origen de la transformación será la parte superior */
}

#postes {
    z-index: 9;
    bottom: 3%;
}

.car-left {
    position: absolute;
    bottom: 4%;
    left: -600px;
    z-index: 5;
}

.car-right {
    position: absolute;
    bottom: 8%;
    left: 100%;
    z-index: 4;
}


#muestraDatos {
    font-family: arial, sans-serif;
    color: #ffffff;
    font-size: 1.25rem;
    opacity: 0;
    background-color: #222222;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 90%;
    word-wrap: break-word;
    overflow: auto;
    z-index: 200;
}



@keyframes floatRandom {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(0.5em, -0.7em);
    }

    20% {
        transform: translate(-0.4em, 0.5em);
    }

    30% {
        transform: translate(0.6em, 0.2em);
    }

    40% {
        transform: translate(-0.5em, -0.6em);
    }

    50% {
        transform: translate(0.4em, 0.4em);
    }

    60% {
        transform: translate(-0.7em, 0.3em);
    }

    70% {
        transform: translate(0.5em, -0.5em);
    }

    80% {
        transform: translate(-0.3em, 0.6em);
    }

    90% {
        transform: translate(0.6em, -0.4em);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* ejemplo de slider  */
.image-wrapper {
    position: absolute;
    width: 1920px;
    height: 1080px;
    overflow: hidden;
    user-select: none;
    left: 0;
    top: 0;
    z-index: 100;
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    /* Evita selección en cada imagen */
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    /* Evita selección en cada imagen */
}

.image-left {
    clip-path: inset(0 50% 0 0);
    /* Inicialmente 50% visible desde la derecha */
    z-index: 1;
}

.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: black;
    cursor: ew-resize;
    left: 50%;
    display: flex;
    align-items: center;
    z-index: 102;
    user-select: none;
}

.slider-line {
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: #000;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(12px);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    /* background-color: #fff; */
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.slider-handle::before,
.slider-handle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
}

.slider-handle::before {
    border-right: 15px solid black;
    left: -30px;
}

.slider-handle::after {
    border-left: 15px solid black;
    right: -30px;
}

/* Estilos del Botón Volver */
.volver-btn {
    display: none;
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #003366;
    color: white;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s;
    z-index: 200;
    font-family: 'AngencyFb';
}

.volver-btn:hover {
    background-color: #00509e;
    transform: translateX(-50%) scale(1.1);
}