:root {
    --bg-1: #012f4a;
    --bg-2: #05668d;
    --bg-3: #00a896;
    --accent-main: #ff7b54;
    --accent-alt: #ffd166;
    --text-main: #f5fbff;
    --text-dark: #193344;
    --card-bg: rgba(255, 255, 255, 0.14);
    --card-border: rgba(255, 255, 255, 0.32);
    --shadow-soft: 0 22px 44px rgba(0, 22, 33, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 123, 84, 0.24), transparent 36%),
        radial-gradient(circle at 88% 80%, rgba(255, 209, 102, 0.2), transparent 42%),
        linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 54%, var(--bg-3) 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 26px 26px, 38px 38px;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
    background: rgba(1, 36, 56, 0.62);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3000;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.menu ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.94rem;
    letter-spacing: 0.02em;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.menu ul li a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.8);
    background: rgba(255, 255, 255, 0.12);
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px;
    border-radius: 999px;
    background-color: #fff;
    transition: all 0.28s ease;
}

main {
    width: min(980px, 94vw);
    margin: 96px auto 40px;
    display: grid;
    justify-items: center;
    gap: 16px;
}

.mobile,
.titulo,
.dados,
.promo,
.avisos {
    width: min(780px, 94vw);
    border-radius: 24px 24px 24px 8px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    animation: riseIn 0.75s ease both;
}

.valentine-special {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 5px;
    margin: 18px auto 0;
    padding: 14px 18px;
    max-width: 560px;
    border-radius: 18px;
    color: #7b1730;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 226, 234, 0.9));
    border: 1px solid rgba(236, 72, 153, 0.28);
    box-shadow: 0 14px 28px rgba(172, 38, 86, 0.16);
}

.valentine-special::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.58) 48%, transparent 78%);
    transform: translateX(-120%);
    animation: loveShine 4s ease-in-out infinite;
}

.valentine-kicker {
    position: relative;
    z-index: 1;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #db2777;
}

.valentine-special strong {
    position: relative;
    z-index: 1;
    font-size: clamp(0.94rem, 2.5vw, 1.08rem);
    line-height: 1.35;
}

.heart {
    position: absolute;
    z-index: 0;
    width: 20px;
    height: 20px;
    background: #e11d48;
    transform: rotate(45deg);
    opacity: 0.82;
    filter: drop-shadow(0 6px 10px rgba(225, 29, 72, 0.28));
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: inherit;
}

.heart::before {
    left: -10px;
}

.heart::after {
    top: -10px;
}

.heart-one {
    left: 14px;
    bottom: 14px;
    animation: heartFloat 5.2s ease-in-out infinite;
}

.heart-two {
    right: 18px;
    top: 16px;
    width: 14px;
    height: 14px;
    background: #fb7185;
    animation: heartPass 6.5s ease-in-out infinite;
}

.heart-two::before,
.heart-two::after {
    width: 14px;
    height: 14px;
}

.heart-two::before {
    left: -7px;
}

.heart-two::after {
    top: -7px;
}

@keyframes heartFloat {
    0%, 100% { transform: rotate(45deg) translate3d(0, 0, 0) scale(1); }
    50% { transform: rotate(45deg) translate3d(10px, -12px, 0) scale(1.08); }
}

@keyframes heartPass {
    0% { transform: rotate(45deg) translate3d(18px, 4px, 0); opacity: 0; }
    18% { opacity: 0.86; }
    64% { opacity: 0.86; }
    100% { transform: rotate(45deg) translate3d(-520px, 18px, 0); opacity: 0; }
}

@keyframes loveShine {
    0%, 46% { transform: translateX(-120%); }
    78%, 100% { transform: translateX(120%); }
}



.mobile a {
    text-decoration: none;
}

.mobile span {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    border-left: 6px solid var(--accent-main);
}

.titulo {
    text-align: center;
    padding: 24px 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

.titulo h1 {
    margin: 0 0 8px;
    font-size: clamp(1.62rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.titulo p {
    margin: 8px 0;
}

button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: min(360px, 84vw);
    min-height: 54px;
    margin: 6px auto;
    border: 0;
    border-radius: 16px;
    font: 700 1rem "Sora", "Trebuchet MS", sans-serif;
    letter-spacing: 0.03em;
    color: #0b2430;
    cursor: pointer;
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    box-shadow: 0 14px 28px rgba(0, 19, 29, 0.3);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 36px rgba(0, 19, 29, 0.38);
    filter: saturate(1.08);
}

#btnInstalarApp {
    background: linear-gradient(120deg, #ffd166, #ff9f1c);
}

.dados {
    display: none;
    text-align: center;
    padding: 18px 14px;
    background: linear-gradient(150deg, rgba(2, 30, 46, 0.52), rgba(2, 79, 112, 0.44));
}

.dados p {
    margin: 8px 0;
}

.foto-biometria {
    margin: 10px auto 12px;
}

.foto-biometria-titulo {
    margin: 0 0 8px;
    font-weight: 700;
}

#fotoBiometriaImg {
    width: min(180px, 55vw);
    height: min(220px, 66vw);
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    background: rgba(4, 30, 44, 0.4);
}

#logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

#logos img {
    width: min(150px, 32vw);
    height: 96px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
}

#qr {
    display: block;
    margin: 14px auto 6px;
    padding: 12px;
    width: min(230px, 72vw);
    border-radius: 16px;
    background: #fff;
}

.promo {
    padding: 14px;
    background: var(--card-bg);
}

.promo img {
    display: block;
    margin: auto;
    width: min(620px, 100%);
    max-height: 310px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(6, 35, 54, 0.42);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
    animation: floatCard 6s ease-in-out infinite;
}

.carousel-image {
    display: none;
}

.avisos {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 14px;
}

.avisos p {
    margin: 6px 0;
}

footer {
    background: rgba(2, 30, 45, 0.78);
    color: rgba(245, 251, 255, 0.95);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 10px;
}

#rodape {
    margin: 0;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    header {
        justify-content: center;
        padding: 12px 14px;
    }

    .menu ul {
        display: flex;
        position: static;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .menu ul li a {
        display: block;
        text-align: center;
        font-size: 0.9rem;
        padding: 7px 12px;
    }

    .menu-icon {
        display: none !important;
    }

    main {
        margin-top: 90px;
        gap: 14px;
    }

    .mobile,
    .titulo,
    .dados,
    .promo,
    .avisos {
        width: 94vw;
        border-radius: 20px;
    }

    .titulo {
        padding: 20px 14px;
    }

    button {
        width: 88vw;
    }

    #logos img {
        width: min(120px, 40vw);
        height: 82px;
    }

    .promo img {
        max-height: 235px;
    }
}

.dependentes-secao {
    margin-top: 16px;
    text-align: left;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.dependentes-secao h3 {
    margin: 0 0 12px;
    color: #0f4f7f;
    font-size: 1rem;
}

.dependentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.dep-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 79, 127, 0.18);
}

.dep-foto {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dep-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dep-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f4f7f;
}

.dep-info p {
    margin: 3px 0;
    font-size: 0.88rem;
}

.dep-info .dep-nome {
    margin-bottom: 5px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f4f7f;
}

.dependentes-vazio {
    margin: 8px 0 2px;
    color: #5f6f7a;
    font-style: italic;
    text-align: center;
}

/* Fix contraste nos cards de dependentes */
.dependentes-secao .dep-card,
.dependentes-secao .dep-info p,
.dependentes-secao .dep-info p strong,
.dependentes-secao .dep-info .dep-nome {
    color: #0b2230 !important;
}
