:root {
    /* Paleta Base Vest.Rio */
    --roxo: #9200D0;
    --roxo-escuro: #5e0087; /* Para gradientes premium */
    --roxo-claro: #f4e6fa; /* Fundo de destaque clínico */
    --amarelo: #F2C029;
    --laranja: #F2762E;
    --laranja-claro: #F29727;
    
    /* Cores Premium Medicina */
    --cor-fundo: #fdfdfd; /* Branco clínico puríssima */
    --cor-texto: #2b2b2b;
    --cor-texto-mutado: #555555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    background-color: var(--cor-fundo);
    background-image: radial-gradient(rgba(146, 0, 208, 0.04) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--cor-texto);
    -webkit-font-smoothing: antialiased;
    /* TRAVA GLOBAL: Impede a página inteira de criar scroll lateral */
    overflow-x: hidden; 
}


/* ============================================== */
/* === ONDAS DE TRANSIÇÃO === */
/* ============================================== */
.wave-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    direction: ltr; 
    /* A cor de fundo da onda sempre será a cor da seção DE CIMA */
    background-color: var(--wave-bg, #fdfdfd); 
    /* Margem negativa "puxa" a seção para matar a listra branca */
    margin-top: -2px;
    margin-bottom: -2px;
    z-index: 10;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 90px;
    shape-rendering: geometricPrecision;
}

.wave-bottom svg { 
    transform: rotate(180deg); 
}

/* Cores da ponta da onda (sempre a cor da seção DE BAIXO) */
.wave-roxo .shape-fill { fill: var(--roxo); }
.wave-amarelo .shape-fill { fill: var(--amarelo); }
.wave-branca .shape-fill {fill: #fdfdfd;}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 5;
}

/* --- HEADER --- */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 10px 5px 10px;
    width: 100%;
}

.header-logo {
    width: 100px;
    height: auto;
    display: block;
}

/* ============================================== */
/* === HERO SECTION === */
/* ============================================== */
.hero-section {
    padding: 60px 0 80px 0;
    position: relative;
}

.hero-section .container {
    max-width: 1400px;
}

.pre-headline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--laranja);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 6px 18px;
    background: rgba(242, 118, 46, 0.07);
    border-radius: 50px;
    border: 1px solid rgba(242, 118, 46, 0.15);
}

.headline {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.45; /* Aumentado de 1.3 para 1.45 (espaçamento vertical maior) */
    color: var(--cor-texto);
    margin: 0 auto 35px auto; /* Centraliza horizontalmente com a margem inferior original */
    letter-spacing: -0.5px;
    max-width: 1400px; /* Largura máxima confortável para evitar quebras excessivas */
}

