/*html, body {
  margin: 0;
  width: 100%;

  background-color:#f0f0f0 !important;

}*/

/*
html{
    height: 100%;
    /* overflow: hidden; */
    /* padding-top: 50px !important;
}*/



/* ==================  COLORES ============= */

.btn-outline-primary {
  color:#660080 !important;
-bs-btn-color: #660080!important;
--bs-btn-border-color: #660080!important;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #660080!important;
--bs-btn-hover-border-color: #660080!important;
--bs-btn-focus-shadow-rgb: 13,110,253;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #660080!important;
--bs-btn-active-border-color: #660080!important;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: #660080!important;
--bs-btn-disabled-bg: transparent;
--bs-btn-disabled-border-color: #660080!important;
--bs-gradient: none;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #660080 !important;
  --bs-btn-border-color: #660080 !important;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a58ca;
  --bs-btn-active-border-color: #0a53be;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #660080 !important;
  --bs-btn-disabled-border-color: #660080 !important;
}

.btn.btn-primary:hover, .btn-primary:hover {
 background-color:  #A4123F !important;
 border-color: #A4123F !important;
 color:#fff!important;
}

.btn.btn-outline-primary:hover, .btn-primary:hover {
 color:#fff!important;
}

#puntos .card-hover {
  box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1), 0 0 0 2px rgb(255, 255, 255), 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
  margin-top: 30px;
  border-radius: initial;
}

#puntos > div:nth-child(2n) > div {
    background: #ccc!important;
}

#show_more_points {
  margin-top: 30px;
}

.bg-naranja, .bg-social:nth-child(2n+1) .card{
 background-color: #FF6600!important;
}

.c-naranja .c-social {
 color: #FF6600!important;
}

.bg-verde, .bg-salud:nth-child(2n+1) .card{
 background-color: #88AA00!important;
}

.c-verde {
 color: #88AA00!important;
}

.bg-blue, .bg-empleo_formacion:nth-child(2n+1) .card{
 background-color: #162D50!important;
}

.c-blue, .bg-salud:nth-child(2n+1) h3 a, .bg-salud:nth-child(2n+1) p {
 color: #162D50!important;
}

.bg-amarillo, .bg-atencion_juridica:nth-child(2n+1) .card{
 background-color: #FFCC00!important;
}
.c-amarillo, .bg-empleo_formacion:nth-child(2n+1) h3 a, .bg-empleo_formacion:nth-child(2n+1) p{
 color: #FFCC00!important;
}

.c-rojo, .bg-atencion_juridica:nth-child(2n+1) h3 a, .bg-atencion_juridica:nth-child(2n+1) p{
 color: #A4123F!important;
}

.bg-rojo {
 background-color: #A4123F!important;
}

.c-lila, .bg-social:nth-child(2n+1) h3 a, .bg-social:nth-child(2n+1) p{
 color: #660080!important;
}

.bg-lila, .bg-mediacion:nth-child(2n+1) .card{
 background-color: #660080!important;
}

.c-negro, #puntos > div:nth-child(2n) > div > div.card-header > h3 > a{
 color: #000!important;
}

.bg-negro {
 background-color: #000!important;
}

.c-gris {
 color: #ccc;
}

.bg-gris {
 background-color: #ccc!important;
}

.c-celeste {
 color: #00D2FF;
}

.bg-celeste, .bg-ocio-ocio_tiempo_libre:nth-child(2n+1) .card{
 background-color: #00D2FF!important;
}

#tablink, .text-primary, .nav-link {
  color: #660080!important;
}
/* MENU */

.fixed-top {
 z-index: 2500!important;
}

#panel-arriba > div.offcanvas-body.container > ul {
  list-style-type: none;

}


#panel-arriba > div.offcanvas-body.container > ul > li > a {
  padding: 8px 8px 8px 0px;
  text-decoration: none;
  font-size: 25px;
  display: block;
  transition: 0.3s;
}


/* FIN DE MENU*/

#herramientas img {
  max-height: 30px;
 }

@media (min-width: 1000px){

#herramientas {
  position: absolute;
  top: 40vh;
  left: 25px;
}

#herramientas img {
  max-height: 30px;
}
#herramientas ul {
 flex-direction: column!important;
 max-width: 50px!important;
}


}

