@font-face {
  font-family: 'Nata';
  src: url('../fonts/Nata-SemiBold.woff') format('woff2'),
    url('../fonts/Nata-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UltimateSerial';
  src: url('../fonts/Ultimate-Serial-Heavy-Regular.woff2') format('woff2'),
    url('../fonts/Ultimate-Serial-Heavy-Regular.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YDYooncheM";
  src: url("../fonts/YDYooncheM.woff2") format("woff2"),
       url("../fontsYDYooncheM.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

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

.bg-atjprimary {
  /* background-color: #0d47a1; */
  background: linear-gradient(180deg, #0d47a1 0%, #224f9b 50%, #093a86 80%, #072e6d 100%);
}

.bg-atjsecondary {
  background-color: #cfa518;
}

.bg-atjtertiary {
  background-color: #20272b;
}

/* ===================================
    ESTILOS GENERALES
   =================================== 
*/

align-to-right {
  background-color: #92a8d1;
  color: #92a8d1;
  width: 300px;
  height: 300px;
}

align-to-left {
  margin-left: auto;
}

h1 {
  font-family: "Nata";
  font-size: 8vh;
}

h2 {
  /* font-family: "Nata"; */
  color: #224f9b;
  font-size: 4vh;
}

h4 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  /* Ajusta este valor según tus necesidades */
}

h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  /* Ajusta este valor según tus necesidades */
  width: 50vw;
  /* La línea tendrá la mitad del ancho de la pantalla */
  border-bottom: 2px solid #b3cbe0;
  /* Puedes cambiar el grosor y color de la línea */
  transform: translateX(-50%);
}

/* ===================================
    ESTILOS DEL BANNER PRINCIPAL
   =================================== 
*/

.banner_container {
  width: 100%;
  position: absolute;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
}

.banner_logoContainer {
  /* margin-left: 2%;
    margin-right: 2%; */
  display: flex;
  justify-content: center;
  transition: transform 1s ease-out;
  transform: scale(1);
}

.row:hover .banner_logoContainer {
  transition: transform 1s ease-out;
  transform: scale(1.1);
}

.banner_textContainer {
  /* margin-top: 2%;
    /* margin-bottom: 5%; */
  /* margin-left: 2%;
    margin-right: 2%; */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner_text1 {
  color: #ffffff !important;
  font-size: 12vh !important;
  transition: all 1.5s ease-in-out;
  /* transition: transform 1s ease-out;
    transform: scale(1.2); */
}

.banner_hr {
  width: 100%;
  height: 4px;
  border-color: #9f7729;
  margin: 20px auto;
}

.banner_text1 {
  color: #ffffff !important;
  font-size: 10vh !important;
}

.banner_text2 {
  font-size: 20px !important;
}

.banner_text3 {
  color: rgb(223, 237, 255);
  font-size: 3vh !important;
}

/* ===================================
    ESTILOS DE LA SECCIÓN DE SERVICIOS
   =================================== 
*/

.img_icon {
  align-items: center;
  height: 3vh;
  padding-right: 10px;
}

.espacio {
  padding-right: 10%;
}

.espacioIzquierda {
  padding-left: 10%;
}

.bottom {
  margin-bottom: 2%;
}


/* ESTILOS DE LAS IMAGENES DE LA PÁGINA */
.row.no-gutters .col-md-6 {
  padding: 0 !important;
}

.degradadoImagenesServicios {
  -webkit-mask-image: linear-gradient(180deg, black 40%, transparent 100%);
  mask-image: linear-gradient(180deg, black 40%, transparent 100%);
}

.imagenServicios {
  object-fit: cover;
  width: 100%;
  height: 500px;
}

.imagenServicios:hover {
  height: 100%;
}

.contenedorTituloServicios {
  width: 100%;
}

.contenedorImagenEquipoInvestigadores {
  position: relative;
  overflow: hidden;
  border-right: 10px solid #224f9b;
  height: 100%;
}

.imagenEquipoInvestigadores {
  transition: transform 0.3s ease-in-out;
  /* Suaviza la animación */
  width: 100%;
  /* Ajusta el tamaño de la imagen al contenedor */
  height: 100%;
  object-fit: cover;
}

.row:hover .imagenEquipoInvestigadores {
  transform: scale(1.1);
}

.imagenEfectosNodosLeft1 {
  transform: translateX(-100%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imagenEfectosNodosLeft2 {
  transform: translateY(-100%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imagenEfectoFooter {
  transform: translateY(-100%);
}

/* ESTILOS Y ANIMACIONES DE LOS CONTENEDORES DE DESCRIPCION DE SERVICIO */
.contenedorTextoServicios {
  position: absolute;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  transform: translate(0%, -100%);
  background-color: #ffffffea;
  height: 100%;
  padding-right: 4%;
  padding-left: 4%;
  opacity: 0;
  transition: 0.3s;
  border-top: 10px solid #224f9b;
  scrollbar-width: none;
}

/* Teléfonos pequeños (hasta 480px) */
@media only screen and (max-width: 480px) {
  .imagenServicios {
    height: fit-content;
  }

  .contenedorTextoServicios {
    visibility: hidden;
    z-index: 1001;
    object-fit: contain;
    position: absolute;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: #ffffffea;
    height: 100%;
    padding-right: 4%;
    padding-left: 4%;
    opacity: 0;
    transition: 0.3s;
    border-top: 10px solid #224f9b;
  }
}

/* Teléfonos grandes y tablets pequeñas (481px a 768px) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
  .imagenServicios {
    height: fit-content;
  }

  .contenedorTextoServicios {
    visibility: hidden;
    z-index: 1001;
    object-fit: contain;
    position: absolute;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: #ffffffea;
    height: 100%;
    padding-right: 4%;
    padding-left: 4%;
    opacity: 0;
    transition: 0.3s;
    border-top: 10px solid #224f9b;
  }
}

/* Tablets grandes y dispositivos en modo horizontal (769px a 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .imagenServicios {
    height: fit-content;
  }

  .contenedorTextoServicios {
    visibility: hidden;
    z-index: 1001;
    object-fit: contain;
    position: absolute;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: #ffffffea;
    height: 100%;
    padding-right: 4%;
    padding-left: 4%;
    opacity: 0;
    transition: 0.3s;
    border-top: 10px solid #224f9b;
  }
}

.col-lg-6:hover .contenedorTextoServicios {
  visibility: visible;
  opacity: 1;
}

.logoContenedor {
  height: 4rem;
  width: 4rem;
  margin: 0 2% 0 2%;
  aspect-ratio: auto;
}

/* ESTILOS Y ANIMACIONES DE LOS TITULOS */
.serviciosTitulo {
  position: absolute;
  text-align: right;
  padding-right: 3%;
  padding-left: 2%;
  width: 100%;
  height: auto;
  bottom: 1%;
  color: #ffffff;
  transition: all 0.5s ease-in-out;
  /* font-family: "Open Sans", Arial, sans-serif;*/
  /* font-weight: 600; */
}

.col-lg-6:hover .serviciosTitulo {
  /* top: 0%; */
  transform: translateY(50%);
  opacity: 0;
}

.serviciosTituloDetalle {
  position: relative;
  transform: translateX(5%);
  max-width: 100%;
  height: auto;
  color: #224f9b;
  transition: all 0.5s ease-in-out;
  font-weight: 600;
  opacity: 0;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.col-lg-6:hover .serviciosTituloDetalle {
  transform: translateX(0);
  opacity: 1;
}


/* =========================
   QUIÉNES SOMOS
========================= */
.about-section {
  overflow: hidden;
  background: #fff;
}

.about-text {
  background: #fff;
}

/* Contenedor de la imagen */
.about-image {
  position: relative;
  min-height: 400px;
  overflow: auto;
  border-bottom-left-radius: 30% 30%;
  background-size: cover;
  background-position: 30% center;
  /* Posición inicial */
  background-repeat: no-repeat;
}

/* Capa que se usa para el fade de la siguiente imagen */
.fade-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 30% center;
  /* Coincide con la base */
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  /* Duración del fade */
  z-index: 1;
  /* Encima de la imagen base */
}


/* Asegurar que en escritorio ambas columnas midan lo mismo */
@media (min-width: 992px) {
  .about-section .row {
    display: flex;
    align-items: stretch;
  }

  .about-text,
  .about-image {
    height: 100%;
  }
}

/* Título con estilo azul y sin apachurrarse */
/* Fuente clara y bien presentada para los títulos */
.servicio .card-title {
  font-size: 2rem;
  font-weight: 500;
  color: rgba(13, 71, 161, 1);
}



/* Ícono junto al título */
.icono-titulo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  margin-bottom: 2px;
}

/* Logo ATJ debajo de la imagen */
.logo-servicio {
  width: 100px;
  height: auto;
}

/* Icono + texto para "Servicio personal" */
.servicio-etiqueta {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.servicio-etiqueta-label {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  color: #616d82
}


.icono-servicio {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

/* Estructura de la tarjeta */
.servicio {
  position: relative;
  background-color: #fff;
  transition: transform 0.3s ease;
  overflow: hidden;
  z-index: 0;
  border-radius: 4px;
  border-bottom: 2px solid rgba(13, 71, 161, 1);

}

.servicio:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Contenido visible (se oculta en hover) */
.servicio-contenido {
  z-index: 1;
  position: relative;
  transition: opacity 0.3s ease;
  background-color: #fff;
}

.servicio:hover .servicio-contenido {
  opacity: 0;
  pointer-events: none;
}

/* Overlay blanco con detalles y botones */
.servicio-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  height: calc(100% - 2px);
  /* Deja libre el espacio del border-bottom */
}

.servicio:hover .servicio-hover-overlay {
  opacity: 1;
  pointer-events: auto;
  height: calc(100% - 2px);
  /* Deja libre el espacio del border-bottom */
}

.servicio-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.servicio-text-container {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  /* Importante para que funcione el overflow */
}

.servicio-hover-text {
  line-height: 1.6;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Scrollbar personalizado (opcional) */
.servicio-text-container::-webkit-scrollbar {
  width: 6px;
}

.servicio-text-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.servicio-text-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.servicio-text-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.linea-inferior {
  height: 4px;
  background-color: rgba(13, 71, 161, 1);
  width: 100%;
}

/* =========================================================
   HERO (gtco-hero) — 
   ========================================================= */
#gtco-hero {
  position: relative;
  overflow: visible;
  margin-bottom: 0px;
  padding-bottom: 28px;
}

#gtco-hero .container-fluid {
  position: relative;
}

/* ---------------------------
   Columna IZQUIERDA (VIDEO)
--------------------------- */
#gtco-hero .hero-left {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  /* recorta por el radio */
  border-bottom-right-radius: 250px 600px;
  /* z-index: 2; */
  /* sobre el panel derecho */

}

#gtco-hero .hero-left .banner_container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#gtco-hero .hero-left .overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0,0,0,.35); */
  z-index: 1;
  pointer-events: none;
}

/* Logo que aparece solamente en dispositivos móviles */
#gtco-hero .hero-left .atj-logo{
  height: 15vh;
}

/* ---------------------------
   Logo flotante
--------------------------- */
#gtco-hero .hero-curve-logo {
  position: absolute;
  bottom: 10px;
  /* ↑ sube / ↓ baja */
  left: calc(53% - 90px);
  /* mueve horizontal (ajusta %) */
  z-index: 30;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  /* background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); */
  display: flex;
  align-items: center;
  justify-content: center;
}

#gtco-hero .hero-curve-logo img {
  width: 82%;
  height: auto;
  object-fit: contain;
}

/* ---------------------------
   Columna DERECHA (CONTENIDO)
--------------------------- */
#gtco-hero .hero-right {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  z-index: 1;
  /* debajo del lado izquierdo */
  background: linear-gradient(180deg, #0d47a1 0%, #224f9b 50%, #093a86 80%, #072e6d 100%);
  color: #fff;
}

#gtco-hero .hero-right-inner {
  max-width: 720px;
  margin-left: auto;
}

/* ---------------------------
   Tipografía / CTA
--------------------------- */
#gtco-hero .hero-kicker {
  display: block;
  font-family: "UltimateSerial", system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cfe0ff;
  opacity: .9;
}

