/* General */
body {
  font-family: "Poppins";
  background-image: url(../img/bg_fondo.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
}

/* Navbar */
.navbar-brand > img {
  width: auto;
  height: 100px;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5)); /* Añadir sombra al logo */
}

.navbar-dark {
  background: linear-gradient(to bottom, #87292c, #4c120f) !important;
}

/* Botones */
.btn-icono {
  background: linear-gradient(to bottom, #87292c, #4c120f) !important;
  color: white;
  display: flex;
  align-items: center;
  padding: 20px 15px;
  border-radius: 20px;
}

.btn-icono > svg {
  width: auto;
  height: 40px;
  margin-right: 20px;
}

.btn-icono > p {
  margin-top: 0rem !important;
  margin-bottom: 0rem !important;
}

/* Enlaces */
a {
  text-decoration: none;
}

/* Títulos */
.titulo {
  text-align: center;
  color: #87292c;
  margin: 5px 0px; /* Reducir el margen superior e inferior */
}

/* Separadores */
hr {
  background-color: #d4af37; /* Cambiar el color a dorado */
  width: 100%;
  height: 2px;
}

/* Footer */
footer {
  background: linear-gradient(to bottom, #87292c, #4c120f) !important;
  color: white;
  padding: 30px 0px 10px 0px;
  margin-top: auto;
}

.footer-lista {
  padding-left: 0px !important;
  list-style-type: none;
}

.footer-lista > li > svg {
  margin-right: 10px;
}

.footer-redes > svg {
  width: auto;
  height: 30px;
  padding: 5px 5px;
}

.footer-redes a {
  color: white; /* Cambiar el color de los logos a blanco */
  font-size: 24px; /* Ajustar el tamaño de los logos */
  margin-right: 10px;
}

.footer-redes a:hover {
  color: #ccc; /* Cambiar el color al pasar el mouse por encima */
}

/* Documentos Relevantes */
#documentos-relevantes {
  margin: 5% 0;
}

/* Card Persona */
.card-persona {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  color: white;
  text-shadow: 1px 1px 2px black;
  overflow: hidden;
}

.card-persona .card-body {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease;
  transform: translateY(100%);
  padding: 10px 0;
}

.card-persona:hover .card-body {
  transform: translateY(0);
}

.card-persona .card-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  margin-bottom: 0;
  padding: 10px 0;
  text-align: center;
  transition: height 0.3s ease;
  height: auto;
  overflow: hidden;
}

.card-persona .card-title p {
  margin: 0;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

.card-persona:hover .card-title p {
  opacity: 1;
  height: auto;
}

.card-persona:hover .card-title p {
  display: block;
}

/* Main */
main {
  flex: 1;
}

/* Footer Lista */
.footer-lista .truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

/* Imagen Presidente */
.img-presidente {
  width: 100%;
  max-width: 500px; /* Aumentado de 300px a 500px */
  height: auto;
  margin: 0 auto; /* Centrar la imagen */
  display: block;
  border-radius: 10px; /* Opcional: añade bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Opcional: añade sombra */
}

/* H3 Team Box */
.h3-team-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  text-align: center;
}

.h3-team-box img {
  width: 100%;
  height: auto;
}

/* Team Info */
.team-info {
  padding: 15px;
}

.team-info h5 {
  margin: 10px 0;
  font-size: 18px;
  font-weight: bold;
}

.team-info strong {
  display: block;
  margin-bottom: 10px;
  color: #555;
}

.team-info p {
  margin-bottom: 10px;
  color: #777;
}

.team-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-info ul li {
  margin-bottom: 5px;
  color: #777;
}

.team-info ul li strong {
  color: #333;
}

/* Team Box */
.team-box {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
  border-radius: 5px;
  margin: 0 0 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
  max-width: 350px;
  margin: 0 auto;
}

.team-box:hover {
  transform: scale(1.05);
}

.team-box .team-thumb {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: top center;
  transition: transform 0.3s ease;
}

.team-box:hover .team-thumb {
  transform: scale(1.1);
}

.team-box .team-txt {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: #fff;
  padding: 20px;
  text-align: left; /* Alinear el texto a la izquierda */
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Añadir sombra al texto */
}

.team-box:hover .team-txt {
  transform: translateY(0);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); /* Difuminar en la parte superior */
}

.team-box .team-txt h5,
.team-box .team-txt strong {
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff; /* Color blanco para el nombre y el puesto */
  font-size: 18px; /* Tamaño de fuente más pequeño */
}