/* Destaques premium da Headline */
.headline-purple {
    color: var(--roxo);
    background: linear-gradient(135deg, var(--roxo) 30%, var(--roxo-escuro) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.headline-orange {
    color: var(--laranja);
    background: linear-gradient(135deg, var(--laranja) 30%, var(--laranja-claro) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.subheadline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cor-texto-mutado);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.subheadline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 4px;
    background: var(--amarelo);
    border-radius: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 50px 0;
    }
    
    .pre-headline {
        font-size: 0.8rem;
        padding: 5px 14px;
        margin-bottom: 18px;
    }
    
    .headline {
        font-size: 1.85rem;
        line-height: 1.35;
        margin-bottom: 25px;
    }
    
    .subheadline {
        font-size: 1.15rem;
    }
}

/* =========================================
   SEÇÃO MAPAS MENTAIS
   ========================================= */
.secao-mapas-mentais {
  background-color: var(--cor-fundo);
  background-image: radial-gradient(rgba(146, 0, 208, 0.04) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  color: var(--cor-texto);
  padding: 0rem 1rem;
  overflow: hidden;
  position: relative;
}

.mapas-bonus-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 15px auto 25px auto;
    background-color: rgba(146, 0, 208, 0.08); /* Estilo idêntico ao alfred-bonus */
    border: 1px solid var(--roxo);
    padding: 6px 14px;
    border-radius: 30px;
}

.mapas-bonus-tag .bonus-label {
    background-color: var(--amarelo);
    color: #000000;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 1.4rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.mapas-bonus-tag .bonus-name {
    color: var(--roxo);
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.mapas-bonus-intro {
    font-size: 1.15rem;
    color: #444444; /* Cor escura legível */
    line-height: 1.5;
    margin-bottom: 30px;
    text-wrap: balance;
}

.mapas-bonus-intro strong {
    color: var(--roxo); /* Roxo em vez de amarelo para ler no fundo branco */
    font-weight: 700;
}

/* Responsividade para mapas mentais no mobile */
@media (max-width: 768px) {
    .mapas-bonus-tag {
        gap: 6px;
        padding: 4px 10px;
        margin: 10px auto 15px auto;
        border-radius: 20px;
    }
    
    .mapas-bonus-tag .bonus-label {
        font-size: 1.1rem;
        padding: 2px 6px;
    }
    
    .mapas-bonus-tag .bonus-name {
        font-size: 0.9rem;
    }
    
    .mapas-bonus-intro {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

.cabecalho-mapas {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 3.5rem auto;
  width: 100%;
}

.cabecalho-mapas h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--cor-texto); /* Cor escura alinhada */
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

.cabecalho-mapas .subtitulo-secao {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #555555; /* Cor escura secundária */
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}

/* CARROSSEL DE MAPAS MENTAIS */
.mapas-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px; /* Margem interna para dar espaço para as setas flutuantes */
}

.mapas-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 15px 0; /* Sombra sem cortar */
}

.mapas-carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* CARD DE MAPAS (Visual Premium Alinhado) */
.mapa-card {
  flex: 0 0 100%; /* No mobile 1 slide ocupa tudo */
  max-width: 100%;
  border-radius: 20px;
  background-color: var(--roxo); /* Fundo branco do card */
  border: 2px solid var(--roxo); /* Moldura roxa alinhada */
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(146, 0, 208, 0.04); /* Sombra sutil com tom roxo */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  perspective: 1000px;
}

/* Alternando rotação inicial (tilt diferenciado) */
.mapa-card:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.mapa-card:nth-child(even) {
  transform: rotate(1.5deg);
}

.mapa-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.02) !important;
  border-color: var(--roxo-escuro); /* Segue a paleta roxa no hover */
  box-shadow: 0 15px 35px rgba(146, 0, 208, 0.2); /* Sombra roxa mais forte no hover */
  background-color: var(--roxo-escuro); /* Moldura roxo escuro no hover */
}

.mapa-img-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 70%; /* Proporção de imagem paisagem */
  border-radius: 12px;
  overflow: hidden;
  background-color: #f7f7f9;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mapa-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: blur(4px); /* Borrado para proteger a propriedade intelectual dos mapas */
}

.mapa-card:hover .mapa-img-wrapper img {
  transform: scale(1.05);
}