#gtco-hero .hero-title {
  margin: 0;
  line-height: 1;
}

#gtco-hero .hero-title-line {
  display: block;
  font-family: "Nata", system-ui, sans-serif;
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 700;
  color: #f7f9ff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

#gtco-hero .hero-subtitle {
  margin: 0;
  color: #d9e6ff;
  font-size: clamp(14px, 2.2vw, 18px);
}

#gtco-hero .hero-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .4), rgba(255, 255, 255, .15));
}

#gtco-hero .hero-h2 {
  margin: 0 0 .25rem 0;
  font-size: clamp(18px, 2.6vw, 24px);
  color: #e9f1ff;
}

#gtco-hero .hero-lead {
  margin: 0;
  font-size: clamp(14px, 2.1vw, 17px);
  color: #d2e2ff;
}

#gtco-hero .hero-btn-cta {
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.25rem;
  font-weight: 600;
  background: #22c55e;
  color: #0b2a59;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}

#gtco-hero .hero-btn-cta:hover {
  filter: brightness(1.05);
}

/* ---------------------------
   Responsivo
--------------------------- */
@media (max-width: 991.98px) {
  #gtco-hero .hero-left {
    border-bottom-right-radius: 100px 100px;
    min-height: 50vh;
  }

  #gtco-hero .hero-right {
    min-height: auto;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  #gtco-hero .hero-right-inner {
    max-width: 100%;
  }

  #gtco-hero .hero-curve-logo {
    display: none;
  }
}

