@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*Inicio Header*/
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
}

nav .logo {
  width: 200px;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  font-family: 'Cinzel Decorative', serif;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 1.5rem;
  position: relative;
}

nav a {
  text-decoration: none;
  color: #221712;
  padding: 1rem 0;
  transition: color 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgb(111, 99, 91);
  transition: width 0.3s ease;
}

nav a:hover {
  color: rgb(111, 99, 91); 
}

nav a:hover::before {
  width: 100%;
}

.contenedor {
  text-align: center;
  display: block;
}

.contenedor h1 {
  font-size: 80px;
  color: #373737;
  font-weight: 600;
  transition: 0.5s; /* Transición de color */
  white-space: nowrap; /* Mantener el texto en una sola línea */
  overflow: hidden; /* Evitar desbordamiento */
  border-right: 2px solid #000; /* Cursor de escritura */
  border-right: none;
  -webkit-text-stroke: 2px #000;
  padding: 0 15px;
}

.contenedor h1:hover {
  -webkit-text-stroke: 2px #000;
  color: transparent;
}

.contenedor a {
  text-decoration: none;
  display: inline-block;
  color: #000;
  font-size: 18px;
  border: 2px solid #000;
  padding: 14px 50px;
  border-radius: 50px;
  margin-top: 10px;
}

.back-video {
  position: absolute;
  right: 0;
  bottom: 10;
  z-index: -1;
  overflow: hidden;
}
/*Fin header*/

/* INICIO SLOG*/
.practice-area{
  background-color: #ffffff;
  padding: 40px 60px;
  display: block;
  align-items: center;
}

.horizontal-line {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.horizontal-line h2 {
  font-size: 45px;
  padding-left: 20px;
}

.horizontal-line::before {
  content: '';
  flex: 0 0 110px; /* Ajusta el ancho de la línea aquí */
  border-top: 5px solid #000;
  margin-right: 10px;
}

.container {
  display: flex;
  justify-content: space-between;
}

.desc {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-left: 40px;
}

.desc p {
  font-size: 28px;
  font-family: 'Poppins', sans-serif;
}

.dep1 {
  width: 600px;  /* Ancho de 500px */
  height: 400px; /* Alto de 300px */
  object-fit: cover; /* Ajuste de la imagen */
  margin-bottom: 10px;
  border-radius: 4px;
}

/* FIN SLOG*/

/* INICIO SERVICIOS */
.service{
  background-color: #ffffff;
  padding: 20px 8%;
  display: block;
  height: 100vh;
}

.service h1 {
  font-size: 38px;
  position: relative;
  text-align: center;
  margin-bottom: 80px;
}

.service h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: #333;
}

.service .row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 30px;
}

.service .row .serv{
  background: rgb(83, 83, 83);
  padding: 35px 50px;
  text-align: center;
  border-radius: 5px;
  transition: transform .5s;
  cursor: pointer;
  color: #fff;
}

.service .row .serv:hover{
  transform: scale(1.1);
  background: #cdcdcd;
  color: #000;
}

.service .row .serv i{
  font-size: 40px;
  padding-bottom: 20px;
}

/* FIN SERVICIOS */

/* INICIO PORQUE NOSOTRSO */
.why-choose{
  background-color: #ffffff;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;  /* Asegura que el contenido se organice en columna */
  align-items: center;
}

.why-choose h2{
  font-size: 38px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.card-container {
  display: flex;  /* Asegura que las cartas se dispongan en una fila */
  flex-wrap: wrap;  /* Permite que las tarjetas se ajusten a la siguiente línea si no hay espacio */
  justify-content: center;  /* Centra las tarjetas en el contenedor */
}

.card {
  position: relative;
  width: 300px;
  height: 400px;
  margin: 10px;
}

.card .face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  transition: .5s;
}

.card .front {
  transform: perspective(600px) rotateY(0deg);
  box-shadow: 0 5px 10px #000;
}

