
:root {
  --llyc-red: #F54963;
  --llyc-azul: #0A263B;
  --llyc-turquesa: #36A7B7;
  --llyc-verde: #76CC9B;
  --llyc-morado: #8B8BB2;
  --llyc-naranja: #FC6B08;

  
  --llyc-textcolor: #6D7475;

  --llyc-gris01: #6D7475;
  --llyc-gris02: #878E90;
  --llyc-gris03: #ACB4B6;
  --llyc-gris04: #DDDDDD;
  --llyc-gris: #6D7475;

  --llyc-white: #ffffff;

  --line-color: #ffffff1A;
  --azul-80: #3B5162;
  --back-color: #ffffff05;

  --header-family: 'Montserrat', sans-serif;
	--text-family: 'Open Sans', sans-serif;

}



/*------------------------------------*\ TYPOGRAPHY \*------------------------------------*/
 @font-face {
	 font-family: 'Open Sans';
	 src: url('fonts/OpenSans.ttf');
}
 @font-face {
	 font-family: 'Montserrat';
	 src: url('fonts/Montserrat-Light.ttf');
	 font-weight: 200;
}
 @font-face {
	 font-family: 'Montserrat';
	 src: url('fonts/Montserrat-Regular.ttf');
	 font-weight: 400;
}
 @font-face {
	 font-family: 'Montserrat';
	 src: url('fonts/Montserrat-Medium.ttf');
	 font-weight: 500;
}
 @font-face {
	 font-family: 'Montserrat';
	 src: url('fonts/Montserrat-SemiBold.ttf');
	 font-weight: 600;
}
 @font-face {
	 font-family: 'Montserrat';
	 src: url('fonts/Montserrat-Bold.ttf');
	 font-weight: 700;
}
 @font-face {
	 font-family: 'ThirdRailDemo';
	 src: url('fonts/ThirdRail-Demo.ttf');
	 font-weight: 700;
}
/*------------------------------------*\ TYPOGRAPHY \*------------------------------------*/

body {
  font-family: var(--text-family);
  margin: 0;
  background: var(--llyc-azul);
  color: var(--llyc-white);
}
a{
  color: var(--llyc-white);
}
a:hover{
  text-decoration: none;
  opacity: 0.8;;
}

body.tema-claro{
  --llyc-azul: #ffffff;
  --llyc-white: #0A263B;   
  --line-color: #ACB4B6;
  --back-color: #ffffff;

  & #logo .cls-2{
    fill: var(--llyc-red);
  }
  & .highcharts-grid-line,
  & .highcharts-axis path{
    color: #0A263B !important;
    stroke: #0A263B !important;
    fill: #0A263B !important;
  }
  & .highcharts-title,
  & .highcharts-axis text,
  & .highcharts-axis-labels text,
  & .highcharts-label text{
    fill: #0A263B !important;
  }
  & #data-mensajes .highcharts-series path,
  & #data-sentimiento .highcharts-series path {
    stroke: #ffffff;
  }
  & .global-dato,
  & .caja, 
  & .chart-container {
    border: 1px solid var(--line-color);
  }
  & #map-container svg rect{
    stroke: #ACB4B6;
  }
  & #map-tooltip{ 
    color: #0A263B;
    background-color: #ffffff; 
  }
  & .menu button:hover, 
  & .menu a:hover,
  & .acordeon-titulo:hover{
    border-color: #0A263B;
    
  }
  & #leyenda_mapa div::before {
    border-color: #0A263B;
  }
  & #leyenda_mapa .gradiente{
    background: linear-gradient(to right, var(--llyc-azul), var(--llyc-turquesa), var(--llyc-white)); 
  }
  & .img_colaboracion img{
    filter: none;
  }
}




header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-color);
}
footer{
  border-top: 1px solid var(--line-color);
}
#logo{
  width: 150px;
}
.menu{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.menu button,
.menu a{
    font-family: var(--header-family);
    font-size: 1rem;
    color: var(--llyc-white);
    background-color: transparent;
    text-decoration: none;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.5s ease;
}
.menu button:hover,
.menu a:hover{
  background-color: var(--back-color);
}

.menu .activo{
  font-weight: 600;
}


/* SELECTORES */

.selectores{  
    display: flex;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 1rem;
    margin-bottom: 5px;
    width: 100%;
}

select,
::picker(select) {
  appearance: base-select;
  margin: 0.25rem 0;
  border: 1px solid var(--azul-80) ;
}


select {
  font-family: var(--header-family);
  background: var(--back-color);
  color: var(--llyc-white);
  border-radius: 0;
  border: 1px solid var(--line-color) ;
  margin-right: 30px;
  padding: 10px 20px;
}

#selectorComunidad{
  width: 300px;
  max-width: 100%;
}

