body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f8f9fa;
  color: #333;
}

header {
  background: #232f1e;
  color: #fff;
  padding: 1rem 2rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
}

.hero {
  background: #007bff;
  color: white;
  padding: 2rem 2rem;
  text-align: center;
}

.boton {
  display: inline-block;
  margin-top: 1rem;
  background: white;
  color: #007bff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.seccion {
  padding: 2rem;
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.servicio {
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.portafolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.proyecto {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1rem;
}

.proyecto img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.proyecto h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.proyecto a {
  display: inline-block;
  margin-top: 0.5rem;
  background: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}


.contacto form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

button {
  background: #007bff;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  background: #232f1e;
  color: white;
  text-align: center;
  padding: 1rem;
}



.contact-btn {
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.contact-btn:hover {
    background-color: gray;
    color: #000000;
    transform: scale(1.2);
}

.contact-btn-1 {
    background-color: transparent;
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border: solid 11px transparent;
    animation: fadeIn 1.2s ease-in-out;
    cursor: pointer;

} 
.modal-bg {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.modal input, .modal select, .modal textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal button {
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}
