        @font-face {
            font-family: 'Vonca';
            src: url('/assets/fonts/vonca-font/vonca-regular.otf') format('opentype');
            font-weight: 400;
            font-style: normal;
            font-display: swap;
        }

        /* Base & Resets */
        body {
            background-color: #000000;
            color: #ffffff;
            font-family: 'Inter', sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
            width: 100vw;
        }

        /* Remove default browser focus outline halos on interactive elements */
        a:focus, button:focus, [role="button"]:focus, .ca-footer__link:focus,
        a:focus-visible, button:focus-visible, [role="button"]:focus-visible, .ca-footer__link:focus-visible {
            outline: none !important;
            box-shadow: none !important;
            -webkit-tap-highlight-color: transparent;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Manrope', sans-serif;
        }

        /* Ambient Grid */
        .ambient-grid {
            position: fixed;
            inset: 0;
            background-size: 48px 48px;
            background-image:
                linear-gradient(to right, rgba(174, 0, 6, 0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(174, 0, 6, 0.03) 1px, transparent 1px);
            pointer-events: none;
            z-index: -2;
        }

        /* Noise Overlay */
        .noise-overlay {
            position: fixed;
            inset: 0;
            opacity: 0.03;
            pointer-events: none;
            mix-blend-mode: overlay;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            z-index: 50; /* Over everything to add cinematic texture */
        }

        /* 
         * Glass Panel (Navbar & Concierge)
         */
        .glass-panel {
            background: rgba(15, 15, 15, 0.4) !important;
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 1px solid rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateZ(0); 
            will-change: transform, background-color;
        }

        .glass-panel::before {
            content: '';
            position: absolute;
            top: 0; left: -100%; width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
            transition: 0.7s;
            pointer-events: none;
            z-index: 20;
        }
        
        .glass-panel:hover::before {
            left: 100%;
            transition: 0.7s ease-in-out;
        }

        /* 
         * Animations
         */
        /* Animação base de entrada (fadeInUp/fadeSlideIn/animationIn eram idênticos — consolidados) */
        @keyframes fadeSlideIn {
            0% { opacity: 0; transform: translateY(30px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .animate-fade-in-up {
            opacity: 0;
            animation: fadeSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes columnReveal {
            0% { clip-path: inset(0 0 100% 0); opacity: 0; }
            100% { clip-path: inset(0 0 0% 0); opacity: 1; }
        }

        .animate-on-scroll { animation-play-state: paused !important; }
        .animate-on-scroll.animate { animation-play-state: running !important; }
        
        .delay-100 { animation-delay: 100ms; }
        .delay-200 { animation-delay: 200ms; }
        .delay-300 { animation-delay: 300ms; }
        .delay-400 { animation-delay: 400ms; }
        .delay-500 { animation-delay: 500ms; }
        .delay-600 { animation-delay: 600ms; }

        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 8px rgba(174,0,6,0.4), 0 0 20px rgba(174,0,6,0.15); }
            50%       { box-shadow: 0 0 25px rgba(174,0,6,0.8), 0 0 60px rgba(174,0,6,0.35); }
        }
        .animate-glow-red {
            animation: pulse-glow 2.5s ease infinite;
        }

        /* 
         * Premium Video Frame Right Side
         */
        .video-frame-container {
            position: relative;
            border-radius: 2rem;
            background: rgba(10, 10, 10, 0.45);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-left: 1px solid rgba(255, 255, 255, 0.08);
            /* Safely scaled to fit inside viewport without scrolling */
            height: 100%;
            max-height: calc(100dvh - 200px);
            aspect-ratio: 9/16;
            margin: 0 auto;
            /* Glowing red/white border and shadow */
            box-shadow: 
                0 30px 60px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(174, 0, 6, 0.15);
            overflow: hidden;
            isolation: isolate;
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .video-frame-container:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 
                0 40px 80px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(174, 0, 6, 0.25);
        }

        .hero-video {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: center !important;
            transform: scale(1.38) !important;
            transform-origin: center center !important;
        }

        /* Inner reflection/gloss for glass feel */
        .video-frame-container::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 2rem;
            box-shadow: inset 0 2px 20px rgba(255, 255, 255, 0.1);
            pointer-events: none;
            z-index: 10;
        }

        /* 
         * CTA Buttons
         */
        @property --btn-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
        
        .shiny-cta {
            --btn-angle: 0deg;
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 9999px;
            padding: 1.15rem 2.5rem;
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #ffffff;
            background: linear-gradient(#080808, #080808) padding-box,
                conic-gradient(from var(--btn-angle), transparent 0%, #AE0006 10%, #AE0006 20%, transparent 40%, transparent 100%) border-box;
            border: 1px solid transparent;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 24px -8px rgba(174, 0, 6, 0.5);
            cursor: pointer;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
            animation: btn-spin 4s linear infinite;
            outline: none;
            overflow: hidden;
        }
        
        .shiny-cta:hover, .shiny-cta:focus-visible {
            transform: translateY(-2px);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 32px -8px rgba(174, 0, 6, 0.7);
        }
        
        .shiny-cta:active { transform: translateY(1px); }
        
        @keyframes btn-spin { to { --btn-angle: 360deg; } }
        
        .shiny-cta::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, rgba(174, 0, 6, 0.2) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
        }
        .shiny-cta:hover::before { opacity: 1; }
        .shiny-cta span { position: relative; z-index: 2; }

        /* Secondary Premium WhatsApp Button */
        .ghost-cta {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            border-radius: 9999px;
            padding: 1.15rem 2.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255, 255, 255, 0.85);
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(12px);
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
            outline: none;
        }
        
        .ghost-cta::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(37, 211, 102, 0.06) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 0;
        }
        
        .ghost-cta:hover, .ghost-cta:focus-visible {
            color: #25D366; /* Cor verde do WhatsApp no hover, substituindo o branco */
            border-color: rgba(255, 255, 255, 0.25);
            background: rgba(255, 255, 255, 0.06);
            box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.15);
            transform: translateY(-2px);
        }
        
        .ghost-cta:active { transform: translateY(1px); }
        .ghost-cta:hover::before { opacity: 1; }
        
        .ghost-cta span, .ghost-cta img { 
            position: relative; 
            z-index: 2; 
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease; 
        }
        
        .ghost-cta:hover img {
            transform: scale(1.05);
        }

        /* 
         * Text Styles
         */
        .hero-title {
            font-family: 'Vonca', sans-serif !important;
            font-weight: 400; /* Using the regular weight */
            text-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
            background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* 
         * Accessibility
         */
        @media (prefers-reduced-motion: reduce) {
            .animate-fade-in-up {
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
                filter: none !important;
            }
            .shiny-cta { animation: none !important; }
            .hero-video { display: none !important; }
        }
        
        /* Text glass panel for left side content to ensure perfect readability over background */
        .glass-overlay-panel {
            position: relative;
            background: rgba(10, 10, 10, 0.45);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-left: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
            border-radius: 2rem;
        }

        /* 
         * Beam Spin Box (adapted from design_system_1 with transparent glass support)
         */
        @property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
        
        @keyframes beam-spin-angle { 
            to { --beam-angle: 360deg; }
        }

        .beam-spin-box {
            position: relative;
            border-radius: 1rem;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 10;
        }

        .beam-spin-box::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1.5px;
            background: conic-gradient(from var(--beam-angle) at 50% 50%, transparent 0%, transparent 75%, #AE0006 100%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            z-index: 15;
            animation: beam-spin-angle 3s linear infinite;
        }

        .beam-spin-box__beam-glow {
            pointer-events: none;
            position: absolute;
            inset: 0;
            border-radius: inherit;
            z-index: 20;
            background: radial-gradient(50% 50% at 50% 100%, rgba(174, 0, 6, 0.15) 0%, transparent 100%);
        }

        .beam-spin-box__content {
            position: relative;
            z-index: 30;
        }

        /* 
         * PROCEDURES SECTION (DOBRA 2)
         */
        .procedures-section {
            position: relative;
            width: 100%;
            overflow: hidden;
            contain: layout paint;
        }
        .procedures-grid {
            /* Use a CSS Grid layout */
            display: grid;
            gap: 1.5rem;
            grid-template-columns: minmax(0, 1fr);
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            grid-auto-rows: min-content;
            padding: 0;
            box-sizing: border-box;
            contain: layout paint;
            touch-action: pan-y;
        }
        
        @media (min-width: 768px) {
            .procedures-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                padding: 0;
            }
        }
        
        @media (min-width: 1024px) {
            .procedures-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }
        
        .procedure-card {
            background: rgba(15, 15, 15, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 1px solid rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 1.25rem;
            display: flex;
            flex-direction: column;
            position: relative;
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            isolation: isolate;
            transform: translateZ(0);
            will-change: transform, box-shadow, background-color;
            touch-action: pan-y pinch-zoom;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
            -webkit-user-drag: none;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            margin: 0;
        }

        .procedure-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: radial-gradient(circle at top right, rgba(174, 0, 6, 0.08) 0%, transparent 60%);
            opacity: 0;
            transition: opacity 0.5s ease;
            z-index: -1;
            pointer-events: none;
        }

        .procedure-card:hover {
            transform: translateY(-4px);
            background: rgba(20, 20, 20, 0.6);
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8),
                        0 0 40px -10px rgba(174, 0, 6, 0.15);
        }

        @media (hover: none) {
            .procedure-card:hover {
                transform: translateZ(0);
                background: rgba(15, 15, 15, 0.4);
                border-color: rgba(255, 255, 255, 0.04);
                border-top-color: rgba(255, 255, 255, 0.08);
                border-left-color: rgba(255, 255, 255, 0.06);
                box-shadow: none;
            }
            .procedure-card:hover::before {
                opacity: 0;
            }
        }

        .procedure-card:hover::before {
            opacity: 1;
        }

        .procedure-card--hero {
            padding: 3rem;
            background: linear-gradient(135deg, rgba(20,20,20,0.7) 0%, rgba(5,5,5,0.8) 100%);
        }

        .procedure-card--hero .procedure-card__title {
            font-size: 2.25rem;
            line-height: 1.1;
            margin-bottom: 1.5rem;
        }

        .procedure-card--feature {
            padding: 2.5rem 2rem;
        }

        .procedure-card--feature .procedure-card__title {
            font-size: 1.75rem;
        }

        .procedure-card--standard {
            padding: 2rem;
        }

        .procedure-card--standard .procedure-card__title {
            font-size: 1.35rem;
        }

        .procedure-card--compact {
            padding: 1.75rem;
        }
        
        .procedure-card--compact .procedure-card__title {
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
        }

        .procedure-card__meta {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: #AE0006;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .procedure-card__meta::before {
            content: '';
            display: block;
            width: 12px;
            height: 1px;
            background-color: #AE0006;
            opacity: 0.5;
        }

        .procedure-card__title {
            font-family: 'Manrope', sans-serif;
            font-weight: 500;
            color: #ffffff;
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
            line-height: 1.2;
            transition: color 0.3s ease;
        }

        .procedure-card:hover .procedure-card__title {
            color: #f8f8f8;
        }

        @media (hover: none) {
            .procedure-card:hover .procedure-card__title {
                color: #ffffff;
            }
        }

        .procedure-card__desc {
            font-family: 'Inter', sans-serif;
            font-weight: 300;
            color: #a1a1aa; /* zinc-400 */
            line-height: 1.6;
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            flex-grow: 1;
        }

        .procedure-card__highlight {
            font-size: 0.85rem;
            color: #e4e4e7; /* zinc-200 */
            padding-left: 1rem;
            border-left: 2px solid rgba(174, 0, 6, 0.6);
            margin-bottom: 1.5rem;
            font-weight: 400;
            background: linear-gradient(90deg, rgba(174,0,6,0.05) 0%, transparent 100%);
            padding-top: 0.25rem;
            padding-bottom: 0.25rem;
        }

        .procedure-card__cta {
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #ffffff;
            opacity: 0.6;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            width: fit-content;
            margin-top: auto;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
        }

        .procedure-card__cta::after {
            content: '→';
            font-family: monospace;
            transform: translateX(0);
            transition: transform 0.3s ease;
            color: #AE0006;
        }

        .procedure-card:hover .procedure-card__cta {
            opacity: 1;
            color: #ffffff;
        }

        .procedure-card:hover .procedure-card__cta::after {
            transform: translateX(4px);
        }

        @media (hover: none) {
            .procedure-card:hover .procedure-card__cta {
                opacity: 0.6;
            }
            .procedure-card:hover .procedure-card__cta::after {
                transform: translateX(0);
            }
        }

        .procedure-card__actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 1.5rem;
            margin-top: auto;
            width: 100%;
        }

        .procedure-card__actions .procedure-card__cta {
            margin-top: 0 !important;
            align-self: center;
        }

        @media (min-width: 640px) {
            .procedure-card__actions .procedure-card__cta {
                margin-left: 3rem !important;
            }
        }

        @media (max-width: 1024px) {
            .video-frame-container {
                max-height: 50vh;
            }
        }

        /*
         * Hero em tablets (iPad): o split-screen do desktop deixaria os
         * elementos pequenos. Em vez do card alto/estreito, deixamos o card de
         * texto LARGO e BAIXO (proporcoes da 2a dobra), com o video
         * centralizado abaixo.
         */
        @media (min-width: 600px) and (max-width: 1023px) {
            #inicio > div {
                max-width: 48rem;
                margin-left: auto;
                margin-right: auto;
                gap: 2.5rem;
            }
            /* Card "Medicina de Alta Precisao": largo, baixo e centralizado */
            #inicio .glass-overlay-panel {
                aspect-ratio: auto;
                max-height: none;
                align-items: center;
                text-align: center;
                padding: 2.75rem 2.5rem;
            }
            #inicio .glass-overlay-panel p {
                margin-left: auto;
                margin-right: auto;
            }
            /* CTAs centralizados dentro do card largo */
            #inicio .glass-overlay-panel > div:last-child {
                justify-content: center;
            }
            #inicio .hero-title {
                font-size: 3rem;
            }
            /* Video abaixo, centralizado e proporcional */
            #inicio .video-frame-container {
                max-height: 56vh;
                max-width: 360px;
            }
        }

        /*
         * Visibilidade da navbar por breakpoint.
         * O tailwind.css pre-compilado nao inclui as variantes lg:* da navbar,
         * entao controlamos a visibilidade aqui via IDs (especificidade alta).
         * Abaixo de 1024px (celular E tablet/iPad) usamos o menu hamburguer.
         */
        #navDesktopLinks { display: none; }
        #navPortalCta { display: none; }
        #mobileMenuBtn { display: inline-flex; }

        @media (min-width: 1024px) {
            /* Links centralizados, ocupando o espaco entre logo e CTA para uma
               distribuicao equilibrada (logo a esquerda, links ao centro,
               Portal do Paciente a direita). */
            #navDesktopLinks {
                display: flex;
                flex: 1 1 0%;
                justify-content: center;
                gap: 2.5rem;
            }
            #navPortalCta { display: block; }
            #mobileMenuBtn { display: none; }
            #mobileMenu { display: none; }
        }

        /*
         * Menu de navegacao mobile / tablet — efeitos premium
         */
        #mobileMenu {
            transform-origin: top right;
            will-change: transform, opacity, filter;
            filter: blur(6px);
            transform: translateY(-12px) scale(0.96);
            transition:
                opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        }
        #mobileMenu.opacity-100 {
            filter: blur(0);
            transform: translateY(0) scale(1);
        }
        /* Borda superior com brilho da marca */
        #mobileMenu::before {
            content: '';
            position: absolute;
            top: 0;
            left: 1.5rem;
            right: 1.5rem;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(174, 0, 6, 0.7), transparent);
            opacity: 0;
            transition: opacity 0.6s ease 0.15s;
        }
        #mobileMenu.opacity-100::before { opacity: 1; }

        /* Revelacao escalonada dos itens do menu */
        #mobileMenu a {
            opacity: 0;
            transform: translateY(10px);
            transition:
                opacity 0.4s ease,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s ease,
                background 0.3s ease,
                border-color 0.3s ease;
        }
        #mobileMenu.opacity-100 a {
            opacity: 1;
            transform: translateY(0);
        }
        #mobileMenu.opacity-100 a:nth-child(1) { transition-delay: 0.10s, 0.10s, 0s, 0s, 0s; }
        #mobileMenu.opacity-100 a:nth-child(2) { transition-delay: 0.16s, 0.16s, 0s, 0s, 0s; }
        #mobileMenu.opacity-100 a:nth-child(3) { transition-delay: 0.22s, 0.22s, 0s, 0s, 0s; }
        #mobileMenu.opacity-100 a:nth-child(4) { transition-delay: 0.28s, 0.28s, 0s, 0s, 0s; }

        /* Indicador deslizante nos links de ancora */
        #mobileMenu a:not([href$=".html"]) {
            position: relative;
            padding-left: 0.9rem;
        }
        #mobileMenu a:not([href$=".html"])::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            width: 3px;
            height: 0;
            border-radius: 9999px;
            background: #AE0006;
            box-shadow: 0 0 10px rgba(174, 0, 6, 0.8);
            transform: translateY(-50%);
            transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        #mobileMenu a:not([href$=".html"]):hover {
            color: #ffffff;
            transform: translateX(4px);
        }
        #mobileMenu a:not([href$=".html"]):hover::before { height: 60%; }

        /* Botao hamburguer — animacao do icone */
        #mobileMenuBtn iconify-icon {
            display: inline-block;
            transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        #mobileMenuBtn.is-open iconify-icon {
            transform: rotate(90deg) scale(1.08);
        }
        #mobileMenuBtn:active iconify-icon { transform: scale(0.88); }

        @media (prefers-reduced-motion: reduce) {
            #mobileMenu,
            #mobileMenu a,
            #mobileMenuBtn iconify-icon {
                transition: opacity 0.2s ease !important;
                transform: none !important;
                filter: none !important;
            }
        }

        /* 
         * Nosso Time Section (Dobra 3) Styles
         */
        .team-section {
            position: relative;
            z-index: 30;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding: 8rem 0;
            overflow: hidden;
        }

        /* Animated Benefits Marquee */
        .benefits-marquee-container {
            display: flex;
            overflow: hidden;
            user-select: none;
            gap: 1.5rem;
            padding: 1rem 0;
            mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
            -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
            transform: translate3d(0, 0, 0);
            -webkit-transform: translate3d(0, 0, 0);
            will-change: transform;
        }
        @media (min-width: 768px) {
            .mask-marquee-desktop {
                mask-image: linear-gradient(to right, transparent, transparent 320px, black 380px, black 100%);
                -webkit-mask-image: linear-gradient(to right, transparent, transparent 320px, black 380px, black 100%);
            }
        }
        .benefits-marquee {
            display: flex;
            flex-shrink: 0;
            width: max-content;
            align-items: stretch;
            gap: 1.5rem;
            animation: scrollX 40s linear infinite;
            will-change: transform;
            transform: translate3d(0, 0, 0);
            -webkit-transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }
        @keyframes scrollX {
            from { transform: translate3d(0, 0, 0); }
            to { transform: translate3d(calc(-100% - 1.5rem), 0, 0); }
        }
        
        .benefit-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 1rem;
            padding: 2.25rem 2.5rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            width: 440px;
            flex-shrink: 0;
            backdrop-filter: blur(10px);
            transform: translate3d(0, 0, 0);
            -webkit-transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }
        .benefit-card--master {
            background: #050505;
            border-radius: 1.5rem;
            padding: 2.5rem 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 1.5rem;
            width: 280px;
            height: 280px;
            color: #fff;
            box-shadow: 20px 0 40px -10px rgba(0,0,0,0.8), inset 0 0 30px rgba(174, 0, 6, 0.1);
            position: relative;
            z-index: 20;
        }
        .benefit-card--master::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1.5px;
            background: conic-gradient(from var(--beam-angle) at 50% 50%, transparent 0%, transparent 75%, #AE0006 100%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            z-index: 21;
            animation: beam-spin-angle 3s linear infinite;
        }
        @media (min-width: 768px) {
            .benefit-card--master {
                width: 320px;
                height: 300px;
                padding: 3rem 2.5rem;
            }
        }

        .surgeon-editorial-card {
            position: relative;
            border-radius: 1.5rem;
            overflow: hidden;
            background: #111;
            border: 1px solid rgba(255, 255, 255, 0.06);
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            /* Aspect ratio adjusted to be more rectangular (taller) */
            height: 540px;
            max-width: 380px;
            width: 100%;
            margin: 0 auto;
        }

        @media (min-width: 1024px) {
            .surgeon-editorial-card {
                height: 600px;
            }
        }

        .surgeon-editorial-card::after {
            content: "";
            position: absolute;
            inset: 0;
            /* Gradient made more concentrated at the bottom so it doesn't cover faces */
            background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 15%, rgba(0,0,0,0.05) 35%, transparent 100%);
            transition: opacity 0.5s ease;
            z-index: 10;
        }

        .surgeon-editorial-card:hover {
            transform: translateY(-6px);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(174, 0, 6, 0.1);
        }

        .surgeon-editorial-card img.surgeon-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center; /* Ensures the face stays at the top */
            filter: grayscale(100%) contrast(1.05) brightness(0.9);
            transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
        }

        .surgeon-editorial-card:hover img.surgeon-photo {
            filter: grayscale(30%) contrast(1.1) brightness(1);
            transform: scale(1.04);
        }

        .surgeon-editorial-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 1.5rem 1.5rem 1rem 1.5rem; /* Pushes the name extremely close to the bottom border */
            z-index: 20;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 1rem;
        }

        .surgeon-editorial-text {
            display: flex;
            flex-direction: column;
            gap: 0;
            transform: translateY(0);
        }

        .surgeon-editorial-name {
            font-family: 'Manrope', sans-serif;
            font-size: 1.75rem;
            font-weight: 500;
            color: #E5A885; /* Warm premium accent */
            line-height: 1.1;
            margin: 0;
            transition: color 0.3s ease;
        }

        .surgeon-editorial-card:hover .surgeon-editorial-name {
            color: #FFC09D;
        }

        .surgeon-editorial-details {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
            opacity: 0;
        }

        .surgeon-editorial-card:hover .surgeon-editorial-details {
            grid-template-rows: 1fr;
            opacity: 1;
        }

        .surgeon-editorial-details-inner {
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            padding-top: 0.25rem;
        }

        .surgeon-editorial-role {
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.4;
            max-width: 95%;
            margin: 0;
        }

        .surgeon-editorial-insta {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.6);
            margin: 0;
            letter-spacing: 0.05em;
        }

        .surgeon-editorial-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: #E5A885;
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .surgeon-editorial-card:hover .surgeon-editorial-btn {
            background: rgba(229, 168, 133, 0.15);
            border-color: rgba(229, 168, 133, 0.4);
            color: #FFC09D;
            transform: scale(1.1) rotate(360deg);
            box-shadow: 0 0 20px rgba(229, 168, 133, 0.2);
        }

        /* 
         * Surgeon Modal Premium
         */
        .surgeon-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(8, 8, 10, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 1.5rem;
        }
        .surgeon-modal-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }
        .surgeon-modal {
            background: #161618;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 1.25rem;
            width: min(94vw, 1400px); /* Wide modal */
            max-width: 1400px;
            height: auto; /* Shrink to fit, no unnecessary scroll */
            max-height: 92vh;
            overflow-y: auto;
            transform: translateY(20px) scale(0.98);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.05);
            position: relative;
            padding: 3rem 4rem; /* Reduced padding from 5rem 6rem */
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.1) transparent;
        }
        @media (max-width: 768px) {
            .surgeon-modal {
                padding: 2.5rem 1.5rem;
                width: 92%;
                max-height: 88vh;
            }
            .surgeon-modal-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 1.5rem;
                margin-bottom: 1.5rem;
            }
            .surgeon-modal-avatar {
                width: 120px;
                height: 120px;
            }
            .surgeon-modal-title h3 {
                font-size: 1.75rem;
            }
            .surgeon-modal-title p {
                font-size: 1rem;
            }
            .surgeon-modal-bio {
                font-size: 0.95rem;
                line-height: 1.6;
            }
            .surgeon-modal-divider {
                margin-bottom: 1.5rem;
            }
        }
        .surgeon-modal-backdrop.active .surgeon-modal {
            transform: translateY(0) scale(1);
        }
        .surgeon-modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: transparent;
            border: none;
            color: rgba(255,255,255,0.4);
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: color 0.2s;
            z-index: 10;
        }
        .surgeon-modal-close:hover {
            color: #fff;
        }
        .surgeon-modal-header {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-bottom: 2.5rem;
        }
        .surgeon-modal-avatar {
            width: 140px; /* Reduced from 200px */
            height: 140px;
            border-radius: 1rem;
            object-fit: cover;
            object-position: top;
            filter: grayscale(100%) contrast(1.1);
            border: 1px solid rgba(255,255,255,0.05);
            flex-shrink: 0;
            background: #111;
        }
        .surgeon-modal-title h3 {
            font-family: 'Manrope', sans-serif;
            font-size: 2.25rem; /* Reduced from 3.5rem */
            font-weight: 400;
            color: #E5A885;
            margin-bottom: 0.5rem;
            line-height: 1.1;
        }
        .surgeon-modal-title p {
            font-family: 'Inter', sans-serif;
            font-size: 1.15rem; /* Reduced from 1.5rem */
            font-weight: 400;
            color: rgba(255, 255, 255, 0.7);
            margin: 0;
        }
        .surgeon-modal-title #surgeonModalInsta {
            font-size: 0.95rem; /* Reduced from 1.25rem */
            margin-top: 0.5rem;
        }
        .surgeon-modal-divider {
            height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, transparent 100%);
            margin-bottom: 2.5rem;
        }
        .surgeon-modal-bio {
            font-family: 'Inter', sans-serif;
            font-size: 1.15rem; /* Readable but fits well */
            line-height: 1.65;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 300;
            columns: 2; /* Automatically distributes text into two columns */
            column-gap: 3rem;
        }
        @media (max-width: 900px) {
            .surgeon-modal-bio {
                columns: 1; /* Fallback to 1 column on smaller screens */
            }
        }
        .surgeon-modal-bio p {
            margin-bottom: 1.5rem;
            break-inside: avoid; /* Prevents paragraph from splitting across columns awkwardly */
        }
        .surgeon-modal-bio p:last-child {
            margin-bottom: 0;
        }

        /* Stats/Logos Block */
        .credential-box {
            background: rgba(15, 15, 15, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.03);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 1px solid rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 1.25rem;
            padding: 2.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            height: 150px;
            flex: 1 1 300px;
            max-width: 420px;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            transform: translateZ(0);
        }
        @media (min-width: 768px) {
            .credential-box {
                height: 195px;
                padding: 3rem;
            }
        }
        .credential-box::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
            opacity: 0;
            transition: opacity 0.5s ease;
            pointer-events: none;
        }
        .credential-box:hover {
            transform: translateY(-6px);
            border-color: rgba(174, 0, 6, 0.3);
            box-shadow: 0 15px 35px -10px rgba(174, 0, 6, 0.25), inset 0 0 20px rgba(255,255,255,0.02);
            background: rgba(20, 20, 20, 0.6);
        }
        .credential-box:hover::after {
            opacity: 1;
        }
        .credential-box img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            z-index: 10;
        }
        .credential-box:hover img {
            transform: scale(1.05);
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
        }
        .logo-academy {
            transform: scale(1.35);
        }
        .credential-box:hover .logo-academy {
            transform: scale(1.42);
        }

        /* Google Maps Store Locator Dark & Premium Style */
        gmpx-store-locator {
            width: 100%;
            height: 100%;
            --gmpx-color-surface: #0a0a0a;
            --gmpx-color-on-surface: #ffffff;
            --gmpx-color-on-surface-variant: #a1a1aa;
            --gmpx-color-primary: #AE0006;
            --gmpx-color-outline: rgba(255, 255, 255, 0.08);
            --gmpx-fixed-panel-width-row-layout: 18.5em;
            --gmpx-fixed-panel-height-column-layout: 45%;
            --gmpx-font-family-base: "Inter", sans-serif;
            --gmpx-font-family-headings: "Manrope", sans-serif;
            --gmpx-font-size-base: 0.85rem;
            --gmpx-hours-color-open: #10b981;
            --gmpx-hours-color-closed: #ef4444;
            --gmpx-rating-color: #f59e0b;
            --gmpx-rating-color-empty: #374151;
        }

        /* Scale up store locator buttons and directions icons inside shadow DOM */
        gmpx-store-locator gmpx-icon-button,
        gmpx-store-locator gmpx-place-directions-button,
        gmpx-store-locator ::part(directions-button) {
            --gmpx-font-size-base: 1.25rem !important;
        }

        /* Legal Text Modal */
        .legal-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .legal-modal-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }
        .legal-modal {
            background: #050505;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 1.5rem;
            width: 92%;
            max-width: 800px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            position: relative;
            transform: translateY(30px) scale(0.98);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(174, 0, 6, 0.05);
        }
        .legal-modal-backdrop.active .legal-modal {
            transform: translateY(0) scale(1);
        }
        .legal-modal-header {
            padding: 2.5rem 3rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
        }
        .legal-modal-title {
            font-family: 'Manrope', sans-serif;
            font-size: 1.75rem;
            font-weight: 500;
            color: #ffffff;
            margin: 0;
        }
        .legal-modal-close {
            position: absolute;
            top: 2rem;
            right: 2rem;
            color: #ffffff;
            opacity: 0.4;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            border-radius: 50%;
        }
        .legal-modal-close:hover {
            opacity: 1;
            background: rgba(255, 255, 255, 0.1);
        }
        .legal-modal-body {
            padding: 2rem 3rem 3rem;
            overflow-y: auto;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            line-height: 1.8;
            color: #a1a1aa;
        }
        .legal-modal-body h3 {
            color: #ffffff;
            font-family: 'Manrope', sans-serif;
            font-size: 1.25rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
            font-weight: 500;
        }
        .legal-modal-body p {
            margin-bottom: 1.25rem;
        }
        .legal-modal-body ul {
            margin-bottom: 1.25rem;
            padding-left: 1.5rem;
            list-style-type: disc;
        }
        .legal-modal-body li {
            margin-bottom: 0.5rem;
        }
        .legal-modal-body::-webkit-scrollbar {
            width: 6px;
        }
        .legal-modal-body::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 10px;
        }
        .legal-modal-body::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }
        .legal-modal-body::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.25);
        }
        
        @media (max-width: 768px) {
            .legal-modal-header { padding: 1.5rem 1.5rem 1rem; }
            .legal-modal-body { padding: 1.5rem 1.5rem 2rem; }
            .legal-modal-title { font-size: 1.25rem; max-width: 85%; }
            .legal-modal-close { top: 1rem; right: 1rem; }
        }
