@font-face {
    font-family: "Inter";
    src: url("/font/Inter-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/font/Inter-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/font/Inter-SemiBold.otf") format("opentype");
    font-weight: 600 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #062f68;
    --blue-deep: #041f47;
    --blue-dark: #052657;
    --blue-2: #0a4f9c;
    --blue-3: #145fba;
    --blue-soft: #eaf3ff;
    --orange: #f28c28;
    --orange-soft: #fff3e7;
    --ink: #14253a;
    --muted: #66788a;
    --line: #dce5ee;
    --line-strong: #c5d3e2;
    --soft: #f4f7fa;
    --white: #ffffff;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --success: #087443;
    --success-soft: #e7f8ef;
    --warning: #8b5b00;
    --warning-soft: #fff8e7;
    --shadow:
        0 25px 75px rgba(6, 47, 104, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: #edf4fb;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--ink);
    background:
        linear-gradient(
            180deg,
            #eef4fa 0,
            #ffffff 45%
        );
    line-height: 1.55;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

/* =========================================================
   ENCABEZADO Y PIE PÚBLICOS
   ========================================================= */

.site-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    padding:
        12px
        max(
            24px,
            calc((100vw - 1180px) / 2)
        );
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-brand img {
    display: block;
    width: 180px;
    height: auto;
}

.site-footer {
    padding: 32px;
    text-align: center;
    color: var(--muted);
}

/* Las páginas del flujo muestran su propio panel institucional. */
.credential-flow-page .site-header,
.credential-flow-page .site-footer {
    display: none;
}

/* =========================================================
   MENSAJES
   ========================================================= */

.flash,
.notice {
    width:
        min(
            900px,
            calc(100% - 32px)
        );
    margin: 16px auto;
    padding: 14px 16px;
    border-radius: 12px;
}

.flash-error,
.notice-error {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid #fac5bd;
}

.flash-warning,
.notice-warning {
    color: var(--warning);
    background: var(--warning-soft);
    border: 1px solid #f3d68d;
}

.flash-success,
.notice-success {
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid #b7e7cc;
}

/* =========================================================
   CONTENEDORES PÚBLICOS EXISTENTES
   ========================================================= */

.landing-shell,
.form-shell,
.legal-shell {
    width:
        min(
            1180px,
            calc(100% - 32px)
        );
    margin: 42px auto;
}

.wide-form-shell {
    max-width: 900px;
}

.form-shell {
    max-width: 720px;
}

.form-card,
.success-card,
.legal-card,
.feature-grid article,
.process-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow:
        0 10px 30px rgba(6, 47, 104, 0.06);
}

.compact-card {
    max-width: 560px;
    margin: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    color: #ffffff;
    background: var(--blue);
}

.button-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.full-width {
    width: 100%;
}

.hidden {
    display: none !important;
}

.legal-shell {
    max-width: 900px;
}

.legal-card h2 {
    margin-top: 28px;
}

.legal-card p {
    color: #43566a;
}

.legal-warning {
    padding: 16px;
    background: var(--warning-soft);
    border: 1px solid #f3d68d;
    border-radius: 12px;
}

.success-card {
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: var(--success);
    background: var(--success-soft);
    border-radius: 50%;
    font-size: 38px;
    font-weight: 900;
}

.summary-list {
    margin: 24px 0;
    overflow: hidden;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.summary-list div {
    display: grid;
    grid-template-columns: 130px 1fr;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.summary-list div:last-child {
    border: 0;
}

.summary-list dt {
    font-weight: 800;
}

.summary-list dd {
    margin: 0;
    color: var(--muted);
}

/* =========================================================
   NUEVO FLUJO INSTITUCIONAL
   ========================================================= */

.credential-flow-page {
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(31, 99, 191, 0.14),
            transparent 30rem
        ),
        radial-gradient(
            circle at 5% 92%,
            rgba(242, 140, 40, 0.10),
            transparent 25rem
        ),
        linear-gradient(
            135deg,
            #f7faff 0%,
            #edf4fb 100%
        );
}

.credential-flow-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(18px, 3vw, 42px);
    display: grid;
    place-items: center;
}

.credential-flow-panel {
    width: min(1120px, 100%);
    min-height: min(760px, calc(100svh - 36px));
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.45fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(6, 47, 104, 0.11);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.credential-flow-panel-wide {
    width: min(1240px, 100%);
}

.credential-flow-sidebar {
    min-width: 0;
    padding:
        clamp(34px, 5vw, 62px)
        clamp(28px, 4vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 110% 15%,
            rgba(38, 111, 218, 0.42),
            transparent 22rem
        ),
        radial-gradient(
            circle at -20% 92%,
            rgba(242, 140, 40, 0.18),
            transparent 18rem
        ),
        linear-gradient(
            155deg,
            var(--blue-deep) 0%,
            var(--blue) 58%,
            #074483 100%
        );
    position: relative;
    isolation: isolate;
}

.credential-flow-sidebar::before,
.credential-flow-sidebar::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.credential-flow-sidebar::before {
    width: 270px;
    height: 270px;
    top: -115px;
    right: -100px;
}

.credential-flow-sidebar::after {
    width: 180px;
    height: 180px;
    left: -95px;
    bottom: 65px;
}

.flow-logo-link {
    display: inline-flex;
    max-width: 100%;
}

.flow-logo {
    display: block;
    width: min(285px, 100%);
    height: auto;
}

.sidebar-accent {
    display: block;
    width: 72px;
    height: 4px;
    margin: 42px 0 25px;
    border-radius: 999px;
    background: var(--orange);
}

.sidebar-kicker {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.credential-flow-sidebar h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.sidebar-copy {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.77);
    line-height: 1.75;
}

.flow-benefits {
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
    list-style: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.flow-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
}

.benefit-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--blue-deep);
    background: var(--orange);
    border-radius: 50%;
    font-size: 0.77rem;
    font-weight: 900;
}

