html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #F5F5F5;
  color: #000000;
  padding: 0;
}

* {
  box-sizing: border-box;
}

header {
  background-color: #1A2B4C;
  color: #FFFFFF;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  margin-top: 40px;
}

nav {
  padding-inline: 1rem;
  overflow-x: hidden;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 1.1rem;
}

nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
}

nav ul li:last-child a {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.hero-slider {
  position: relative;
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  top: 0
}

.slider-container {
  position: relative;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFFFFF;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4
  }

  to {
    opacity: 1
  }
}

section {
  padding: 4rem 2rem;
}

h2 {
  color: #1A2B4C;
}

.servicio-bloque {
  background-color: #FFFFFF;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 5px solid #C9A94B;
}

.perfil {
  background-color: #FFFFFF;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 5px solid #1A2B4C;
}

form input,
form textarea {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.5rem;
}

form button {
  display: block;
  background-color: #1A2B4C;
  color: #FFFFFF;
  border: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin: 1rem auto;
  /* Centra horizontalmente */
}

form button:hover {
  background-color: #C9A94B;
  /* Color dorado al pasar el mouse */
  color: #1A2B4C;
}

footer {
  background-color: #1A2B4C;
  color: #FFFFFF;
  text-align: center;
  padding: 2rem;
}

.logos i {
  margin: 0 0.5rem;
  font-size: 1.5rem;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  padding: 0.8rem;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 1000;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.logo img {
  height: 75px;
  /* Reduce el alto del logo */
  width: auto;
  /* Mantiene proporción */
  object-fit: contain;
}

/* Para que se adapte en los celulares */
@media (max-width: 768px) {
  .logo img {
    height: 30px;
  }

  .nombre-firma {
    font-size: 0.9rem;
  }
}

/* Para que los servicios (cards) */
.servicios-grid {
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 0 2rem;
}

.card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 460px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #1A2B4C;
  font-size: 1.2rem;
  margin: 1rem 1rem 0.5rem;
}

.card ul {
  padding: 0 1.5rem 1.5rem;
  list-style-type: disc;
  color: #333;
  line-height: 1.6;
}

/* Responsive para moviles */
@media (max-width: 768px) {
  .servicios-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Espacio uniforme entre cards */
    padding: 0 1rem; /* Reducir padding lateral */
  }


  .card {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 100%; /* Elimina cualquier límite máximo */
    margin: 0 auto; /* Centrado horizontal */
    flex: none; /* Evita crecimiento flexible */
  }

  .card img {
    height: 200px; /* Altura fija para imágenes */
    object-fit: cover; /* Asegura buen recorte */
  }

  .card ul {
    padding: 0 2rem 1rem; /* Ajuste de padding interno */
  }
}

/* eso es para la parte de Nosotros */

.nosotros-section {
  padding: 4rem 2rem;
}

.nosotros-contenido {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.texto {
  flex: 1 1 60%;
}

.texto p {
  line-height: 1.8;
  font-size: 1rem;
  color: #000000;
  text-align: justify;
}

.imagen {
  flex: 1 1 35%;
}

.imagen img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive para celulares */
@media (max-width: 768px) {
  .nosotros-contenido {
    flex-direction: column;
  }

  .imagen {
    margin-top: 2rem;
  }
}

#inicio {
  scroll-margin-top: 0;
  /* Evita que el header tape el título */
  margin-top: 50px;
  /* Empuja visualmente la sección hacia abajo */
}

#servicios {
  scroll-margin-top: 65px;
  /* Evita que el header tape el título */
  margin-top: 100px;
  /* Empuja visualmente la sección hacia abajo */
}

#nosotros {
  scroll-margin-top: 65px;
  /* Evita que el header tape el título */
  margin-top: 100px;
  /* Empuja visualmente la sección hacia abajo */
}

#clientes {
  scroll-margin-top: 70px;
  /* Evita que el header tape el título */
  margin-top: 100px;
  /* Empuja visualmente la sección hacia abajo */
}

#contacto {
  scroll-margin-top: 45px;
  /* Evita que el header tape el título */
  margin-top: 100px;
  /* Empuja visualmente la sección hacia abajo */
}