#herramientas-tuto img{
 max-height: 30px;
}



/* PORTADA */

.logo-portada {
  margin-bottom: 50px!important;
  color: #660080!important;

}

.logo-portada {
  margin-bottom: 50px!important;
}


#logo-portada h1, #logo-portada a{
  color: #660080!important;
}


/* FIN PORTADA */

.carousel-item {
 min-height: 92vh;

}
.carousel-caption {
  top: 20vh;
  bottom: 30vh;
}

body.flor{
 background-attachment: fixed!important;
 background: url(../../img/logo-1.png) right bottom no-repeat, url(../../img/logo-2.png) left top no-repeat;
 background-size: 95px;
}

.box {
  box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1), 0 0 0 2px rgb(255, 255, 255), 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

#Directorio, #Presentacion {
  margin-top: 71px;
}

#Presentacion h2, #Presentacion h3 {
  margin-top: 30px!important;
}

#tutorial .boton-cierre {
  position:absolute;
  top: 75px;
  right: 0px;
  z-index:50;
}

.ultimo-p {
 margin-top: 50px;
 }

.boton-cierre {
  position:absolute;
  top: 15px;
  right: 0px;
  z-index:5;
}

/* CATEGORIAS */


#categorias .box {
 min-height: 150px;
}

#categorias-mini .box {
 min-height: 50px;
}
#categorias-mini img {
 max-height: 60px;
 width: auto;
}


.box img {
  height: 60%;
  width: auto;
}
.card img{
  max-height: 100px;
  width:auto;
}
.card.card-hover.active{
  box-sizing: content-box;
  width: 100%;
  border: solid #660080 5px;
  padding: 2px
}

/* BLOQUE PRINCIPAL */
@media (min-width: 1000px){
.bloque-principal {
 margin-top:25%;
 margin-bottom:25%
}
}

h1, h2, h3, h4 strong {
 color:#660080!important;
 }

.col-md-6.col-lg-3.col-6 {
  margin-top: calc(var(--bs-gutter-x) * 1) !important;
}

/* PAGINAS OFFCANVAS */


#panel-izquierda, #panel-derecha, #panel-arriba, #buscar {
 width:100%;
 margin-top:71px;
 height:calc(100% - 71px);
}
#panel-abajo {
 width:100%;
 height:calc(100% - 71px);
}

.navbar-image {
   max-height:20px
}

@media (max-width: 400px){
  .navbar-image {
     width:250px !important;
  }
}

@media (max-width: 350px){
  .navbar-image {
     width:200px !important;
  }
}

/*.navbar{
   max-height: 40px !important;
   font-size: 10pt;
   z-index: 3 !important;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}*/


.sidebar {
    position: sticky;
    top: 150px !important;
    z-index: 500 !important;
    height: 84% !important;
}

.sidebar-tabs > li, .sidebar-tabs > ul > li, .sidebar-close {
  padding-top: 10px !important;
}

/* CONTENIDO */

#tabdirectorio .row {
  margin-top: 30px;
}

.box.bg-purple.text-center {
    background-color: #6F43C1!important;
}
#mapa {
  height: 400px;
  padding: 0px 0;
}

#map {
  /*z-index: 0 !important;*/
  height: 400px !important;
  width: 100%!important;
  padding-top:0px;
}

.logo-tab {
  max-height:40px;
  width: auto;
}


.leaflet-top {
  top: 20px !important;
}
.leaflet-top, .leaflet-bottom {
  position: absolute!important;
  z-index: 500 !important;
  pointer-events: none;
}



/* BOTTOM */

.bottom .continuar {
  margin-right: 40px;
}

/* .navbar {
  min-height: 50px !important;
} */

.registerButtonBox {
  position: absolute;
  right: 15px;
  top: 30px;
  z-index: 2000;
}
.lvl2 {
  margin-left: 30px;
}


/* Filtros */
.modal {
  max-height: 95vh;
}


.point_in_filter{
    font-size: 8pt !important;
    padding-left: 10px;
}
.card-title {
  font-size: 14.4pt !important;
}
.card-text{
    margin-top: 10px;
    margin-bottom: 10px;
}

