:root {
    --vintage-green: #6B705C;
    --vintage-green-light: #8A9A5B;
    --vintage-beige: #A9B7A0;
    --vintage-shadow: rgba(107, 112, 92, 0.2);
    --vintage-gradient-start: #D1D9C7;
    --vintage-gradient-end: #A9B7A0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--vintage-gradient-start), var(--vintage-gradient-end));
    color: var(--vintage-green);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 1rem;
    background: var(--vintage-beige);
    box-shadow: 0 4px 6px var(--vintage-shadow);
    border-bottom: 2px solid var(--vintage-green);
}

header img {
    max-width: 375px; /* Aumentado 25% de 300px */
    height: auto;
    display: block;
    margin: 0 auto;
    border: 5px solid var(--vintage-beige);
    box-shadow: 0 2px 4px var(--vintage-shadow);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(169, 183, 160, 0.9);
    border-radius: 5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--vintage-green);
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--vintage-green-light);
    text-shadow: 0 0 5px rgba(138, 154, 91, 0.5);
}

.nav-links a:focus {
    outline: 2px solid var(--vintage-green);
    outline-offset: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: var(--vintage-green);
    transition: all 0.3s ease;
}

.hamburger.change .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.change .bar2 {
    opacity: 0;
}

.hamburger.change .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.card {
    background: var(--vintage-beige);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--vintage-shadow);
    width: 100%;
    max-width: 600px;
    text-align: center;
    border: 1px solid var(--vintage-green);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo {
    width: 48px;
    height: 48px;
    background: var(--vintage-green);
    color: var(--vintage-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px var(--vintage-shadow);
}

.lead {
    font-size: 1rem;
    color: var(--vintage-green);
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, select {
    padding: 0.75rem;
    border: 1px solid var(--vintage-green);
    border-radius: 5px;
    font-family: 'Georgia', serif;
    background: rgba(209, 217, 199, 0.7);
    color: var(--vintage-green);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--vintage-green-light);
    box-shadow: 0 0 5px rgba(138, 154, 91, 0.3);
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Georgia', serif;
    background: linear-gradient(45deg, var(--vintage-green), var(--vintage-green-light));
    color: var(--vintage-beige);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px var(--vintage-shadow);
}

.btn-ghost {
    background: transparent;
    color: var(--vintage-green);
    border: 1px solid var(--vintage-green);
    background: rgba(209, 217, 199, 0.5);
}

.btn-ghost:hover {
    background: rgba(138, 154, 91, 0.2);
}

.error {
    color: #8A6D3B;
    margin-top: 1rem;
}

.success {
    color: var(--vintage-green-light);
    margin-top: 1rem;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    margin-top: 1rem;
    background: var(--vintage-beige);
    border: 1px solid var(--vintage-green);
    overflow-x: auto;
    display: block;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(107, 112, 92, 0.1);
    white-space: nowrap;
}

th {
    background: rgba(209, 217, 199, 0.9);
    font-weight: 600;
}

td a.reference-link {
    color: var(--vintage-green);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

td a.reference-link:hover {
    color: var(--vintage-green-light);
    text-shadow: 0 0 5px rgba(138, 154, 91, 0.5);
}

td a.reference-link:focus {
    outline: 2px solid var(--vintage-green);
    outline-offset: 2px;
}

a.pay-picpay {
    color: var(--vintage-green);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--vintage-green);
    border-radius: 5px;
    background: rgba(209, 217, 199, 0.7);
    transition: color 0.3s ease, background 0.3s ease, text-shadow 0.3s ease;
}

a.pay-picpay:hover {
    color: var(--vintage-green-light);
    background: rgba(138, 154, 91, 0.2);
    text-shadow: 0 0 5px rgba(138, 154, 91, 0.5);
}

a.pay-picpay:focus {
    outline: 2px solid var(--vintage-green);
    outline-offset: 2px;
}

.qrcode {
    max-width: 200px;
    height: auto;
    margin: 1rem auto;
    display: block;
    border: 2px solid var(--vintage-green);
    padding: 5px;
    background: var(--vintage-beige);
}

.result {
    margin-top: 1.5rem;
}

.details p {
    margin: 0.5rem 0;
}

footer {
    text-align: center;
    padding: 1rem;
    background: var(--vintage-beige);
    box-shadow: 0 2px 4px var(--vintage-shadow);
    border-top: 2px solid var(--vintage-green);
    margin-top: auto;
}

footer p {
    font-size: 0.875rem;
    color: var(--vintage-green);
}

footer a {
    color: var(--vintage-green);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 3px rgba(138, 154, 91, 0.5);
}

.admin-link {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    header img {
        max-width: 250px; /* Aumentado 25% de 200px */
    }

    .navbar {
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(169, 183, 160, 0.95);
        width: 200px;
        box-shadow: 0 4px 12px var(--vintage-shadow);
        padding: 1rem;
        border: 1px solid var(--vintage-green);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .card {
        padding: 1.5rem;
    }

    table {
        width: 100%;
    }

    a.pay-picpay {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header img {
        max-width: 187px; /* Aumentado 25% de 150px */
    }

    .card {
        padding: 1rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    .lead {
        font-size: 0.875rem;
    }

    table {
        width: 100%;
    }

    a.pay-picpay {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}