/* ------------------------- */
/* Tarjeta Fancy Card (sidebar) */
.fancy-card {
  background-color: #dcedff; /* celeste sólido */
  border: 1px solid #7498bf; /* borde sutil */
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
  padding: 6px;
  text-align: center;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  max-width: 100%;
  margin: 0 auto 20px auto; /* centrado y espacio abajo */
}
/* Hover: solo zoom del módulo */
.fancy-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
/* Imagen dentro de la tarjeta */
.fancy-card img {
  border-radius: 10px;
  width: 90%; /* adaptable al ancho del módulo */
  height: auto;
  margin-bottom: 12px;
  transition: none; /* sin zoom en la imagen */
}
/* Títulos dentro de la tarjeta */
.fancy-card h3,
.fancy-card h4,
.fancy-card h5 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #396096;
  margin-top: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
/* ------------------------- */
/* Posición Right: espacio entre módulos */
.right .moduletable {
  margin-bottom: 10px; /* espacio vertical */
}
/* Ocultar títulos sobrantes en la sidebar */
.right .moduletable .moduletitle,
.right .moduletable .astroid-article-title {
  display: none;
}
/* ------------------------- */
/* Recuadro suave solo para el módulo Noticias Portal */
/* Vista en portada (lista de artículos) */
.noticias-portal .astroid-article-list .astroid-article,
.noticias-portal div.blog div.com-content-category-blog__item div.item-content {
  background-color: #eef6fda9; /* celeste muy suave */
  border: 1px solid #b3d2e3; /* borde sutil */
  border-radius: 12px;
  padding: 10px;
  margin-bottom: -30px;
  margin-right: -30px;
  }
/* Vista individual de cada noticia */
.noticias-portal .astroid-article {
  background-color: #f4f8fb; /* celeste muy suave */
  border: 1px solid #dde5ea;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
/* Títulos dentro de los recuadros */
.noticias-portal .astroid-article-list .astroid-article h2,
.noticias-portal .astroid-article-list .astroid-article h3,
.noticias-portal .astroid-article h2,
.noticias-portal .astroid-article h3 {
  font-family: "Open Sans", sans-serif;
  color: #1a3a67;
  margin-top: 0;
}
/* Texto dentro de los recuadros */
.noticias-portal .astroid-article-list .astroid-article p,
.noticias-portal .astroid-article p {
  font-family: "Open Sans", sans-serif;
  color: #303030;
}
/* ------------------------- */
/* Botón “Leer más” con ícono fas fa-search */
.noticias-portal
  div.blog
  div.com-content-category-blog__item
  div.item-content
  p.readmore
  a.as-readmore,
.noticias-portal .astroid-article .as-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #4a90e2; /* azul */
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}
/* Hover del botón */
.noticias-portal
  div.blog
  div.com-content-category-blog__item
  div.item-content
  p.readmore
  a.as-readmore:hover,
.noticias-portal .astroid-article .as-readmore:hover {
  background-color: #357abd; /* azul más oscuro al pasar el mouse */
  color: #fff !important;
}
/* Ícono dentro del botón */
.noticias-portal
  div.blog
  div.com-content-category-blog__item
  div.item-content
  p.readmore
  a.as-readmore
  i,