#selectorTrimestre{
  width: 150px;
}

select option {
    background: var(--llyc-azul);
    color: var(--llyc-white);
    padding: 5px 20px;
}


select option:hover {
    background-color: var(--llyc-white);
    color: var(--llyc-azul);
}

/* END - SELECTORES */

.introduccion, 
.cierre{
  padding: 0 1rem 2rem;
}
.img_colaboracion{
  padding: 1rem;
  text-align: center;  
}
.img_colaboracion img{
  max-width: 90%;
  width: 400px;
  filter: brightness(0) invert(1) brightness(100);
}
.global {
  display: flex;
  padding: 1rem;
  gap: 20px;
}

.left, .right {
  border: 1px solid var(--line-color);
  padding: 1rem;
  border-radius: 8px;
}

.left ,
.right {
  width: calc((100% / 2) - 20px);
}
.right .chart-container{
  display: block;
}
/*
.right .chart-container:first-child{
  margin-bottom: 1rem;
}
*/

.right .chart-highcharts{
  height: 250px;
}

.left{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: space-around;
}
.destacado{
  font-family: var(--header-family);
  font-weight: 600;
  font-size: 1.5rem;  
  line-height: 3rem;
  display: block;
}
.datos-globales{
  display: flex;
  padding-bottom: 1rem;
  justify-content: space-between;
}
.datos-globales .column{
  width: calc((100% / 2) - 10px);
}
.global-dato:first-child{
  margin-bottom: 1rem;
}
.circulo{
    border: 30px solid var(--llyc-turquesa);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--header-family);

    align-content: center;
}
.circulo span{
  width: 100%;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}

.circulo.animado{
    animation: growBorder 1.5s ease-in forwards;
}

@keyframes growBorder {
    0% { border-width: 30px;  opacity: 0;}
    100% { border-width: 30px; opacity: 1;}
}

.global-dato,
.caja,
.chart-container{
    background-color: var(--back-color);
    padding: 1rem;
    border-radius: 8px;
}
.info{
    text-align: center;
    width: 100%;
    padding-top: 1rem;
}
#global-itt{
  height: calc(100% - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
#global-volumen span{
  font-size: 1.5rem;
  font-weight: 600;
}
#global-volumen span{
  margin-left: 25px;
}
#global-sentimiento{
  height: 120px;
}

#comunidad-itt{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.caja,
.chart-container{
    background-color: var(--back-color);
    padding: 1rem;
    border-radius: 8px;
}

.metodologia,
.tematica_contenido,
.bottom{
    border: 1px solid var(--line-color);
    padding: 1rem;
    border-radius: 8px;
}


.metodologia {
  max-width: 1000px;      /* Limita el ancho máximo */
  margin: 0 auto !important;         /* Centra horizontalmente */
  padding: 0 1rem;        /* Agrega algo de espacio lateral en pantallas pequeñas */
  border: 0;
}



.more-info{
    border-top: 2px solid var(--line-color);
    padding: 1rem;
}
.caja{
  margin: 2rem 0 0;
}
.metodologia,
.bottom{
    margin: 1rem;
}
.p-bt{
  padding-bottom: 1rem;
}
.contenedor-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
}
.item-two-columns {
  grid-column: span 2;
}
.chart-highcharts{
  height: 300px;
}
#data-evolution .chart-highcharts{
  height: 400px;
}

#map-container svg{
  height: 100%;
  max-width: 100%;
}
#map-container{
  display: flex;
  justify-content: center;
}
#map-container svg path:hover {
  opacity: 0.5;
    /*
    fill: #c48ddb; 
    */
}
#map-container svg path {
    cursor: pointer;
    transition: all 0.5s ease;   
    stroke: var(--llyc-azul); 
}

