/* Reset y estilos básicos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 20px;
  color: #fff;
  position: fixed;
  width: 100%;
  z-index: 10;
}
.navbar .logo a {
  text-decoration: none;
  color: #fff;
  font-size: 1.5em;
}
.navbar .nav-links {
  list-style: none;
  display: flex;
}
.navbar .nav-links li {
  margin-left: 20px;
}
.navbar .nav-links li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}
.navbar .nav-links li a:hover {
  color: #f39c12;
}

/* Menu Toggle (para dispositivos móviles) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin-bottom: 4px;
  border-radius: 5px;
}

/* Sección Hero */
.hero {
  background: url('imagenes/legal-professional.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  margin-top: 0px; 
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-logo {
  display: block;
  margin: 0 auto 20px; /* Se centra y agrega un margen inferior */
  width: 300px;       /* Puedes ajustar este valor según lo que se vea mejor */
  max-width: 100%;
  height: auto;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.hero .btn {
  text-decoration: none;
  background: #f39c12;
  padding: 10px 20px;
  color: #fff;
  border-radius: 5px;
  transition: background 0.3s;
}
.hero .btn:hover {
  background: #e67e22;
}

/* Secciones Generales */
section {
  padding: 60px 20px;
  text-align: center;
}
.servicios, .compromiso, .contacto {
  background: #f4f4f4;
  /* Carrusel de Servicios */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px 0;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-slide img {
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

.carousel-slide:hover img {
  transform: scale(1.1);
}

.carousel-info {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 100%;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.carousel-slide:hover .carousel-info {
  opacity: 1;
}

}
.areas {
  background: #fff;
}

/* Sección Áreas de Práctica con imágenes */
.areas .area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.area-item {
  position: relative;
  overflow: hidden;
}

.area-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.area-item:hover img {
  transform: scale(1.1);
}

.area-info {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.area-item:hover .area-info {
  opacity: 1;
}


/* Formulario de Contacto */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
form input, form textarea {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form button {
  padding: 10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
form button:hover {
  background: #333;
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .navbar .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}
/* Botón Más Servicios */
.btn-mas-servicios {
  display: block;
  margin: 20px auto;
  margin-top: 20px;
  margin-bottom: 20px; /* Para dar espacio inferior */
  text-decoration: none;
  background: #f39c12; /* Color de fondo */
  color: #fff; /* Color del texto */
  padding: 10px 20px; /* Tamaño del botón */
  border-radius: 5px; /* Bordes redondeados */
  font-weight: bold; /* Texto en negritas */
  font-size: 1em; /* Tamaño de fuente */
  text-align: center; /* Centrar texto */
  transition: background 0.3s ease-in-out; /* Efecto al pasar el mouse */
}

.btn-mas-servicios:hover {
  background: #e67e22; /* Fondo más oscuro al pasar el mouse */
}