.sidebar-person {
    margin-top: 30px;
    padding: 17px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
}

.sidebar-person-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--blue-deep);
    background: var(--orange);
    border-radius: 50%;
    font-weight: 900;
}

.sidebar-person div {
    min-width: 0;
}

.sidebar-person small,
.sidebar-person strong,
.sidebar-person span {
    display: block;
}

.sidebar-person small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-person strong {
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.sidebar-person span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.flow-sidebar-steps {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    list-style: none;
}

.flow-sidebar-steps li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    color: rgba(255, 255, 255, 0.48);
}

.flow-sidebar-steps li > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
}

.flow-sidebar-steps strong,
.flow-sidebar-steps small {
    display: block;
}

.flow-sidebar-steps small {
    margin-top: 2px;
    font-size: 0.76rem;
}

.flow-sidebar-steps .active {
    color: #ffffff;
}

.flow-sidebar-steps .active > span {
    color: var(--blue-deep);
    background: var(--orange);
    border-color: var(--orange);
    box-shadow:
        0 8px 20px rgba(242, 140, 40, 0.28);
}

.flow-sidebar-steps .completed {
    color: rgba(255, 255, 255, 0.82);
}

.flow-sidebar-steps .completed > span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.25);
}

.credential-flow-content {
    min-width: 0;
    padding:
        clamp(34px, 5vw, 68px)
        clamp(28px, 5vw, 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(
            160deg,
            #ffffff 0%,
            #fbfdff 100%
        );
}

.flow-form-content {
    justify-content: flex-start;
}

.flow-back-link {
    width: max-content;
    margin-bottom: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.flow-back-link:hover {
    color: var(--blue-2);
}

.flow-content-header {
    max-width: 720px;
}

.flow-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.flow-content-header h1 {
    margin: 17px 0 0;
    color: var(--blue-deep);
    font-size: clamp(2.15rem, 4vw, 3.8rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.flow-content-header p {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.72;
}

.mobile-progress {
    display: none;
    margin-bottom: 28px;
}

.mobile-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
    font-size: 0.78rem;
}

.mobile-progress-head span {
    color: var(--muted);
}

.mobile-progress-head strong {
    color: var(--blue);
}

.mobile-progress-track {
    height: 7px;
    overflow: hidden;
    background: var(--blue-soft);
    border-radius: 999px;
}

.mobile-progress-track span {
    display: block;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--blue-2),
            var(--blue-3)
        );
    border-radius: inherit;
}

.flow-form {
    width: 100%;
    max-width: 760px;
    margin-top: 30px;
}

.validation-form {
    max-width: 590px;
}

.flow-field {
    min-width: 0;
}

.flow-field label {
    display: block;
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 750;
}

.flow-field label > span {
    color: var(--orange);
}

.flow-field input,
.flow-field select {
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.flow-field input:hover,
.flow-field select:hover {
    border-color: #9cb2c9;
}

.flow-field input:focus,
.flow-field select:focus {
    border-color: var(--blue-2);
    box-shadow:
        0 0 0 4px rgba(10, 79, 156, 0.12);
}

.flow-field input[readonly] {
    color: #53657a;
    background: var(--soft);
}

.flow-field small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.flow-input-wrap {
    position: relative;
}

.flow-input-wrap input {
    padding-left: 49px;
}

.flow-input-icon {
    position: absolute;
    z-index: 1;
    left: 15px;
    top: 50%;
    width: 25px;
    height: 25px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: var(--blue-2);
    background: var(--blue-soft);
    border-radius: 8px;
    font-weight: 850;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
}

.full-field {
    grid-column: 1 / -1;
}

.flow-primary-button {
    width: 100%;
    min-height: 58px;
    margin-top: 24px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--blue-2),
            var(--blue)
        );
    border: 0;
    border-radius: 13px;
    box-shadow:
        0 14px 27px rgba(6, 47, 104, 0.20);
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.flow-primary-button:hover:not(:disabled),
.flow-primary-button:focus-visible:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 19px 34px rgba(6, 47, 104, 0.27);
}

