html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 80px;
  margin: 0px 10px;
  border-radius: 16px;
  padding: 1rem;
  overflow: hidden;
}

.navbar-brand {
  font-weight: 500;
  font-size: 24px;
  transition: 0.3s color;
}

.logo {
  width: 40px;
  height: 40px;
}

.icono {
  width: 50px;
  height: 50px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1),
    0px 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
  background: #fff;
}

.icono:hover {
  transform: scale(1.05);
}

.nina,
.tic {
  font-family: Poppins, serif;
  font-size: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.nina {
  color: #003C3E;
}

.tic {
  color: #0AC7FF;
}

.contact-button {
  background: #0b97c9;
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  letter-spacing: 2px;
  transition: 0.3s background-color;
}

.contact-button:hover {
  background: #0b97c9;
}

.navbar-toggler {
  border: none;
  font-size: 1.25rem;
}

.navbar-toggler:focus,
.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.nav-link {
  color: #666777;
  font-weight: 500;
  position: relative;
  letter-spacing: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: #000;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: #0AC7FF;
  visibility: hidden;
  transition: 0.3s ease-in-out;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
  visibility: visible;
}

.offcanvas.show .nav-link:hover,
.offcanvas.show .nav-link.active {
  color: #0AC7FF;
}

/* General */
.text-color-primary {
  color: #065574;
  font-family: 'Poppins', Montserrat, Inter;
  letter-spacing: 2px;
  font-weight: 280;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.text-color-cont {
  color: #065574;
  font-family: 'Poppins', Montserrat, Inter;
  letter-spacing: 2px;
  font-weight: 280;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.titulo {
  color: #003C3E;
  font-family: 'Poppins', Montserrat, Inter;
  letter-spacing: 2px;
  font-weight: bold;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.center-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Inicio */
.first-part {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.indicador {
  background-color: #00BDF2 !important;
}

.carousel-indicators {
  position: static !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(57%) sepia(79%) saturate(749%) hue-rotate(153deg) brightness(95%) contrast(104%);
  width: 2rem;
  height: 2rem;
}

.flecha-wrapper {
  position: absolute;
  bottom: 100px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.scroll-down-indicator {
  font-size: 2rem;
  color: #0b97c9;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -10px);
  }
}

/* Clientes*/
.second-part {
  width: 100%;
  height: 100vh;
  background: #fdfeff;
  text-align: center;
}

.clientes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Flip card */
.flip-card {
  background-color: transparent;
  width: 200px;
  height: 200px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.flip-card:hover {
  cursor: pointer;
  transform: scale(1.05);
  transition: transform 0.6s;
  border-radius: 10px;
}

.flip-card-inner.rotado {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
  border-radius: 10px;
}

.flip-card-back {
  background: linear-gradient(to top, #123456, rgb(53, 100, 122));
  color: white;
  transform: rotateY(180deg);
  border-radius: 10px;
  padding: 1rem;
  word-break: break-word;
  text-align: center;
}

.card-img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
}

.nombre {
  font-family: 'Poppins', Montserrat, Inter;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  padding-left: 10px;
}

/* Nosotros */
.third-part {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 4rem;
  background-color: #f9fbfd;
}

.text-cont-somos {
  color: #065574;
  font-family: 'Poppins', Montserrat, Inter;
  letter-spacing: 2px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.btn-logo {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.btn-logo img {
  width: 100px;
  transition: transform 0.3s ease-in-out;
}

.btn-logo:hover {
  background-color: #ffffff;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

/* Cards generales */
#nosotros .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background-color: white;
  transition: transform 1s;
}

.img-nosotros {
  width: 230px;
}

.div-img-nosotros-phone {
  display: none !important;
}

.div-img-nosotros {
  display: flex !important;
}

/* Logo SEPREC */
.seprec img {
  max-width: 150px;
  transition: transform 0.3s ease;
}

.seprec img:hover {
  transform: scale(1.05);
}

/* Servicios */
.fourth-part {
  padding-top: 80px;
  background-color: #f9fcff;
}

.card-servicio {
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border: none;
  border-radius: 10px;
  width: 19rem;
}

.card-servicio:hover {
  transform: perspective(800px) translateZ(5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.text-cont-servicio {
  color: #065574;
  font-family: 'Poppins', 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(0.90rem, 0.90vw, 0.90rem);
  text-align: start;
}

.text-color-cont-servicio {
  font-weight: 400;
  font-size: 0.95rem;
  color: #065574;
  text-align: left;
}

.servicios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.titulo-card2 {
  color: #003C3E;
  font-family: 'Poppins', Montserrat, Inter;
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 1.5rem;
}

.card img {
  border-radius: 10px 10px 0 0;
}

.card-body {
  padding: 1.2rem;
}

.div-titulo-servicio {
  width: 100%;
  height: 64px;
}

.div-detalle-servicio {
  display: flex;
  align-items: flex-start;
}

.i-servicio {
  color: #28b463;
  margin-right: 8px;
  margin-top: 4px;
}

.boton-whatsapp-servicio {
  padding: 8px 18px;
  background-color: #065574;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 60%;
}

.boton-whatsapp-servicio:hover {
  background-color: #216f91;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}


/* Contacto */
.fifth-part {
  background: white;
  min-height: 85vh;
  padding: 2rem 1rem;
  flex-direction: column;
}

.boton-whatsapp {
  padding: 10px 20px;
  background-color: #128C7E;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.boton-whatsapp:hover {
  background-color: #128C7E;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.contenedor-redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 5px;
  margin-bottom: 5px;
}

.social-icon {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  width: 40px;
  height: 40px;
  background: #343A40;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.social-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* footer */
.footer {
  background-color: #343A40;
}

.a-linkedin {
  text-decoration: none;
  color: white
}

/* Redes sociales */
.social-icon.facebook:hover {
  background-color: #1877f2;
  color: white;
}

.social-icon.youtube:hover {
  background-color: #ff0000;
  color: white;
}

.social-icon.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
}

.social-icon.tiktok:hover {
  background-color: #010101;
  color: white;
}

.social-icon.linkedin:hover {
  background-color: #0077b5;
  color: white;
}

.social-icon.twitter:hover {
  background-color: #000000;
  color: white;
}

/* Movil */
@media (max-width: 991px) {

  .nina,
  .tic {
    display: none;
  }

  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background-color: #0AC7FF;
    visibility: hidden;
    transition: 0.3s ease-in-out;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    width: 0%;
    visibility: visible;
  }

  .second-part {
    height: auto;
    padding: 90px 0px 10px 0px;
  }

  .third-part {
    height: auto;
    padding: 90px 0px 10px 0px;
  }

  .fourth-part {
    height: auto;
    padding: 90px 0px 10px 0px;
  }

  .div-img-nosotros {
    display: none !important;
  }

  .div-img-nosotros-phone {
    display: flex !important;
    padding-top: 10px;
  }

  .div-text-nosotros {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
  }

  .btn-seprec {
    padding-left: 0px;
  }
}

@media (max-width: 1400px) {
  .flecha-wrapper {
    bottom: 50px;
  }
}

@media screen and (max-width: 600px) {
  .flip-card {
    width: 110px;
    height: 110px;
  }

  .card-img {
    width: 110px;
    height: 110px;
  }

  .nombre {
    font-family: 'Poppins', Montserrat, Inter;
    font-size: 0.7rem;
    color: #fff;
    text-align: center;
  }

  .clientes-container {
    gap: 1rem;
  }
}

@media (max-width: 1350px) {
  .flecha {
    display: none;
  }

  .carousel-item {
    max-height: 450px;
  }

}

@media (min-width: 1401px) {
  .carousel-indicators {
    display: none;
  }
}

@media (max-width: 768px) {
  #nosotros h2 {
    font-size: 1.5rem;
  }

  .text-cont-somos {
    font-size: 1rem;
  }

  .seprec img {
    max-width: 120px;
  }

  .fifth-part {
    min-height: 85vh;
    padding: 3rem 1rem 4rem;
  }

  .contenedor-redes {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .footer-text {
    font-size: 0.8rem;
    text-align: center;
  }

  .div-img-nosotros {
    padding: 0px
  }
}