.raf-wrap,
.raf-wrap * {
    box-sizing: border-box;
}

.raf-wrap {
    width: min(1120px, 100%);
    margin: 32px auto;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f6fbf8 0%, #e8f4ed 52%, #ffffff 100%);
    border: 1px solid rgba(29, 94, 59, 0.16);
    box-shadow: 0 24px 80px rgba(24, 85, 52, 0.13);
    color: #143d29;
    font-family: inherit;
}

.raf-topbar,
.raf-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.raf-topbar h2,
.raf-login-card h2,
.raf-section-head h3 {
    margin: 0;
    color: #10351f;
    line-height: 1.12;
}

.raf-topbar h2,
.raf-login-card h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.raf-section-head h3 {
    font-size: clamp(20px, 3vw, 28px);
}

.raf-kicker,
.raf-versiculo span,
.raf-card span,
.raf-section-head span {
    display: inline-block;
    color: #4f6e5e;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.raf-logout button,
.raf-login-form button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.raf-logout button {
    padding: 10px 16px;
    background: #e4f3ea;
    color: #145234;
}

.raf-logout button:hover,
.raf-login-form button:hover {
    transform: translateY(-1px);
    background: #145234;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(20, 82, 52, .20);
}

.raf-versiculo {
    margin: 24px 0;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #10351f, #1d6a42);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.raf-versiculo:after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}

.raf-versiculo span {
    color: #d8f4e3;
}

.raf-versiculo p {
    margin: 10px 0 8px;
    max-width: 850px;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.16;
    color: #ffffff;
}

.raf-versiculo strong {
    color: #e8fff0;
}

.raf-alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin: 16px 0;
    font-weight: 700;
}

.raf-info {
    background: #e4f3ea;
    color: #16462d;
    border: 1px solid rgba(20,82,52,.12);
}

.raf-error {
    background: #fff1ec;
    color: #7a2e17;
}

.raf-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.raf-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(29, 94, 59, 0.13);
}

.raf-card-main {
    background: linear-gradient(135deg, #17633f, #268654);
    border-color: transparent;
    box-shadow: 0 18px 42px rgba(23, 99, 63, .24);
}

.raf-card-main span,
.raf-card-main strong {
    color: #ffffff;
}

.raf-card strong {
    display: block;
    margin-top: 10px;
    color: #10351f;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1;
}

.raf-history,
.raf-login-card {
    margin-top: 22px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(29, 94, 59, 0.13);
}

.raf-login-wrap {
    max-width: 560px;
}

.raf-login-card p {
    margin: 10px 0 22px;
    color: #4f6e5e;
}

.raf-login-form {
    display: grid;
    gap: 14px;
}

.raf-login-form label {
    display: block;
    margin-bottom: 8px;
    color: #173927;
    font-weight: 800;
}

.raf-login-form input {
    width: 100%;
    border: 1px solid rgba(29, 94, 59, 0.20);
    border-radius: 16px;
    padding: 14px 15px;
    background: #ffffff;
    color: #10351f;
    font-size: 16px;
    outline: none;
}

.raf-login-form input:focus {
    border-color: #17633f;
    box-shadow: 0 0 0 4px rgba(23, 99, 63, .13);
}

.raf-login-form button {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    background: #17633f;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(23, 99, 63, .22);
}

.raf-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
}

.raf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.raf-table th,
.raf-table td {
    padding: 15px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(29, 94, 59, 0.12);
    vertical-align: top;
}

.raf-table th {
    color: #4f6e5e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.raf-table td {
    color: #183f2a;
}

.raf-table td strong {
    color: #17633f;
}

.raf-empty {
    margin-top: 16px;
    padding: 24px;
    border-radius: 18px;
    background: #f1f8f4;
    color: #4f6e5e;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 820px) {
    .raf-wrap {
        padding: 18px;
        border-radius: 22px;
    }

    .raf-topbar,
    .raf-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .raf-table {
        min-width: 0;
    }

    .raf-table thead {
        display: none;
    }

    .raf-table,
    .raf-table tbody,
    .raf-table tr,
    .raf-table td {
        display: block;
        width: 100%;
    }

    .raf-table tr {
        margin-bottom: 14px;
        padding: 14px;
        border-radius: 18px;
        background: #f7fbf8;
    }

    .raf-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid rgba(29, 94, 59, 0.10);
        padding: 10px 0;
    }

    .raf-table td:before {
        content: attr(data-label);
        font-weight: 800;
        color: #4f6e5e;
    }

    .raf-table td:last-child {
        border-bottom: 0;
    }
}

/* Ajustes v1.2: contraste más alto en tarjetas verdes y hover 100% verde */
.raf-card.raf-card-main {
    background: linear-gradient(135deg, #0f4d30 0%, #197544 100%);
}

.raf-card.raf-card-main span,
.raf-card.raf-card-main strong {
    color: #ffffff !important;
}

.raf-card,
.raf-history,
.raf-login-card {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.raf-card:hover,
.raf-history:hover,
.raf-login-card:hover {
    border-color: rgba(25, 117, 68, .28);
    box-shadow: 0 18px 42px rgba(24, 85, 52, .12);
}