.flow-primary-button:focus-visible {
    outline:
        4px solid rgba(10, 79, 156, 0.15);
    outline-offset: 3px;
}

.flow-primary-button:disabled {
    color: #7e8ea2;
    background: #dbe4ee;
    box-shadow: none;
    cursor: not-allowed;
}

.flow-primary-button.is-loading .button-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    border-radius: 50%;
    font-size: 0;
    animation: flow-spin 700ms linear infinite;
}

.button-arrow {
    margin-left: auto;
    font-size: 1.25rem;
}

@keyframes flow-spin {
    to {
        transform: rotate(360deg);
    }
}

.flow-alert {
    max-width: 760px;
    margin-top: 24px;
    padding: 15px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 13px;
}

.flow-alert[hidden] {
    display: none;
}

.flow-alert-error {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid #fac5bd;
}

.flow-alert-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--danger);
    border-radius: 50%;
    font-weight: 900;
}

.flow-alert strong,
.flow-alert p {
    display: block;
}

.flow-alert p {
    margin: 3px 0 0;
    line-height: 1.5;
}

.flow-support-card {
    max-width: 590px;
    margin-top: 24px;
    padding: 16px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    background: var(--orange-soft);
    border: 1px solid #f8d1a8;
    border-radius: 13px;
}

.support-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--orange);
    border-radius: 50%;
    font-weight: 900;
}

.flow-support-card strong,
.flow-support-card p {
    display: block;
}

.flow-support-card p {
    margin: 3px 0 0;
    color: #6d512f;
    font-size: 0.84rem;
    line-height: 1.55;
}

.flow-security-note {
    max-width: 590px;
    margin: 17px 0 0;
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.78rem;
}

.flow-security-note span {
    color: var(--blue-2);
}

.identity-summary {
    max-width: 760px;
    margin-top: 27px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            #f3f8ff,
            #edf5ff
        );
    border: 1px solid #ccddf0;
    border-radius: 16px;
}

.identity-summary-icon {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--success);
    border-radius: 50%;
    font-weight: 900;
}

.identity-summary-main {
    min-width: 0;
}

.identity-summary-main span,
.identity-summary-main strong {
    display: block;
}

.identity-summary-main span {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.identity-summary-main strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--blue-deep);
}

.identity-summary dl {
    margin: 0;
    display: flex;
    gap: 20px;
}

.identity-summary dl > div {
    min-width: 0;
}

.identity-summary dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.identity-summary dd {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 750;
}

.status-pill {
    display: inline-flex;
    padding: 4px 8px;
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid #bfe7d0;
    border-radius: 999px;
    white-space: nowrap;
}

.alumni-flow-form {
    max-width: 760px;
}

.form-section {
    padding: 27px 0;
    border-top: 1px solid var(--line);
}

.form-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.form-section-heading {
    margin-bottom: 20px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.section-number {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 850;
}

.form-section-heading h2 {
    margin: 0;
    color: var(--blue-deep);
    font-size: 1.08rem;
}

.form-section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.81rem;
    line-height: 1.5;
}

.consent-box {
    display: grid;
    gap: 13px;
}

.check-row {
    margin: 0;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
}

.check-row:hover {
    border-color: #b8c9db;
}

.check-row input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: var(--blue-2);
}

.check-row span {
    color: #4d5e72;
    font-size: 0.84rem;
    font-weight: 450;
    line-height: 1.58;
}

.check-row strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
}

.check-row a {
    color: var(--blue-2);
    font-weight: 700;
}

.required-consent {
    background: #f1f7ff;
    border-color: #cadcf0;
}

.optional-consent {
    background: #fafbfd;
}

.required-note {
    margin: 11px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.73rem;
}

.required-note span {
    color: var(--orange);
}

/* =========================================================
   ADAPTACIÓN RESPONSIVA
   ========================================================= */

