/* RESET E BASE - MINIMALISTA COM FUNDO CLARO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #FAF9F8;
    color: #021F33;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* TEXTURA SUTIL NO FUNDO */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(2, 31, 51, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* CONTROLES DE IDIOMA */
.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(2, 31, 51, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 6px;
    border: 1px solid rgba(2, 31, 51, 0.15);
}

.language-selector {
    display: flex;
    gap: 6px;
}

.lang-btn {
    width: 32px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(2, 31, 51, 0.25);
    background: rgba(2, 31, 51, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.lang-btn:hover {
    transform: scale(1.05);
    border-color: rgba(2, 31, 51, 0.5);
}

.lang-btn.active {
    border-color: #021F33;
    box-shadow: 0 0 0 1px rgba(2, 31, 51, 0.2);
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTAINER PRINCIPAL */
.container {
    max-width: 520px;
    width: 100%;
    padding: 40px 25px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* CONTEÚDO POR IDIOMA */
.language-content {
    display: none;
}

.language-content.active {
    display: block;
    animation: contentFadeIn 0.6s ease forwards;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOTO DO CLIENTE */
.logo-area {
    margin-bottom: 28px;
}

.clinic-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #021F33;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 31, 51, 0.1);
}

.clinic-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(2, 31, 51, 0.15);
}

.doctor-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #021F33;
    margin-bottom: 4px;
}

.doctor-title {
    font-size: 13px;
    color: rgba(2, 31, 51, 0.65);
    font-weight: 400;
    margin-bottom: 2px;
}

.doctor-crm {
    font-size: 11px;
    color: rgba(2, 31, 51, 0.5);
    font-weight: 400;
}

/* INFORMAÇÕES DA CLÍNICA */
.clinic-info {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(2, 31, 51, 0.1);
}

.clinic-name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #021F33;
    margin-bottom: 6px;
}

.clinic-specialty {
    font-size: 12px;
    color: rgba(2, 31, 51, 0.6);
    text-transform: lowercase;
    margin-bottom: 8px;
}

.clinical-director {
    font-size: 11px;
    color: rgba(2, 31, 51, 0.5);
    margin-bottom: 2px;
}

.clinical-director-crm {
    font-size: 10px;
    color: rgba(2, 31, 51, 0.4);
}

/* BOTÕES */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(2, 31, 51, 0.25);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    height: 48px;
    width: 100%;
    color: #021F33;
}

.link-button:hover {
    border-color: #021F33;
    background: rgba(2, 31, 51, 0.03);
    transform: translateY(-1px);
}

.link-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.link-button i {
    font-size: 15px;
    color: rgba(2, 31, 51, 0.7);
}

.button-text {
    font-size: 14px;
    font-weight: 500;
}

/* BOTÃO DE CONTATO - WHATSAPP */
.contact-button {
    border-color: rgba(37, 211, 102, 0.4);
}

.contact-button:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.contact-button i {
    color: #25D366;
}

/* FOOTER PADRONIZADO */
.footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(2, 31, 51, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: rgba(2, 31, 51, 0.5);
}

.footer-logo {
    width: 22px;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-link {
    color: rgba(2, 31, 51, 0.6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #021F33;
    text-decoration: underline;
}

/* ===================== */
/* ANIMAÇÃO DE LOADING - MINIMALISTA */
/* ===================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FAF9F8;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    position: relative;
    width: 40px;
    height: 40px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(2, 31, 51, 0.15);
    border-top-color: #021F33;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* RESPONSIVIDADE */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    
    .clinic-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
    }
    
    .doctor-name {
        font-size: 18px;
    }
    
    .link-button {
        height: 44px;
    }
    
    .button-text {
        font-size: 13px;
    }
    
    .controls {
        top: 12px;
        right: 12px;
        padding: 5px;
    }
    
    .lang-btn {
        width: 28px;
        height: 20px;
    }
    
    .footer-logo {
        width: 18px;
    }
    
    .footer-content {
        font-size: 10px;
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .clinic-photo {
        width: 88px;
        height: 88px;
    }
    
    .button-text {
        font-size: 12px;
    }
    
    .link-button i {
        font-size: 13px;
    }
}