/* =====================================================
   WOJTEK DENTAL CLINIC - PREMIUM DESIGN SYSTEM
   ===================================================== */

/* CSS Custom Properties */
:root {
    /* Primary Colors */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Accent Colors */
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --accent-emerald: #10b981;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-gold: #fbbf24;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0c1445 0%, #1a1a2e 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(228,100%,74%,0.3) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, hsla(189,100%,56%,0.2) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, hsla(355,100%,93%,0.2) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, hsla(340,100%,76%,0.2) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, hsla(269,100%,77%,0.2) 0px, transparent 50%);

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;
    --header-height: 90px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.4);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
}

/* =====================================================
   BASE RESET & TYPOGRAPHY
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

::selection {
    background: var(--primary-500);
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }

.highlight-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-light {
    color: var(--accent-cyan);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   PRELOADER
   ===================================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.tooth-loader {
    font-size: 4rem;
    animation: toothBounce 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.tooth-loader i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-content span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    opacity: 0.9;
}

@keyframes toothBounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99998;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-500);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-300);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--primary-500);
}

@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-base);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: var(--transition-base);
}

.header.scrolled::before {
    opacity: 1;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

/* Logo image */
.logo-image {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.logo:hover .logo-image {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

/* Footer logo */
.footer-logo .logo-image {
    height: 110px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition-base);
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 36px);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-500);
    border: 2px solid var(--primary-400);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.lang-toggle:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-500);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.header.scrolled .lang-toggle {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-400);
}

.header.scrolled .lang-toggle:hover {
    background: var(--primary-600);
    color: white;
}

.lang-toggle i:first-child {
    font-size: 1rem;
}

.lang-toggle .fa-chevron-down {
    font-size: 0.625rem;
    transition: transform var(--transition-base);
}

.language-selector.active .lang-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 1000;
    overflow: hidden;
}

.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition-fast);
}

.lang-option:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

.lang-option.active {
    background: var(--primary-500);
    color: white;
}

.lang-flag {
    font-size: 1.25rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.header-phone:hover {
    background: var(--gray-200);
}

.phone-icon-wrapper {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 12px;
    z-index: 10;
}

.hamburger {
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 0.9em;
    transition: transform var(--transition-base);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-200);
}

.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-white {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: var(--shadow-md), 0 4px 20px rgba(99, 102, 241, 0.3); }
    to { box-shadow: var(--shadow-lg), 0 8px 40px rgba(99, 102, 241, 0.5); }
}

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 18px;
    font-size: 1.05rem;
}

/* =====================================================
   GLASS CARD
   ===================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-subtitle.light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.section-title {
    margin-bottom: 20px;
}

.section-title.light {
    color: white;
}

.section-description {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--header-height) + 40px) 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Hero Text */
.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-title .highlight-gradient {
    font-family: var(--font-display);
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-offer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.offer-badge {
    padding: 6px 14px;
    background: var(--gradient-secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
}

.offer-discount {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offer-text {
    color: var(--gray-700);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--success);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.hero-main-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-2xl), 0 0 100px rgba(99, 102, 241, 0.3);
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
}

.hero-smile {
    font-size: 8rem;
    color: white;
    z-index: 1;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.orbit-ring.ring-2 {
    width: 110%;
    height: 110%;
    animation-direction: reverse;
    animation-duration: 40s;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: float 4s ease-in-out infinite;
}

.floating-card .card-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.floating-card .card-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.floating-card .card-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.card-rating {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.card-patients {
    bottom: 25%;
    left: 0;
    animation-delay: 1s;
}

.card-experience {
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
}

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

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.5; top: 20px; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats {
    padding: 80px 0;
    background: white;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    padding: 32px;
    text-align: center;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.stat-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
}

.stat-bar-fill.animated {
    width: var(--fill);
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-100);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border-color: var(--primary-200);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(236, 72, 153, 0.02) 100%);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: var(--gradient-secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.service-icon-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
}

.service-icon {
    position: relative;
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    z-index: 1;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    opacity: 0.2;
    filter: blur(20px);
    transform: translate(8px, 8px);
}

.service-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-content > p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--success);
    font-size: 0.85rem;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.price-from {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.price-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-link i {
    transition: transform var(--transition-base);
}

.service-link:hover i {
    transform: translateX(5px);
}

.services-cta {
    text-align: center;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    padding: var(--section-padding) 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-image-main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.about-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 50%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 6px solid white;
}

.image-placeholder-pro {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 16px;
}

.image-placeholder-pro i {
    font-size: 4rem;
    opacity: 0.9;
}

.image-placeholder-pro span {
    font-weight: 600;
    opacity: 0.9;
}

.about-experience-badge {
    position: absolute;
    top: 30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.experience-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.experience-text {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
    line-height: 1.3;
}

.about-text .section-subtitle {
    margin-bottom: 16px;
}

.about-text .section-title {
    margin-bottom: 24px;
}

.about-description {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.about-feature:hover {
    transform: translateX(8px);
}

.about-feature .feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.gradient-bg {
    background: var(--gradient-primary);
}

.feature-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.about-cta {
    display: flex;
    gap: 16px;
}

/* =====================================================
   SPECIALISTS PREVIEW
   ===================================================== */
.specialists-preview {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.specialist-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--gray-100);
}

.specialist-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.specialist-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    overflow: hidden;
}

.specialist-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.9);
}

