﻿html,
body {
    min-height: 100%;
}

    body > form {
        margin: 0;
        min-height: 100%;
    }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #17212b
}

.topbar {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw
}

.brand {
    text-decoration: none;
    font-size: 25px;
    font-weight: 800;
    color: #0b2540
}

    .brand span {
        color: #ff7200
    }

    .brand small {
        display: block;
        font-size: 10px
    }

.topbar nav {
    display: flex;
    gap: 20px
}

    .topbar nav a {
        text-decoration: none;
        color: #475467
    }

.page {
    min-height: 0;
    padding: 0;
}

.hero {
    max-width: 850px;
    margin: auto;
    text-align: center
}

.badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 99px;
    background: #fff2e8;
    color: #b54708;
    font-weight: 700
}

.hero h1 {
    font-size: 52px;
    line-height: 1.05
}

.hero p {
    font-size: 18px;
    color: #667085;
    margin-bottom: 30px
}

.button {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    font-weight: 700
}

.primary {
    background: #ff7200;
    color: #fff
}

footer {
    height: 60px;
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid #e4e7ec;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    color: #667085;
    font-size: 13px
}

.form-shell,
.wide-shell {
    max-width: 650px;
    margin: 0 auto;
}

.wide-shell {
    max-width: 1050px;
}

.form-card,
.certificate-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(11, 37, 64, .07);
}

    .form-card h1 {
        text-align: center;
        margin: 8px 0 10px;
    }

.lead {
    color: var(--muted);
    text-align: center;
    line-height: 1.55;
}

.shield,
.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff2e8;
    color: var(--orange);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    background: #ecfdf3;
    color: #067647;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
}

label {
    display: block;
    font-weight: 600;
    margin: 15px 0 7px;
}

.block {
    display: block;
    width: 100%;
    margin-top: 16px;
}

.secondary {
    background: #fff;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.danger {
    background: #d92d20;
    color: #fff;
}

.privacy-note,
.legal-box {
    background: #eff8ff;
    color: #175cd3;
    border-radius: 9px;
    padding: 14px;
    margin-top: 18px;
}

.legal-box {
    max-height: 250px;
    overflow: auto;
    color: #344054;
    line-height: 1.55;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #98a2b3;
    margin-bottom: 24px;
}

    .steps .done {
        color: #067647;
    }

    .steps .active {
        color: var(--orange);
        font-weight: 700;
    }

.otp-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 10px;
}

.consent-row {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    .consent-row input {
        width: 20px;
        height: 20px;
    }

    .consent-row p {
        margin: 5px 0 0;
        color: var(--muted);
    }

.purpose {
    margin-left: auto;
    border-radius: 99px;
    font-size: 11px;
    padding: 5px 8px;
}

.required {
    background: #ecfdf3;
    color: #067647;
}

.optional {
    background: #eff8ff;
    color: #175cd3;
}

.confirmation {
    background: #fafafa;
}

.receipt-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}

.consent-code {
    font-family: Consolas, monospace;
    text-align: center;
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
    border-radius: 9px;
    padding: 13px;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 16px;
    margin-top: 18px;
}

.certificate-card {
    text-align: center;
}

.certificate-logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
}

    .certificate-logo span {
        color: var(--orange);
    }

    .certificate-logo small {
        display: block;
        font-size: 10px;
    }

.qr-placeholder img {
    width: 220px;
    height: 220px;
    margin: 15px auto;
}

.consent-list {
    display: grid;
    gap: 12px;
}

.consent-item {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

    .consent-item p {
        margin: 5px 0 0;
        color: var(--muted);
    }

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}

.vigente {
    background: #ecfdf3;
    color: #067647;
}

.revocado {
    background: #fef3f2;
    color: #b42318;
}

@media print {
    .topbar, footer, .actions, nav {
        display: none !important;
    }

    .page {
        padding: 0;
    }

    .receipt-grid {
        display: block;
    }

    .certificate-card {
        margin-top: 20px;
    }
}

@media (max-width: 800px) {
    .receipt-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .consent-item {
        flex-direction: column;
        align-items: flex-start;
    }
}


.company-icon {
    font-size: 27px;
}

.verified-person {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
}

    .verified-person > div {
        background: #f8fafc;
        border: 1px solid #e4e7ec;
        border-radius: 9px;
        padding: 13px;
    }

    .verified-person span {
        display: block;
        color: #667085;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .verified-person strong {
        display: block;
        overflow-wrap: anywhere;
    }

@media (max-width: 620px) {
    .verified-person {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-wrap: wrap;
    }
}


.field-help {
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}


.purpose-summary {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
}

    .purpose-summary h2,
    .purpose-summary p {
        margin: 6px 0;
    }

