:root {
    --secondary-color: #009EB2;
}

body {
  font-family: 'PoppinsR';
 
}

.header-section {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  margin-bottom: 50px;
}

.carousel-container {
  position: relative;
  padding: 0 70px;
  margin-top: 0px;
 
}



.tutorial-card {
  margin-bottom: 20px;
  display: flex;
  margin-top: 20px;

}

.card {
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  margin: 40px 10px;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 40px;
  min-height: 420px;
  background-color: #f8f8f8;
  border:0px solid #000;
}

/* Asegurar que las tarjetas en todos los carruseles tengan la misma altura */
.carousel-item .card {
  height: 100%;
  min-height: 450px;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  margin: 0 auto;
  border: 2px solid #f8f9fa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
  font-size: 22px;

  z-index: 10;
  padding: 15px; /* Añadido padding para los iconos */
}

.card-title {
  color: var(--secondary-color);
  font-weight: bold;
  text-align: center;
  margin-top: 25px; /* Añadido margen superior para los títulos */
  margin-bottom: 15px; /* Añadido margen inferior para los títulos */
  padding: 0 10px; /* Añadido padding horizontal para los títulos */
   font-family: 'PoppinsSB';
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 15px 20px 15px 20px;
  height: 100%; /* Asegurar que el cuerpo ocupe toda la altura disponible */
 
}

.card-text {
  text-align: center;

  flex-grow: 1; /* Permitir que el texto crezca para llenar el espacio */
}

