/* styles.css - Mobile First Unificado - CORRIGIDO DESKTOP */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Reset e Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f9fafa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* SUBSTITUIR o .header existente */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 199, 212, 0.1);
    z-index: 1000;
    height: 65px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: center;
    /* ALTERADO */
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.logo {
    display: none;
    /* ESCONDE no header */
}

.header nav {
    display: none;
}

.menu-mobile {
    position: absolute;
    right: 20px;
    font-size: 24px;
    color: #333;
    padding: 8px;
}

/* SUBSTITUIR o .hero existente */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 65px;
    background: linear-gradient(135deg, #d4f6fc 0%, #e8f8fc 50%, #f0fcff 100%);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
    /* deixa a imagem de fundo mais suave */
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease;
}

.hero-content h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    color: #1a2535;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -1.5px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-content p {
    font-size: clamp(16px, 3vw, 20px);
    color: #234256;
    margin-bottom: 25px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00c7d4 0%, #00a8b3 100%);
    color: #fff;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 199, 212, 0.35);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #00a8b3 0%, #008a94 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 199, 212, 0.45);
}

.btn-cta-secondary {
    background: #fff;
    color: #00c7d4;
    border: 2px solid #00c7d4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn-cta-secondary:hover {
    background: #f0feff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 199, 212, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet e Desktop */
@media (min-width: 768px) {
    .header nav {
        display: flex;
        gap: 35px;
    }

    .menu-mobile {
        display: none;
    }

    .header nav a {
        font-weight: 600;
        font-size: 15px;
        color: #333;
        transition: color 0.3s;
        position: relative;
        padding: 5px 0;
    }

    .header nav a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #00c7d4;
        transition: width 0.3s ease;
    }

    .header nav a:hover {
        color: #00c7d4;
    }

    .header nav a:hover::after {
        width: 100%;
    }

    .hero {
        height: 90vh;
        max-height: 850px;
    }

    .hero-logo {
        width: 220px;
    }

    .hero-cta-group {
        gap: 20px;
    }
}

/* Sobre */
#sobre {
    background: linear-gradient(120deg, #eaf9fb 0%, #b9f0f5 60%, #e0fcff 100%);
    padding: 60px 20px;
    text-align: center;
}

#sobre .conteudo {
    max-width: 740px;
    margin: 0 auto 40px;
}

#sobre h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #1a2535;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.2;
}

#sobre h1 span {
    background: linear-gradient(90deg, #009ecb 30%, #19e4f7 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sobre p {
    font-size: clamp(16px, 3vw, 18px);
    line-height: 1.6;
    color: #234256;
    margin-bottom: 40px;
}

.visao-missao-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.visao-missao-cards .card {
    background: linear-gradient(135deg, #e0fbfc 70%, #b4f0fa 100%);
    backdrop-filter: blur(7px);
    padding: 30px 20px;
    border-radius: 18px;
    border: 1.5px solid #83e0ee;
    box-shadow: 0 8px 32px rgba(51, 214, 224, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.visao-missao-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 199, 212, 0.25);
}

.visao-missao-cards .card h2 {
    color: #00b2ce;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 800;
}

.visao-missao-cards .card p {
    font-size: 16px;
    line-height: 1.6;
    color: #174d65;
}

/* Instituições */
/* Instituições */
.instituicoes-wrapper {
    padding: 60px 20px;
    background: #fff;
}

.instituicoes-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.instituicoes-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.instituicoes-divider h2 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 900;
    color: #2a3333;
    text-align: center;
    letter-spacing: -1px;
}

.instituicoes-divider .line {
    display: none;
}

.instituicoes-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 20px;
    align-items: center;
    /* ADICIONADO */
}

.instituicoes-tabs button {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    min-height: 60px;
    padding: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    /* ADICIONADO para mobile */
    max-width: 300px;
    /* ADICIONADO para mobile */
}

.instituicoes-tabs button.active {
    color: #00c7d4;
    border-color: #00c7d4;
    background: #e6fafd;
}