.purpose-label {
    display: block;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================
   PÁGINA INICIAL ACEPTAFACIL
   ========================================================== */

.privacy-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
    background: radial-gradient( circle at 86% 12%, rgba(219, 234, 254, .42), transparent 31% ), linear-gradient( 90deg, #ffffff 0%, #ffffff 50%, #f8fafc 50%, #f8fafc 100% );
}

.privacy-presentation {
    padding: 32px 70px 40px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(226, 232, 240, .65);
}

.privacy-brand {
    margin-bottom: 58px;
    color: #f97316;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
}

    .privacy-brand span {
        color: #10243e;
    }

.privacy-presentation-content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

    .privacy-presentation-content h1 {
        margin: 0 0 24px;
        color: #101828;
        /*        font-size: clamp(38px, 4vw, 58px);*/
        /*        line-height: 1.08;*/
        /*        letter-spacing: -2px;*/
        /*        font-weight: 800;*/

        font-size: 64px;
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .privacy-presentation-content > p {
        max-width: 555px;
        margin: 0;
        color: #25364d;
        font-size: 20px;
        line-height: 1.45;
    }

.privacy-shield-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.privacy-shield-image {
    display: block;
    width: min(260px, 70%);
    height: auto;
    object-fit: contain;
}

.privacy-access {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 34px 55px;
}

.privacy-login-card {
    width: 100%;
    max-width: 470px;
    margin-top: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .97);
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .18), 0 4px 12px rgba(15, 23, 42, .08);
}

.privacy-login-header {
    padding: 22px 28px;
    background: linear-gradient( 110deg, #ffffff, #edf5ff );
    border-bottom: 1px solid #dce6f0;
}

    .privacy-login-header h2 {
        margin: 0;
        color: #101828;
        font-size: 23px;
        line-height: 1.25;
        font-weight: 700;
    }

.privacy-login-body {
    padding: 28px;
}

.privacy-field {
    margin-bottom: 22px;
}

    .privacy-field label {
        display: block;
        margin-bottom: 7px;
        color: #111827;
        font-size: 16px;
        font-weight: 600;
    }

        .privacy-field label span {
            font-weight: 400;
        }

    .privacy-field small {
        display: block;
        margin-top: 7px;
        color: #344054;
        font-size: 13px;
        line-height: 1.35;
    }

.privacy-input-wrapper {
    position: relative;
}

.privacy-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 46px 11px 14px;
    color: #101828;
    background: #ffffff;
    border: 1px solid #b8c2cf;
    border-radius: 8px;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.privacy-field > .privacy-input {
    padding-right: 14px;
}

.privacy-input::placeholder {
    color: #667085;
}

.privacy-input:focus {
    border-color: #f97316;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .13);
}

.privacy-lock {
    position: absolute;
    top: 50%;
    right: 13px;
    color: #475467;
    font-size: 17px;
    transform: translateY(-50%);
    pointer-events: none;
}

.privacy-submit {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 12px 18px;
    color: #ffffff;
    background: linear-gradient( 180deg, #ff7a00, #ff6200 );
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(249, 115, 22, .24);
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

    .privacy-submit:hover {
        filter: brightness(1.04);
        box-shadow: 0 8px 18px rgba(249, 115, 22, .30);
        transform: translateY(-1px);
    }

    .privacy-submit:active {
        transform: translateY(0);
    }

.privacy-message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.privacy-message-error {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.privacy-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 60px;
    padding: 0 24px;
    color: #1f2937;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 14px;
}

.privacy-footer-separator {
    color: #98a2b3;
}

/* TABLET */

@media (max-width: 980px) {

    .privacy-home {
        grid-template-columns: 1fr;
        background: #f8fafc;
    }

    .privacy-presentation {
        padding: 28px 30px 10px;
        border-right: 0;
        text-align: center;
    }

    .privacy-brand {
        margin-bottom: 30px;
    }

    .privacy-presentation-content h1 br {
        display: none;
    }

    .privacy-presentation-content > p {
        margin-right: auto;
        margin-left: auto;
    }

    .privacy-shield-image {
        width: 190px;
    }

    .privacy-access {
        padding: 20px 24px 45px;
    }

    .privacy-login-card {
        max-width: 560px;
        margin-top: 0;
    }
}

/* TELÉFONO */

@media (max-width: 600px) {

    .privacy-presentation {
        padding: 24px 18px 8px;
    }

    .privacy-brand {
        margin-bottom: 24px;
        font-size: 28px;
    }

    .privacy-presentation-content h1 {
        margin-bottom: 18px;
        font-size: 34px;
        letter-spacing: -1px;
        /*        font-size: 64px;
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -1px;*/
    }

    .privacy-presentation-content > p {
        font-size: 16px;
    }

    .privacy-shield-container {
        margin-top: 22px;
    }

    .privacy-shield-image {
        width: 160px;
    }

    .privacy-access {
        padding: 18px 14px 35px;
    }

    .privacy-login-header,
    .privacy-login-body {
        padding: 20px;
    }

        .privacy-login-header h2 {
            font-size: 20px;
        }

    .privacy-footer {
        flex-wrap: wrap;
        padding: 18px;
        line-height: 1.5;
    }
}