.specialist-avatar.female {
    background: var(--gradient-secondary);
}

.specialist-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.specialist-card:hover .specialist-overlay {
    opacity: 1;
}

.specialist-social {
    display: flex;
    gap: 12px;
}

.specialist-social a {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-base);
}

.specialist-card:hover .specialist-social a {
    transform: translateY(0);
    opacity: 1;
}

.specialist-card:hover .specialist-social a:nth-child(2) {
    transition-delay: 0.1s;
}

.specialist-social a:hover {
    background: var(--primary-500);
    color: white;
}

.specialist-info {
    padding: 24px;
    text-align: center;
}

.specialist-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.specialist-role {
    display: block;
    color: var(--primary-600);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.specialist-specialty {
    display: block;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.specialist-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.spec-stat {
    text-align: center;
}

.spec-stat strong {
    display: block;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.spec-stat span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.specialists-cta {
    text-align: center;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
    padding: var(--section-padding) 0;
    background: white;
}

.testimonials-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.rating-stars {
    display: flex;
    gap: 4px;
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.rating-text {
    color: var(--gray-600);
}

.rating-source {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--gray-600);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    position: relative;
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid var(--primary-100);
}

.testimonial-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.author-info {
    flex: 1;
}

.author-info strong {
    display: block;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.author-info span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.testimonial-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--success);
    font-size: 0.75rem;
}

.testimonials-logos {
    text-align: center;
}

.testimonials-logos > span {
    display: block;
    color: var(--gray-500);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
}

.logo-item i {
    font-size: 1.25rem;
    color: var(--primary-500);
}

/* =====================================================
   APPOINTMENT SECTION
   ===================================================== */
.appointment {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.appointment-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.appointment-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
}

.appointment-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.appointment-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
    filter: blur(80px);
}

.appointment-shapes .shape-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    left: -200px;
}

.appointment-shapes .shape-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -100px;
}

.appointment-shapes .shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.appointment .container {
    position: relative;
    z-index: 1;
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.appointment-info {
    color: white;
}

.appointment-info .section-title {
    color: white;
    margin-bottom: 20px;
}

.appointment-description {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

.appointment-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    color: var(--accent-cyan);
    font-size: 1.25rem;
}

.benefit-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.benefit-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.appointment-contact {
    display: flex;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: white;
    transition: var(--transition-base);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.contact-method i {
    font-size: 1.5rem;
}

.contact-method.whatsapp i {
    color: #25d366;
}

.contact-method span {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
}

.contact-method strong {
    font-size: 1rem;
}

/* Appointment Form */
.appointment-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.form-header p {
    color: var(--gray-500);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: var(--transition-base);
    z-index: 1;
}

.input-wrapper.textarea i {
    top: 20px;
    transform: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--gray-800);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    background: white;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-wrapper input:focus + .input-focus,
.input-wrapper select:focus + .input-focus,
.input-wrapper textarea:focus + .input-focus {
    opacity: 1;
}

.input-wrapper input:focus ~ i,
.input-wrapper select:focus ~ i,
.input-wrapper textarea:focus ~ i {
    color: var(--primary-500);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--gray-400);
}

.input-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.checkbox-label input:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: var(--primary-500);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-600);
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.contact-card {
    padding: 32px;
    text-align: center;
    background: white;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    border: 1px solid var(--gray-100);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-link i {
    font-size: 0.85rem;
    transition: transform var(--transition-base);
}

.contact-link:hover i {
    transform: translateX(4px);
}

.contact-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 16px;
}

.map-placeholder i {
    font-size: 4rem;
    opacity: 0.9;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--gray-900);
    color: white;
}

.footer-top {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-name {
    color: white;
}

.footer-brand > p {
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-500);
    transform: translateY(-4px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--gray-400);
}

.footer-contact li i {
    color: var(--primary-400);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: white;
}

/* =====================================================
   BACK TO TOP & WHATSAPP
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* =====================================================
   DOCTORS PAGE
   ===================================================== */
.page-header {
    position: relative;
    padding: calc(var(--header-height) + 80px) 0 80px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.header-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
}

