/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
  }
  
  /* Header compartido */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    transition: background-color 0.3s ease;
    z-index: 1000;
    background: transparent;
  }
  header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
  }
  header .logo {
    display: flex;
    align-items: center;
  }
  header .logo img {
    max-height: 50px;
    margin-right: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
  }
  header .logo span {
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  }
  header nav ul {
    list-style: none;
    display: flex;
  }
  header nav ul li {
    margin-left: 20px;
  }
  header nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    /* Efecto para mejorar contraste */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  }
  header nav ul li a:hover,
  header nav ul li a.active {
    border-color: white;
  }
  
  /* Hero / cabecera */
  .hero {
    background: url('img/banner.jpeg') center center/cover no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
  }
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    /* Mayor text-shadow para que el título destaque */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }
  .hero a.button {
    padding: 10px 20px;
    font-size: 1rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }
  .hero a.button:hover {
    background: white;
    color: #333;
  }
  
  /* Bloque descriptivo debajo del hero */
  .description {
    background: #f4f4f4;
    padding: 40px 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
  }
  
  /* Sección Especialidades utilizando CSS Grid */
  .especialidades {
    padding: 60px 20px;
    text-align: center;
  }
  .especialidades h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .especialidades .items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
  }
  .especialidades .item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  .especialidades .item:hover {
    transform: translateY(-5px);
  }
  .especialidades .item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #007BFF;
  }
  .especialidades .item p {
    font-size: 1.1rem;
    margin-top: 10px;
  }
  
  /* Sección Oficina / Nos adaptamos a ti */
  .oficina {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 60px 20px;
    background: #f4f4f4;
  }
  .oficina .foto {
    flex: 1;
    min-width: 300px;
    background: url('img/oficina.jpg') center center/cover no-repeat;
    height: 400px;
    border-radius: 10px;
  }
  .oficina .contenido {
    flex: 1;
    min-width: 300px;
    padding: 20px;
  }
  .oficina .contenido h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .oficina .contenido p {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .oficina .contenido a.button {
    padding: 10px 20px;
    font-size: 1rem;
    border: 2px solid #007BFF;
    background: transparent;
    color: #007BFF;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }
  .oficina .contenido a.button:hover {
    background: #007BFF;
    color: white;
  }
  
  /* Sección Clientes */
  .clientes {
    padding: 60px 20px;
    text-align: center;
  }
  .clientes h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .clientes .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .clientes .logo-item {
    width: 150px;        /* Puedes ajustar este ancho según convenga */
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* Puedes usar 'justify-content: flex-end' si deseas que el texto quede alineado en la parte inferior del contenedor de la tarjeta completa */
  }
  
  .clientes .logo-container {
    height: 100px;         /* Altura fija para todas las imágenes */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Opcional: puedes agregar un fondo claro o borde para mayor consistencia visual */
  }
  
  .clientes .logo-item img {
    max-height: 100%;    /* La imagen ocupará el 100% de la altura del contenedor */
    max-width: 100%;
    object-fit: contain; /* Para que la imagen se escale sin deformarse ni recortarse */
  }
  
  .clientes .logo-item p {
    margin-top: 10px;    /* Espacio entre la imagen y el texto */
  }
    /* Footer */
    footer {
      background: #333;
      color: white;
      text-align: center;
      padding: 20px;
    }
    footer p { line-height: 1.6; }
    footer a { color: white; text-decoration: underline; }