.team-box .team-txt strong {
  font-weight: 400;
  font-style: italic;
  font-size: 14px; /* Tamaño de fuente más pequeño */
  display: block;
  margin: 0 0 10px;
}

.team-box .team-txt p {
  margin: 0 0 17px;
  line-height: 22px;
  color: #fff; /* Color blanco para el texto */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-box:hover .team-txt p {
  opacity: 1;
}

.team-box .team-txt .separator {
  width: 100%; /* Línea separadora ocupa el tamaño total del contenedor */
  height: 2px;
  background: #fff; /* Línea separadora blanca */
  margin: 10px 0;
}

.team-box .team-txt .email {
  font-weight: bold;
}

.team-box .team-txt .email span {
  font-weight: normal;
  font-style: italic;
  color: #ccc; /* Color más claro para el correo */
}

/* Team Social */
ul.team-social {
  margin: 0px;
  padding: 13px 0 0;
  list-style: none;
  border-top: 1px solid #eeeeee;
  position: relative;
}

.team-box:hover ul.team-social:after {
  width: 100%;
}

/* Estilo Genérico para Tarjetas */
.card {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0;  /* Quitamos el padding general */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;  /* Aumentamos la altura de la imagen */
  flex: 0 0 auto;  /* Evita que la imagen se estire */
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-body {
  padding: 1rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-text {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.fecha-texto {
  font-size: 0.8rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* Ajustes para dispositivos móviles */
@media (max-width: 767px) {
  .card-img-wrapper {
    height: 200px;  /* Altura un poco menor en móviles */
  }
}

/* Estilo específico para listas alineadas a la izquierda en la página de trámites */
.left-align-list {
  text-align: left;
}

/* Tarjetas de Trámites */
.tramite-card {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: left; /* Alinear el texto a la izquierda */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 250px; /* Ajustar la altura para incluir la imagen */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tramite-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tramite-card h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 5px; /* Reducir el margen superior */
  margin-bottom: 5px; /* Reducir el margen inferior */
}

.tramite-card .separator {
  width: 100%;
  height: 2px;
  background: #ddd;
  margin: 10px 0;
}

.tramite-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tramite-card ul li {
  margin-bottom: 5px;
  color: #555;
}

.tramite-card ul li a {
  color: #555;
  text-decoration: none;
}

.tramite-card ul li a:hover {
  text-decoration: underline;
}

.tramite-card img {
  display: none; /* Ocultar la imagen por el momento */
}

/* Tarjetas de Transparencia */
.transparencia-card {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transparencia-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.transparencia-card h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 5px; /* Reducir el margen superior */
  margin-bottom: 5px; /* Reducir el margen inferior */
}

.transparencia-card img {
  max-height: 100px; /* Ajustar la altura máxima de la imagen */
  margin-bottom: 10px;
}

/* Estilos para la lista de documentos */
#documents-list a {
  color: #343a40; /* Ajustar el color del enlace */
  text-decoration: none;
  transition: transform 0.3s ease; /* Añadir transición para el efecto de zoom */
}
#documents-list a:hover {
  color: #007bff; /* Color de hover */
  text-decoration: underline;
  transform: scale(1.1); /* Efecto de zoom */
  display: inline-block; /* Asegura que el efecto de zoom funcione */
}

/* Estilos para la página de trámites */
.accordion-button {
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.list-group-item a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
}

.list-group-item a:hover {
    color: #0d6efd;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Botón Flotante */
.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.btn-floating:hover {
    transform: scale(1.1);
    background-color: #0b5ed7;
}

/* Estilos para el personal en formato lista sin imagen */
.list-box {
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.list-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.list-txt {
    padding: 5px;
}

.list-txt h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.list-txt strong {
    display: block;
    margin-bottom: 10px;
    color: #6c757d;
    font-size: 14px;
}

.list-txt .details {
    font-size: 13px;
    color: #495057;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
    margin-top: 5px;
}

.list-txt .details span {
    color: #007bff;
}

/* Estilos para los títulos de departamento */
.departamento-titulo {
    color: #87292c;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.departamento-separador {
    background-color: #d4af37;
    height: 2px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Estilos para enlaces dentro de acordeones */
.accordion-body ul li a {
  display: inline-block;  /* Necesario para que funcione la transformación */
  transition: transform 0.3s ease;  /* Suavizar la transición */
  color: #343a40;  /* Color base del enlace */
}

.accordion-body ul li a:hover {
  transform: scale(1.1);  /* Efecto zoom al 110% */
  color: #87292c;  /* Color al hacer hover - rojo del tema */
  text-decoration: none;  /* Quitar el subrayado por defecto */
}

/* Efecto de zoom para los botones de turismo y DIF */
.zoom-effect {
    transition: transform 0.3s ease;
    display: block;
}

.zoom-effect:hover {
    transform: scale(1.1);
}

/* Estilos para el botón de transmisiones */
.transmisiones-btn {
    text-align: center;
    color: #87292c;
    padding: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.transmisiones-btn:hover {
    color: #4c120f;
    text-decoration: none;
}

.transmisiones-btn i {
    margin-bottom: 10px;
    color: #87292c;
}

.transmisiones-btn span {
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    color: #87292c;
}

.cursor-pointer {
    cursor: pointer;
}

#carouselInformacion .carousel-control-prev,
#carouselInformacion .carousel-control-next {
    width: 5%;
    background-color: rgba(0,0,0,0.2);
}

#carouselInformacion .carousel-control-prev-icon,
#carouselInformacion .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 10px;
}

.card img.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card img.card-img-top:hover {
    transform: scale(1.05);
}

/* Estilos mejorados para el carousel de información */
#carouselInformacion {
    position: relative;
    padding-bottom: 40px;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-img-wrapper:hover img {
    transform: scale(1.1);
}

.fecha-badge {
    background: linear-gradient(to right, #87292c, #4c120f);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.fecha-badge i {
    font-size: 0.8rem;
}

.carousel-indicators-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.carousel-indicators-custom .indicator {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators-custom .indicator.active {
    background-color: #87292c;
    transform: scale(1.2);
}

/* Ajustes para dispositivos móviles */
@media (max-width: 767px) {
    .card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .fecha-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Eliminar botones de navegación */
#carouselInformacion .carousel-control-prev,
#carouselInformacion .carousel-control-next {
    display: none;
}

/* Estilos actualizados para el carousel de información */
#carouselInformacion {
    position: relative;
    padding-bottom: 40px;
    touch-action: pan-y pinch-zoom;
}

.fecha-texto {
    display: block;
    margin-top: auto;
    color: #6c757d;
    font-style: italic;
}

#carouselInformacion .carousel-control-prev,
#carouselInformacion .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#carouselInformacion:hover .carousel-control-prev,
#carouselInformacion:hover .carousel-control-next {
    opacity: 1;
}

#carouselInformacion .carousel-control-prev {
    left: -20px;
}

#carouselInformacion .carousel-control-next {
    right: -20px;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 991px) {
    #carouselInformacion .carousel-control-prev,
    #carouselInformacion .carousel-control-next {
        display: none;
    }

    #carouselInformacion {
        overflow: hidden;
        cursor: grab;
    }

    #carouselInformacion:active {
        cursor: grabbing;
    }
}

