/* Acceso para asociados y mensajes de validación (página y portal). Self-contained: does not use the variables of either site. */

/* Closed until acceso-asociados.js opens it (stays closed if the script does not load) */
[data-solo-asociados]:not(.is-abierto) { display: none !important; }

.acc { max-width: 520px; margin: 32px auto 0; background: #fff; border: 1px solid #E4E8DF; border-radius: 24px; overflow: hidden; color: #121512; box-shadow: 0 26px 50px -34px rgba(18,21,18,.45); font: 400 16px/1.55 "Open Sans", system-ui, sans-serif; scroll-margin-top: 110px; }
.acc[hidden], .acc [hidden] { display: none !important; }
.acc__top { padding: 28px 28px 24px; text-align: center; background: linear-gradient(160deg, #F4FADF, #E3F0C2); color: #23420B; }
.acc__ico { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(#D3E93A, #C0D91B); color: #1C2A08; box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 4px 0 #7E9A0C, 0 10px 16px -8px rgba(62,90,10,.5); }
.acc__ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc__t { margin: 0; font: 700 23px/1.25 "Montserrat", sans-serif; color: #23420B; }
.acc__t:focus { outline: none; }
.acc__body { padding: 24px 28px 28px; }
.acc__body p { margin: 0 0 14px; }
.acc__q { font: 700 18px/1.3 "Montserrat", sans-serif; }
.acc__form { display: grid; gap: 14px; margin: 0; }
.acc__f { display: grid; gap: 6px; font: 600 14px/1.4 "Montserrat", sans-serif; color: #4A5148; }
.acc__f input, .acc__f select { width: 100%; min-width: 0; padding: 13px 14px; border: 1.5px solid #CBD3C4; border-radius: 12px; background: #fff; color: #121512; font: 400 16px/1.3 "Open Sans", sans-serif; box-sizing: border-box; }
.acc__f input:focus, .acc__f select:focus { outline: none; border-color: #3E7D10; box-shadow: 0 0 0 3px rgba(99,177,29,.22); }
.acc__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px; border: 0; border-radius: 999px; background: #3E7D10; color: #fff !important; font: 700 16px/1.2 "Montserrat", sans-serif; text-decoration: none !important; cursor: pointer; box-sizing: border-box; }
.acc__btn:hover { background: #2E6A12; }
.acc__btn:focus-visible, .acc__link:focus-visible { outline: 3px solid #121512; outline-offset: 3px; }
.acc__btn[disabled] { opacity: .65; cursor: progress; }
.acc__btn svg { width: 20px; height: 20px; fill: currentColor; }
.acc__note { margin: 16px 0 0 !important; padding: 12px 14px; border-radius: 14px; background: #F6F8F2; color: #4A5148; font-size: 14px; }
.acc__note a { color: #2E6A12; font-weight: 600; }
.acc__note--portal { background: #EDF6D5; color: #23420B; }
.acc__aviso { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #FFF6C2; color: #5C4700; font-size: 14.5px; }
.acc__aviso.is-bad { background: #FDECEC; color: #A3161C; }
.acc__list { list-style: none; margin: 4px 0 18px; padding: 0; }
.acc__list li { margin: 0; padding: 0; border-bottom: 1px solid #E4E8DF; }
.acc__list a, .acc__list span { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: #121512; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.acc__list a:hover { color: #2E6A12; text-decoration: underline; }
.acc__list svg { flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: #3E7D10; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc__link { display: block; width: 100%; margin: 14px 0 0; padding: 8px; border: 0; background: none; color: #2E6A12; font: 600 15px/1.4 "Montserrat", sans-serif; text-align: center; text-decoration: underline; cursor: pointer; box-sizing: border-box; }
.acc__err { margin: 18px 18px 0; padding: 12px 16px; border-radius: 14px; background: #FDECEC; color: #A3161C; font-size: 14.5px; }
.acc__fecha { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; min-width: 0; }
.acc__fecha legend { padding: 0; margin-bottom: 6px; font: 600 14px/1.4 "Montserrat", sans-serif; color: #4A5148; }
.acc__fecha > div { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.acc__fecha select { width: 100%; min-width: 0; padding: 13px 8px; border: 1.5px solid #CBD3C4; border-radius: 12px; background: #fff; color: #121512; font: 400 16px/1.3 "Open Sans", sans-serif; box-sizing: border-box; }
.acc__fecha select:focus { outline: none; border-color: #3E7D10; box-shadow: 0 0 0 3px rgba(99,177,29,.22); }
.acc__fecha small { color: #5E655C; font-size: 13px; }
.acc__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Strip shown while the access is open */
.acc-ok { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 24px 0 18px; padding: 12px 18px; border-radius: 16px; background: #DFF1D3; color: #23500A; font: 400 15px/1.4 "Open Sans", sans-serif; }
.acc-ok[hidden] { display: none; }
.acc-ok button { padding: 4px 0; border: 0; background: none; color: #23500A; font: 600 14px "Montserrat", sans-serif; text-decoration: underline; cursor: pointer; }

/* Message next to each field */
.campo-err { display: block; flex-basis: 100%; grid-column: 1 / -1; margin-top: 4px; color: #B3161D; font: 600 13px/1.4 "Open Sans", sans-serif; }
[aria-invalid="true"] { border-color: #D93025 !important; background-color: #FFF8F8 !important; }
.is-bloqueado { background-color: #F1F4EC !important; color: #4A5148 !important; cursor: not-allowed; opacity: 1 !important; }

@media (max-width: 480px) {
  .acc { margin-top: 24px; border-radius: 20px; }
  .acc__top { padding: 24px 18px 20px; }
  .acc__t { font-size: 20px; }
  .acc__body { padding: 20px 18px 22px; }
  .acc__list a, .acc__list span { gap: 9px; font-size: clamp(12.5px, 3.8vw, 16px); }
}
/* Inside the portal the card replaces the form: no outer margin */
.pt .acc { margin-top: 24px; max-width: 460px; }

/* Solicitud: autorización de datos y campos que vienen de la última solicitud */
.sol-aut__t { margin: 12px 0; padding: 14px 16px; max-height: 260px; overflow: auto; border-radius: 14px; background: #F6F8F2; color: #3F463D; font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.sol-aut .sol-check + .sol-aut__t { margin-top: 18px; }
.sol-previa { margin: 0 0 4px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid #C0D91B; background: #F7FBE3; color: #23420B; font-size: 15px; line-height: 1.5; }
.sol-previa b { display: block; margin-bottom: 4px; }
input.is-previo, select.is-previo, .sol-radio.is-previo label:has(input:checked) { border-color: #A9C20F !important; background-color: #F7FBE3 !important; }
