:root {
    --orange: #ff7a00;
    --dark: #101820;
    --blue: #123c69;
    --light: #f4f6f8;
    --white: #ffffff;
    --gray: #666;
    --border: #d9dfe7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,122,0,0.18), transparent 30%),
        linear-gradient(135deg, #f5f7fa, #e9eef5);
    color: var(--dark);
}

.page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.card {
    width: 100%;
    max-width: 850px;
    background: var(--white);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    border-top: 8px solid var(--orange);
}

.hero {
    max-width: 620px;
    margin-top: 40px;
    text-align: center;
}

.brand {
    display: inline-block;
    background: var(--dark);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

h1 {
    font-size: 32px;
    margin: 10px 0 14px;
    color: var(--dark);
}

h2 {
    margin-top: 32px;
    color: var(--blue);
    border-left: 5px solid var(--orange);
    padding-left: 12px;
}

.subtitle {
    font-size: 18px;
    color: var(--gray);
}

.form {
    text-align: left;
    margin-top: 24px;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
}

input[type="text"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 17px;
}

button {
    width: 100%;
    margin-top: 22px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--orange);
    color: white;
    font-weight: bold;
    font-size: 17px;
    cursor: pointer;
}

button.secondary {
    background: var(--blue);
}

.buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-box,
.legal,
.success-box,
.error {
    border-radius: 16px;
    padding: 18px;
    margin-top: 20px;
}

.info-box {
    background: #f2f7ff;
    border: 1px solid #d6e7ff;
}

.legal {
    background: #fff8ef;
    border: 1px solid #ffd8ae;
    font-size: 15px;
}

.success-box {
    background: #e9f9ef;
    border: 1px solid #bfe8cc;
    font-weight: bold;
}

.error {
    background: #ffecec;
    border: 1px solid #ffb3b3;
    color: #9b0000;
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin-top: 12px;
}

.checks label {
    background: var(--light);
    padding: 12px;
    border-radius: 12px;
    font-weight: normal;
    margin: 0;
}

.checks input {
    margin-right: 8px;
}

#firmaCanvas {
    width: 100%;
    height: 220px;
    border: 2px dashed var(--blue);
    border-radius: 16px;
    background: white;
    touch-action: none;
    display: block;
}

.note {
    color: var(--gray);
    font-size: 14px;
    margin-top: 22px;
}

@media (max-width: 700px) {
    .page {
        padding: 12px;
    }

    .card {
        padding: 22px;
        border-radius: 18px;
    }

    .hero {
        margin-top: 12px;
    }

    h1 {
        font-size: 25px;
    }

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

    .buttons-row {
        grid-template-columns: 1fr;
    }

    button {
        font-size: 16px;
    }
}

input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--blue);
    border-radius: 12px;
    background: #f8fbff;
}

.foto-credencial {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--orange);
    margin: 20px auto;
    display: block;
}

.qr-img {
    width: 190px;
    height: 190px;
    margin: 24px auto 0;
    display: block;
}

.btn-link {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 16px;
    border-radius: 14px;
    background: var(--orange);
    color: white;
    font-weight: bold;
    font-size: 17px;
    text-align: center;
    text-decoration: none;
}

.btn-link:hover {
    opacity: 0.9;
}

textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    resize: vertical;
}

.admin-list {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.admin-item {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fbff;
}

.admin-item h2 {
    margin-top: 0;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-small {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.btn-small.orange {
    background: var(--orange);
}

@media (max-width: 700px) {
    .admin-item {
        grid-template-columns: 1fr;
    }
}

.logo-main {
    margin: 10px auto 22px;
    text-align: center;
}

.logo-main img {
    max-width: 420px;
    max-height: 180px;
    object-fit: contain;
}

.logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 18px 0;
    padding: 14px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--border);
}

.logos-row img {
    max-height: 54px;
    max-width: 150px;
    object-fit: contain;
}

.logos-projects {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
    opacity: 0.9;
}

.logos-projects img {
    max-height: 42px;
    max-width: 120px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .logo-main img {
        max-width: 260px;
        max-height: 130px;
    }

    .logos-row img {
        max-height: 44px;
        max-width: 120px;
    }

    .logos-projects img {
        max-height: 34px;
        max-width: 95px;
    }
}

.frase{
    font-size:18px;
    color:#123c69;
    font-weight:600;
    margin-top:8px;
    margin-bottom:20px;
}

.credencial-page {
    align-items: center;
    background:
        radial-gradient(circle at top, rgba(255, 122, 0, 0.20), transparent 28%),
        linear-gradient(160deg, #101820, #123c69);
}

.credencial-card {
    width: 100%;
    max-width: 430px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    border-radius: 32px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}

.credencial-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    background: rgba(255,122,0,0.16);
    border-radius: 50%;
}

.credencial-card::after {
    content: "";
    position: absolute;
    bottom: -90px;
    left: -90px;
    width: 200px;
    height: 200px;
    background: rgba(18,60,105,0.12);
    border-radius: 50%;
}

.credencial-top,
.credencial-title,
.credencial-foto,
.credencial-card h2,
.credencial-status,
.credencial-intereses,
.credencial-code,
.credencial-qr,
.credencial-footer {
    position: relative;
    z-index: 2;
}

.credencial-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credencial-top img {
    max-width: 160px;
    max-height: 70px;
    object-fit: contain;
}

.credencial-top span {
    background: #101820;
    color: white;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.credencial-title h1 {
    font-size: 23px;
    margin: 24px 0 6px;
    color: #101820;
}

.credencial-title p {
    color: #666;
    margin: 0 0 18px;
}

.credencial-foto {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #ff7a00;
    box-shadow: 0 10px 25px rgba(0,0,0,0.22);
    margin: 18px auto;
    display: block;
}

.credencial-card h2 {
    font-size: 25px;
    margin: 12px 0;
    color: #101820;
}

.credencial-status {
    background: #e8f8ec;
    border: 1px solid #bde2c5;
    color: #155724;
    border-radius: 18px;
    padding: 13px;
    font-weight: bold;
    margin: 18px 0;
}

.credencial-intereses {
    background: #eef5ff;
    border: 1px solid #d2e5ff;
    border-radius: 18px;
    padding: 12px;
    margin: 16px 0;
}

.credencial-intereses p {
    margin: 8px 0 0;
    color: #123c69;
    font-weight: 600;
}

.credencial-code {
    font-size: 14px;
    color: #444;
    margin: 16px 0;
}

.credencial-qr {
    width: 210px;
    height: 210px;
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    margin: 14px auto;
    display: block;
}

.credencial-footer {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .credencial-card {
        max-width: 96%;
        padding: 22px;
        border-radius: 28px;
    }

    .credencial-title h1 {
        font-size: 20px;
    }

    .credencial-foto {
        width: 145px;
        height: 145px;
    }

    .credencial-qr {
        width: 185px;
        height: 185px;
    }
}