#map-tooltip{
  position: absolute; 
  display: none; 
  color: var(--llyc-azul);
  background-color: var(--llyc-white); 
  border: 1px solid var(--line-color); 
  padding: 8px; 
  border-radius: 4px; 
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2); 
  pointer-events: none; 
  z-index: 1000;
}
#leyenda_mapa{
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
  width: 90%;
}
#leyenda_mapa div{
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
#leyenda_mapa .numeros,
#leyenda_mapa .textos{
  width: 100%;
}
#leyenda_mapa .gradiente{
  width: 100%;
  height: 2rem;
  background: linear-gradient(to right, var(--llyc-white), var(--llyc-turquesa), var(--llyc-azul)); 
  border: 1px solid var(--llyc-white);
}
/*
#leyenda_mapa div::before{
  content:"";
  border: 1px solid var(--llyc-azul);
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 5px;
}

#leyenda_mapa .map-mf::before{
  background-color: #36A7B7;
}
#leyenda_mapa .map-f::before{
  background-color: #8ED3DE;
}
#leyenda_mapa .map-n::before{
  background-color: #C5E9EE;
}
#leyenda_mapa .map-d::before{
  background-color: #E2F4F7;
}
#leyenda_mapa .map-md::before{
  background-color: #FFFFFF;
}

*/
h1{
  font-family: var(--header-family);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.5rem;
}
h2{
  font-family: var(--header-family);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.5rem;
}
h3{
    font-family: var(--header-family);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 1rem 0;
    width: 100%;
    text-align: center;
}
.metodologia h3{
  text-align: left;  
  margin: 3rem 0 2rem 0;
}
h4{
    font-family: var(--header-family);
    font-weight: 600;
    text-transform: uppercase;
}
table{
  border-color: var(--line-color);
  margin: 2rem 0;
}

#titulo_global,
#titulo_comunidad{
    font-family: var(--header-family);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.v_pos::before,
.v_neg::before {
    content: ''; 
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 6px; 
    margin-left: 6px;
    vertical-align: middle; 
}


.v_pos::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--llyc-verde); 
}


.v_neg::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--llyc-naranja); 
}


.circulo .v_pos::before {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid var(--llyc-verde); 
}


.circulo .v_neg::before {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--llyc-naranja); 
}

.global-dato,
.more-info{
    text-align: center;
}
.dif_neg,
.dif_pos{
    font-family: var(--header-family);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 3rem;
}
.dif_pos{
  color: var(--llyc-verde);
}
.dif_neg{
  color: var(--llyc-naranja);
}


.resumen_tematicas{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metodologia .acordeon{
  margin: 1rem;
}

.acordeon-titulo {
    width: 100%;
    font-family: var(--header-family);
    color: var(--llyc-white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    /* text-transform: uppercase; */
    border-radius: 6px;
    border: 1px solid var(--line-color);
    background-color: transparent;
    text-align: left;
    
    padding: 0.75rem 3rem 0.75rem 1rem;
    position: relative;
    margin-bottom: 15px;
}

.acordeon-titulo::after{
    content: ''; 
    position: absolute;
    right: 10px;
    top: 1rem;
    width: 0;
    height: 0;
    margin-right: 6px; 
    margin-left: 6px;
    vertical-align: middle; 
}


.acordeon-titulo::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--llyc-white); 
}
.acordeon-titulo.abierto::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--llyc-white); 
    border-top: none;
}


.acordeon-titulo:hover {
  border: 1px solid var(--llyc-azul);
  background-color: var(--llyc-azul);
}

.acordeon-contenido {    
  padding: 0 1rem 0.75rem 1rem;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


.conclusion{
    border: 1px solid var(--line-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.conclusion h4{
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 1rem;
    font-weight: 400;
}

.metodologia h2{
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 1rem;
}


 @media (max-width: 1480px) {

 }

@media (max-width: 1350px) {
  .contenedor-charts {
    grid-template-columns: repeat(2, 1fr);
  }
  .item-two-columns {
    grid-column: initial;
  }
  #data-tematicas{
    grid-column: span 2;
  }

}

@media (max-width: 1200px) {
  .right,
  .left {
    width: 100%;
  }
  .global{
    flex-wrap: wrap;
  }
  /*.right{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }*/
  .right .chart-container:first-child {
      margin-bottom: 0;
  }
}

@media (max-width: 1024px) {
  header{
    flex-wrap: wrap;
  }
  .titulo{
    order: 3;
    text-align: center;
    width: 100%;
  }
  .container_logo{
    order: 1;
  }
  .menu{
    order: 2;
  }
}
@media (max-width: 768px) {
  .resumen_tematicas,
  .right,
  .contenedor-charts {
    grid-template-columns: repeat(1, 1fr);
  }
  
  #data-tematicas{
    grid-column: initial;
  }

  .selectores{
    flex-direction: column;
    gap: 1rem;
  }
  
  
  .datos-globales{
    flex-wrap: wrap;
    gap: 1rem;
  }
  .datos-globales .column{
    width: 100%;
  }
  #titulo_global{
    font-size: 1.5rem;
  }
}

@media (max-width: 425px) {
  body{
    font-size: 0.8rem;
  };

  #selectorComunidad{    
    max-width: 100%;
    margin-right: 0;
  }
  
  .menu{
    width: 100%;
    justify-content: center;
    padding-top: 1rem;
    order: 4;
  }
  .menu button, .menu a{
    font-size: 0.8rem;    
    padding: 10px 10px;
  }
  
}