@font-face {
    font-family: "Intro Light";
    src: url('fonts/introlight.eot');
    src: url('fonts/introlight.eot?#iefix') format('embedded-opentype'),
    url('fonts/introlight.woff') format('woff'),
    url('fonts/introlight.ttf') format('truetype'),
    url('fonts/introlight.svg#Intro Light Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Proxima Nova Light";
    src: url('../fonts/ProximaNovaLight.otf');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Intro Bold";
    src: url('fonts/introbold.eot');
    src: url('fonts/introbold.eot?#iefix') format('embedded-opentype'),
    url('fonts/introbold.woff') format('woff'),
    url('fonts/introbold.ttf') format('truetype'),
    url('fonts/introbold.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Proxima Nova Bold";
    src: url('../fonts/ProximaNovaBold.otf');
    font-weight: 700;
    font-style: normal;
}

@font-face{
    font-family: "weather-icons";
    src: url('https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/font/weathericons-regular-webfont.eot');
    src: url('https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/font/weathericons-regular-webfont.svg') format('svg'),
    url('https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/font/weathericons-regular-webfont.ttf') format('truetype'),
    url('https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/font/weathericons-regular-webfont.woff') format('woff');
}


.container .articulo{
    padding: 0 14px;
    font-weight: 300;
}
.container .articulo .titulo{
    color: #6699CC;
    font-size: 2em;
    margin-bottom: 20px;

    font-weight:300 !important;
    text-transform: none;
    background-color: transparent !important;
    padding:0px;
}

section .con_inner{
    border-bottom: 1px solid #ededeb;
    color: #474747;
    padding: 10px;
    text-align: justify;
}

section:last-of-type .con_inner{
    border: none;
}

/*#footer {*/
/*background-color: #e5e5e5;*/
/*color: #666;*/
/*margin-top: 15px;*/
/*}*/

/*#footer #top {*/
/*padding: 15px;*/
/*}*/

#map_iframe {
    display: block;
    border: none;
    width: 100%;
    height: 100%;
}

/*#footer #bottom {*/
/*background-color: #ABABAB;*/
/*color: #FFFFFF;*/
/*text-align: center;*/
/*padding: 5px 0;*/
/*!*margin-right: 0px;*/
/*margin-left: 0px;*!*/
/*}*/

/*#footer a {*/
/*color: #337ab7;*/
/*font-size: 16px;*/
/*}*/

/*#footer #bottom a {*/
/*color: #FFFFFF;*/
/*font-size: 16px;*/
/*}*/

/*#footer #top #datos_contacto .domicilio .sede, #footer #top #datos_contacto .telefono {*/
/*font-weight: 700;*/
/*font-size: 1.2em;*/
/*}*/

/*#ubicacion{*/
/*font-size: 1em;*/
/*opacity: 0.7;*/
/*padding-left: 15px;*/
/*}*/

.titulo_monitoreo{
    color: #00457f;
    font-size: 1.5em;
    /*font-weight: 700;*/
}

.fa-circle-buena{
    color: #00A5E3;
}

.fa-circle-sat{
    color: #7FBB62;
}

.fa-circle-ns{
    color: #F29C12;
}

.fa-circle-mala{
    color: #C0382A;
}

.fa-circle-muymala{
    color: #8E43AD;
}

#map{
    padding-top: 75%;
    position: relative;
}

#map_ciudad{
    padding-top: 75%;
    position: relative;
}

#map > div{
    top: 0;
}

#map_ciudad > div{
    top: 0;
}

#map_wrapper #semaforo,
#map_wrapper #map,
#map_wrapper #map_ciudad{
    width: 100%;
}

#map_wrapper #semaforo{
    border: none;
}

/*#estaciones {*/
    /*margin-top: 10px;*/
/*}*/

#estaciones label{
    color: #00457f;
    display: block;
    font-size: 1.2em;
    font-weight: normal;
    margin-bottom: 1px;
    padding: 5px 10px;
}
#estaciones a{
    background: #fafafa;
    color: #036;
    display: block;
    margin-bottom: 1px;
    padding: 5px 10px;
    text-decoration: none;
    text-transform: capitalize;
}
#estaciones a:hover{
    background: #036;
    color: #fff;
}
.ciudad_estaciones a{
    background: #f9f9f9;
    color: #036;
    display: block;
    margin-bottom: 1px;
    padding: 5px 10px;
    text-decoration: none;
    text-transform: capitalize;
}
.ciudad_estaciones a:hover{
    background: #036;
    color: #fff;
}
.sem0{
    background: #EFEFEF;
}
#estaciones a.sem1{
    background: #238cbb;
}
#estaciones a.sem2{
    background: #7fbb62;
}
#estaciones a.sem3{
    background: #f8b600;
}
#estaciones a.sem4{
    background: #b92c2d;
}
#estaciones a.sem5{
    background: #72469a;
}

