
:root {
  --color-primario: #001b2e;
  --color-secundario: #004c97;
  --color-texto: #222;
  --fuente-titulo: 'Source Sans Pro', sans-serif;
  --fuente-cuerpo: 'Source Sans Pro', sans-serif;
}

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

body {
  font-family: var(--fuente-cuerpo);
  background-color: #ffffff;
  color: var(--color-texto);
  line-height: 1.3;
}

header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1000;
}

.logo img {
  height: 90px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--color-primario);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-primario);
}

.hero {
  text-align: center;
  padding: 2rem;
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
}

.hero h1 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.2rem, 4vw, 2rem);
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
}


section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
}

h2 {
  font-family: var(--fuente-titulo);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-primario);
  text-align: center;
}

p {
  margin-bottom: 1.2rem;
}

.valores ul {
  list-style: none;
  padding-left: 0;
}

.valores li::before {
  content: "✔️ ";
}

.grid-servicios, .grid-equipo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: center;
  align-items: start;
  gap: 2rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.grid-equipo img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.servicio h3, .sidebar-abogado h3 {
  color: var(--color-secundario);
  margin-bottom: 1rem;
}

footer {
  background-color: #f4f4f4;
  padding: 3rem 1rem;
  text-align: center;
}

footer ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

footer li {
  margin: 0.4rem 0;
}

form {
  max-width: 500px;
  margin: auto;
  display: grid;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

button {
  background-color: var(--color-secundario);
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.contenido-servicio {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
}

.sidebar-abogado {
  background-color: #f4f4f4;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.sidebar-abogado img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.perfil-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
}

.perfil-foto img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
}

.perfil-info h2 {
  font-family: var(--fuente-titulo);
  font-size: 1.6rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}

.perfil-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.perfil-info ul li::before {
  content: "\2022 ";
  color: var(--color-secundario);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .contenido-servicio, .perfil-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .perfil-foto img {
    margin: auto;
  }
}


/* Estilo de los enlaces dentro de listas de servicios */
.grid-servicios ul li a {
  color: #111;
  font-weight: 500;
  text-decoration: none;
}

.grid-servicios ul li a:hover {
  text-decoration: underline;
}

/* Estilo de los enlaces dentro de listas de equipo */
.grid-equipo  a {
  color: #111;
  font-weight: 500;
  text-decoration: none;
}

.grid-equipo  a:hover {
  text-decoration: underline;
}

.btn-portafolio {
  display: block;
  margin: 2rem auto;
  padding: 0.75rem 1.5rem;
  background-color: #d35400; /* naranja oscuro */
  color: white;
  font-size: 1rem;
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-portafolio:hover {
  background-color: #b84300;
}

.nuestro_portafolio {
  display: none;
  margin-top: 1rem;
  transition: all 0.3s ease-in-out;
}

#casos-exito {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.grid-exito {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  justify-items: center;
  text-align: center;
}

.exito-item {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.exito-item:hover {
  transform: translateY(-4px);
}

.exito-item img {
  max-width: 50%;
  height: auto;
  margin-bottom: 1rem;
}

.procesos-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.procesos-table thead {
  background-color: #f0f0f0;
}

.procesos-table th,
.procesos-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

.procesos-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.procesos-table tbody tr:hover {
  background-color: #eef5ff;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.social-icons a img {
  width: 25px;
  height: 25px;

}

.social-icons a:hover img {
  filter: none;
}


/* Mostrar el botón del menú siempre, pero solo usarlo en pantallas pequeñas */
.menu-toggle {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primario);
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  nav ul {
    display: flex !important;
  }
}


/* MOBILE MENU BEHAVIOR */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: white;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primario);
    margin-left: auto;
    cursor: pointer;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  nav ul {
    display: flex !important;
  }
}
