/* ===== RESET GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9fff9;
  color: #333;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(to right, #000000ed, #343534ed);
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 20px 20px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* ===== NAV ===== */
nav {
  text-align: center;
  margin: 20px 0;
}

nav a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #797979;
}

/* ===== ENTRADAS Y ARTÍCULOS ===== */
#entradas {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.articulos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

article.servicio {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

article.servicio:hover {
  transform: translateY(-5px);
}

article.servicio h3 {
  margin-top: 0;
  color: #000000;
  font-size: 1.2rem;
}

article.servicio p {
  margin: 10px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

article.servicio a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
}

/* ===== LISTADO DE SERVICIOS ===== */
.servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px 10%;
}

.servicio {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.servicio h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #3b3b3b;
}

.servicio p {
  margin-bottom: 20px;
}

.servicio a {
  display: inline-block;
  padding: 8px 15px;
  background: #5a5a5a;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.servicio a:hover {
  background: #000000;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 20px;
  background: gray;
  color: white;
}


/* .cta p {
  font-size: 1.1rem;
  margin-bottom: 20px;
} */

.cta a {
  display: inline-block;
  padding: 12px 25px;
  background: white;
  color: #000000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.cta a:hover {
  background: #000000;
  color: white;
}

/* ===== MODAL ===== */
.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: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

.modal h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #007d20;
}

.modal label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

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

.modal button {
  background: #007d20;
  color: white;
  padding: 12px;
  border: none;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s ease;
}

.modal button:hover {
  background: #00520a;
}

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

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(to right, #000000ed, #343534ed);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}