@media (max-width: 575.98px) {
  #gtco-hero .hero-right-inner {
    max-width: 100%;
  }
}

/* ----- Hero Right: Carrusel de contenido ----- */
.hero-content-carousel {
  position: relative;
  min-height: 220px;
  /* ajusta según tu contenido */
}

.hero-content-carousel .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.hero-content-carousel .hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
  /* mantiene el alto del contenedor */
}

.hero-content-carousel .hero-nav {
  position: absolute;
  top: 105%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, .08);
  backdrop-filter: blur(2px);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  line-height: 40px;
  text-align: center;
  font-size: 22px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
  user-select: none;
}

.hero-content-carousel .hero-nav:hover {
  background: rgba(0, 0, 0, .15);
}

.hero-content-carousel .hero-nav:active {
  transform: translateY(-50%) scale(.98);
}

.hero-content-carousel .hero-nav-prev {
  left: -6px;
}

.hero-content-carousel .hero-nav-next {
  right: -6px;
}

/* Accesibilidad: foco visible */
.hero-content-carousel .hero-nav:focus-visible {
  outline: 2px solid var(--bs-primary, #0d6efd);
  outline-offset: 2px;
}

/* Responsive pequeño ajuste */
@media (max-width: 576px) {
  .hero-content-carousel .hero-nav-prev { left: 0; }
  .hero-content-carousel .hero-nav-next { right: 0; }
}
/* =========================================================
   ¿Por qué contratar una investigación profesional?
   ========================================================= */

#why-investigation{
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(
    180deg,
    #0b3a82 0%,
    #1d437f 50%,
    #163e7a 80%,
    #184ea3 100%
  );  color: #fff;
}