.noticias-portal .astroid-article .as-readmore i {
  margin-left: 8px; /* espacio entre texto e ícono */
  color: #ffffff; /* ícono blanco dentro del botón */
  font-size: 1.1rem; /* tamaño del ícono */
  transition: color 0.3s ease;
}
/* ------------------------- */
/* Color del icono de fecha */
.noticias-portal div.blog div.com-content-category-blog__item dl dt i,
.noticias-portal .astroid-article .astroid-icon-calendar {
  color: #4a90e2; /* azul, mismo que los botones */
}
/* ------------------------- */
/* Responsive */
/* Tablets: hasta 992px */
@media (max-width: 992px) {
  .right .fancy-card {
    width: 80%; /* ocupa menos espacio en sidebar */
    margin: 0 auto 18px auto;
  }
  .fancy-card h3,
  .fancy-card h4,
  .fancy-card h5 {
    font-size: 1.3rem;
  }
}
/* Móviles: hasta 600px */
@media (max-width: 600px) {
  .right .fancy-card {
    width: 95%; /* casi todo el ancho de la pantalla */
    margin: 0 auto 15px auto;
  }
  .fancy-card h3,
  .fancy-card h4,
  .fancy-card h5 {
    font-size: 1.1rem;
  }
}
.icon-calendar.icon-fw {
  color: #4a90e2 !important; /* azul suave */
}
/* ------------------------- */
/* Personalización del paginador (portada) */
.pagination {
  justify-content: center; /* centra el paginador */
  gap: 4px; /* espacio entre botones */
}
.pagination .page-item .page-link {
  background-color: #e6eef6; /* color de fondo normal */
  color: #1c1c1c; /* color del texto */
  border: 1px solid #c5d3e0;
  border-radius: 6px;
  padding: 6px 12px;
  transition: all 0.3s ease;
}
.pagination .page-item .page-link:hover {
  background-color: #4a90e2; /* color al pasar el mouse */
  color: #fff; /* texto blanco en hover */
  border-color: #357abd;
}
.pagination .page-item.active .page-link {
  background-color: #4a90e2; /* fondo del botón activo */
  color: #fff;
  border-color: #357abd;
  font-weight: 600;
}
.pagination .page-item.disabled .page-link {
  background-color: #f2f4f6; /* fondo botones desactivados */
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
}
.com-content-category-blog__counter {
  margin-top: 20px;   /* baja el texto */
  margin-bottom: 10px; /* opcional: deja un poco de espacio con el paginador */
}
/* Color hover para los enlaces de contacto (dirección, mail, teléfono) */
.nav.flex-column .nav-link:hover,
.nav.flex-column .nav-link:focus {
  color: #0092FF !important; /* celeste al pasar el mouse */
}
/* También los íconos cambian a celeste */
.nav.flex-column .nav-link:hover i,
.nav.flex-column .nav-link:focus i {
  color: #0092FF !important;
}
/* Mueve el texto del menú principal más a la izquierda */
/*nav[aria-label="horizontal menu"] {
  margin-left: -80px; /* probá -5px, -10px o -15px según necesites */
/*}*/
.header-center-section {
    justify-content: flex-start !important;
    margin-left: 5%; /* en lugar de 50px */
}
/* ------------------------- */
/* FORMULARIO Asesoramiento (VisForms) */
/* ------------------------- */
.Asesoramiento {
  background-color: #eef6fd; /* fondo celeste muy suave */
  border: 1px solid #b3d2e3;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  margin: 0 auto 25px auto;
  font-family: "Open Sans", sans-serif;
  color: #303030;
}

/* Etiquetas */
.Asesoramiento label {
  font-weight: 600;
  color: #1a3a67;
  margin-bottom: 6px;
  display: block;
}

/* Campos de texto, select, textarea */
.Asesoramiento input[type="text"],
.Asesoramiento input[type="email"],
.Asesoramiento input[type="number"],
.Asesoramiento select,
.Asesoramiento textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #b3d2e3;
  border-radius: 6px;
  background-color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: "Open Sans", sans-serif;
  color: #303030;
}

.Asesoramiento input[type="text"]:focus,
.Asesoramiento input[type="email"]:focus,
.Asesoramiento input[type="number"]:focus,
.Asesoramiento select:focus,
.Asesoramiento textarea:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.4);
  outline: none;
}

/* Botones (Enviar, Limpiar, etc.) */
.Asesoramiento button,
.Asesoramiento input[type="submit"],
.Asesoramiento input[type="button"],
.Asesoramiento input[type="reset"] {
  background-color: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}

/* Hover */
.Asesoramiento button:hover,
.Asesoramiento input[type="submit"]:hover,
.Asesoramiento input[type="button"]:hover,
.Asesoramiento input[type="reset"]:hover {
  background-color: #357abd;
}

/* Botón Limpiar (Reset) diferenciado */
.Asesoramiento input[type="reset"] {
  background-color: #9ebbd8;
}
.Asesoramiento input[type="reset"]:hover {
  background-color: #7fa5ca;
}

/* Radio y Checkbox personalizados */
.Asesoramiento input[type="radio"],
.Asesoramiento input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid #4a90e2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 6px;
}

/* Estado seleccionado */
.Asesoramiento input[type="radio"]:checked::after,
.Asesoramiento input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: #4a90e2;
  border-radius: 50%;
}

