  /* Reset básico */
  * {
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #1a1a1a;
    color: #eee;
    scroll-behavior: smooth;
  }
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #111;
    padding: 1px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 2px rgba(0,0,0,0.7);
  }
  header h1 {
    font-size: 1.4rem;
    margin: 0;
    color: #ff5722;
  }
  nav a {
    color: #eee;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  nav a:hover {
    color: #ff5722;
  }
  section {
    min-height: 100vh;
    padding: 100px 20px 60px;
    max-width: 900px;
    margin: auto;
    text-align: center;
  }
  h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff5722;
  }
  p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    
  }
  /* Imagen centrada */
  .centered-img {
    display: block;
    margin: 0 auto 30px;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255,87,34,0.3);
  }
  /* Carrusel contenedor */
  .carousel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 30px auto;
  }
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  .carousel-item {
    min-width: 100%;
    user-select: none;
  }
  .carousel-item img {
    width: 100%;
    border-radius: 15px;
  }
  /* Botones carrusel */
  .carousel-btn {
    position: absolute;
    top: 50%;
    background: rgba(255,87,34,0.8);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 5px;
    transform: translateY(-50%);
    user-select: none;
    transition: background 0.3s ease;
  }
  .carousel-btn:hover {
    background: #e64a19;
  }
  .carousel-btn.prev {
    left: 10px;
  }
  .carousel-btn.next {
    right: 10px;
  }

  /* Testimonios estilo */
  .testimonials {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
  }
  .testimonial-item {
    background: #222;
    border-radius: 12px;
    padding: 20px;
    min-width: 250px;
    box-shadow: 0 0 15px rgba(255,87,34,0.4);
    flex-shrink: 0;
  }
  .testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
  }
  .testimonial-item h4 {
    margin: 0;
    color: #ff5722;
    font-weight: 700;
  }
  /* Formulario contacto */
    form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
    background: transparent; /* quitar fondo blanco */
    padding: 0; /* quitar relleno si lo había */
    }

    form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333; /* texto más visible */
    }

    form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc; /* borde visible */
    background: transparent; /* fondo transparente */
    font-size: 1rem;
    color: #000; /* texto negro */
    box-sizing: border-box; /* para que padding no aumente tamaño */
    }

    form input:focus, form textarea:focus {
    border-color: #ff5722; /* borde naranja al enfocar */
    outline: none;
    background: #fff; /* o un fondo blanco solo cuando se enfoque */
    }

    form input[type="submit"] {
    background: #ff5722;
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 8px;
    padding: 12px;
    }

    form input[type="submit"]:hover {
    background: #e64a19;
    }

  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #555;
    font-size: 0.9rem;
  }
  /* Responsive */
  @media (max-width: 600px) {
    nav a {
      margin-left: 5px;
      font-size: 0.9rem;
    }
    section {
      padding: 80px 15px 40px;
    }
  }
    .logo {
    padding-left: 40px;
    margin: 20px 0;
    }

    .logo img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* opcional: bordes redondeados */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* opcional: sombra ligera */
    }
    #inicio {
    text-align: center;
    padding: 60px 20px;
    background-color: #111;
    border-bottom: 1px solid #ddd;
    }

    #inicio h2, #inicio h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    }

    .centered-img {
    width: 220px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: block;
    }

    #inicio p {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    }

    .especialidades {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    }

    .especialidades li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #eae8e8;
    }

    .especialidades li i {
    color: #afcde3;
    margin-right: 10px;
    }
    #experiencia {
    text-align: center;
    padding: 60px 20px;
    background-color: #f0f0f0;
    }

    #experiencia h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 20px;
    }

    .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    }

    .card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 280px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    }

    .card:hover {
    transform: translateY(-8px);
    }

    .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    }

    .card h3 {
    font-size: 1.3em;
    margin: 15px 0 10px;
    color: #c0392b;
    }

    .card p {
    font-size: 1em;
    padding: 0 15px 20px;
    color: #555;
    }
    #actitudes {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    }

    #actitudes h2 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 40px;
    }

    .actitudes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    }

    .actitud-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 180px;
    padding: 30px 15px;
    transition: transform 0.3s ease;
    }

    .actitud-card:hover {
    transform: scale(1.05);
    }

    .actitud-card i {
    font-size: 2em;
    color: #c0392b;
    margin-bottom: 10px;
    }

    .actitud-card h3 {
    font-size: 1.1em;
    color: #333;
    }

    #actitudes {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

#actitudes h2 {
  font-size: 2em;
  color: #2c3e50;
  margin-bottom: 40px;
}

.actitudes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.actitud-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 240px;
  padding: 25px 15px;
  transition: transform 0.3s ease;
}

.actitud-card:hover {
  transform: scale(1.05);
}

.actitud-card i {
  font-size: 2em;
  color: #c0392b;
  margin-bottom: 10px;
}

.actitud-card h3 {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 8px;
}

.actitud-card p {
  font-size: 0.95em;
  color: #555;
}

#anos {
  display: flex;
  justify-content: center; /* o space-between o space-around si prefieres separación */
  gap: 40px; /* espacio entre los bloques */
  flex-wrap: wrap; /* permite que se ajusten si la pantalla es pequeña */
  padding: 40px 20px;
}

.experiencia-box {
  background-color: #f9f9f9;
  padding: 20px;
  width: 300px; /* o ajusta según tu diseño */
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.experiencia-box i {
  font-size: 3em;
  color: #c0392b;
  margin-bottom: 10px;
}

.experiencia-box h2 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.experiencia-numero {
  font-size: 4em;
  font-weight: bold;
  color: #e74c3c;
  margin: 10px 0;
}

.experiencia-texto {
  font-size: 1em;
  color: #555;
  max-width: 500px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
}

.carousel-clientes {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
}

.carousel-track {
  display: flex;
  animation: scroll 20s linear infinite;
}

.testimonial-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 2rem;
  text-align: center;
  background: #f9f9f9;
  border-radius: 20px;
  margin: 0 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
}

.testimonial-card h4 {
  font-weight: bold;
  color: #555;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  
  50% { transform: translateX(-200%); }
  
  100% { transform: translateX(0); }
}

.carousel-clientes:hover .carousel-track {
  animation-play-state: paused;
}

/* Estilo general del carrusel */
#clientes {
  padding-top: 60px;
  padding-bottom: 60px;
}

#clientes h3 {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

/* Imágenes redondas de los clientes */
#clientes img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Nombre del cliente */
#clientes h5 {
  font-size: 1.25rem;
  margin-top: 10px;
  color: #444;
}

/* Estrellas */
#clientes .text-warning i {
  font-size: 1.1rem;
}

/* Comentario del cliente */
#clientes p {
  font-size: 1rem;
  color: #666;
  margin: 0 auto;
  max-width: 500px;
}

/* Controles del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 10px;
}

/* Responsive */
@media (max-width: 576px) {
  #clientes img {
    width: 90px;
    height: 90px;
  }

  #clientes h5 {
    font-size: 1.1rem;
  }

  #clientes p {
    font-size: 0.95rem;
  }
}
