/* Estilos personalizados */
body {
  font-family: 'Inter', sans-serif;
}

/* Clase 'active' para el enlace del menú */
.nav-link.active {
  color: #0097b2;
  /* Azul de Tailwind */
  font-weight: 600;
}

/* Transición suave para los cambios de color */
.nav-link {
  transition: color 0.3s ease-in-out;
}

/* Estilos para el slider de la sección de inicio */
.hero-slide {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-slide.visible {
  opacity: 1;
}

/*-----------------------------------*\
  #ANIMACIONES
\*-----------------------------------*/

.slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
  animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.focus-in-contract-bck {
  -webkit-animation: focus-in-contract-bck 2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: focus-in-contract-bck 2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes focus-in-contract-bck {
  0% {
    letter-spacing: 1em;
    -webkit-transform: translateZ(300px);
    transform: translateZ(300px);
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateZ(12px);
    transform: translateZ(12px);
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes focus-in-contract-bck {
  0% {
    letter-spacing: 1em;
    -webkit-transform: translateZ(300px);
    transform: translateZ(300px);
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateZ(12px);
    transform: translateZ(12px);
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }
}

/*Acercamiento de imágenes*/

.kenburns-bottom {
  -webkit-animation: kenburns-bottom 5s ease-out both;
  animation: kenburns-bottom 5s ease-out both;
}

@-webkit-keyframes kenburns-bottom {
  0% {
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
    -webkit-transform-origin: 50% 84%;
    transform-origin: 50% 84%;
  }

  100% {
    -webkit-transform: scale(1.25) translateY(15px);
    transform: scale(1.25) translateY(15px);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
  }
}

@keyframes kenburns-bottom {
  0% {
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
    -webkit-transform-origin: 50% 84%;
    transform-origin: 50% 84%;
  }

  100% {
    -webkit-transform: scale(1.25) translateY(15px);
    transform: scale(1.25) translateY(15px);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
  }
}

/*Botones*/
.pulsate-fwd {
  -webkit-animation: pulsate-fwd 0.5s ease-in-out infinite both;
  animation: pulsate-fwd 0.5s ease-in-out infinite both;
}

@-webkit-keyframes pulsate-fwd {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes pulsate-fwd {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

/* marcadores del menu activo */

#navigation a {
  padding: 5px 10x;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

#navigation a.active {
  color: #0097b2;
  border-bottom: 3px solid #0097b2;
  font-weight: bold;
}


/* Página Nosotros*/
main.nosotros {
  margin: 4rem auto;
  padding: 0 2rem;
  background: #fff;
}

main section {
  margin-bottom: 2rem;
}

.mision-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.mision,
.vision {
  flex: 1;
  background-color: #bed3da;
  padding: 20px;
}

.clientes {
  padding: 2rem 1rem;
  background: #f0f4f8;
  border-radius: 8px;
}

.clientes h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #0E415F;
}

.lista-clientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  list-style: none;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  text-align: center;
}

.lista-clientes li {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

/* Imagen circular*/

.img-circle-container {
  width: 300px;
  height: 300px;
  justify-content: center;
  align-content: center;
  overflow: hidden;
  border-radius: 50%;
}

.img-circle-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Página de seguros individuales*/
.img-circular {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.img-circular:hover {
  transform: scale(1.05);
}

.titulo-seguro {
  color: #0E415F;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.text-cyan {
  color: #0E415F;
}

.card-seguro {
  padding: 1rem;
}


/* Página alianzas */

/* Breadcrumbs */
.breadcrumb_bg {
  background-image: url(../img/alianzas/breadcrumb.webp);
}

.breadcrumb_overlay {
  position: relative;
  z-index: 0;
}

.breadcrumb_overlay::before {
  position: absolute;
  content: "";
  background: -moz-linear-gradient(left, #47D7F0 0%, #65b4f9 24%, rgba(124, 185, 233, 0) 96%, rgba(125, 185, 232, 0) 100%);
  background: -webkit-linear-gradient(left, #47D7F0 0%, #65b4f9 24%, rgba(124, 185, 233, 0) 96%, rgba(125, 185, 232, 0) 100%);
  background: linear-gradient(to right, #47D7F0 0%, #65b4f9 24%, rgba(124, 185, 233, 0) 96%, rgba(125, 185, 232, 0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#47D7F0', endColorstr='#007db9e8',GradientType=1 );
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 1;
}

.breadcrumb_area {
  padding: 170px;
  background-size: cover;
  background-position: center center;
  padding: 148px 0px;
  background-repeat: no-repeat;
  padding-block: calc(0.25rem * 30);
}

.breadcrumb_area h1 {
  font-size: 50px;
  color: #fff;  
  font-weight: 600;
  margin-bottom: 0;
  text-transform: capitalize;
}

.breadcrumb_area p {
  font-size: 18px;
  color: #fff;
  font-weight: 400;
}

@media (max-width: 767px) {
  .breadcrumb_area {
    padding: 120px 0;
  }
}

@media (max-width: 767px) {
  .breadcrumb_area h1 {
    font-size: 30px;
  }
}

/* Lista de dos columnas */
.two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.two-column-list li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.two-column-list li i {
    position: absolute;
    left: 0;
    top: 4px;
}

@media (max-width: 576px) {
    .two-column-list {
        grid-template-columns: 1fr;
    }
}

/* Animaciones personalizadas */
@keyframes customFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeinleft {
  animation: customFadeInLeft 1s ease-out forwards;
}

@keyframes customFadeInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeinright {
  animation: customFadeInRight 1s ease-out forwards;
}


.contact-data li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}












/* --- ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP --- */
/* Contenedor principal del panel de WhatsApp */
.whatsapp-panel {
    position: fixed; /* Mantiene el botón en un lugar fijo de la pantalla */
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre el panel de texto y el icono */
    text-decoration: none; /* Quita el subrayado del enlace */
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    transition: all 0.3s ease;
}

/* Caja que contiene el texto */
.whatsapp-text-box {
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px; /* Esquinas redondeadas */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Sombra sutil */
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.3s ease;
}

/* Estilo para la primera línea de texto */
.whatsapp-text-light {
    color: #555; /* Color de texto gris oscuro */
    font-size: 13px;
}

/* Estilo para la segunda línea de texto (en negrita) */
.whatsapp-text-bold {
    color: #1E2939; /* Un poco más oscuro para énfasis */
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase; /* Convierte el texto a mayúsculas */
}

/* Círculo que contiene el icono de WhatsApp */
.whatsapp-icon-circle {
    background-color: #25D366; /* Color verde de WhatsApp */
    width: 55px;
    height: 55px;
    border-radius: 50%; /* Lo convierte en un círculo perfecto */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Estilo del icono SVG dentro del círculo */
.whatsapp-icon-circle svg {
    width: 30px;
    height: 30px;
    fill: white; /* El logo de WhatsApp en sí es blanco */
}

/* Efecto hover para mejorar la interactividad */
.whatsapp-panel:hover .whatsapp-text-box {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada al pasar el mouse */
}

.whatsapp-panel:hover .whatsapp-icon-circle {
    transform: scale(1.05); /* Agranda ligeramente el icono */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5);
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: #FFF;
}

/* --- ESTILOS PARA EL BOTÓN DE SUBIR (SCROLL TO TOP) --- */
.scroll-top-float {
  position: fixed;
  width: 50px;
  height: 50px;
  /* WhatsApp bottom (40px) + WhatsApp height (60px) + margin (10px) */
  bottom: 110px; 
  right: 45px; /* Centrado con el botón de WhatsApp */
  background-color: #0097b2;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  
  /* Oculto por defecto con una transición suave */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Clase 'show' que se añade con JavaScript para mostrar el botón */
.scroll-top-float.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-float:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.scroll-top-float svg {
  width: 24px;
  height: 24px;
  stroke: #FFF;
  stroke-width: 3;
}

/* Ajustes responsivos para ambos botones */
@media (max-width: 768px) {
  .whatsapp-float {
      width: 50px;
      height: 50px;
      right: 20px;
      bottom: 20px;
  }
  .whatsapp-float svg {
      width: 30px;
      height: 30px;
  }
  .scroll-top-float {
      width: 45px;
      height: 45px;
      right: 22.5px;
        /* whatsapp bottom (20px) + whatsapp height (50px) + margin (10px) */
      bottom: 80px;
  }
}

@media (max-width: 1024px) {
  .espacio {
    display: none;
  }
}