* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 20px 0 40px 0;
}

/* ===== CONTENEDOR PRINCIPAL ===== */

#contenedor {
  width: 95%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px 25px;
  background-color: #eaf3fb;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* corregido */
  border-radius: 10px;
  overflow: visible;
}

/* ===== ENCABEZADOS ===== */

header h1 {
  font-size: 2.2em;
  color: #1a2d5a;
  text-align: center;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.5em;
  color: #1a2d5a;
  text-align: left;
  margin-bottom: 20px;
}

/* ===== TEXTO PRINCIPAL ===== */

.entrada-blog p {
  margin-bottom: 20px;
  font-size: 1.1em;
  text-align: justify;
  word-break: break-word;
}

/* ===== BOTÓN DE CONTACTO ===== */

.boton-contacto {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin-top: 15px;
}

.boton-contacto:hover {
  background-color: #2e86c1;
}

/* ===== PIE DE PÁGINA ===== */

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #777;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
  padding: 8px 12px;
  transition: background-color 0.3s;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #d6eaf8;
}

/* ===== DISEÑO RESPONSIVE ===== */

@media (max-width: 768px) {
  #contenedor {
    padding: 20px 15px;
  }

  header h1 {
    font-size: 1.8em;
  }

  .entrada-blog p {
    font-size: 1em;
  }

  .boton-contacto {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 1em;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
  









  

