body {
  font-family: 'Century Gothic', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background-color: #fdfdfd;
}

header {
  background-color: #fff;
  text-align: center;
  padding: 30px 0;
  border-bottom: 2px solid #eee;
}

header h1 {
  font-size: 3em;
  letter-spacing: 2px;
  color: #333;
  margin: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

h2 {
  text-align: center;
  font-size: 2em;
  color: #555;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.service:hover {
  transform: translateY(-5px);
}

.service img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service h3 {
  margin: 15px;
  font-size: 1.2em;
  color: #333;
}

.service p {
  margin: 0 15px 15px;
  font-size: 0.95em;
  color: #555;
}

.contact, .about {
  background: #fafafa;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
}

footer {
  background-color: #222;
  color: #eee;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9em;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}
.values {
  background: #fafafa;
  padding: 40px 20px;
  text-align: center;
}

.values .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.value img {
  margin-bottom: 15px;
}

.value h3 {
  margin: 10px 0;
  font-size: 1.2em;
  color: #333;
}

.value p {
  font-size: 0.95em;
  color: #555;
}

.hero-image img {
  width: 100%;
  height: 400px; /* mismo alto que el carrusel */
  object-fit: cover; /* para que se recorte bien sin deformarse */
  display: block;
}
<!--nuevo-->
/* Barra de navegación */
.navbar {
  background-color: #fff; /* barra blanca */
}

.navbar ul li a {
  color: #333; /* texto gris oscuro para que se vea bien */
  padding: 10px 15px;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar ul li a:hover {
  background-color: #007BFF !important; /* azul vibrante, forzado */
  color: #fff !important; /* texto blanco forzado */
  border-radius: 5px;
}
html {
  scroll-behavior: smooth;
}
h1:focus {
  outline: none;
}
h1 {
  user-select: none;
  cursor: default;
}
h1:focus {
  outline: none;
}
<!--ojo-->
/* Estilos para el modal */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background: white;
  margin: 80px auto;
  padding: 30px 40px;
  border-radius: 8px;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #555;
}

.modal-content form label {
  display: block;
  margin-top: 15px;
  color: #555;
  font-weight: 600;
}

.modal-content form input,
.modal-content form select,
.modal-content form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  resize: vertical;
}

.modal-content form button {
  margin-top: 25px;
  background: #333;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.modal-content form button:hover {
  background: #555;
}
body.modal-open {
  overflow: hidden;
  height: 100vh;
}
/* -------- Responsive para celular -------- */
@media (max-width: 600px) {
  /* Navbar vertical y centrado */
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }
  .navbar ul li {
    margin: 10px 0;
  }

  /* Ajustar imágenes para que no desborden */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Servicios en columna */
  .services .grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Proyectos en columna */
  .projects .gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* Ajustar container para menos padding horizontal */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Textos un poco más grandes para mejor lectura */
  h2 {
    font-size: 1.5rem;
  }

  p, label {
    font-size: 1rem;
  }

  /* Ajustar botones y links para que sean más grandes y fáciles de tocar */
  .navbar ul li a,
  button,
  .modal-content form button {
    font-size: 1.1rem;
    padding: 12px 20px;
  }

  /* Modal más ancho en móvil */
  .modal-content {
    margin: 50px 10px;
    width: auto;
    max-width: 90%;
    padding: 25px 20px;
  }
}
/* Header móvil: ya está bien */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1100; /* dejamos 1100 */
  padding: 10px 20px;
  justify-content: space-between;
  align-items: center;
  height: 50px; /* altura fija para facilitar posicionamiento */
}

/* Menú móvil desplegado */
@media (max-width: 600px) {
  nav.navbar {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
  }

  nav.navbar.show {
  display: flex !important;
  flex-direction: column;
  background: #fff;
  position: fixed;
  top: 70px; /* Subido de 50px a 70px para más margen */
  left: 0;
  right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1300;
  max-height: calc(100vh - 70px); /* Ajustado para que no se salga de pantalla */
  overflow-y: auto;
}


  nav.navbar.show ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  nav.navbar.show ul li {
    margin: 0;
    border-bottom: 1px solid #ddd;
    width: 100%;
  }

  nav.navbar.show ul li a {
    padding: 15px 20px;
    width: 100%;
    display: block;
  }

  /* Ajustar padding para que no tape contenido */
  body {
    padding-top: 50px !important;
  }
}

/* Header desktop y móvil */
header {
  display: block;
}

.mobile-header {
  display: none;
}