#semaforo{
    /*border: 1px solid #06a7e1;*/
    margin-top: 10px;
}

#semaforo p{
    margin: 2px 2px;
    text-align: center;
}

#semaforo div{
    padding: 5px 10px;
}

/*#estacion,*/
/*#graphs{*/
    /*margin: 10px 0;*/
/*}*/

#estacion .ciudad{
    color: #036;
    font-size: 32px;
    /*font-weight: bold;*/
    text-align: center;
}

#estatus{
    color: #fff;
    padding: 10px;
    text-align: center;
}
#estatus button {
    margin-right: 5px;
    margin-top: -50px;
    float: right;
    color: black !important;
}
#estatus.sem1{
    /*background: #00E400;*/
    background: #EFEFEF;
    color: #333333;
    /*border: 1px solid #333333;*/
    /*border-radius: 7px;*/
}
#estatus.sem2{
    /*background: #FFFF00;*/
    background: #EFEFEF;
    color: #333333;
    /*border: 1px solid #333333;*/
    /*border-radius: 7px;*/
    min-height: 270px;
}
#estatus.sem3{
    /*background: #FF7E00;*/
    background: #EFEFEF;
    color: #333333;
    /*border: 1px solid #333333;*/
    /*border-radius: 7px;*/
}
#estatus.sem4{
    /*background: #FF0000;*/
    background: #EFEFEF;
    /*color: #333333;*/
    /*border: 1px solid #333333;*/
    /*border-radius: 7px;*/
}
#estatus.sem5{
    /*background: #8F3F97;*/
    background: #EFEFEF;
    color: #333333;
    /*border: 1px solid #333333;*/
    /*border-radius: 7px;*/
}
#estatus .title{
    font-size: 32px;
    font-weight: bold;
    /*margin-bottom: 10px;*/
    text-align: center;
}
#estatus .col{
    float: left;
    width: 33.33%;
}
#estatus .col img{
    display: block;
    height: 64px;
    margin: 0 auto;
    width: 64px;
}
#estatus .col span{
    display: block;
    padding: 0 5px;
    text-align: center;
}

#precontingencia{
    /*background: #f87200;*/
    /*color: #fff;*/
    padding: 5px;
    text-align: center;
}

#clima > div{
    float: left;
    margin-bottom: 20px;
    width: 20%;
}
#clima > div span,
#clima > div img,
#clima > div strong{
    display: block;
    text-align: center;
}
#clima > div img{
    height: auto;
    margin: 10px auto;
    width: 50%;
}
#clima > #uv img{
    margin: 0 auto;
    width: 70%;
}

.tab-content {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 10px;
}

.nav-tabs {
    margin-bottom: 0;
}

.chart{
    height: 150px;
    width: 100%;
}

.btn-iee {
    color: #fff !important;
    background-color: #20C3F1;
    border-color: #1BA5CB;
}

.weathericon {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 2.5rem;
    text-align: center;
    display: block;
    line-height: 1;
}


.imgfon {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url(../img/compas.png);
}

.clima{
    width:100%;
}

.letra{
    font-size: 14px;
}

.modal-body #estaciones,
.modal-body #estaciones a{
    float:none;
}

.modal-body .ciudad_estaciones,
.modal-body .ciudad_estaciones a{
    float:none;
}

.tit_mob{
    top: 10px;
    position: absolute;
    font-size: 7vw;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

#mas_info{
    font-size: 16px;
    color: white;
    background-color: #00A5E3;
    text-align: center;
    padding: 3px 0px 3px 0px;
}

.mas_info{
    font-size: 18px;
    /*color: white;
    background-color: #00A5E3;*/
    text-align: center;
    padding: 3px 0px 3px 0px;
    margin-left: 1%;
}

.estacion_actual{
    font-size:1.5vw;
}

.texto_indicadores{
    line-height: 1em;
}

.espacio{
    width:20%;
}

#img_uv{
    max-height: 110px;
    min-width: 50px;
}

.txt_buena{
    background-color: #00E400 !important;
    color:#333333 !important;
}

.txt_sat{
    background-color: #FFFF00;
    color:#333333;
}

.txt_nosat{
    background-color: #FF7E00;
    color:white;
}

.txt_mala{
    background-color: #FF0000;
    color:white;
}

.txt_mmala{
    background-color: #8F3F97;
    color:white;
}

.txt_uv{
    background-color: #1E4687;
    color: white;
}

.txt_contingencia{
    background-color: #f87200;
    color:white;
}

.txt_bold{
    //font-family: "Proxima Nova Bold";
}

.txt_estacion{
    font-size: 20px;
    color: #ED3C95;
}

.link_modal{
    cursor: pointer;
}

.modal-body{
    /*max-height: 450px;*/
    overflow-y: auto;
}