@media (max-width: 980px) {
    .credential-flow-shell {
        padding: 16px;
        place-items: start center;
    }

    .credential-flow-panel,
    .credential-flow-panel-wide {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .credential-flow-sidebar {
        min-height: auto;
        padding: 29px;
        gap: 28px;
    }

    .flow-logo {
        width: 220px;
    }

    .sidebar-accent {
        margin: 25px 0 18px;
    }

    .credential-flow-sidebar h2 {
        max-width: 650px;
        font-size: 1.85rem;
    }

    .sidebar-copy {
        max-width: 680px;
    }

    .flow-benefits,
    .flow-sidebar-steps {
        display: none;
    }

    .sidebar-person {
        max-width: 580px;
    }

    .credential-flow-content {
        padding: 32px 29px 40px;
    }

    .mobile-progress {
        display: block;
    }

    .flow-back-link {
        margin-bottom: 24px;
    }
}

@media (max-width: 680px) {
    .credential-flow-shell {
        padding: 0;
    }

    .credential-flow-panel,
    .credential-flow-panel-wide {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .credential-flow-sidebar {
        padding: 25px 20px 28px;
    }

    .flow-logo {
        width: min(240px, 76vw);
    }

    .sidebar-kicker {
        font-size: 0.71rem;
    }

    .credential-flow-sidebar h2 {
        font-size: 1.55rem;
    }

    .sidebar-copy {
        margin-top: 14px;
        font-size: 0.91rem;
    }

    .credential-flow-content {
        padding: 29px 20px 40px;
    }

    .flow-content-header h1 {
        font-size: 2.2rem;
    }

    .flow-content-header p {
        font-size: 0.96rem;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .full-field {
        grid-column: auto;
    }

    .identity-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .identity-summary dl {
        grid-column: 1 / -1;
        padding-top: 13px;
        border-top: 1px solid #ccddf0;
    }

    .flow-primary-button {
        min-height: 56px;
    }
}

@media (max-width: 430px) {
    .credential-flow-sidebar h2 {
        font-size: 1.38rem;
    }

    .flow-content-header h1 {
        font-size: 1.95rem;
    }

    .identity-summary dl {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .button-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   AVISO DE PRIVACIDAD
   ========================================================= */

.privacy-page {
    background:
        radial-gradient(
            circle at 92% 7%,
            rgba(31, 99, 191, 0.15),
            transparent 30rem
        ),
        radial-gradient(
            circle at 5% 94%,
            rgba(242, 140, 40, 0.10),
            transparent 25rem
        ),
        linear-gradient(
            135deg,
            #f7faff 0%,
            #edf4fb 100%
        );
}

.privacy-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(18px, 3vw, 42px);
}

.privacy-panel {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1.65fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(6, 47, 104, 0.11);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.privacy-sidebar {
    min-width: 0;
    min-height: calc(100vh - 84px);
    min-height: calc(100svh - 84px);
    padding:
        clamp(34px, 5vw, 58px)
        clamp(27px, 4vw, 48px);
    color: #ffffff;
    background:
        radial-gradient(
            circle at 108% 10%,
            rgba(39, 113, 220, 0.44),
            transparent 23rem
        ),
        radial-gradient(
            circle at -15% 91%,
            rgba(242, 140, 40, 0.18),
            transparent 18rem
        ),
        linear-gradient(
            155deg,
            var(--blue-deep) 0%,
            var(--blue) 60%,
            #074483 100%
        );
    position: sticky;
    top: 0;
    align-self: start;
}

.privacy-sidebar::before,
.privacy-sidebar::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-sidebar::before {
    width: 260px;
    height: 260px;
    right: -105px;
    top: -115px;
}

.privacy-sidebar::after {
    width: 180px;
    height: 180px;
    left: -105px;
    bottom: 80px;
}

.privacy-logo-link {
    display: inline-flex;
    position: relative;
    z-index: 1;
}

.privacy-logo {
    display: block;
    width: min(280px, 100%);
    height: auto;
}

.privacy-accent {
    display: block;
    width: 72px;
    height: 4px;
    margin: 40px 0 24px;
    background: var(--orange);
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.privacy-kicker {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.77rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.privacy-sidebar h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.9rem, 3.1vw, 2.85rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
}

.privacy-intro {
    margin: 19px 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.privacy-index {
    margin-top: 37px;
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.privacy-index a {
    min-height: 43px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease;
}

.privacy-index a:hover,
.privacy-index a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

.privacy-index a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.16);
    outline-offset: 2px;
}

.privacy-index span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: var(--blue-deep);
    background: var(--orange);
    border-radius: 8px;
    font-size: 0.67rem;
    font-weight: 850;
}

.privacy-sidebar-note {
    margin-top: 32px;
    padding: 15px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    position: relative;
    z-index: 1;
}

.privacy-sidebar-note > span {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--blue-deep);
    background: var(--orange);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 900;
}

.privacy-sidebar-note p {
    margin: 1px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    line-height: 1.55;
}

.privacy-content {
    min-width: 0;
    padding:
        clamp(32px, 5vw, 68px)
        clamp(28px, 5vw, 72px);
}

.privacy-top-actions {
    margin-bottom: 38px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.privacy-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 650;
    text-decoration: none;
}

.privacy-back-link:hover {
    color: var(--blue-2);
}

.privacy-version {
    color: var(--muted);
    font-size: 0.74rem;
}

.privacy-content-header {
    max-width: 790px;
}

.privacy-content-header h2 {
    margin: 17px 0 0;
    color: var(--blue-deep);
    font-size: clamp(2.25rem, 4.3vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.privacy-content-header p {
    max-width: 720px;
    margin: 19px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.privacy-highlight {
    max-width: 850px;
    margin: 30px 0 4px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: #104c36;
    background: var(--success-soft);
    border: 1px solid #bce5cd;
    border-radius: 15px;
}

.privacy-highlight-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--success);
    border-radius: 50%;
    font-weight: 900;
}

.privacy-highlight strong,
.privacy-highlight p {
    display: block;
}

.privacy-highlight p {
    margin: 3px 0 0;
    color: #39715f;
    font-size: 0.86rem;
    line-height: 1.55;
}

.privacy-section {
    max-width: 900px;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.privacy-section:first-of-type {
    margin-top: 16px;
}

.privacy-section-number {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 850;
}

.privacy-section h3 {
    margin: 2px 0 15px;
    color: var(--blue-deep);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.privacy-section h4 {
    margin: 27px 0 10px;
    color: var(--blue);
    font-size: 1rem;
}

.privacy-section p {
    margin: 0 0 15px;
    color: #4f6176;
    line-height: 1.78;
}

.privacy-section a {
    color: var(--blue-2);
    overflow-wrap: anywhere;
}

.privacy-list,
.privacy-ordered-list {
    margin: 14px 0 21px;
    padding-left: 21px;
    display: grid;
    gap: 11px;
    color: #4f6176;
}

.privacy-list li,
.privacy-ordered-list li {
    padding-left: 4px;
    line-height: 1.7;
}

.privacy-list li::marker {
    color: var(--orange);
}

.privacy-ordered-list li::marker {
    color: var(--blue-2);
    font-weight: 800;
}

.privacy-details {
    margin: 22px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.privacy-details > div {
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.privacy-details > div:last-child {
    border-bottom: 0;
}

.privacy-details dt {
    color: var(--blue-deep);
    font-size: 0.82rem;
    font-weight: 750;
}

.privacy-details dd {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.privacy-note {
    margin-top: 21px;
    padding: 16px;
    background: var(--orange-soft);
    border: 1px solid #f7d1aa;
    border-radius: 13px;
}

.privacy-note strong {
    color: #7e4a13;
}

.privacy-note p {
    margin: 5px 0 0;
    color: #715639;
    font-size: 0.85rem;
}

.privacy-contact-card {
    margin: 21px 0;
    padding: 17px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    background: var(--blue-soft);
    border: 1px solid #c8dbef;
    border-radius: 14px;
}

.privacy-contact-card > span {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue-2);
    border-radius: 10px;
    font-weight: 850;
}

.privacy-contact-card strong,
.privacy-contact-card a,
.privacy-contact-card p {
    display: block;
}

.privacy-contact-card a,
.privacy-contact-card p {
    margin-top: 3px;
}

.privacy-contact-card p {
    margin-bottom: 0;
    font-size: 0.86rem;
}

.privacy-public-url {
    display: inline-block;
    padding: 11px 13px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.84rem;
    text-decoration: none;
}

.privacy-consent-summary {
    max-width: 900px;
    margin-top: 8px;
    padding: 21px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: #164b38;
    background: var(--success-soft);
    border: 1px solid #bce5cd;
    border-radius: 15px;
}

.privacy-consent-summary > span {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--success);
    border-radius: 50%;
    font-weight: 900;
}

.privacy-consent-summary h3 {
    margin: 2px 0 7px;
}

.privacy-consent-summary p {
    margin: 0;
    color: #39715f;
    line-height: 1.65;
}

.privacy-bottom-actions {
    max-width: 900px;
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.privacy-primary-action,
.privacy-secondary-action {
    min-height: 53px;
    padding: 13px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.privacy-primary-action {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--blue-2),
            var(--blue)
        );
    box-shadow:
        0 13px 25px rgba(6, 47, 104, 0.19);
}

.privacy-primary-action span {
    margin-left: 15px;
}

.privacy-secondary-action {
    color: var(--blue);
    background: #ffffff;
    border: 1px solid var(--line-strong);
}

.privacy-primary-action:hover,
.privacy-secondary-action:hover {
    transform: translateY(-1px);
}

.privacy-legal-review {
    max-width: 900px;
    margin: 24px 0 0;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.74rem;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .privacy-shell {
        padding: 16px;
    }

    .privacy-panel {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .privacy-sidebar {
        min-height: auto;
        padding: 30px;
        position: relative;
        top: auto;
    }

    .privacy-logo {
        width: 220px;
    }

    .privacy-accent {
        margin: 26px 0 18px;
    }

    .privacy-sidebar h1 {
        max-width: 760px;
        font-size: 2rem;
    }

    .privacy-intro {
        max-width: 700px;
    }

    .privacy-index {
        display: none;
    }

    .privacy-sidebar-note {
        max-width: 650px;
        margin-top: 22px;
    }

    .privacy-content {
        padding: 34px 30px 45px;
    }
}

@media (max-width: 680px) {
    .privacy-shell {
        padding: 0;
    }

    .privacy-panel {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .privacy-sidebar {
        padding: 25px 20px 28px;
    }

    .privacy-logo {
        width: min(240px, 76vw);
    }

    .privacy-sidebar h1 {
        font-size: 1.6rem;
    }

    .privacy-content {
        padding: 29px 20px 42px;
    }

    .privacy-top-actions {
        margin-bottom: 28px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .privacy-content-header h2 {
        font-size: 2.2rem;
    }

    .privacy-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 31px 0;
    }

    .privacy-section-number {
        width: 36px;
        height: 36px;
    }

    .privacy-details > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .privacy-bottom-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .privacy-primary-action,
    .privacy-secondary-action {
        width: 100%;
    }
}

/* =========================================================
   CENTRO DE POLÍTICAS Y AVISOS DE PRIVACIDAD
   ========================================================= */

.policy-page {
    background:
        radial-gradient(
            circle at 92% 7%,
            rgba(31, 99, 191, 0.15),
            transparent 30rem
        ),
        radial-gradient(
            circle at 5% 94%,
            rgba(242, 140, 40, 0.10),
            transparent 25rem
        ),
        linear-gradient(
            135deg,
            #f7faff 0%,
            #edf4fb 100%
        );
}

.policy-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(18px, 3vw, 42px);
}

.policy-panel {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(300px, 0.72fr)
        minmax(0, 1.7fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(6, 47, 104, 0.11);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.policy-sidebar {
    min-width: 0;
    min-height: calc(100vh - 84px);
    min-height: calc(100svh - 84px);
    padding:
        clamp(34px, 5vw, 58px)
        clamp(27px, 4vw, 48px);
    color: #ffffff;
    background:
        radial-gradient(
            circle at 108% 10%,
            rgba(39, 113, 220, 0.44),
            transparent 23rem
        ),
        radial-gradient(
            circle at -15% 91%,
            rgba(242, 140, 40, 0.18),
            transparent 18rem
        ),
        linear-gradient(
            155deg,
            var(--blue-deep) 0%,
            var(--blue) 60%,
            #074483 100%
        );
    position: sticky;
    top: 0;
    align-self: start;
}

.policy-sidebar::before,
.policy-sidebar::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-sidebar::before {
    width: 260px;
    height: 260px;
    right: -105px;
    top: -115px;
}

.policy-sidebar::after {
    width: 180px;
    height: 180px;
    left: -105px;
    bottom: 80px;
}

.policy-logo-link {
    display: inline-flex;
    position: relative;
    z-index: 1;
}

.policy-logo {
    display: block;
    width: min(280px, 100%);
    height: auto;
}

.policy-accent {
    display: block;
    width: 72px;
    height: 4px;
    margin: 40px 0 24px;
    background: var(--orange);
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.policy-kicker {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.77rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.policy-sidebar h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    position: relative;
    z-index: 1;
}

.policy-sidebar-copy {
    margin: 19px 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.policy-index {
    margin-top: 37px;
    display: grid;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.policy-index a {
    min-height: 43px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease;
}

.policy-index a:hover,
.policy-index a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

.policy-index span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: var(--blue-deep);
    background: var(--orange);
    border-radius: 8px;
    font-size: 0.67rem;
    font-weight: 850;
}

.policy-sidebar-note {
    margin-top: 32px;
    padding: 15px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    position: relative;
    z-index: 1;
}

.policy-sidebar-note > span {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--blue-deep);
    background: var(--orange);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 900;
}

.policy-sidebar-note p {
    margin: 1px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    line-height: 1.55;
}

.policy-content {
    min-width: 0;
    padding:
        clamp(32px, 5vw, 68px)
        clamp(28px, 5vw, 72px);
}

.policy-top-actions {
    margin-bottom: 38px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.policy-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 650;
    text-decoration: none;
}

.policy-back-link:hover {
    color: var(--blue-2);
}

.policy-updated {
    color: var(--muted);
    font-size: 0.74rem;
    text-align: right;
}

.policy-content-header {
    max-width: 820px;
}

.policy-content-header h2 {
    margin: 17px 0 0;
    color: var(--blue-deep);
    font-size: clamp(2.25rem, 4.3vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.policy-content-header p {
    max-width: 750px;
    margin: 19px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.applicable-policy-card {
    max-width: 930px;
    margin: 30px 0 8px;
    padding: 20px;
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    gap: 15px;
    align-items: center;
    color: #104c36;
    background:
        linear-gradient(
            135deg,
            #e9f9f0,
            #f4fcf7
        );
    border: 1px solid #bce5cd;
    border-radius: 16px;
}

.applicable-policy-card.neutral {
    color: var(--blue-deep);
    background:
        linear-gradient(
            135deg,
            #eef5ff,
            #f7faff
        );
    border-color: #c9dcf0;
}

.applicable-policy-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--success);
    border-radius: 50%;
    font-weight: 900;
}

.applicable-policy-card.neutral
.applicable-policy-icon {
    background: var(--blue-2);
}

.applicable-policy-copy {
    min-width: 0;
}

.applicable-policy-copy > span {
    color: #39715f;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.applicable-policy-card.neutral
.applicable-policy-copy > span {
    color: var(--muted);
}

.applicable-policy-copy h3 {
    margin: 4px 0 2px;
    color: #164b38;
    font-size: 1.16rem;
}

.applicable-policy-card.neutral
.applicable-policy-copy h3 {
    color: var(--blue-deep);
}

.applicable-policy-copy p {
    margin: 0;
    color: #39715f;
    font-size: 0.84rem;
}

.applicable-policy-card.neutral
.applicable-policy-copy p {
    color: var(--muted);
}

.policy-section {
    max-width: 930px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.policy-section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.policy-section-heading > span {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 850;
}

.policy-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.policy-section-heading h3 {
    margin: 3px 0 0;
    color: var(--blue-deep);
    font-size: 1.36rem;
    letter-spacing: -0.025em;
}

.policy-section-intro {
    max-width: 800px;
    margin: 18px 0 0 53px;
    color: #4f6176;
    line-height: 1.75;
}

.policy-general-card {
    margin: 24px 0 0 53px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: var(--blue-soft);
    border: 1px solid #c7daee;
    border-radius: 15px;
}

.policy-general-card strong {
    display: block;
    color: var(--blue-deep);
}

.policy-general-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.policy-card-actions {
    display: grid;
    gap: 8px;
}

.policy-primary-button,
.policy-secondary-button,
.policy-text-button {
    min-height: 49px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease;
}

.policy-primary-button {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--blue-2),
            var(--blue)
        );
    box-shadow:
        0 12px 23px rgba(6, 47, 104, 0.18);
}

.policy-primary-button:hover,
.policy-secondary-button:hover,
.policy-text-button:hover {
    transform: translateY(-1px);
}

.policy-secondary-button {
    color: var(--blue);
    background: #ffffff;
    border: 1px solid var(--line-strong);
}

.policy-text-button {
    min-height: auto;
    padding: 5px 8px;
    color: var(--blue-2);
}

.policy-cards-grid {
    margin: 25px 0 0 53px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.policy-document-card {
    min-width: 0;
    padding: 22px;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow:
        0 10px 26px rgba(6, 47, 104, 0.06);
}

.policy-document-card.recommended {
    border: 2px solid #64b78f;
    box-shadow:
        0 15px 32px rgba(8, 116, 67, 0.10);
}

.recommended-label {
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 5px 10px;
    color: #ffffff;
    background: var(--success);
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
}

.policy-document-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    border-radius: 12px;
    font-weight: 850;
}

.policy-document-card h4 {
    margin: 16px 0 8px;
    color: var(--blue-deep);
    font-size: 1.1rem;
}

.policy-document-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.58;
}

.policy-status-list {
    margin: 13px 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.policy-status-list li {
    padding: 5px 8px;
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid #c7daee;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
}

.policy-document-summary {
    min-height: 82px;
}

.policy-document-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-2);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.arco-grid {
    margin: 25px 0 0 53px;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.arco-grid article {
    padding: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 13px;
}

.arco-grid article > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    border-radius: 9px;
    font-size: 0.75rem;
    font-weight: 850;
}

.arco-grid strong {
    display: block;
    margin-top: 12px;
    color: var(--blue-deep);
}

.arco-grid p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.55;
}

.policy-contact-list {
    margin: 24px 0 0 53px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.policy-contact-list > div {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 15px;
    border-bottom: 1px solid var(--line);
}

.policy-contact-list > div:last-child {
    border-bottom: 0;
}

.policy-contact-list dt {
    color: var(--blue-deep);
    font-size: 0.82rem;
    font-weight: 750;
}

.policy-contact-list dd {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.policy-contact-list a {
    color: var(--blue-2);
}

.policy-consent-box {
    max-width: 930px;
    padding: 21px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: #164b38;
    background: var(--success-soft);
    border: 1px solid #bce5cd;
    border-radius: 15px;
}

.policy-consent-box > span {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--success);
    border-radius: 50%;
    font-weight: 900;
}

.policy-consent-box h3 {
    margin: 2px 0 7px;
}

.policy-consent-box p {
    margin: 0;
    color: #39715f;
    line-height: 1.65;
}

.policy-bottom-actions {
    max-width: 930px;
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.policy-legal-note {
    max-width: 930px;
    margin: 24px 0 0;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.74rem;
    line-height: 1.6;
}

@media (max-width: 1080px) {
    .arco-grid {
        grid-template-columns: 1fr 1fr;
    }

    .applicable-policy-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .applicable-policy-card
    .policy-primary-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .policy-shell {
        padding: 16px;
    }

    .policy-panel {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .policy-sidebar {
        min-height: auto;
        padding: 30px;
        position: relative;
        top: auto;
    }

    .policy-logo {
        width: 220px;
    }

    .policy-accent {
        margin: 26px 0 18px;
    }

    .policy-sidebar h1 {
        max-width: 760px;
        font-size: 2.1rem;
    }

    .policy-sidebar-copy {
        max-width: 700px;
    }

    .policy-index {
        display: none;
    }

    .policy-sidebar-note {
        max-width: 650px;
        margin-top: 22px;
    }

    .policy-content {
        padding: 34px 30px 45px;
    }
}

@media (max-width: 720px) {
    .policy-cards-grid {
        grid-template-columns: 1fr;
    }

    .policy-general-card {
        grid-template-columns: 1fr;
    }

    .policy-card-actions {
        justify-items: start;
    }
}

@media (max-width: 680px) {
    .policy-shell {
        padding: 0;
    }

    .policy-panel {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .policy-sidebar {
        padding: 25px 20px 28px;
    }

    .policy-logo {
        width: min(240px, 76vw);
    }

    .policy-sidebar h1 {
        font-size: 1.68rem;
    }

    .policy-content {
        padding: 29px 20px 42px;
    }

    .policy-top-actions {
        margin-bottom: 28px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .policy-updated {
        text-align: left;
    }

    .policy-content-header h2 {
        font-size: 2.2rem;
    }

    .applicable-policy-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .policy-section {
        padding: 32px 0;
    }

    .policy-section-intro,
    .policy-general-card,
    .policy-cards-grid,
    .arco-grid,
    .policy-contact-list {
        margin-left: 0;
    }

    .arco-grid {
        grid-template-columns: 1fr;
    }

    .policy-contact-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .policy-bottom-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .policy-primary-button,
    .policy-secondary-button {
        width: 100%;
    }
}


/* =========================================================
   VALIDACIÓN DE CORREO Y TELÉFONO INTERNACIONAL
   ========================================================= */

.phone-fields {
    display: grid;
    grid-template-columns: minmax(230px, 0.85fr) minmax(260px, 1.15fr);
    gap: 14px;
}

.phone-country-field,
.phone-national-field {
    min-width: 0;
}

.field-sub-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.phone-number-shell {
    position: relative;
}

.phone-prefix {
    position: absolute;
    z-index: 1;
    left: 14px;
    top: 50%;
    min-width: 42px;
    transform: translateY(-50%);
    color: var(--blue-deep);
    font-size: 0.88rem;
    font-weight: 850;
    pointer-events: none;
}

.phone-number-shell input {
    padding-left: 61px;
}

.flow-field input.field-invalid,
.flow-field select.field-invalid {
    border-color: var(--danger);
    box-shadow:
        0 0 0 4px rgba(184, 50, 50, 0.10);
}

.flow-field input.field-valid,
.flow-field select.field-valid {
    border-color: var(--success);
}

.flow-field .field-validation-message {
    min-height: 1.2em;
    margin-top: 6px;
    color: var(--success);
    font-weight: 650;
}

.flow-field .field-validation-message:empty {
    display: none;
}

.flow-field .field-validation-message.is-error {
    display: block;
    color: var(--danger);
}

@media (max-width: 680px) {
    .phone-fields {
        grid-template-columns: 1fr;
    }
}


/* AJUSTE FORMULARIO EMAIL INSTITUCIONAL CSS V1.1 */
.identity-summary-main .identity-summary-email-label {
    margin-top: 11px;
}

.identity-summary-main .identity-summary-email-value {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}