.btn-access {
  color: var(--secondary-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.icon-actualizacion {
  background-image: url('../images/ico_act_datos.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-clave {
  background-image: url('../images/ico_generarclave.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-cuenta-bancaria {
  background-image: url('../images/ico_reg_bancaria.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-historia-Laboral {
  background-image: url('../images/ico_hl.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-certificado-Afiliacion {
  background-image: url('../images/ico_certificado.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-fondos-reserva {
  background-image: url('../images/ico_reg_bancaria.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-cesantia {
  background-image: url('../images/ico_cesantia.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-seguro-desempleo {
  background-image: url('../images/ico_sd.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.ico-prestamos{
  background-image: url('../images/ico_biess.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.ico-salud{
  background-image: url('../images/ico_salud.png');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border-radius: 0;
  top: 50%;
  transform: translateY(-50%) !important;
  opacity: 1;
  position: absolute;
  transition: none;
  outline: none;
  border: none;
  padding: 0;
  margin: 0;
}

.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-control-prev:active,
.carousel-control-next:active,
.carousel-control-prev:hover,
.carousel-control-next:hover {
  outline: none;
  box-shadow: none;
  transform: translateY(-50%) !important;
  opacity: 1;
  border: none;
}

.carousel-control-prev {
  left: -50px;
}

.carousel-control-next {
  right: -50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 40px;
  height: 40px;
  filter: invert(1) drop-shadow(1px 1px 1px rgba(0,0,0,0.3));
  background-size: 100%;
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Estilos para enlaces externos con el icono circular */
.external-link {
  display: inline-flex;
  align-items: center;
  margin-left: 30px;
  text-decoration: none;
}

.external-link-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.external-link-icon i {
  color: var(--secondary-color);
  font-size: 10px;
}

.external-link:hover .external-link-icon {
  background-color: var(--secondary-color);
}

.external-link:hover .external-link-icon i {
  color: white;
}

/* Estilos para listas en las tarjetas */
.card-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  text-align: left;
}

.card-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px; /* Aumentado para más espacio entre elementos */
  font-size: 0.9rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 20px;
}

.card-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px; /* Viñeta más corta */
  height: 2px;
  background-color: var(--secondary-color);
}

/* Asegurar que las filas del carrusel tengan la misma altura */
.carousel-item .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 450px;
}

/* Asegurar que las tarjetas dentro de las filas se estiren para llenar el espacio */
.carousel-item .tutorial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Contenedor universal para tarjetas */
.tutorials-container {
  width: 100%;
}




/* Estilos para visualización horizontal en móviles */
@media (max-width: 767px) {
  .carousel-container {
      padding: 0 15px;
      overflow: hidden;
      margin-top: 20px;
  }
  
  
/*
  .carousel-inner .carousel-item {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
	  overflow-y:hidden;
  }
  
  .carousel-inner .carousel-item .row {
      display: flex;
      flex-wrap: nowrap;
      width: max-content;
      min-height: auto;
  }
  
  .carousel-inner .carousel-item .col-md-4 {
     width: 85vw;
	  
      flex: 0 0 85vw;
      margin-right: 15px;
	  
	 
  }
*/
	
	
  
  .tutorial-card {
      width: 100%;
      margin-top: 40px;
      margin-bottom: 20px;
  }
  
  .card {
      margin: 0 5px;
      min-height: 350px;
	  width: 100% !important;
  }
  
  .card-title {
      font-size: 1.5rem;
      line-height: 25px;
  }
	
	
.card-body {
  width: 100% !important;

 	
 
}
  
  /* Ocultar controles de navegación en móvil */
  .carousel-control-prev,
  .carousel-control-next {
      display: none;
  }
  
  /* Ajustes para listas en móvil */
  .card-list li {
      font-size: 13px;
      padding-left: 12px;
      margin-bottom: 8px;
  }
  
  .external-link-icon {
      width: 22px;
      height: 22px;
  }
  
  /* Mejorar visualización de indicadores */
  .carousel-indicators {
      position: relative;
      padding-top: 20px;
      margin-bottom: 20px;
      justify-content: center;
      display: flex !important;
      z-index: 15;
      bottom: 0;
      left: 0;
      right: 0;
      margin-left: 0;
      margin-right: 0;
  }
  
  .carousel-indicators [data-bs-target] {
      width: 15px !important;
      height: 15px !important;
      margin: 0 8px !important;
      opacity: 1 !important;
      cursor: pointer;
  }
  
  .carousel-indicators .active {
      background-color: #009eb2 !important;
      opacity: 1 !important;
  }


  
  /* Indicador visual de scroll horizontal */
  .carousel-inner:after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 30%;
      height: 4px;
      background: linear-gradient(to right, transparent, var(--secondary-color));
      border-radius: 2px;
  }
	
	
	/* Estilos para los indicadores del carrusel */
.carousel-indicators {
    position: relative;
    padding-top: 20px;
    margin-bottom: 0;
    justify-content: center;
}
  
.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #ccc !important;
    border: none !important;
    margin: 0 5px !important;
    opacity: 0.5;
}
  
.carousel-indicators .active {
    background-color: #009eb2 !important;
    opacity: 1;
}
}


/* Estilos para el carrusel */
.tutorial-card {
  margin-bottom: 20px;
}

.tutorial-card .card {
  height: 100%;
  transition: transform 0.3s ease;
  width: 100%; 
}

.tutorial-card .card:hover {
  transform: scale(1.02);
}

.carousel-control-prev, .carousel-control-next {
  width: 5%;
  opacity: 0.8;
/*  background-color: rgba(0, 0, 0, 0.2);*/
  border-radius: 0 5px 5px 0;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-next {
  border-radius: 5px 0 0 5px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 30px;
  height: 30px;
}

.carousel-indicators {
  position: relative;
  margin-top: 20px;
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #00a0a0;
}

/* Estilos específicos para móviles */
@media (max-width: 767.98px) {
  .carousel-indicators {
    margin-top: 15px;
  }
  
  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
  
  .tutorial-card .card {
    margin-bottom: 0;
  }
  
  #tutorialesCarousel .carousel-item {
    min-height: 400px;
  }
}


@media (max-width: 768px) {
  .salto-en-movil {
    display: inline-block;
    white-space: pre-line;
  }
  
  /* Reemplazar el contenido con el texto formateado */
  .salto-en-movil {
    position: relative;
  }
  
  .salto-en-movil::before {
    content: "Gestión Coactiva /\A Secretario Abogado";
    white-space: pre;
    position: absolute;
    left: 0;
    top: 0;
  }
  
  /* Ocultar el texto original */
  .salto-en-movil span {
    opacity: 0;
  }
}


	@media (max-width: 768px) {
	  .texto-con-saltos {
		position: relative;
		visibility: hidden;
		height: auto;
	  }

	  .texto-con-saltos::before {
		content: "Solicitud Beneficiarios\A Fallecidos:\A Fondos Reserva/Cesantía";
		white-space: pre;
		visibility: visible;
		position: absolute;
		left: 0;
		top: 0;
	  }
	}	



  /***********************************************/

  /* Add these styles to ensure navigation arrows are visible */
.carousel-control-prev,
.carousel-control-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px;
  height: 30px;
  background-size: 100% 100%;
}

/* Make arrows more visible on light backgrounds */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Ensure arrows are visible on all screen sizes */
@media (min-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 8%;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 40px;
    height: 40px;
  }
}


/* ... código existente ... */

/* ... código existente ... */

/* ... código existente ... */

/* Ajustes para el carrusel de servicios */
#tutorialesCarousel {
  position: relative;
  margin-bottom: 30px;
}

/* Estilos para los indicadores (bullets) */
#tutorialesCarousel .carousel-indicators {
  position: relative;
  margin-top: 20px;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  
}

/* Estilos para los botones de navegación en escritorio */
#tutorialesCarousel .carousel-control-prev,
#tutorialesCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border-radius: 50%;
  opacity: 1;
}

#tutorialesCarousel .carousel-control-prev-icon,
#tutorialesCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23444'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
  width: 30px;
  height: 30px;
}

#tutorialesCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23444'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#tutorialesCarousel .carousel-control-prev {
  left: -30px;
}

#tutorialesCarousel .carousel-control-next {
  right: -30px;
}

/* Ajustes específicos para móviles */
@media (max-width: 767px) {
  #tutorialesCarousel {
    padding-top: 60px !important;
  }
  
  /* ... código existente ... */
  
  #tutorialesCarousel .carousel-control-prev,
  #tutorialesCarousel .carousel-control-next {
    position: absolute;
    top: 45px !important;
    bottom: auto;
    transform: none;
    width: 40px;
    height: 40px;
    display: flex !important;
    background-color: rgba(240, 240, 240, 0.8);
    border-radius: 50%;
    z-index: 20;
    opacity: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    
    
  }
  
  #tutorialesCarousel .carousel-control-prev-icon,
  #tutorialesCarousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 100%;
  }
  
  /* Crear un área de toque más grande para las flechas */
  #tutorialesCarousel .carousel-control-prev::before,
  #tutorialesCarousel .carousel-control-next::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    z-index: -1;
  }
  
  #tutorialesCarousel .carousel-control-prev {
    left: 10px;
  }
  
  #tutorialesCarousel .carousel-control-next {
    right: 10px;
  }
  
  /* Efecto visual al tocar los botones */
  #tutorialesCarousel .carousel-control-prev:active,
  #tutorialesCarousel .carousel-control-next:active {
    background-color: rgba(220, 220, 220, 0.9);
    transform: scale(0.95);
  }
  
  /* ... resto del código ... */
}


/*********  BARRA DE PROGRESO ***/

/* Añadir esto al final del archivo */
.carousel-progress {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 500px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  z-index: 10;
}

.carousel-progress-bar {
  height: 100%;
  width: 0;
  background: #009EB2 !important; /* Fuerza el color azul */
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Versión móvil */
@media (max-width: 768px) {
  .carousel-progress {
    bottom: 10px;
    height: 3px;
  }
}