.instituicoes-conteudos {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.instituicoes-conteudos .conteudo {
    display: none;
}

.instituicoes-conteudos .conteudo.active {
    display: block;
}

.instituicoes-conteudos h3 {
    font-size: clamp(20px, 4vw, 26px);
    margin-bottom: 15px;
    font-weight: 900;
    color: #2a3333;
}

.instituicoes-conteudos p {
    font-size: 16px;
    color: #212d32;
    line-height: 1.6;
}

/* Módulos */
.modulos {
    padding: 60px 20px;
    background: linear-gradient(120deg, #b6def2 0%, #e0f6fa 100%);
}

.titulo-chip-tech {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.chip-text {
    background: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    color: #117bbf;
    box-shadow: 0 2px 24px rgba(9, 231, 238, 0.13);
    border: 2px solid rgba(22, 230, 253, 0.13);
}

.bar-tech {
    display: none;
}

.modulos-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 2300px;
    margin: 0 auto;
}

.modulos-imagem {
    background: linear-gradient(120deg, #e8f8fc 60%, #fafdff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 199, 212, 0.1);
    padding: 20px;
    max-width: 900px;
}

.modulos-imagem img {
    width: 100%;
    border-radius: 10px;
}

.modulos-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modulo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 50px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.modulo-card:hover,
.modulo-card.active {
    background: #e6f8fa;
    border-color: #00c7d4;
}

.modulo-card .icon {
    font-size: 20px;
}

/* Investimento */
.investimento {
    background: linear-gradient(120deg, #e0f6fa 0%, #c2e6f4 100%);
    padding: 60px 20px;
}

.investimento-card {
    background: #fafdff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 199, 212, 0.1);
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.investimento-titulo-tech {
    text-align: center;
    margin-bottom: 30px;
}

.investimento-titulo-tech h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    background: linear-gradient(90deg, #00c7d4 60%, #07e3f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.investimento-conteudo p {
    font-size: 16px;
    line-height: 1.7;
    color: #232323;
    margin-bottom: 20px;
}

.investimento-imagem {
    margin-top: 30px;
    text-align: center;
}

.investimento-imagem img {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 199, 212, 0.1);
}

/* Preços */
.precos {
    padding: 60px 20px;
    background: linear-gradient(180deg, #f9fafa 0%, #e6fafd 100%);
    text-align: center;
}

.titulo-secao {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: #333;
    margin: 40px 0 30px;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto 40px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 14px;
    padding: 30px 20px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    border-radius: 14px 14px 0 0;
}

.card.basic::before,
.card.premium::before,
.card.clinic::before {
    background: linear-gradient(90deg, #00c7d4, #5de0e6);
}

.card.chatbot::before {
    background: linear-gradient(90deg, #00c853, #b2ff59);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.card .preco {
    font-size: 26px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.card .por-atendimento {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
}

.card ul {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    flex-grow: 1;
}

.card ul li {
    font-size: 14px;
    margin: 10px 0;
    padding-left: 24px;
    position: relative;
    color: #333;
}

.card ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00c7d4;
    font-size: 14px;
}

.card.chatbot ul li::before {
    color: #00c853;
}

.btn-card {
    display: inline-block;
    padding: 12px 28px;
    background: #00c7d4;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 199, 212, 0.25);
}

.btn-card:hover {
    background: #0099a8;
    box-shadow: 0 6px 16px rgba(0, 199, 212, 0.35);
}

/* FAQ */
.faq {
    padding: 60px 20px;
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.faq h2 {
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 900;
    color: #1a2535;
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #f9fafa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #00c7d4;
    box-shadow: 0 4px 12px rgba(0, 199, 212, 0.1);
}

.faq-item summary {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 24px;
    color: #00c7d4;
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Contato */
.contato {
    background: linear-gradient(90deg, #00c7d4 0%, #d4f6fc 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.contato-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.contato-titulo {
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 900;
    margin: 15px 0 10px;
    color: #1a314a;
}

.contato-titulo span {
    background: linear-gradient(90deg, #08589c 35%, #00c7d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contato-subtitulo {
    font-size: 16px;
    color: #000;
    margin-top: 10px;
}

.contato form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 7px 38px rgba(0, 176, 188, 0.16);
    border: 1.5px solid #c5edf3;
    border-radius: 18px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
    position: relative;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 12px;
    border-radius: 8px;
    border: 1.4px solid #b5e9f0;
    font-size: 16px;
    background: #fafdff;
    color: #21516b;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group textarea {
    min-height: 80px;
    max-height: 150px;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #00c7d4;
    box-shadow: 0 2px 14px rgba(0, 224, 248, 0.37);
    outline: none;
}

.contato button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #00c7d4 68%, #1ee4ff 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-weight: 900;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 199, 212, 0.28);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contato button:hover {
    background: linear-gradient(90deg, #0098b3 40%, #1ee4ff 100%);
    transform: translateY(-2px);
}

.contato-bolha {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.bolha1 {
    width: 200px;
    height: 200px;
    left: -50px;
    top: 50px;
    background: linear-gradient(120deg, #00c7d4 70%, #aef2f8 100%);
}

.bolha2 {
    width: 150px;
    height: 150px;
    right: -30px;
    bottom: 50px;
    background: linear-gradient(90deg, #1ee4ff 50%, #00c7d4 100%);
}

.feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.feedback.sucesso {
    background: #d1f5e0;
    color: #056839;
    border: 1px solid #0da061;
}

.feedback.erro {
    background: #ffe1e1;
    color: #a60000;
    border: 1px solid #cc0000;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background: #07293d;
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    height: 80px;
    filter: brightness(3.5);
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    color: #38d4f8;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #c7e7fa;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.footer-social img {
    width: 36px;
    height: 36px;
    filter: brightness(1.1);
    transition: filter 0.3s;
}

.footer-social img:hover {
    filter: brightness(1.4);
}

.footer-bottom {
    border-top: 1px solid rgba(19, 87, 128, 0.33);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #a6d2ec;
    font-size: 14px;
}

/* Tablet */
@media (min-width: 768px) {
    .header nav {
        display: flex;
        gap: 25px;
    }

    .menu-mobile {
        display: none;
    }

    .header nav a {
        font-weight: 500;
        color: #333;
        transition: color 0.3s;
    }

    .header nav a:hover {
        color: #00c7d4;
    }

    .hero {
        height: 65vh;
        max-height: 650px;
    }

    .visao-missao-cards {
        flex-direction: row;
    }

    .instituicoes-tabs {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    .instituicoes-tabs button {
        min-width: 180px;
        width: auto;
        /* ADICIONADO - remove o width 100% */
        max-width: none;
        /* ADICIONADO - remove o max-width */
        height: 80px;
    }

    .instituicoes-divider {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .instituicoes-divider .line {
        display: block;
        height: 5px;
        width: 48px;
        background: linear-gradient(90deg, #495252 10%, #918a8a 80%);
        border-radius: 10px;
    }

    .modulos-container {
        flex-direction: row;
        align-items: flex-start;
        max-width: 1600px;
        gap: 40px;
    }

    .modulos-imagem {
        flex: 3.5;
        max-width: 900px;
    }

    .modulos-cards {
        flex: 0 0 280px;
    }

    .cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 1200px;
        gap: 25px;
    }

    .card {
        flex: 0 1 calc(33.333% - 20px);
        min-width: 280px;
    }

    .card.chatbot {
        flex: 0 0 100%;
        /* ALTERADO - ocupa toda largura */
        max-width: 350px;
        margin: 0 auto;
        /* centraliza */
        width: 350px;
        /* ADICIONADO - largura fixa */
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-col {
        align-items: flex-start;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .titulo-chip-tech {
        flex-direction: row;
        justify-content: center;
    }

    .bar-tech {
        display: block;
        height: 6px;
        width: 60px;
        border-radius: 8px;
        background: linear-gradient(90deg, #09e7ee 30%, #95f0fa 100%);
        box-shadow: 0 0 16px rgba(9, 231, 238, 0.47);
    }

    /* ADICIONAR AQUI */
    .modulos-imagem {
        max-width: 1400px;
        /*TAMANHO DA IMAGEM*/
    }

    .investimento-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 60px;
        padding: 50px 60px;
    }

    .investimento-titulo-tech {
        text-align: left;
    }

    .investimento-titulo-tech h2 {
        font-size: 36px;
    }

    .investimento-lado-esquerdo {
        flex: 1;
    }

    .investimento-imagem {
        flex: 0 0 380px;
        margin-top: 0;
    }

    .investimento-imagem img {
        max-width: 380px;
    }

    .modulos-container {
        gap: 60px;
        max-width: 1600px;
    }

    .modulos-cards {
        flex: 0 0 280px;
    }
}

/* Performance */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}