* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)), url("/fondo.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #1f2d3d;
}

a {
    color: inherit;
}

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

.card {
    width: 100%;
    max-width: 1080px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 26px;
    box-shadow: 0 22px 50px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
    padding: 34px;
}

.card.narrow {
    max-width: 620px;
}

.logo {
    display: block;
    max-width: 390px;
    width: 100%;
    margin: 0 auto 14px;
}

.center {
    text-align: center;
}

h1 {
    margin: 8px 0 8px;
    color: #c74a00;
    font-size: clamp(28px, 5vw, 42px);
}

h2 {
    margin: 10px 0 14px;
    color: #c74a00;
    font-size: clamp(22px, 4vw, 30px);
}

h3 {
    margin: 16px 0 10px;
    color: #803000;
}

.sub {
    color: #243447;
    font-size: 18px;
    font-weight: 600;
}

.line {
    width: 86px;
    height: 4px;
    background: #c74a00;
    border-radius: 999px;
    margin: 22px auto;
}

.lead {
    font-size: 17px;
    line-height: 1.65;
    color: #27384a;
}

.actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn,
button {
    display: inline-block;
    border: 0;
    border-radius: 13px;
    background: #c74a00;
    color: white;
    padding: 13px 22px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
    transition: .2s ease;
}

.btn:hover,
button:hover {
    background: #a83d00;
    transform: translateY(-1px);
}

.btn.secondary {
    background: #0f5c6e;
}

.btn.secondary:hover {
    background: #0a3f4a;
}

.btn.light {
    background: #eef4f7;
    color: #0f5c6e;
    box-shadow: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.box {
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(199,74,0,.18);
    border-radius: 18px;
    padding: 18px;
}

.contact p {
    margin: 8px 0;
    font-weight: 600;
}

.form-row {
    margin: 14px 0;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #344054;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 13px;
    border: 1px solid #d9e2ea;
    border-radius: 12px;
    background: white;
    font-size: 16px;
}

.message {
    padding: 13px 15px;
    border-radius: 12px;
    margin: 16px 0;
    background: #eef7f2;
    color: #166534;
    font-weight: 700;
}

.error {
    padding: 13px 15px;
    border-radius: 12px;
    margin: 16px 0;
    background: #fff0f0;
    color: #b42318;
    font-weight: 700;
}

.list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.list-item {
    background: white;
    border: 1px solid #e5edf3;
    border-radius: 14px;
    padding: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 22px;
}

.small {
    font-size: 13px;
    color: #667085;
}

.footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,.08);
    color: #667085;
    font-size: 14px;
}

@media (max-width: 760px) {
    .page {
        padding: 14px;
        align-items: flex-start;
    }

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

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

    .actions,
    .nav {
        flex-direction: column;
    }

    .btn,
    button {
        width: 100%;
        text-align: center;
    }
}