.header-shapes {
    position: absolute;
    inset: 0;
}

.header-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
    filter: blur(80px);
}

.header-shapes .shape-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
}

.header-shapes .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: 10%;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header-content {
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    margin-bottom: 16px;
}

.page-header > .container > p,
.page-header-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.appointment-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.95rem;
}

.appointment-notice i {
    color: var(--accent-cyan);
}

/* Doctors Filter */
.doctors-filter {
    padding: 30px 0;
    background: white;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.filter-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.filter-btn i {
    font-size: 0.85rem;
}

/* Doctors Grid */
.doctors-section {
    padding: 60px 0 var(--section-padding);
    background: var(--gray-50);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.doctor-card.featured {
    border-color: var(--primary-200);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(236, 72, 153, 0.02) 100%);
}

.doctor-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.doctor-card .doctor-image {
    position: relative;
    background: var(--gradient-primary);
}

.doctor-card .doctor-avatar {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
}

.doctor-card .doctor-avatar.female {
    background: var(--gradient-secondary);
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-base);
}

.doctor-card:hover .social-btn {
    transform: translateY(0);
    opacity: 1;
}

.doctor-card:hover .social-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.social-btn:hover {
    background: var(--primary-500);
    color: white;
}

.doctor-info {
    padding: 32px;
}

.doctor-info h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.doctor-role {
    display: block;
    color: var(--primary-600);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.doctor-specialty {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin: 12px 0;
}

.doctor-bio {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.doctor-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--primary-500);
    width: 20px;
    text-align: center;
}

.doctor-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.doctor-stats .stat {
    text-align: center;
    padding: 12px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.doctor-stats .stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.doctor-stats .stat span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.doctor-actions {
    display: flex;
    gap: 12px;
}

.no-results {
    grid-column: span 2;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--gray-600);
    margin-bottom: 8px;
}

/* Doctors CTA */
.doctors-cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
}

.cta-shapes {
    position: absolute;
    inset: 0;
}

.cta-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-shapes .shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
}

.cta-shapes .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
}

.doctors-cta .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-content > p {
    opacity: 0.9;
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =====================================================
   ERROR PAGE
   ===================================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-height) 20px 40px;
    background: var(--gray-50);
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 5rem;
    color: var(--primary-300);
    margin-bottom: 20px;
    animation: toothBounce 2s ease-in-out infinite;
}

.error-content h1 {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.error-content h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.error-content p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float.delay-1 { animation-delay: 1s; }
.animate-float.delay-2 { animation-delay: 2s; }

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-up.delay-1 { animation-delay: 0.2s; }
.animate-slide-up.delay-2 { animation-delay: 0.4s; }
.animate-slide-up.delay-3 { animation-delay: 0.6s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in.delay-3 { animation-delay: 0.6s; }
.animate-fade-in.delay-4 { animation-delay: 0.8s; }
.animate-fade-in.delay-5 { animation-delay: 1s; }
.animate-fade-in.delay-6 { animation-delay: 1.2s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.5s ease forwards;
}

.animate-scale-in.delay-4 { animation-delay: 0.8s; }

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* AOS Custom */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialists-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
    }

    .nav-link {
        display: block;
        padding: 14px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-phone .phone-info {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .appointment-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card {
        grid-template-columns: 1fr;
    }

    .doctor-card .doctor-avatar {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        padding-top: calc(var(--header-height) + 20px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .specialists-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .hero-offer {
        flex-direction: column;
        text-align: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .floating-card {
        padding: 12px 16px;
    }

    .floating-card .card-value {
        font-size: 1rem;
    }

    .card-rating { top: 5%; right: 0; }
    .card-patients { bottom: 30%; left: -10px; }
    .card-experience { bottom: 5%; right: 0; }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .appointment-form-wrapper {
        padding: 24px;
    }

    .appointment-contact {
        flex-direction: column;
    }

    .cta-actions {
        flex-direction: column;
    }

    .error-content h1 {
        font-size: 5rem;
    }
}

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-header {
    text-align: center;
}

.legal-content {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    background: white;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-100);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.15rem;
    color: var(--gray-800);
    margin: 24px 0 12px;
}

.legal-section p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--gray-600);
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

/* Cookies Table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.cookies-table th,
.cookies-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.cookies-table th {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 600;
}

.cookies-table tr:hover td {
    background: var(--gray-50);
}

.cookies-table td:first-child {
    font-weight: 600;
    color: var(--gray-800);
}

/* Legal page responsive */
@media (max-width: 768px) {
    .legal-wrapper {
        padding: 30px 20px;
        margin: 0 16px;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .cookies-table {
        font-size: 0.85rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 12px 8px;
    }
}
