/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #f5f9fc;
  color: #333;
  padding: 0 20px; /* Quitamos el padding-top */
  margin: 0;
}

main {
  margin-top: 64px; /* Ajustado al alto real del header fijo */
}

.hero {
  text-align: center;
  margin-bottom: 40px;
  background-color: #eaf4ff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.03);
}

.hero h1 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.05em;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}

.formulario {
  background: white;
  padding: 5px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto 30px auto;
}


/* Contenedor principal */
main {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Encabezado principal */
h1 {
  font-size: 1.6em;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}

/* Formularios */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

select, button {
  padding: 14px;
  border: 1px solid #ccd6dd;
  border-radius: 10px;
  font-size: 1em;
  background-color: #f0f4f8;
  transition: all 0.2s ease-in-out;
}

select:focus, button:focus {
  outline: none;
  border-color: #4da6ff;
  background-color: #e6f2ff;
}

button {
  background-color: #3498db;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #2c80b4;
}

/* Botón de WhatsApp */
.btn-wsp {
  background-color: #25D366;
  color: white;
  font-size: 1.1em;
  padding: 16px;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  display: block;
  margin-top: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.btn-wsp:hover {
  background-color: #1ebe5d;
}

/* Menú de navegación */
nav {
  max-width: 1000px;
  margin: 0 auto 20px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

nav li {
  background-color: #eef2f7;
  border-radius: 8px;
  padding: 8px 14px;
  transition: background-color 0.2s;
}

nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
}

nav a:hover {
  color: #007bff;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85em;
  color: #777;
}

.faq {
  margin-top: 40px;
  padding: 30px;
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.faq h2 {
  margin-bottom: 20px;
  font-size: 1.4em;
  color: #2c3e50;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item strong {
  display: block;
  margin-bottom: 6px;
  color: #007acc;
}

.faq-item p {
  margin: 0;
  color: #444;
}

.cambiar-barrio {
  margin-top: 30px;
  text-align: center;
}

.btn-cambiar {
  display: inline-block;
  margin-top: 10px;
  background-color: #f39c12;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.btn-cambiar:hover {
  background-color: #e67e22;
}

.servicios-info {
  margin-top: 40px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.servicios-info h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

.servicio-info {
  margin-bottom: 30px;
  border-left: 4px solid #3498db;
  padding-left: 16px;
}

.servicio-info h3 {
  margin-bottom: 8px;
  color: #007acc;
}

.servicio-info p {
  margin: 0;
  color: #444;
  font-size: 1em;
}

.servicio-info h3 a {
  color: #007acc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.servicio-info h3 a:hover {
  color: #005f99;
  text-decoration: underline;
}

.otro-estudio {
  margin-top: 40px;
  text-align: center;
}

.btn-secundario {
  display: inline-block;
  margin-top: 10px;
  background-color: #e0e0e0;
  color: #333;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: background 0.2s ease;
}

.btn-secundario:hover {
  background-color: #ccc;
}

.bloque-beneficios {
  background-color: #f1f9ff;
  padding: 12px;
  border-radius: 16px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.bloque-beneficios h4 {
  font-size: 1.2em;
  color: #0077b6;
  margin-bottom: 15px;
}

.bloque-beneficios ul {
  list-style: none;
  padding-left: 0;
}

.bloque-beneficios li {
  font-size: 1em;
  color: #333;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.bloque-beneficios li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  top: 0;
}

.bloque-beneficios .confianza {
  margin-top: 20px;
  font-weight: bold;
  font-size: 0.95em;
  color: #444;
  display: flex;
  align-items: center;
}

.bloque-beneficios .confianza::before {
  content: "👨‍⚕️";
  margin-right: 8px;
  font-size: 1.2em;
}
.container {
  max-width: 600px;
  margin: 0 auto;
}
.top-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #2c3e50;
  color: white;
  padding: 12px 0px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-header a {
  color: white;
  text-decoration: none;
}




/* Responsive */
@media (max-width: 600px) {
  main {
    margin: 20px 10px;
    padding: 20px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    width: 90%;
    text-align: center;
  }
}