.mapheader{
    display: table; /* keep the background color wrapped tight */
    /*margin: 0px auto 0px auto;  keep the table centered */
    margin-left: 40%;
    padding:5px;
    text-align: center;
    font: 14pt "Helvetica Neue", Arial, Helvetica, sans-serif;
    position: fixed;
    bottom: 10px;
    z-index: 500!important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: black;
    background-color:rgba(212,0,0,0.2);
}

@media (max-width: 600px) {
    .mapheader {
        padding: 5px;
        margin-left: 0;
        color: black;
        background-color:rgba(212,0,0,0.2);
        font: 10pt "Helvetica Neue", Arial, Helvetica, sans-serif;
        position: fixed;
        bottom: 10px;
        z-index: 500!important;
    }
    .py-5.bloque-principal {
	padding-top: 0.5rem!important;
	padding-bottom: 1rem !important;
  }
  .logo-portada, .logo-autoridades {
  	max-width:85%;
  }
  h1, h2, h3, h4 {
   text-align:center;

 }
  p {
   text-align:justify;

 }
 #categorias-mini img {
 max-height: 30px;
 width: auto;
 }
}

.sc-card-img-top {
    width: auto !important;
    display: block;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

#rightCard {
  position: absolute;
  right: -300px;
  top: 0;
  max-width: 300px;
  max-height: 100%;
  overflow-y: scroll;
  z-index: 2000;
  background: #ffffff;
  -webkit-transition: all 0.5s; /* Safari */
  transition: all 0.5s;
}
.rightCard-show {
  right: 0px!important;
}
.hidden {
  visibility: hidden;
}
.marker {
  background: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  /* box-shadow: 0 0 5px 5px rgba(66, 134, 244, 0.2); */
  -webkit-transition: all 0.2s; /* Safari */
  transition: all 0.2s;
}
/* .marker:hover {
  border: 2px solid #000000;
} */

.routeMarker {
  background: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgb(65, 202, 244);
  box-shadow: 0 0 5px 5px rgba(65, 202, 244, 0.2);
  -webkit-transition: all 0.2s; /* Safari */
  transition: all 0.2s;
}
.lnMarker {
  background: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgb(43, 216, 129);
  box-shadow: 0 0 5px 5px rgba(43, 216, 129, 0.2);
  -webkit-transition: all 0.2s; /* Safari */
  transition: all 0.2s;
}
.marker-red {
  box-shadow: 0 0 5px 5px rgba(244, 78, 66, 0.2)!important;
}
.marker-blue {
  box-shadow: 0 0 5px 5px rgba(63, 154, 244, 0.2)!important;
}
.slide {
     margin-top: 15px;
     margin-bottom: 15px;
}


.strike {
  text-decoration: line-through;
}

.circle {
  display: inline-block;
  margin-top: -6px;
  vertical-align: middle;
}
.circle img{
  margin: 7px 2px 0 2px;
}

/*  FOOTER */

.mt-auto.text-center.text-black-50 {
  margin-top: 50px !important;
}


.list-group.list-group-horizontal.justify-content-center {
  list-style: none;
}

.logo-autoridades {
  max-height: 60px;
}

/* Estilo inicial del botón */
.boton-animado {
  background-color: #66257b; /* Verde */
  color: white;
  border: none;
  padding: 15px 32px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s, background-color 0.3s;
}

/* Animación al pasar el cursor */
.boton-animado:hover {
  background-color: #572364; /* Un verde más oscuro */
  transform: scale(1.1); /* Aumenta ligeramente el tamaño */
}

/* Animación al hacer clic */
.boton-animado:active {
  transform: scale(0.9); /* Reduce ligeramente el tamaño */
}

@keyframes girar {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.boton-animado:hover {
  animation: girar 0.5s linear;
}

/* FIN FOOTER */

/* Estilos para la barra de búsqueda superior */
#search_text_div {
  width: 100%;
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#search_text_div .d-flex {
  align-items: center;
  gap: 10px;
}

#search_info {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
}