.card .front img{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .front h3 {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 45px;
  line-height: 45px;
  color: #fff;
  background: rgba(0, 0, 0, .4);
  text-align: center;
}

.card .back {
  transform: perspective(600px) rotateY(180deg);
  background: rgb(90, 90, 90);
  padding: 15px;
  color: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 10px #000;
}

.card .back h3 {
  font-size: 30px;
  margin-top: 20px;
  letter-spacing: 2px;
}

.card .back p {
  letter-spacing: 1px;
}

.card:hover .front {
  transform: perspective(600px) rotateY(180deg);
  transition: .5s;
}

.card:hover .back {
  transform: perspective(600px) rotateY(360deg);
  transition: .5s;
}
/* FIN PORQUE NOSOTROS */
  
/*INICIO FOOTER*/
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0;
    font-size: 16px;
    }
    .footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    }
    .footer-section {
    flex-basis: 30%;
    }
    .footer-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    }
    .footer-section ul {
    list-style-type: none;
    padding: 0;
    }
    .footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #aaa;
    }
  
  .footer-map {
    margin-top: 40px;
    text-align: center;
  }
/*Fin Footer*/

/* 3 barras */
#checkbox {
  display: none;
}

.toggle {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition-duration: .3s;
}

.bars {
  width: 100%;
  height: 4px;
  background-color: rgb(0, 0, 0);
  border-radius: 5px;
  transition-duration: .3s;
}

#checkbox:checked + .toggle .bars {
  margin-left: 13px;
}

#checkbox:checked + .toggle #bar2 {
  transform: rotate(135deg);
  margin-left: 0;
  transform-origin: center;
  transition-duration: .3s;
}

#checkbox:checked + .toggle #bar1 {
  transform: rotate(45deg);
  transition-duration: .3s;
  transform-origin: left center;
}

#checkbox:checked + .toggle #bar3 {
  transform: rotate(-45deg);
  transition-duration: .3s;
  transform-origin: left center;
}
/* Fin de 3 barras */


