/* Contacto y preferencias de medición. Compatible con el diseño existente. */
.karlos-contact-bar {
  clear: both;
  color: #302217;
  background: #fbebd5;
  border-top: 1px solid #e8c594;
  border-bottom: 1px solid #d8b17e;
  font-family: "Segoe UI", Arial, sans-serif;
}
.karlos-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 14px 15px;
}
.karlos-contact-copy { flex: 1 1 260px; min-width: 0; }
.karlos-contact-title {
  display: block;
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.karlos-contact-note { margin: 0; font-size: 14px; line-height: 1.5; }
.karlos-contact-actions { display: flex; flex: 0 1 auto; gap: 10px; }
.karlos-contact-button,
.karlos-contact-button:visited {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 178px;
  min-height: 58px;
  padding: 9px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: #62432b;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.karlos-contact-button small { font-size: 14px; font-weight: 400; }
.karlos-contact-button:hover,
.karlos-contact-button:focus { color: #fff; background: #47301f; text-decoration: none; }
.karlos-contact-whatsapp,
.karlos-contact-whatsapp:visited { background: #146b43; }
.karlos-contact-whatsapp:hover,
.karlos-contact-whatsapp:focus { background: #0d5131; }
.karlos-contact-button:focus-visible,
.karlos-consent button:focus-visible,
.karlos-measurement-settings button:focus-visible {
  outline: 3px solid #075f9b;
  outline-offset: 3px;
}
.karlos-contact-page #contenido > .texto_index:first-child,
.karlos-contact-page #contenido > .col-md-12 > .texto_index:first-child { display: none; }
.karlos-contact-page #contenido { padding-top: 18px; }
.karlos-measurement-settings {
  clear: both;
  padding: 14px;
  text-align: center;
  background: #fbebd5;
  font-family: "Segoe UI", Arial, sans-serif;
}
.karlos-measurement-settings button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #8c6a42;
  border-radius: 4px;
  background: transparent;
  color: #302217;
  font-size: 14px;
  text-decoration: underline;
}
.karlos-consent[hidden] { display: none !important; }
.karlos-consent {
  box-sizing: border-box;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 1080px;
  max-height: 70vh;
  margin: 0 auto;
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid #a58763;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 22px rgba(0, 0, 0, .22);
  color: #302217;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
.karlos-consent h2 {
  margin: 0 0 8px;
  color: #302217;
  font-size: 18px;
  line-height: 1.35;
}
.karlos-consent p { margin: 0 0 12px; font-size: 14px; }
.karlos-consent a { color: #075783; text-decoration: underline; }
.karlos-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.karlos-consent button {
  flex: 0 1 170px;
  min-height: 44px;
  padding: 10px 15px;
  border: 2px solid #62432b;
  border-radius: 4px;
  background: #fff;
  color: #47301f;
  font-size: 15px;
  font-weight: 600;
}
.karlos-consent button:hover { background: #fbebd5; }
.karlos-privacy-measurement {
  clear: both;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #d8b17e;
  border-radius: 5px;
  background: #fff9f1;
  font-size: 15px;
  line-height: 1.65;
}
.karlos-privacy-measurement h2 { margin-top: 0; font-size: 23px; }
@media (max-width: 767px) {
  .karlos-contact-inner { gap: 10px; padding: 12px 10px; }
  .karlos-contact-copy { flex-basis: 100%; text-align: center; }
  .karlos-contact-title { font-size: 17px; }
  .karlos-contact-note { font-size: 13px; }
  .karlos-contact-actions { flex: 1 1 100%; width: 100%; gap: 8px; }
  .karlos-contact-button { flex: 1 1 0; min-width: 0; padding: 9px 6px; font-size: 16px; }
  .karlos-contact-button small { font-size: 13px; }
  .karlos-contact-page #contenido .texto_index { padding-left: 12px; padding-right: 12px; }
  .karlos-contact-page #contenido h1 { font-size: 27px; line-height: 1.25; }
  .karlos-contact-page #contenido h2 { font-size: 21px; line-height: 1.35; }
  .karlos-consent { left: 8px; right: 8px; bottom: 8px; padding: 15px; }
  .karlos-consent button { flex: 1 1 0; }
  .karlos-privacy-measurement { padding: 16px; }
}
