/* ========== RESET E CONFIGURAÇÕES GLOBAIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #1abc9c;   /* Turquesa harmonia */
    --gradient: #16a085;  /* Turquesa escuro */
    --accent: #e74c3c;    /* Coral energia */
    --dark: #2c3e50;      /* Azul escuro */
    --light: #f8f9fa;  /* Cinza claro */
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
}

/* ========== CABEÇALHO ========== */
header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--dark);
}

.destaque {
    color: var(--primary);
}

nav a {
    margin-left: 20px;
    color: var(--dark);
    font-weight: 500;
}

.btn-nav {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url(img/hero.jpg);
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-principal {
    background: var(--primary);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-principal:hover {
    transform: scale(1.05);
}

/* ========== DISCLAIMER ========== */
.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px 0;
}

.disclaimer p {
    color: #856404;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* ========== SEÇÃO COMO FUNCIONA ========== */
.secao-como-funciona {
    padding: 80px 0;
    background: white;
}

.grid-passos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.passo {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: var(--light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.passo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.passo-numero {
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.passo h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.passo p {
    color: #666;
    line-height: 1.6;
}

.diferenciais {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gradient) 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-top: 50px;
}

.diferenciais h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.diferenciais ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.diferenciais li {
    padding: 10px 0;
    font-size: 16px;
}

/* ========== SEÇÃO CLÍNICAS ========== */
.secao-clinicas {
    padding: 80px 0;
    background: var(--light);
}

.titulo-centro {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.subtitulo {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.grid-clinicas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-img {
    height: 200px;
    width: 100%;
    background-color: #eee;
}

.card-content {
    padding: 20px;
}

.card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.card ul {
    list-style: none;
    margin: 15px 0;
}

.btn-outline {
    display: block;
    text-align: center;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== SEÇÃO CONTATO ========== */
.secao-contato {
    padding: 80px 0;
    background: var(--light);
}

.grid-contato {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contato-info h3 {
    color: var(--dark);
    margin-bottom: 25px;
    font-size: 24px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
    margin: 0;
}

.contato-mapa {
    min-height: 400px;
}

.contato-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gradient) 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
}

.contato-box h3 {
    color: white;
    margin-bottom: 20px;
}

.contato-box p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ========== FOOTER ATUALIZADO ========== */
footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-coluna h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-coluna ul {
    list-style: none;
}

.footer-coluna ul li {
    margin-bottom: 10px;
}

.footer-coluna a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-coluna a:hover {
    color: var(--primary);
}

.footer-coluna p {
    color: #aaa;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
}

.legal,
.aviso {
    color: #aaa;
    margin-top: 10px;
    font-size: 0.8rem;
}

/* ========== Assinatura do Desenvolvedor ========== */
.assinatura-dev {
    margin-top: 15px;
    font-size: 13px;
    opacity: 0.6;
}

.assinatura-dev .dev-link {
    color: var(--primary);
    font-weight: bold;
}

.assinatura-dev .dev-insta {
    color: inherit;
}

.dev-separador {
    margin: 0 5px;
}

/* ========== BOTÃO FLUTUANTE WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float img {
    width: 35px;
}

/* ========== MODAL / POP-UP ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.ativo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-conteudo {
    background: white;
    width: 90%;
    height: 90%;
    border-radius: 12px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gradient) 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 28px;
    margin: 0;
}

.btn-fechar {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-fechar:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 15px;
}

.modal-body p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.detalhes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detalhe-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.detalhe-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.modal-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.modal-galeria-img {
    height: 150px;
    background: #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background-size: cover;
    background-position: center;
}

.modal-galeria-img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ========== LIGHTBOX PARA FOTOS ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.lightbox.ativo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-fechar:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .modal-conteudo {
        width: 95%;
        height: 95%;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .grid-contato {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}