/* --------- Título y subtítulo --------- */
#why-investigation .why-title{
  margin: 0;
  line-height: 0.8;
  /* font-family: "YDYooncheM", sans-serif; */
  font-size: clamp(34px,6vw,56px);
  font-weight: normal;
  color: #f7f9ff;
  text-shadow: 0 4px 0 rgba(0,0,0,.15);
  letter-spacing: .01em;          

}

#why-investigation .why-subtitle{
  margin: 0;
  max-width: 720px;  
  margin-left: auto;
  margin-right: auto;
  color: white;
  font-size: clamp(14px,2.2vw,18px);
}

/* --------- Tarjetas de estadísticas --------- */
#why-investigation .stats-wrap{ margin-top: .25rem; }

#why-investigation .stat-block{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 24px 20px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#why-investigation .stat-block:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.18);
}

#why-investigation .stat-icon{
  width: 72px; height: 72px;
  border-radius: 16px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  /* background: #ffffffda;            */
  /* outline: 1px solid rgba(255,255,255,.15); */
}
#why-investigation .stat-icon img{
  max-width: 42px; max-height: 42px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
}

#why-investigation .stat-value{
  font-family: 'Times New Roman', Times, serif;
  line-height: 1;
  font-size: clamp(36px,7vw,40px);
  color: #95ffbc;                           
  margin-bottom: 6px;
  text-shadow: 0 2px 0 rgba(0,0,0,.15);
}

#why-investigation .stat-text{
  margin: 0;
  color: #e9f1ff;
  opacity: .95;
  font-size: clamp(14px,2.1vw,17px);
}

/* Divisores verticales en desktop */
@media (min-width: 992px){
  #why-investigation .stats-wrap .col-lg-4:not(:last-child){
    position: relative;
  }
  #why-investigation .stats-wrap .col-lg-4:not(:last-child)::after{
    content: "";
    position: absolute;
    right: -12px;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg,transparent,rgba(255,255,255,.35),transparent);
  }
}

/* --------- Botón CTA --------- */
#why-investigation .btn-success{
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.25rem;
  font-weight: 600;
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
#why-investigation .btn-success:hover{ filter: brightness(1.05); }
.py-6{ padding-top: 4.5rem; padding-bottom: 4.5rem; }

  .hero-content-carousel .hero-nav-next {
    right: 0;
  }
