/* Scoped to the public consent controls and contact form. */
.if-consent {
  box-sizing: border-box; width: min(660px, calc(100% - 24px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 28px; border: 1px solid #c6d3df; border-radius: 16px;
  color: #142c43; background: #fff; font: 16px/1.5 system-ui, sans-serif;
  overflow: auto; box-shadow: 0 18px 70px #0005; text-align: left;
}
.if-consent::backdrop { background: #102b46a6; }
.if-consent h2 { margin: 0 0 12px; font: 700 25px/1.2 system-ui, sans-serif; color: #123f68;
  background: none; -webkit-text-fill-color: currentColor; text-shadow: none; animation: none; }
.if-consent p { margin: 12px 0; color: #263e52; font: 16px/1.5 system-ui, sans-serif; text-align: left; }
.if-consent a { color: #15528b; text-decoration: underline; }
.if-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 12px; }
.if-consent button, .if-cookie-settings { cursor: pointer; min-height: 44px; border: 2px solid #123f68;
  border-radius: 8px; padding: 10px 16px; font: 600 15px/1.4 system-ui, sans-serif; }
.if-consent-actions button { background: #123f68; color: white; }
.if-consent-actions [data-choice="settings"] { grid-column: 1 / -1; background: #fff; color: #123f68; }
.if-consent button:focus-visible, .if-cookie-settings:focus-visible, .if-consent summary:focus-visible,
.if-consent input:focus-visible { outline: 3px solid #ba7200; outline-offset: 3px; }
.if-consent [hidden], #infotec-contact-form [hidden] { display: none !important; }
#if-consent-options { padding: 14px; border: 1px solid #d3dfe8; border-radius: 8px; }
#if-consent-options label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; }
#if-consent-options input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #123f68; }
#if-consent-options button { background: #123f68; color: white; }
.if-consent details { margin: 16px 0 8px; }
.if-consent summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.if-consent .if-consent-close { background: white; color: #123f68; border-color: transparent; text-decoration: underline; }
.if-cookie-settings { display: block; width: max-content; max-width: calc(100% - 32px); margin: 20px auto;
  background: white; color: #123f68; }
#infotec-contact-form select { max-width: 100%; min-width: 0; white-space: normal; }
#infotec-contact-form .helper { text-align: left; }
#infotec-contact-form fieldset { min-width: 0; border: 1px solid #c5d6e5; border-radius: 12px; padding: 16px; margin: 0 0 20px; }
#infotec-contact-form legend { padding: 0 8px; font-weight: 700; color: #123f68; }
#infotec-contact-form .request-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
#infotec-contact-form .request-choice input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: #123f68; }
#formulario { scroll-margin-top: 180px; }
@media (max-width: 640px) {
  .if-consent { padding: 20px; }
  .if-consent h2 { font-size: 22px; }
  .if-consent-actions { grid-template-columns: 1fr; }
  #formulario { scroll-margin-top: 18px; }
}