/* Hover y foco */
.Asesoramiento input[type="radio"]:hover,
.Asesoramiento input[type="checkbox"]:hover {
  border-color: #357abd;
}
.Asesoramiento input[type="radio"]:focus,
.Asesoramiento input[type="checkbox"]:focus {
  outline: 2px solid rgba(74, 144, 226, 0.4);
  outline-offset: 2px;
}

/* Checkbox (cuadrado) */
.Asesoramiento input[type="checkbox"] {
  border-radius: 4px;
}
.Asesoramiento input[type="checkbox"]:checked::after {
  top: 2px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: solid #4a90e2;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  border-radius: 0;
  background: transparent;
}

/* Mensajes de error o validación */
.Asesoramiento .vf__error,
.Asesoramiento .vf__errorMsg {
  color: #c0392b;
  font-weight: 600;
  margin-top: 5px;
}

/* Requeridos */
.Asesoramiento .vf__required,
.Asesoramiento label span.required {
  color: #4a90e2;
  font-weight: bold;
}
/* Color de resaltado al seleccionar texto */
::selection {
  background-color: #4A90E2; /* fondo del texto seleccionado */
  color: #ffffff; /* color del texto mientras está seleccionado */
}

/* Para compatibilidad con navegadores basados en Firefox */
::-moz-selection {
  background-color: #4A90E2;
  color: #ffffff;
}
/* Videos del Modulo de Educacion Legal */
/* Contenedor principal de videos */
.video-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px; /* espacio horizontal entre columnas */
  row-gap: 40px;    /* espacio vertical entre filas */
  width: 100%;
}

/* En celulares: una sola columna */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Asegura que los videos se adapten correctamente */
.video-grid iframe,
.video-grid .youtube-embed,
.video-grid > div {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
}
/* ========================================
   Estilos personalizados para el módulo
   de Búsqueda Inteligente (mod_finder)
   ======================================== */

/* 🔹 Contenedor principal del módulo */
.finder,
.mod-finder,
.awesomplete {
  font-family: inherit;
}

/* 🔹 Campo de búsqueda */
.js-finder-search-query {
  background-color: #ffffff;         /* Fondo del campo */
  color: #333333;                    /* Texto */
  border: 1px solid #4a90e2;         /* Borde normal */
  border-radius: 6px;                /* Bordes redondeados */
  padding: 8px 12px;
  width: 100%;
  transition: all 0.2s ease-in-out;
}

/* 🔹 Efecto al hacer clic dentro del campo (focus) */
.js-finder-search-query:focus {
  border-color: #357ab8;             /* Borde al enfocarse */
  box-shadow: 0 0 5px #4a90e2;       /* Brillo alrededor */
  outline: none;                     /* Quita el contorno naranja */
}

/* 🔹 Botón de búsqueda */
.finder button,
.mod-finder button,
button.finder,
button.mod-finder {
  background-color: #4a90e2;         /* Color principal */
  color: #ffffff;                    /* Color del ícono o texto */
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  transition: all 0.2s ease-in-out;
}

.finder button:hover,
.mod-finder button:hover {
  background-color: #357ab8;         /* Color al pasar el mouse */
}

/* 🔹 Icono de la lupa (si usa FontAwesome o Bootstrap Icons) */
.finder button i,
.mod-finder button i {
  color: #ffffff;
}

/* 🔹 Lista de sugerencias del autocompletado (Awesomplete) */
.awesomplete > ul {
  background-color: #ffffff;         /* Fondo de la lista */
  border: 1px solid #4a90e2;         /* Borde de la lista */
  border-radius: 6px;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 🔹 Ítems individuales */
.awesomplete > ul > li {
  padding: 6px 10px;
  color: #333333;
  cursor: pointer;
}

/* 🔹 Ítem seleccionado o resaltado */
.awesomplete > ul > li[aria-selected="true"] {
  background-color: #4a90e2;
  color: #ffffff;
}

/* 🔹 Ajustes visuales del contenedor */
.finder form,
.mod-finder form {
  display: flex;
  gap: 8px;
  align-items: center;
}
/* Cambia el color del resaltado de términos encontrados en los resultados */
mark,
.highlight,
span.highlight {
  background-color: #bfe3ff !important; /* celeste claro */
  color: #1a3a67 !important;            /* texto oscuro para contraste */
  padding: 0 2px;
  border-radius: 3px;
}