/* Overlay do Card com botão zoom */
.mapa-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(146, 0, 208, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.btn-zoom-mapa {
  background-color: var(--amarelo);
  color: var(--roxo);
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(242, 192, 41, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-zoom-mapa:hover {
  transform: scale(1.1);
  background-color: #ffffff;
}

/* Desktop layout (2 cards lado a lado) */
@media (min-width: 769px) {
  .mapa-card {
    flex: 0 0 calc((100% - 30px) / 2); /* 2 colunas */
    max-width: calc((100% - 30px) / 2);
  }
}

/* BOTÕES DE CONTROLE DO CARROSSEL (Tema Premium) */
.mapas-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff; /* Fundo branco para sobressair */
  border: 2px solid var(--roxo); /* Moldura roxa marcante */
  color: var(--roxo); /* Ícone roxo */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(146, 0, 208, 0.1);
}

.mapas-carousel-btn:hover {
  background-color: var(--roxo);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(146, 0, 208, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.mapas-carousel-btn.prev {
  left: -10px;
}

.mapas-carousel-btn.next {
  right: -10px;
}

/* DOTS INDICADORES (Tema Roxo) */
.mapas-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.mapas-carousel-dot {
  background-color: rgba(146, 0, 208, 0.2); /* Roxo translúcido */
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.mapas-carousel-dot.ativo {
  background-color: var(--roxo); /* Roxo ativo */
  width: 26px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(146, 0, 208, 0.3);
}

/* LIGHTBOX MODAL PARA AMPLIAÇÃO DO MAPA MENTAL */
.mapas-lightbox {
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 0, 30, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mapas-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  border: 4px solid var(--roxo);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: blur(8px); /* Borrado no lightbox para segurança da propriedade intelectual */
}

.mapas-lightbox[aria-hidden="false"] .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--roxo-claro);
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .mapas-carousel-container {
    padding: 0 40px; /* Espaço para as setas na lateral */
  }
  .mapas-carousel-btn {
    display: flex;
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .mapas-carousel-btn.prev {
    left: 2px;
  }
  .mapas-carousel-btn.next {
    right: 2px;
  }
}

/* ============================================== */
/* === FORMULÁRIO DE CAPTURA === */
/* ============================================== */
.lead-form {
    max-width: 600px;
    margin: 40px auto 20px auto;
    padding: 45px;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(146, 0, 208, 0.08);
    border-top: 6px solid var(--roxo); /* Faixa roxa decorativa no topo */
    box-shadow: 0 15px 35px rgba(146, 0, 208, 0.06);
    text-align: left;
    position: relative;
    z-index: 10;
}

.lead-form h3 {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--roxo);
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: -0.5px;
}

.lead-form .form-group {
    margin-bottom: 20px;
}

.lead-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cor-texto);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lead-form input {
    width: 100%;
    padding: 14px 18px 14px 46px; /* Espaço para o ícone no lado esquerdo */
    border: 1.5px solid rgba(146, 0, 208, 0.12); /* Borda roxa sutil */
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--cor-texto);
    background-color: #faf9fc; /* Fundo levemente lilás claro */
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 18px 18px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.lead-form input[name="nome_completo"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239200D0'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.lead-form input[name="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239200D0'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.lead-form input[name="telefone"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239200D0'%3E%3Cpath d='M20 15.5c-1.25 0-2.45-.2-3.57-.57a1.02 1.02 0 0 0-1.02.24l-2.2 2.2a15.045 15.045 0 0 1-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z'/%3E%3C/svg%3E");
}

.lead-form input:focus {
    border-color: var(--roxo);
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(146, 0, 208, 0.1);
}

.lead-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--laranja) 0%, var(--laranja-claro) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(242, 118, 46, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 10px;
}

.lead-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(242, 118, 46, 0.3);
}

.lead-form button:active {
    transform: translateY(0);
}

.lead-form button:disabled {
    background: #cccccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Caixa de mensagens estilizada de acordo com o feedback do JavaScript */
.lead-form .form-message {
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    animation: formFeedbackFadeIn 0.3s ease;
}

/* Se a cor injetada por JS for green (sucesso) */
.lead-form .form-message[style*="color: green"],
.lead-form .form-message[style*="color: rgb(0, 128, 0)"] {
    background-color: #f0faf0 !important;
    border-color: #d0ebd0 !important;
    color: #1e7e34 !important;
}

/* Se a cor injetada por JS for red (erro) */
.lead-form .form-message[style*="color: red"],
.lead-form .form-message[style*="color: rgb(255, 0, 0)"] {
    background-color: #fff5f5 !important;
    border-color: #ffcccc !important;
    color: #c82333 !important;
}

@keyframes formFeedbackFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .lead-form {
        padding: 25px 20px;
        margin: 30px auto 10px auto;
    }
    
    .lead-form h3 {
        font-size: 1.3rem;
    }
    
    .lead-form input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .lead-form button {
        padding: 14px;
        font-size: 0.95rem;
    }
    .form-footer-note {
        font-size: 0.75rem;
        margin-top: 12px;
        padding: 8px 12px;
    }
}

.form-footer-note {
    font-size: 0.8rem;
    color: var(--cor-texto-mutado);
    text-align: center;
    margin: 20px auto 0 auto;
    line-height: 1.5;
    font-weight: 600;
    text-wrap: balance;
    background-color: #f7f6f9; /* Selo de segurança cinza/lilás sutil */
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(146, 0, 208, 0.05);
    display: block;
    box-sizing: border-box;
}

/* ============================================== */
/* === PÓS-FORMULÁRIO COPY === */
/* ============================================== */
.post-form-copy {
    margin-top: 50px;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 40px;
}

.post-form-copy .main-sentence {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cor-texto);
    line-height: 1.4;
    margin-bottom: 12px;
    text-wrap: balance;
}

.post-form-copy .main-sentence strong {
    font-weight: 800;
    color: var(--roxo);
}

.post-form-copy .sub-sentence {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cor-texto-mutado);
    line-height: 1.4;
    text-wrap: balance;
}

/* Responsividade do pós-formulário */
@media (max-width: 768px) {
    .post-form-copy {
        margin-top: 35px;
        margin-bottom: 25px;
    }
    
    .post-form-copy .main-sentence {
        font-size: 1.25rem;
    }
    
    .post-form-copy .sub-sentence {
        font-size: 1rem;
    }
}