@media (max-width: 600px) {
  header {
    display: none; /* Ocultamos header desktop */
  }
  .mobile-header {
    display: flex !important; /* Mostramos header móvil */
  }
}
/* Forzar que el menú móvil desplegado quede bien separado */
nav.navbar.show {
  top: 70px !important; /* 20px más abajo que antes */
  max-height: calc(100vh - 70px) !important;
  z-index: 1300 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Cuando el menú móvil está abierto, damos padding extra al body para que no tape contenido */
body.menu-open {
  padding-top: 120px !important; /* Ajustá este valor si querés más espacio */
}
.modal-content {
  max-height: 80vh;
  overflow-y: auto;
}
/* NAVBAR ESTILO ESCRITORIO */
.navbar {
  background: #fff;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: row; /* horizontal por defecto */
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  display: block;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.navbar ul li a:hover,
.navbar ul li a.btn {
  background: #eee;
}

/* EVITAR QUE EL CONTENIDO QUEDE TAPADO POR LA BARRA */
body {
  padding-top: 60px;
}

/* ========================== MOVIL ========================== */
@media (max-width: 600px) {
  .navbar {
    display: none; /* por defecto oculta */
  }

  header.mobile-header {
    display: flex !important;
  }

  .navbar.show {
    display: flex !important;
    flex-direction: column; /* aquí sí, vertical */
    background: #fff;
    position: fixed;
    top: 50px; /* debajo del header móvil */
    left: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1099;
  }

  .navbar.show ul {
    flex-direction: column;
    width: 100%;
  }

  .navbar.show ul li {
    margin: 0;
    border-bottom: 1px solid #ddd;
    width: 100%;
  }

  .navbar.show ul li a {
    padding: 15px 20px;
    width: 100%;
    display: block;
  }

  body {
    padding-top: 50px;
  }
}

.gallery a .caption {
  margin-top: 8px;
  font-weight: bold;
  color: #333;      /* Color texto estándar */
  font-size: 1rem;
  text-decoration: none;  /* Quitar subrayado */
  pointer-events: none;   /* Para que el texto no actúe como link separado */
  user-select: none;      /* Opcional: evita que se seleccione el texto accidentalmente */
}
.gallery a {
  cursor: pointer;
  text-decoration: none;  /* Quita subrayado del enlace completo */
  color: inherit;         /* Hereda color del texto normal */
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-item {
  width: 250px; /* o lo que te convenga */
  text-align: center;
}

.gallery-item img {
  width: 100%;
  display: block;
}
/* Para que todos los inputs, selects, textareas y botones del formulario tengan el mismo ancho */
#formPresupuesto input[type="text"],
#formPresupuesto input[type="email"],
#formPresupuesto input[type="tel"],
#formPresupuesto select,
#formPresupuesto textarea,
#formPresupuesto button[type="submit"] {
  width: 100%;        /* ancho completo del contenedor padre */
  box-sizing: border-box;  /* para que padding y borde no afecten el ancho total */
  padding: 10px;      /* mismo padding para que tengan la misma altura y apariencia */
  font-size: 16px;    /* para que el texto se vea consistente */
  margin-top: 8px;    /* separacion entre label y input */
  margin-bottom: 16px; /* separacion entre campos */
  border-radius: 4px; /* bordes redondeados para uniformidad */
  border: 1px solid #ccc; /* borde igual para todos */
}

/* Opcional: que el botón tenga un ancho consistente y parezca un botón grande */
#formPresupuesto button[type="submit"] {
  background-color: #333;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s ease;
}

#formPresupuesto button[type="submit"]:hover {
  background-color: #555;
}
/* Contenedor general */
.expedientes-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Century Gothic', sans-serif;
  color: #333;
  background: #e8ebf0; /* fondo uniforme */
}

/* Títulos y descripción */
.expedientes-container h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.expedientes-container p {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #555;
}

/* Tarjetas de expediente */
.expediente-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px; /* más compacto */
  padding: 15px;
  background: #e8ebf0; /* mismo que el contenedor */
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08); /* sombra sutil */
  border: none; /* eliminar bordes para que no se vea blanco */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expediente-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Imagen */
.expediente-img img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: none; /* sin borde para no generar rayas blancas */
  transition: transform 0.3s ease;
}

.expediente-item:hover .expediente-img img {
  transform: scale(1.04);
}

/* Texto de la tarjeta */
.expediente-text h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
}

.expediente-text p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #444;
}

/* Listas compactas con iconito */
.expediente-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.expediente-text ul li {
  margin-bottom: 5px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.3;
}

.expediente-text ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #1a73e8;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Botón Solicitar */
.expediente-text .btn-solicitar {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #1a73e8;
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.expediente-text .btn-solicitar:hover {
  background: #155ab6;
  transform: translateY(-2px);
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .expediente-item {
    flex-direction: column;
    align-items: stretch; /* ocupa todo el ancho disponible */
    text-align: left;     /* texto alineado a la izquierda */
  }

  .expediente-img img {
    width: 100%;      /* imagen ocupa todo el ancho de la tarjeta */
    height: auto;
    margin-bottom: 15px;
  }

  .expediente-text {
    margin-top: 10px;
    width: 100%;      /* texto ocupa todo el ancho */
  }

  .expediente-text h3,
  .expediente-text p,
  .expediente-text ul {
    text-align: left;  /* asegurar que todo el texto quede alineado a la izquierda */
  }
}
/* AJUSTE GALERÍA NUESTROS TRABAJOS MÓVIL */
@media (max-width: 600px) {
  #trabajos .container {
    padding: 0 10px; /* menos padding lateral */
  }

  #trabajos .gallery {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra los items */
    width: 100%;
    margin: 0 auto;
  }

  #trabajos .gallery-item {
    width: 100%; /* ocupa todo el ancho del móvil */
    margin-bottom: 20px;
    float: none; /* desactiva float si existe */
  }

  #trabajos .gallery-item img {
    width: 100%; /* la imagen ocupa todo el ancho */
    height: auto;
    display: block;
  }

  #trabajos .gallery-item p {
    text-align: center;
  }
}
/* ================== BOTÓN HAMBURGUESA - NUESTROS TRABAJOS ================== */
header.mobile-header button#menu-toggle {
    font-size: 1.8em;      /* tamaño igual al index */
    color: #333;            /* color igual al index */
    background: none;       /* sin fondo */
    border: none;           /* sin borde */
    cursor: pointer;        /* cursor de mano */
    padding: 0;             /* sin padding extra */
}

/* Asegura que el botón no cambie al hacer hover */
header.mobile-header button#menu-toggle:hover {
    color: #333;
}

/* Mantener el header móvil con la misma altura y estilo que el index */
header.mobile-header {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1100;
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
}