.visible-xs-iee{
    display: none;
}

.actualizacion{
    text-align: center;
    margin-bottom: 0px;
    color: darkgray;
    font-size: 12px;
}

/*#navbar-menu .dropdown-menu {*/
/*background-color: #f9f9f9;*/
/*text-align: center;*/
/*padding: 0;*/
/*}*/

/*.dropdown-menu li a{*/
/*color:black !important;*/
/*min-width: 205px;*/
/*}*/

.table_info_ciudad{
    width:100%;
    text-align: center;
    border-spacing: 10px;
}

.table_semaforo{
    width: 100%;
    text-align: center;
}

.centrar{
    text-align: center;
}

.table_100{
    width: 100%;
}

.panel-primary-iee {
    border-color: #015474;
}

.panel-primary-iee>.panel-heading {
    background-image: -webkit-linear-gradient(top,#015474 0,#003F58 100%);
    background-image: -o-linear-gradient(top,#015474 0,#003F58 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#015474),to(#003F58));
    background-image: linear-gradient(to bottom,#015474 0,#003F58 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#015474', endColorstr='#003F58', GradientType=0);
    background-repeat: repeat-x;
}
.panel-primary-iee>.panel-heading {
    color: #fff;
    background-color: #015474;
    border-color: #015474;
}

.panel-info-iee {
    border-color: #1BA5CB;
}

.panel-info-iee>.panel-heading {
    background-image: -webkit-linear-gradient(top,#20C3F1 0,#1BA5CB 100%);
    background-image: -o-linear-gradient(top,#20C3F1 0,#1BA5CB 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#20C3F1),to(#1BA5CB));
    background-image: linear-gradient(to bottom,#20C3F1 0,#1BA5CB 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
    background-repeat: repeat-x;
}
.panel-info-iee>.panel-heading {
    color: white;
    background-color: #20C3F1;
    border-color: #1BA5CB;
}

#alert_index{
    width: 99%;
    padding-left: 15px;
}

#fom_retc {
    width: 100%;
    background-color: #F9F9F9;
    box-shadow: 1px 1px 7px;
    margin-left: 0px;
}

.aÃ±o_retc{
    padding: 8px 0px 0px 9px;
}

.reporte_retc{
    padding: 8px 0px 0px 9px;
}

.btn_retc{
    margin: 5px 0px 5px 0px;
}

.img_graf{
    width: 50%
}

#moduloAccesibilidad {
    top: 3%;
    left: 8px;
    width: 33px;
    background-color: #ffff00;
    position: fixed;
    border-radius: 5px;
    opacity: 0;
}

.hazecam{
    text-align: center;
    font-size: 16px;
    padding-bottom: 6px;
}

.modal-haze{
    padding:0px;
}

/* TOOLTIP */
.ui-tooltip, .arrow:after {
    background: rgba(0, 0, 0, 0.66);
    border: 2px solid white;
}
.ui-tooltip {
    display: inline-block;
    padding: 10px 20px;
    max-width: 350px;
    color: white;
    border-radius: 20px;
    font: 14px ProximaNova, "Helvetica Neue", Sans-Serif;
    font-weight: 300;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
}
.arrow {
    width: 70px;
    height: 16px;
    overflow: hidden;
    position: absolute;
    left: 50%;
    margin-left: -35px;
    bottom: -16px;
}
.arrow.top {
    top: -16px;
    bottom: auto;
}
.arrow.left {
    left: 20%;
}
.arrow:after {
    content: "";
    position: absolute;
    left: 20px;
    top: -20px;
    width: 25px;
    height: 25px;
    box-shadow: 6px 5px 9px -9px black;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.arrow.top:after {
    bottom: -20px;
    top: auto;
}

.ui-helper-hidden-accessible {
    position: absolute;
    left: -999em;
}

.table_semaforo label{
    font-weight: normal;
}

#ciudad_actual{
    font-weight: 100;
}

label{
    font-weight: 300;
}

h4 a{
    font-weight: 300;
}

.con_inner{
    font-weight: 300;
    padding: 10px;
    margin-bottom: 15px;
}

.carga{
    width:7%;
}

.mun_mon_principal{
    border-radius: 50px;
    width:30%;
    border:0.5px solid;
}

.determina-indice{
    /* color: #ff6666; */
    color: #000000;
    font-weight: bold;
}

.circulo-indice {
    background: #000000;
    /* background: #ff6666; */
    border-radius: 10px;
    width: 10px;
    height: 10px;
    display: inline-flex;
}

/* ============ ESTILOS REFACTORIZADOS SPRINT 2 ============ */

/* Grid para ciudades y estaciones */
.ciudades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.ciudad-item {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ciudad-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ciudad-item-nombre {
  flex: 1;
  padding: 0.5rem;
}

.ciudad-item-estado {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: auto;
}

/* Grid para indicadores de clima */
.indicadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.indicador-item {
  text-align: center;
}

.indicador-titulo {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #555;
}

.indicador-valor {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.indicador-icono {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: #0099cc;
}

/* Tabla de información de ciudad (convertida de inline) */
.table-info-ciudad {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.table-info-ciudad td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #eee;
}

.table-info-ciudad .espacio {
  padding: 0.75rem;
}

.table-info-ciudad .letra {
  font-size: 0.85rem;
  font-weight: 500;
}

.texto-indicadores {
  line-height: 1.4;
  color: #666;
}

/* Semáforo (tabla convertida a flex) */
.table-semaforo {
  width: 100%;
  border-collapse: collapse;
}

.table-semaforo tr {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-semaforo td {
  flex: 1;
  min-width: 80px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.table-semaforo td:hover {
  transform: scale(1.05);
}

.table-semaforo label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.table-semaforo img {
  max-width: 30px;
  height: auto;
}

/* Color del nivel (estilos para headers de modales) */
.txt_buena {
  background-color: #00E400 !important;
  color: #000 !important;
}

.txt_sat {
  background-color: #FFFF00 !important;
  color: #000 !important;
}

.txt_nosat {
  background-color: #FF7E00 !important;
  color: #fff !important;
}

.txt_mala {
  background-color: #FF0000 !important;
  color: #fff !important;
}

.txt_mmala {
  background-color: #8F3F97 !important;
  color: #fff !important;
}

.txt_uv {
  background-color: #ffa500 !important;
  color: #fff !important;
}

/* Contenedor principal de vistas */
.monitoreo-container {
  padding: 2rem 0;
}

.vista-general {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.vista-general-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vista-general-logo {
  text-align: center;
  margin-bottom: 1rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.vista-general-logo img {
  max-width: 100%;
  height: auto;
}

.vista-general-ciudades {
  flex: 1;
}

.vista-general-mapa {
  flex: 1;
}

/* Vista de ciudad */
.vista-ciudad-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vista-ciudad-logo {
  width: 200px;
  height: auto;
}

.vista-ciudad-titulo {
  flex: 1;
}

.vista-ciudad-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Card de calidad del aire */
.card-calidad {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-calidad-header {
  padding: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-content-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.header-text {
  flex: 3;
  min-width: 0;
}

.header-text h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.header-text h3 {
  margin: 0.5rem 0 0 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.header-button {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  white-space: nowrap;
}

.header-button .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.card-calidad-body {
  padding: 1.5rem;
}

.recomendaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.recomendacion-item {
  text-align: center;
}

.recomendacion-icono {
  margin-bottom: 0.75rem;
}

.recomendacion-icono img {
  max-width: 50px;
  height: auto;
}

.recomendacion-texto {
  font-size: 0.9rem;
  color: #666;
}

/* Tabla de estaciones */
.estaciones-list {
  width: 100%;
}

.estaciones-list tr {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.estaciones-list tr:hover {
  background-color: #f5f5f5;
}

.estaciones-list td {
  padding: 0.75rem;
  text-align: center;
}

.estacion-estado-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* Gráficas */
.grafica-container {
  padding: 1.5rem;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.grafica-header {
  margin-bottom: 1.5rem;
}

.grafica-titulo {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.grafica-meta {
  font-size: 0.9rem;
  color: #666;
}

.grafica-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.grafica-loading {
  text-align: center;
  padding: 2rem;
  color: #999;
}

/* Modal mejorado */
.modal-header-calidad {
  padding: 1.5rem;
  color: #fff;
}

.modal-body-table {
  padding: 1.5rem;
}

.modal-body-table table {
  width: 100%;
}

.modal-body-table th,
.modal-body-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.modal-body-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .vista-general {
    grid-template-columns: 1fr;
  }

  .vista-ciudad-main {
    grid-template-columns: 1fr;
  }

  .indicadores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Vista general en móviles: columna única con orden correcto */
  .vista-general {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .vista-general-sidebar {
    order: 1;
    width: 100%;
  }

  .vista-general-logo {
    max-width: 200px;
    margin: 0 auto 1rem;
  }

  .vista-general-logo img {
    max-width: 100%;
    height: auto;
  }

  .vista-general-ciudades {
    order: 2;
    width: 100%;
  }

  .vista-general-mapa {
    order: 3;
    width: 100%;
  }

  .vista-ciudad-header {
    flex-direction: column;
    text-align: center;
  }

  .indicadores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recomendaciones-grid {
    grid-template-columns: 1fr;
  }

  .grafica-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .grafica-controls input,
  .grafica-controls button {
    width: 100%;
  }

  .header-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-text {
    flex: 1;
    width: 100%;
  }

  .header-button {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
  }

  .header-button .btn {
    width: 100%;
  }
}