/* Responsive para mobile */
@media (max-width: 768px) {
  #search_text_div {
    margin-top: 10px;
    padding: 8px 12px;
  }
  
  #search_text_div .d-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  #search_info {
    font-size: 13px;
    text-align: center;
    margin-bottom: 5px;
  }
  
  #search_text_div .btn {
    align-self: center;
    min-width: 120px;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  #search_text_div {
    margin-top: 8px;
    padding: 6px 10px;
  }
  
  #search_info {
    font-size: 12px;
  }
  
  #search_text_div .btn {
    min-width: 100px;
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Estilos para el offcanvas de búsqueda */
#panel-buscar .offcanvas-body {
  padding: 20px;
}

#panel-buscar .input-group {
  width: 100%;
  max-width: none;
}

#panel-buscar .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#panel-buscar .input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
  min-width: 50px;
}

/* Mobile responsive para el offcanvas de búsqueda */
@media (max-width: 768px) {
  #panel-buscar .offcanvas-body {
    padding: 15px;
  }
  
  #panel-buscar .input-group .form-control {
    font-size: 16px; /* Evita zoom en iOS */
    padding: 12px 15px;
  }
  
  #panel-buscar .input-group .btn {
    padding: 12px 20px;
  }
}

/* Sección del banner de noticias */
.news-banner-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
  margin: 30px 0;
}

/* Mejoras responsive para el contenedor principal */
#Directorio .container {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 576px) {
  .news-banner-section {
    padding: 0 10px;
    margin: 20px 0;
  }
  
  #Directorio .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 768px) {
  .news-banner-section {
    margin: 40px 0;
  }
}

@media (min-width: 1200px) {
  .news-banner-section {
    margin: 50px 0;
  }
}

/* Estilos para el contenedor del GIF - Mobile First Approach */
.gif-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  cursor: pointer;
  border: 2px solid #660080;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(102, 0, 128, 0.2);
  overflow: hidden; /* Importante: evita que la imagen se salga del contenedor */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.gif-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px 15px 0 0; /* Solo esquinas superiores redondeadas */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gif-container .hover-text {
  position: relative;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  background-color: #660080;
  padding: 12px 16px;
  border-radius: 0 0 15px 15px; /* Solo esquinas inferiores redondeadas */
  margin: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.3;
}

/* Estados hover y focus */
.gif-container:hover,
.gif-container:focus {
  border-color: #A4123F;
  box-shadow: 0 8px 25px rgba(164, 18, 63, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.gif-container:hover .hover-text,
.gif-container:focus .hover-text {
  background-color: #A4123F;
}

.gif-container:hover img,
.gif-container:focus img {
  transform: scale(1.05);
}

/* Tablet - 768px y superior */
@media (min-width: 768px) {
  .gif-container {
    border-width: 3px;
    border-radius: 20px;
    max-width: 700px;
  }
  
  .gif-container img {
    border-radius: 20px 20px 0 0;
  }
  
  .gif-container .hover-text {
    font-size: 1.1rem;
    padding: 14px 20px;
    border-radius: 0 0 20px 20px;
  }
}

/* Desktop - 992px y superior */
@media (min-width: 992px) {
  .gif-container {
    max-width: 800px;
    border-width: 4px;
  }
  
  .gif-container .hover-text {
    font-size: 1.2rem;
    padding: 16px 24px;
  }
  
  /* Efectos más suaves en desktop */
  .gif-container:hover,
  .gif-container:focus {
    transform: translateY(-5px) scale(1.03);
  }
}

/* Large Desktop - 1200px y superior */
@media (min-width: 1200px) {
  .gif-container {
    max-width: 900px;
  }
  
  .gif-container .hover-text {
    font-size: 1.3rem;
    padding: 18px 28px;
  }
}

/* Accesibilidad - Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .gif-container,
  .gif-container img,
  .gif-container .hover-text {
    transition: none;
  }
  
  .gif-container:hover,
  .gif-container:focus {
    transform: none;
  }
  
  .gif-container:hover img,
  .gif-container:focus img {
    transform: none;
  }
}

/* Estados de focus para accesibilidad con teclado */
.gif-container:focus {
  outline: 3px solid #A4123F;
  outline-offset: 2px;
}

/* Animación suave para cuando se carga la página */
.gif-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para el botón de cierre del tutorial */
#tutorial .btn-close {
  position: absolute;
  top: 85px;
  right: 15px;
  z-index: 10;
  background-color: #660080;
  opacity: 0.8;
  padding: 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#tutorial .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

