/* ==========================================================================
   VARIÁVEIS GLOBAIS
   ========================================================================== */
:root {
    /* Paleta de cores */
    --primary-color: #04235b;           /* Credibilidade e imponência */
    --secondary-color: #365fa8;         /* Credibilidade e imponência */
    --accent-color: #0a7663;            /* Humanidade e cordialidade */
    --health-color: #d5eef1;            /* Saúde */
    --humanity-color: #e2d6bf;          /* Humanidade e cordialidade */
    --light-color: #f8f9fa;
    --dark-color: #04235b;
    --text-color: #333;
    --text-light: #555;
    
    /* Espaçamentos */
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(4, 35, 91, 0.1);
    --transition: all 0.3s ease;
}

/* ==========================================================================
   RESET E ESTILOS GERAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

#text {
    text-align: justify;
    margin-top: 50px;
    margin-bottom: 50px;
}


.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #086652;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-placeholder {
    width: 80px !important; /* Largura desejada */
    height: 80px !important; /* Igual à largura para ser quadrado */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.logo-placeholder.small {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-fallback {
    position: absolute;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(4, 35, 91, 0.85), rgba(54, 95, 168, 0.8));
    background-image: url("images/interior-clinica-vivere.jpeg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ==========================================================================
   SEÇÃO SOBRE
   ========================================================================== */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: justify;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   SEÇÃO VALORES
   ========================================================================== */
.values {
    background-color: var(--health-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ==========================================================================
   SEÇÃO SERVIÇOS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(4, 35, 91, 0.15);
    border-bottom: 3px solid var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.services-highlight {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--humanity-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.services-highlight h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.services-highlight p {
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   SEÇÃO CONVÊNIOS
   ========================================================================== */
.insurances {
    background-color: var(--humanity-color);
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.insurance-logo {
    background-color: white;
    width: 150px;
    height: 100px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    overflow: hidden; /* Importante para as imagens */
    padding: 10px; /* Espaçamento interno */
}

.insurance-logo img {
    max-width: 125%; /* A imagem ocupa até 90% do container */
    max-height: 125%; /* Ajusta a altura máxima */
    width: auto;
    height: auto;
    object-fit: contain; /* Mantém proporção da imagem */
    display: block;
}

.insurance-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.insurance-note {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-style: italic;
}

/* ==========================================================================
   SEÇÃO HORÁRIOS
   ========================================================================== */
.schedule-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.schedule-info {
    flex: 1;
    min-width: 300px;
}

.schedule-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.schedule-info p {
    margin-bottom: 15px;
}

.contact-details {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact-details p {
    margin-bottom: 10px;
}

.schedule-table {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.schedule-table h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th, .schedule-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background-color: var(--health-color);
    color: var(--primary-color);
    font-weight: 600;
}

.schedule-table tr:last-child td {
    border-bottom: none;
    text-align: center;
    font-weight: 600;
    color: var(--accent-color);
    background-color: rgba(10, 118, 99, 0.1);
}

/* ==========================================================================
   SEÇÃO EQUIPE (COM FOTOS)
   ========================================================================== */
.team {
    background-color: var(--health-color);
}

/* Filtro de especialidades */
.specialty-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 15px;
    background-color: var(--health-color);
    border-radius: var(--border-radius);
}

.filter-btn {
    padding: 12px 24px;
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.filter-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Grade de médicos */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.team-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--accent-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(4, 35, 91, 0.15);
}

/* Container para imagens */
.team-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    background-color: var(--humanity-color);
}

.team-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.team-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image-container img {
    transform: scale(1.05);
}

.img-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--humanity-color), #f0e9d9);
    color: var(--primary-color);
    font-size: 3.5rem;
}

.team-image img.loaded + .img-fallback {
    display: none;
}

.specialty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

/* Informações dos médicos */
.team-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    line-height: 1.3;
}

.specialty {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crm {
    color: var(--text-light);
    font-size: 0.85rem;
}

.experience {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.experience::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

.team-details {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.team-details p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contador */
.team-counter {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--border-radius);
    color: white;
}

.team-counter p {
    font-size: 1.3rem;
    margin: 0;
}

/* ==========================================================================
   SEÇÃO DEPOIMENTOS
   ========================================================================== */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
    border-left: 4px solid var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial.active {
    display: block;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.8;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.slider-btn {
    background-color: var(--health-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* ==========================================================================
   SEÇÃO CONTATO
   ========================================================================== */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.agendamento-container {
    margin: 50px auto;
    max-width: 800px;
    padding: 0 20px;
}

.agendamento-simple {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    text-align: center;
}

.agendamento-header h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.agendamento-header h3 i {
    color: var(--accent-color);
}

.agendamento-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 30px;
}

.btn-agendamento {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 118, 99, 0.2);
    margin-bottom: 25px;
}

.btn-agendamento:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 118, 99, 0.3);
    gap: 20px;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-agendamento:hover .btn-icon {
    transform: translateX(5px);
}

.agendamento-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.agendamento-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.agendamento-features i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .agendamento-simple {
        padding: 30px 20px;
    }
    
    .agendamento-header h3 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-agendamento {
        padding: 16px 35px;
        font-size: 1rem;
    }
    
    .agendamento-features {
        gap: 15px;
        flex-direction: column;
    }
}


.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: rgba(213, 238, 241, 0.3);
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background-color: rgba(213, 238, 241, 0.5);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(54, 95, 168, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    background-color: var(--accent-color);
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.contact-form .btn:hover {
    background-color: #086652;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 3px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Menu mobile */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Ajustes gerais */
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 250px;
        margin: 5px 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Equipe mobile */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
    
    .team-image {
        height: 260px;
    }
    
    .specialty-filter {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
        min-width: 140px;
    }
    
    .team-counter p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-image {
        height: 280px;
    }
    
    .filter-btn {
        min-width: 130px;
        padding: 10px 15px;
    }
}

/* ==========================================================================
   LOADING INDICATOR
   ========================================================================== */
.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: var(--health-color);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA IMAGENS LOCAIS
   ========================================================================== */

/* Loading indicator */
.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: var(--health-color);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Estilos específicos para imagens locais */
.team-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--humanity-color), #f0e9d9);
}

.team-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.5s ease;
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Indicador de imagem carregando */
.team-image-container img:not([src]) {
    opacity: 0;
}

.team-image-container img.loaded {
    opacity: 1;
}

/* Fallback visual quando imagem não carrega */
.team-image-container .image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--humanity-color), #f0e9d9);
    color: var(--primary-color);
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-image-container .image-fallback.show {
    opacity: 1;
}

.team-image-container .image-fallback i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.team-image-container .image-fallback span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Badge de especialidade */
.specialty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contador responsivo */
@media (max-width: 768px) {
    .team-image-container {
        height: 240px;
    }
    
    .specialty-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
        min-width: 140px;
    }
}

/* ==========================================================================
   ESTILOS ESSENCIAIS PARA MÚLTIPLAS ESPECIALIDADES
   ========================================================================== */

/* Tags de especialidade no card */
.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.specialty-tag {
    padding: 5px 12px;
    border: 2px solid;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Contador nos botões de filtro */
.filter-count {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 700;
}

.filter-btn.active .filter-count {
    background-color: white;
    color: var(--accent-color);
}

/* Ajustes para filtros dinâmicos */
.specialty-filter {
    flex-wrap: wrap;
}

.specialty-filter .filter-btn {
    margin-bottom: 10px;
}

/* Mensagem quando não há médicos */
.no-doctors-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: var(--health-color);
    border-radius: var(--border-radius);
}

/* Responsividade para tags */
@media (max-width: 768px) {
    .specialty-tags {
        gap: 6px;
    }
    
    .specialty-tag {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .filter-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   ESTILOS PARA OS FILTROS DE ESPECIALIDADE
   ========================================================================== */

/* Container dos filtros */
.specialty-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--health-color);
    border-radius: var(--border-radius);
}

/* Botões dos filtros */
.filter-btn {
    padding: 12px 20px;
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.filter-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(54, 95, 168, 0.2);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(10, 118, 99, 0.3);
}

.filter-btn i {
    font-size: 1rem;
}

/* Responsividade para os filtros */
@media (max-width: 1200px) {
    .specialty-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .specialty-filter {
        gap: 8px;
        padding: 15px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .specialty-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
        min-width: 160px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .specialty-filter {
        padding: 12px;
    }
    
    .filter-btn {
        min-width: 140px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .filter-btn i {
        font-size: 0.9rem;
    }
}

/* Contador de médicos */
.team-counter {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--border-radius);
    color: white;
    margin-top: 30px;
}

.team-counter p {
    font-size: 1.3rem;
    margin: 0;
}

.team-counter i {
    margin-right: 10px;
}

#doctor-count {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Estilo para parcerias laboratoriais */
/* Opção 1 */
#lab-partners {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.lab-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.lab-logo-item {
    flex: 0 1 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.lab-logo-item:hover {
    transform: translateY(-5px);
}

.lab-logo-item img {
    max-width: 150%;
    max-height: 150%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.lab-logo-item:hover img {
    filter: grayscale(0%);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.benefits-list li {
    padding: 8px 0;
    color: #333;
}

.benefits-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Opção 2 */
.highlight-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.partnership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.benefits-box {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.benefit-tag {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.partner-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.partner-logo-wrapper {
    flex: 0 1 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partnership-note {
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

/* Opção 3 - Compacto */
.compact-partnership {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.compact-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}

.compact-logos img {
    max-height: 40px;
    max-width: 100px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.compact-logos img:hover {
    opacity: 1;
}

.compact-benefits {
    display: flex;
    justify-content: space-around;
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
}

.compact-benefits span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .lab-logos-grid {
        gap: 20px;
    }
    
    .lab-logo-item {
        flex: 0 1 150px;
        height: 80px;
    }
    
    .partnership-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .partner-logos-container {
        gap: 15px;
        padding: 20px;
    }
    
    .partner-logo-wrapper {
        flex: 0 1 120px;
    }
    
    .compact-logos {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .lab-logo-item {
        flex: 0 1 120px;
        height: 60px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}
