/* Página pública de agencias */
.se-ag { padding-top: 40px; padding-bottom: 88px; }
.se-ag-head { max-width: 760px; margin-bottom: 34px; }
.se-ag-head h1 { font-size: var(--fs-h1); margin: 6px 0 14px; }
.se-ag-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--se-ink); }
.se-ag-paths { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 64px; }
.se-ag-new { padding: 34px; border-radius: 24px; background: #e8f1fd; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.se-ag-login { padding: 30px; border-radius: 24px; background: var(--se-soft); }
.se26 .se-ag-new h2, .se26 .se-ag-login h2 { font-size: var(--fs-h3); margin: 0 0 12px; }
.se-ag-new p { margin: 0 0 20px; }
.se26 .se-ag-new .se-row-btn { background: var(--se-cta); color: #fff; box-shadow: none; }
.se26 .se-ag-new .se-row-btn:hover { background: var(--se-cta-hover); }
.se-ag-login label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--se-muted); margin-bottom: 4px; }
.se-ag-login input[type="text"], .se-ag-login input[type="password"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d3dae6; border-radius: 12px; background: #fff; font: 500 var(--fs-ui) var(--se-font); color: var(--se-ink); }
.se-ag-login input:focus { outline: 3px solid rgba(0, 113, 235, .25); border-color: var(--se-cta); }
.se-ag-login p { margin: 0 0 14px; }
.se-ag-login input[type="submit"] { padding: 13px 30px; border: 0; border-radius: 999px; background: var(--se-ink); color: #fff; font: 700 var(--fs-ui) var(--se-font); cursor: pointer; }
.se-ag-lost { margin: 16px 0 0 !important; font-size: var(--fs-sm); }
.se-ag-sec { margin-top: 64px; }
.se26 .se-ag-sec h2 { font-size: var(--fs-h2); margin: 0 0 22px; }
.se-ag-ben { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.se-ag-ben > div { padding: 24px; border: 1px solid var(--se-line); border-radius: 20px; background: #fff; }
.se-ag-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: #e8f1fd; color: #005fc6; }
.se-ag-ic .se-icon { width: 22px; height: 22px; }
.se26 .se-ag-ben h3, .se26 .se-ag-steps h3 { font-size: var(--fs-h3); margin: 0 0 8px; }
.se-ag-ben p, .se-ag-steps p { margin: 0; font-size: 15px; line-height: 1.6; }
.se-ag-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.se-ag-steps li { padding: 26px; border-radius: 20px; background: var(--se-soft); }
.se-ag-steps li::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--se-ink); color: #fff; font-weight: 800; }
.se-ag-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 64px; }
.se-ag-photo figure { margin: 0; }
.se-ag-photo img { display: block; width: 100%; height: auto; border-radius: 22px; }
.se26 .se-ag-photo h2 { font-size: var(--fs-h2); margin: 0 0 12px; }
.se-ag-photo p { margin: 0 0 14px; }
.se-ag-photo p a { color: var(--se-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.se-ag-cta { text-align: center; padding: 44px 24px; border-radius: 24px; background: var(--se-soft); }
.se-ag-cta p { margin: 0 0 20px; }
.se-ag-cta a.se-btn { text-decoration: none; }
.se-ag-ctab { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1080px) { .se-ag-ben { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .se-ag-paths, .se-ag-photo { grid-template-columns: 1fr; } .se-ag-steps { grid-template-columns: 1fr; } .se-ag-photo { gap: 24px; } }
@media (max-width: 720px) { .se-ag-ben { grid-template-columns: 1fr; } .se-ag-new, .se-ag-login { padding: 24px 20px; } .se-ag-sec, .se-ag-photo { margin-top: 48px; } }
.se-ag-who { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.se-ag-who li { padding: 7px 16px; border-radius: 999px; background: #e8f1fd; color: #005fc6; font-weight: 700; font-size: var(--fs-sm); }
.se-ag { padding-bottom: 96px; }
.se-ag-rel { display: grid; gap: 12px; width: 100%; }
.se-ag-opt { display: block; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid transparent; color: var(--se-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.se-ag-opt:hover { border-color: var(--se-cta); box-shadow: 0 0 0 3px rgba(0, 113, 235, .14); }
.se-ag-opt strong { display: block; color: var(--se-ink); font-size: var(--fs-ui); margin-bottom: 4px; }
.se-ag-opt span { font-size: 14.5px; line-height: 1.5; }
.se-ag-tbc { font-style: normal; font-weight: 700; color: #6b5a1a; background: #fff8e1; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.se-ag-new p { margin-bottom: 16px; }
.se-ag-msg { margin: -10px 0 26px; padding: 14px 18px; border-radius: 14px; background: #e6f7ec; color: #13693a; font-weight: 600; }
.se-ag-msg.is-warn { background: #fff8e1; color: #6b5a1a; }
.se-ag-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.se-ag-types li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--se-line); border-radius: 16px; background: #fff; color: var(--se-ink); font-weight: 700; line-height: 1.3; }
.se-ag-types .se-ag-ic { flex: none; margin: 0; }
@media (max-width: 1080px) { .se-ag-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .se-ag-types { grid-template-columns: 1fr; } }

/* Aviso de sesión cerrada: con aire propio, sin pisar el título ni las tarjetas */
.se26 .se-ag-msg { margin: 0 0 32px; padding: 16px 20px; line-height: 1.5; }
.se-ag-head { margin-bottom: 28px; }
/* Quien vuelve de cerrar la sesión (o por inactividad) ve primero el acceso; el resto de visitantes, el alta */
.se-ag-paths.is-return { grid-template-columns: 1fr 1.2fr; }
.se-ag-paths.is-return .se-ag-login { order: -1; }
@media (max-width: 900px) { .se-ag-paths.is-return { grid-template-columns: 1fr; } }