.toggle {
  display: none;
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    margin: 0;
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
  }
  /* INICIO HEADER*/
  nav ul {
    display: none; /* Ocultar el menú por defecto en móviles */
    flex-direction: column;
    position: absolute;
    top: 60px; /* Ajusta según sea necesario */
    left: 0;
    background-color: transparent; /* Fondo del menú */
    width: 100%;
    padding: 10px 0;
  }

  nav ul.active {
    display: flex; /* Mostrar el menú al activar */
  }

  .toggle {
    display: flex; /* Mostrar el toggle en móviles */
  }

  nav li {
    margin: 50px 0; /* Espaciado para elementos de menú en móvil */
    text-align: center; /* Centrar texto */
  }

  .hero {
    padding: 0 2%; /* Reduce el padding para móviles */
  }

  .back-video {
    position: absolute;
    top: 50%; /* Centrar verticalmente */
    left: 50%; /* Centrar horizontalmente */
    width: 100%; /* Ancho completo */
    height: 100%; /* Altura completa */
    object-fit: cover; /* Asegura que el video cubra el contenedor sin distorsión */
    transform: translate(-50%, -50%); /* Centrar el video */
    z-index: -1; /* Asegurar que esté detrás de otros elementos */
}

  nav {
    padding: 25px 5%; /* Ajustar padding en móviles */
    font-size: 0.9rem; /* Tamaño de fuente más pequeño en móviles */
  }

  nav .logo {
    width: 150px; /* Tamaño del logo más pequeño */
  }

  nav ul {
    flex-direction: column; /* Cambiar a columna en móviles */
    display: none; /* Ocultar el menú por defecto */
    position: absolute;
    top: 90px; /* Ajustar según sea necesario */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* Fondo del menú */
    padding: 30px 0;
  }

  nav ul.active {
    display: flex; /* Mostrar el menú al activar */
  }

  nav li {
    margin: 10px 0; /* Ajustar margen para elementos en móvil */
    text-align: center; /* Centrar texto */
  }

  .business-line-section {
    display: block;
  }
  
  .contenedor {
    padding: 0 5%; /* Añadir padding para evitar que el texto toque los bordes */
  }

  .contenedor h1 {
    font-size: 7vw; /* Adaptar tamaño del texto */
    color: #373737;
  }

  .contenedor a {
    font-size: 3vw; /* Tamaño de fuente responsive */
    padding: 10px 4vw; /* Ajustar padding del botón */
  }
  /* FIN RESPONSIVE HEADER*/
  /* INICIO SLOG */
  .practice-area {
    padding: 20px 60px;
    display: block /* Reduce el padding en móviles */
  }

  .horizontal-line h2 {
    font-size: 25px; /* Reduce el tamaño del título */
    padding-left: 10px; /* Reduce el padding a la izquierda */
  }

  .horizontal-line::before {
    flex: 0 0 70px; /* Ajusta el ancho de la línea */
  }

  .container {
    flex-direction: column; /* Cambia a columna en móviles */
    align-items: center; /* Centra los elementos */
  }

  .desc {
    padding-left: 0; /* Elimina el padding a la izquierda */
    justify-content: center; /* Centra el contenido */
  }

  .desc p {
    font-size: 20px; /* Reduce el tamaño del texto */
    text-align: center; /* Centra el texto */
  }

  .dep1 {
    width: 100%; /* Ancho completo en móviles */
    height: auto; /* Altura automática para mantener el aspecto */
    margin-bottom: 20px; /* Espaciado inferior adicional */
  }
  /* Ocultar una de las imágenes */
  .container:nth-child(1) .image-right {
    display: none; /* Oculta la primera imagen en móviles */
  }
  /* FIN SLOG */
  /* INICIO SERVICIOS */
  .service {
    padding: 20px 5%; /* Reduce el padding en móviles */
    height: auto; /* Permite que la altura se ajuste al contenido */
  }

  .service h1 {
    font-size: 28px; /* Reduce el tamaño del título */
    margin-bottom: 40px; /* Reduce el margen inferior */
  }

  .service .row {
    grid-template-columns: 1fr; /* Cambia a una sola columna en móviles */
    grid-gap: 20px; /* Reduce el espacio entre las tarjetas */
  }

  .service .row .serv {
    padding: 20px; /* Reduce el padding interno de las tarjetas */
  }

  .service .row .serv i {
    font-size: 30px; /* Reduce el tamaño del icono */
    padding-bottom: 10px; /* Ajusta el espaciado inferior */
  }
  /* FIN SERVICIOS */
  /* INICIO NOSOSTROS */
  .card .front::after {
    content: '➡'; /* Flecha apuntando a la derecha */
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 24px; /* Tamaño de la flecha */
    color: #fff; /* Color de la flecha */
  }
  
  /* Cambiar el efecto de hover a click */
  .card.active .front {
    transform: perspective(600px) rotateY(180deg);
    transition: .5s;
  }
  
  .card.active .back {
    transform: perspective(600px) rotateY(360deg);
    transition: .5s;
  }
  /* FIN NOSOSTROS */
  /* INICIO FOOTER */
  .footer-content {
    flex-direction: column; /* Cambiar a columna en pantallas pequeñas */
    align-items: center; /* Centrar elementos */
  }

.footer-section {
    flex-basis: 100%; /* Cada sección ocupa el 100% del ancho */
    text-align: center; /* Centrar texto en secciones */
    margin-bottom: 40px; /* Aumentar el espacio entre secciones */
  }

.footer-section h3 {
    font-size: 16px; /* Tamaño de fuente más pequeño para el título */
    margin-bottom: 15px; /* Espacio debajo del título */
  }

.footer-bottom {
    margin-top: 20px; /* Espacio reducido en la parte inferior */
    font-size: 12px; /* Tamaño de fuente más pequeño para el texto inferior */
  }
  /* FIN FOOTER */
}

/* Animaciones para las barras */
#checkbox:checked ~ nav ul {
  display: flex; /* Mostrar menú al activar */
}