/* =========================================================
   Hogarisalud – Servicios + Formulario de contacto
   Estilos con prefijo .hs- para no pisar el resto de la web
   ========================================================= */
:root {
  --hs-azul: #013357;
  --hs-petroleo: #00788a;
  --hs-verde: #3fb7a8;
  --hs-verde-claro: #e6f4f2;
  --hs-gris: #5b6b7a;
  --hs-borde: #d7e2e7;
  --hs-fondo: #f5f9fa;
  --hs-error: #b42318;
  --hs-radio: 14px;
}

.hs-seccion { padding: 72px 20px; }
.hs-seccion--gris { background: var(--hs-fondo); }
.hs-contenedor { max-width: 1120px; margin: 0 auto; }

.hs-encabezado { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.hs-etiqueta {
  display: inline-block; margin-bottom: 12px; padding: 5px 14px;
  border-radius: 999px; background: var(--hs-verde-claro); color: var(--hs-petroleo);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hs-encabezado h2 { margin: 0 0 12px; color: var(--hs-azul); font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.2; }
.hs-encabezado p { margin: 0; color: var(--hs-gris); font-size: 1.05rem; line-height: 1.6; }

/* ---------- Servicios ---------- */
.hs-servicios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hs-servicio {
  position: relative; padding: 28px 24px; background: #fff;
  border: 1px solid var(--hs-borde); border-radius: var(--hs-radio);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hs-servicio:hover { transform: translateY(-4px); border-color: var(--hs-verde); box-shadow: 0 14px 30px rgba(1, 51, 87, .10); }
.hs-servicio__icono {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px;
  border-radius: 14px; background: var(--hs-verde-claro); color: var(--hs-petroleo);
}
.hs-servicio__icono svg { width: 28px; height: 28px; }
.hs-servicio h3 { margin: 0 0 8px; color: var(--hs-azul); font-size: 1.08rem; line-height: 1.3; }
.hs-servicio p { margin: 0; color: var(--hs-gris); font-size: .95rem; line-height: 1.55; }

.hs-servicios__pie { margin-top: 36px; text-align: center; color: var(--hs-gris); }
.hs-servicios__pie a { color: var(--hs-petroleo); font-weight: 700; }

/* ---------- Contacto ---------- */
.hs-contacto { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.hs-contacto__info {
  padding: 32px; border-radius: var(--hs-radio); color: #fff;
  background: linear-gradient(160deg, var(--hs-azul) 0%, #024a6e 60%, var(--hs-petroleo) 100%);
}
.hs-contacto__info h3 { margin: 0 0 10px; font-size: 1.35rem; }
.hs-contacto__info > p { margin: 0 0 24px; opacity: .85; line-height: 1.55; }
.hs-dato { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.hs-dato svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--hs-verde); }
.hs-dato span { display: block; font-size: .8rem; opacity: .7; }
.hs-dato a, .hs-dato strong { color: #fff; font-weight: 600; text-decoration: none; }
.hs-dato a:hover { text-decoration: underline; }
.hs-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; padding: 13px;
  border-radius: 10px; background: #25d366; color: #fff; font-weight: 700; text-decoration: none;
}
.hs-wa:hover { background: #1ebe5b; }
.hs-wa svg { width: 20px; height: 20px; }

.hs-form { padding: 32px; background: #fff; border: 1px solid var(--hs-borde); border-radius: var(--hs-radio); }
.hs-form__grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hs-campo { display: flex; flex-direction: column; gap: 6px; }
.hs-campo--ancho { grid-column: 1 / -1; }
.hs-campo label { color: var(--hs-azul); font-size: .9rem; font-weight: 600; }
.hs-campo label small { color: var(--hs-gris); font-weight: 400; }
.hs-campo input, .hs-campo select, .hs-campo textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1.5px solid var(--hs-borde); border-radius: 10px; background: #fff;
  color: #1d2b36; font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hs-campo textarea { min-height: 120px; resize: vertical; }
.hs-campo input:focus, .hs-campo select:focus, .hs-campo textarea:focus {
  outline: none; border-color: var(--hs-petroleo); box-shadow: 0 0 0 3px rgba(0, 120, 138, .15);
}
.hs-campo.es-error input, .hs-campo.es-error select, .hs-campo.es-error textarea { border-color: var(--hs-error); }
.hs-campo__error { min-height: 1em; color: var(--hs-error); font-size: .82rem; }

.hs-campo .hs-acepta { font-weight: 400; color: var(--hs-gris); }
.hs-acepta { display: flex; gap: 10px; align-items: flex-start; color: var(--hs-gris); font-size: .88rem; line-height: 1.45; cursor: pointer; }
.hs-acepta input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--hs-petroleo); }

.hs-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hs-boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 8px;
  padding: 15px 24px; border: 0; border-radius: 10px; background: var(--hs-petroleo); color: #fff;
  font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer; transition: background .15s ease;
}
.hs-boton:hover { background: var(--hs-azul); }
.hs-boton[disabled] { opacity: .7; cursor: wait; }
.hs-boton .hs-spinner {
  display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: hs-giro .7s linear infinite;
}
.hs-boton.cargando .hs-spinner { display: inline-block; }
@keyframes hs-giro { to { transform: rotate(360deg); } }

.hs-aviso { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; line-height: 1.45; }
.hs-aviso.ok { display: block; background: var(--hs-verde-claro); color: #0b5a52; }
.hs-aviso.error { display: block; background: #fdecea; color: var(--hs-error); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .hs-servicios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .hs-contacto { grid-template-columns: 1fr; }
  .hs-seccion { padding: 56px 16px; }
}
@media (max-width: 560px) {
  .hs-servicios, .hs-form__grilla { grid-template-columns: 1fr; }
  .hs-form, .hs-contacto__info { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-servicio, .hs-servicio:hover { transition: none; transform: none; }
}