h2 {
  color: #1A2B4C;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

h3 {
  color: #1A2B4C;
  font-size: 1.rem;
  margin-bottom: 2rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

/* para separar en 2 columnas */
.contacto-section {
  padding: 4rem 2rem;
  background-image: url('images/contacto/contacto3.png');
  background-size: cover;
}

.contacto-contenido {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.formulario {
  flex: 1 1 50%;
}

.mapa {
  flex: 1 1 45%;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

/* Responsive para celulares */

@media (max-width: 768px) {
  .contacto-contenido {
    flex-direction: column;
  }

  .mapa {
    height: 300px;
    margin-top: 2rem;
  }
}

/* Para los íconos */
.formulario p {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(5, 5, 5)
}

.formulario i {
  color: #020349;
  font-size: 1.2rem;
}

form textarea {
  height: 150px;
  /* Puedes ajustar a 180px o más si lo deseas */
  resize: vertical;
  /* Permite que el usuario lo agrande si quiere */
}

/* Sección de clientes */

.clientes-section {
  padding: 4rem 2rem;
  overflow: hidden;
  background-color: #F5F5F5;
  text-align: center;
  min-height: 100vh;
  /* Asegura altura suficiente */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centra verticalmente */
  align-items: center;
  /* Centra horizontalmente */
}

.logo-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.logo-track {
  display: flex;
  gap: 4rem;
  animation: scroll 40s linear infinite;
}

.logo-track img {
  height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .logo-track img {
    height: 60px;
  }
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  justify-content: space-between;
}

.slider-nav button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slider-nav button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Ajuste específico para el botón izquierdo */
.slider-nav button.prev {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 100;
  margin: 0;
}

.slider-nav button.next {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-right: 1rem;
  z-index: 1000;
}

/* Efecto al pasar el mouse */
nav ul li a:hover {
  background-color: #C9A94B;
  /* Color dorado de tu marca */
  color: #1A2B4C;
  /* Azul oscuro para contraste */
  border-radius: 6px;
  padding: 0.1rem 0.1rem;
}

.caption-box {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  max-width: 500px;
  text-align: left;
  z-index: 2;
}

.caption-title {
  font-size: 2.5rem;
  color: #1A2B4C;
  /* Azul corporativo */
  margin-bottom: 0.5rem;
}

.caption-subtitle {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.caption-button {
  background-color: #C62828;
  /* Rojo profesional */
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.caption-button:hover {
  background-color: #B71C1C;
}

.caption-card {
  position: absolute;
  top: 60%;
  left: 5%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  /* Fondo oscuro con transparencia */
  padding: 1.5rem 2rem;
  border-radius: 8px;
  max-width: 400px;
  color: white;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.caption-title {
  font-size: 2rem;
  color: rgb(13, 173, 247);
  /* Azul corporativo */
  margin-bottom: 0.5rem;
}

.caption-subtitle {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.caption-button {
  background-color: #C62828;
  /* Rojo profesional */
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.caption-button:hover {
  background-color: #B71C1C;
}

.nosotros-section {
  background-color: #F5F5F5;
  padding: 4rem 2rem;
  text-align: center;
}

.nosotros-titulo {
  font-size: 2.5rem;
  color: #1A2B4C;
  margin-bottom: 1rem;
}

.nosotros-descripcion {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
}

.nosotros-bloques {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.bloque-icono {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.bloque-icono i {
  font-size: 2.5rem;
  color: #C62828;
  /* rojo profesional */
  margin-bottom: 1rem;
}

.bloque-icono h3 {
  font-size: 1.5rem;
  color: #1A2B4C;
  margin-bottom: 1rem;
}

.bloque-icono p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.bloque-icono:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background-color: #f9f9f9;
  border: 2px solid #1A2B4C;
  /* Azul corporativo */
}

.bloque-icono {
  transition: all 0.3s ease;
  background-color: #ffffff;
  border: 2px solid transparent;
  transition: border 0.3s ease;
  cursor: pointer;
}

.bloque-icono.clicked-left {
  transform: translateY(0) rotateY(-10deg);
  transition: transform 0.4s ease;
}

.bloque-icono.clicked-right {
  transform: translateY(0) rotateY(10deg);
  transition: transform 0.4s ease;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .nosotros-bloques {
    flex-direction: column;
    align-items: center;
  }

  .bloque-icono {
    width: 90%;
  }
}

@keyframes giro-continuo {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

.bloque-icono.girando {
  animation: giro-continuo 1s linear infinite;
}

/* para el Icono de Whatsapp */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-bubble {
  background-color: white;
  color: black;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  animation: fadeIn 0.5s ease-out;
  white-space: nowrap;
}

/* Texto dentro de la burbuja */
.whatsapp-text {
  margin-right: 0.5rem;
}

.whatsapp-bubble button.close-whatsapp {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: black;
  cursor: pointer;
  line-height: 1;
}

.whatsapp-icon {
  background-color: #25D366;
  color: white;
  padding: 1rem;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-contact-bar {
  background-color: #ebebeb;
  padding: 0.8rem 1rem;
  color: rgb(12, 12, 12);
  font-size: 0.95rem;
  display: flex;
  justify-content: right;
  align-items: center;
}

.top-contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-contact-info .dato {
  white-space: nowrap;
}

.bandera-peru {
  width: 24px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}

.top-contact-bar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

header {
  position: fixed;
  top: 0rem;
  /* Ajusta según el alto real de .top-contact-bar */
  width: 100%;
  z-index: 999;
}

/* Versión móvil (sin cambiar tus estilos existentes) */
@media (max-width: 768px) {
  .top-contact-bar {
    padding: 8px 10px;
  }

  .top-contact-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 15px;
  }

  .dato {
    font-size: 0.8rem;
  }

  .dato-mobile {
    display: none;
    /* Ocultamos el segundo teléfono en móviles */
  }

  .dato i {
    font-size: 14px;
    color: #1A2B4C;
    /* Azul corporativo de tu marca */
    margin-right: 5px;
  }

  .bandera-peru {
    width: 20px;
    height: 14px;
  }
}

/* Logo - Estilos generales (mantener esto) */
.logo img {
  height: 75px; /* Tamaño para desktop */
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease; /* Suaviza el cambio de tamaño */
}

/* Ajuste para móviles - MODIFICAR ESTO */
@media (max-width: 768px) {
  .logo img {
    height: 50px; /* Aumentamos de 30px a 50px */
    min-height: 50px; /* Evita que se haga más pequeño */
  }
  
  /* Opcional: ajustar el padding del header en móviles */
  header {
    padding: 0.5rem 1rem; /* Reduce el espacio alrededor */
  }
}

/* Estilos para el menú hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: #FFFFFF;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  transition: all 0.3s ease;
}

.hamburger:before {
  top: -8px;
}

.hamburger:after {
  top: 8px;
}

/* Menú activo */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger:before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger:after {
  transform: rotate(-45deg);
  top: 0;
}

/* Estilos responsive para el menú */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -70%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background-color: #1A2B4C;
    transition: right 0.3s ease;
    padding-top: 80px;
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }
  
  .main-nav li {
    margin-bottom: 15px;
  }
  
  .main-nav a {
    padding: 10px;
    display: block;
  }
  
  /* Asegura que el header tenga altura fija */
  header {
    padding: 0.5rem 1rem;
    height: 60px;
  }
  
  .logo img {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .contacto-contenido {
    flex-direction: column;
  }

  .mapa {
    width: 100%;
    height: 300px; /* Altura fija para móviles */
    margin-top: 1.5rem;
    order: 2; /* Opcional: cambia el orden (mapa abajo) */
  }

  .formulario {
    width: 100%;
    order: 1; /* Opcional: formulario arriba */
  }

  /* Ajuste específico para el iframe */
  .mapa iframe {
    height: 100%;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .clientes-section {
    padding: 2rem 1rem; /* Menos padding en móviles */
    min-height: auto; /* Elimina altura fija */
  }

  .logo-track {
    gap: 2rem; /* Reduce espacio entre logos */
    animation-duration: 30s; /* Más lento para mejor visualización */
  }

  .logo-track img {
    height: 80px; /* Reduce tamaño de logos */
    max-width: 120px; /* Ancho máximo para consistencia */
    object-fit: contain; /* Mantiene proporciones */
  }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .top-contact-bar {
    position: fixed;
    top: 0;
    height: 40px; /* Altura fija */
    z-index: 1001;
    padding: 0.5rem 1rem; /* Padding reducido */
  }

  header {
    position: fixed;
    top: 40px; /* Mismo valor que la altura del top-contact-bar */
    height: 60px; /* Altura fija */
    z-index: 1000;
    margin-top: 0; /* Elimina cualquier margen */
    padding: 0.5rem 1rem;
  }

  /* Asegura que el contenido no se oculte */
  body {
    padding-top: 100px; /* 40px (top-bar) + 60px (header) */
  }
}