:root {
    --primary-color: #60a5fa;
    --secondary-color: #22c55e;
    --bg-dark: #0f172a;
    --container-bg-dark: rgba(17, 24, 39, 0.95);
    --card-bg-dark: rgba(30,41,59,.55);
    --card-hover-dark: rgba(30,41,59,.85);
    --text-color-dark: #e5e7eb;

    --bg-light: #f8fafc;
    --container-bg-light: #ffffff;
    --card-bg-light: rgba(255,255,255,.9);
    --card-hover-light: rgba(230,230,250,.9);
    --text-color-light: #111827;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: radial-gradient(circle at top, rgba(96,165,250,0.08), transparent 50%), linear-gradient(135deg, #0b1220, var(--bg-dark));
    color: var(--text-color-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 0;
    transition: all 0.4s ease;
}

body.light-mode {
    background: var(--bg-light);
    color: var(--text-color-light);
}

.container {
    width: 92%;
    max-width: 440px;
    background: var(--container-bg-dark);
    border-radius: 28px;
    padding: 40px 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.08);
    transition: all 0.4s ease;
}

body.light-mode .container {
    background: var(--container-bg-light);
    border: 1px solid rgba(0,0,0,.1);
}

.theme-toggle {
    text-align: left;
    margin-bottom: 20px;
}

.theme-toggle i {
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-color);
}

.site-header { text-align: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.05); }
body.light-mode .site-header { border-color: rgba(0,0,0,.1); }

.profile-img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid rgba(96,165,250,.4); margin-bottom: 16px; transition: transform .4s ease; }
.profile-img:hover { transform: scale(1.05); }

.doctor-name { font-size: 22px; margin: 10px 0 4px; color: var(--text-color-dark); }
body.light-mode .doctor-name { color: var(--text-color-light); }

.subtitle { font-size: 15px; margin-bottom: 14px; color: var(--primary-color); }
body.light-mode .subtitle { color: var(--primary-color); }

.description { font-size: 13.5px; line-height: 1.7; color: #cbd5e1; }
body.light-mode .description { color: #374151; }

.quote { margin-top: 16px; font-size: 14px; font-style: italic; color: #93c5fd; }
body.light-mode .quote { color: #2563eb; }

.links-container { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }

.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--card-bg-dark);
    border: 1px solid rgba(255,255,255,.06);
    color: var(--text-color-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: all .3s ease, transform .3s ease, box-shadow .3s ease;
}

body.light-mode .link-card {
    background: var(--card-bg-light);
    border: 1px solid rgba(0,0,0,.1);
    color: var(--text-color-light);
}

.link-card i {
    width: 28px;
    text-align: center;
    font-size: 18px;
    color: var(--primary-color);
    margin-left: 12px;
}


.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(96,165,250,0.5);
}

.whatsapp-btn {
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(34,197,94,0.5);
    animation: whatsapp-glow 2s infinite alternate;
}

@keyframes whatsapp-glow {
    0% { box-shadow: 0 0 8px rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 16px rgba(34,197,94,0.7); }
    100% { box-shadow: 0 0 10px rgba(34,197,94,0.5); }
}


.whatsapp-btn:hover {
    box-shadow: 0 0 20px rgba(34,197,94,0.8);
}


@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(34,197,94,0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(34,197,94,0.7); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(34,197,94,0.5); }
}


.branches-wrapper summary { cursor: pointer; }
.arrow-icon { margin-right: auto; font-size: 12px; transition: transform .3s ease; }
details[open] .arrow-icon { transform: rotate(180deg); }

.branches-list { margin-top: 8px; padding: 10px; border-radius: 14px; background: rgba(15,23,42,.55); border: 1px solid rgba(96,165,250,.18); }
body.light-mode .branches-list { background: rgba(240,240,255,.9); border-color: rgba(96,165,250,.3); }

.branch-item { display: block; padding: 12px; border-radius: 12px; color: var(--text-color-dark); text-decoration: none; transition: all .3s ease; }
body.light-mode .branch-item { color: var(--text-color-light); }

.branch-item:hover { background: rgba(96,165,250,.15); }


.site-footer { margin-top: 36px; text-align: center; font-size: 12px; color: #9ca3af; }
body.light-mode .site-footer { color: #374151; }
.site-footer a { color: var(--primary-color); text-decoration: none; font-weight: 600; }