/* Eliminar estilos anteriores que ya no se necesitan */
.fecha-badge,
.fecha-badge i {
    display: none;
}

/* Estilos actualizados para el carousel de información */
#carouselInformacion {
    position: relative;
    padding-bottom: 40px;
    touch-action: pan-y pinch-zoom;
}

#carouselInformacion .carousel-control-prev,
#carouselInformacion .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(135, 41, 44, 0.7); /* Color del tema semitransparente */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    #carouselInformacion .carousel-control-prev {
        left: -50px;
    }

    #carouselInformacion .carousel-control-next {
        right: -50px;
    }

    #carouselInformacion:hover .carousel-control-prev,
    #carouselInformacion:hover .carousel-control-next {
        opacity: 1;
    }

    #carouselInformacion .carousel-control-prev:hover,
    #carouselInformacion .carousel-control-next:hover {
        background-color: rgba(135, 41, 44, 0.9);
    }
}

/* Ajustes para dispositivos móviles */
@media (max-width: 991px) {
    #carouselInformacion .carousel-control-prev,
    #carouselInformacion .carousel-control-next {
        display: none;
    }

    #carouselInformacion {
        overflow: hidden;
        cursor: grab;
    }

    #carouselInformacion:active {
        cursor: grabbing;
    }
}

.filtro-card {
  position: relative;
  border: 3px solid #87292c;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  min-width: 220px;
  min-height: 180px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.filtro-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Elimina el patrón decorativo y la punta inferior */
.filtro-card::before,
.filtro-card::after {
  display: none !important;
}

.filtro-card .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 40px;
  background: rgba(255,255,255,0.0); /* transparente, puedes ajustar si quieres overlay */
  z-index: 1;
  padding: 0;
}

/* Elimina el icono decorativo y el texto */
.filtro-card img,
.filtro-card strong {
  display: none !important;
}
