/* ==========================================================================
   Mobile First: BANNER 
   ========================================================================== */

/* ==========================================================================
   BANNER - GERAL E CARROSSEL
   Seção principal com carrossel de slides e navegação
   ========================================================================== */

/* Container principal do banner com gradiente de fundo */
.banner {
  background: linear-gradient(90deg, #05050c 0%, #16135d 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px 20px 24px;
  position: relative;
  overflow: hidden;
}

/* Container dos slides usando CSS Grid para sobreposição */
.banner__slides-container {
  display: grid;
  width: 100%; /* Garante que o container ocupe todo o espaço */
}

/* Regra UNIFICADA para .banner__slide */
.banner__slide {
  /* Mecânica do carrossel */
  grid-area: 1 / 1 / 2 / 2; /* Todos os slides ocupam a mesma área do grid */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none; /* Desabilita interação quando não ativo */

  /* Layout interno do slide (mobile-first) */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* A classe .is-active torna o slide visível e interativo. */
.banner__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   CONTEÚDO INTERNO DO BANNER
   Elementos de texto e botões dentro dos slides
   ========================================================================== */

/* Título principal do banner */
.banner__titulo {
  font-family: var(--fonte-secundaria);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #ffffff;
}

/* Texto descritivo do banner */
.banner__texto {
  font-family: var(--fonte-principal);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 55ch; /* Limita largura para melhor legibilidade */
  margin: 0 0 20px 0;
  color: #ffffff;
}



/* ==========================================================================
  LÓGICA DE ANIMAÇÃO DE CONTEÚDO (SISTEMA DE 3 ESTADOS)
  Sistema de animação para entrada e saída dos elementos do banner
==========================================================================
*/

/* 1. Estado Padrão (Antes de entrar) */
.banner__titulo,
.banner__texto {
  opacity: 0;
  transform: translateX(-40px); /* Começam à esquerda */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 2. Estado Ativo (Visível na tela) */
.banner__titulo.is-visible,
.banner__texto.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delays para criar efeito de cascata na entrada */
.banner__texto.is-visible {
  transition-delay: 0.1s;
}

/* 3. Estado de Saída */
.banner__titulo.is-exiting,
.banner__texto.is-exiting {
  opacity: 0;
  transform: translateX(40px); /* Todos saem para a direita */
  /* A transição já está definida no estado padrão */
}

/* ========================================================================== */

/* Container do vídeo do banner */
.banner__video-container {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  background: #000;
}

/* Carousel de vídeos */
.banner__video-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Vídeo do banner */
.banner__video {
  display: none;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Vídeo ativo */
.banner__video.is-active {
  display: block;
}

/* Indicadores do carrossel de vídeos */
.banner__video-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* Indicador individual */
.video-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.video-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.video-indicator.is-active {
  background: #ffffff;
  width: 24px;
  border-radius: 4px;
}


/* ==========================================================================
   Breakpoint: 768px+
   ========================================================================== */

@media (min-width: 768px) {
  .banner {
    padding: 100px 60px 25px 60px;
  }

  .banner__slide {
    flex-direction: row; /* Layout horizontal em desktop */
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .banner__conteudo {
    max-width: 55%;
    margin-right: 40px;
  }


  .banner__video-container {
    max-width: 600px;
  }
}
/* ==========================================================================
   Breakpoint: 1200px+
   ========================================================================== */

@media (min-width: 1200px) {
  .banner {
    padding: 40px 100px 10px 100px;
  }

  .banner__titulo {
    font-size: 4rem;
    line-height: 1.2;
  }

  .banner__texto {
    font-size: 1.3rem;
  }

  .banner__typing-animation .typing-text {
    font-size: 2.2rem;
    font-weight: 600;
  }

  .banner__typing-animation .typing-cursor {
    font-size: 2.2rem;
  }


  .banner__video-container {
    max-width: 750px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ==========================================================================
   Breakpoint: 1600px+ (Telas muito grandes)
   ========================================================================== */

@media (min-width: 1600px) {
  .banner {
    padding: 100px 100px 10px 100px;
  }

  .banner__video-container {
    max-width: 1000px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }

  .banner__titulo {
    font-size: 5rem;
  }

  .banner__texto {
    font-size: 1.8rem;
  }

}

/* ==========================================================================
   SEÇÃO DE ANIMAÇÃO DE DIGITAÇÃO
   ========================================================================== */

.typing-section {
  background: linear-gradient(90deg, #05050c 0%, #16135d 100%);
  padding: 35px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.typing-section__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-section .typing-container {
  text-align: center;
  padding: 20px;
}

.typing-section .typing-text {
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.typing-section .typing-cursor {
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 500;
  animation: blink 1s infinite;
  opacity: 0.8;
}

/* Tablet */
@media (min-width: 768px) {
  .typing-section {
    padding: 60px 40px;
    min-height: 350px;
  }

  .typing-section .typing-text {
    font-size: 2.2rem;
  }

  .typing-section .typing-cursor {
    font-size: 2.2rem;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .typing-section {
    padding: 15px 60px;
    min-height: 400px;
  }

  .typing-section .typing-text {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .typing-section .typing-cursor {
    font-size: 2.5rem;
  }
}

/* Telas grandes */
@media (min-width: 1600px) {
  .typing-section {
    padding: 45px 80px;
    min-height: 450px;
  }

  .typing-section .typing-text {
    font-size: 3rem;
    letter-spacing: 1.5px;
  }

  .typing-section .typing-cursor {
    font-size: 3rem;
  }
}

/* ==========================================================================
   CARROSSEL DE FUNCIONALIDADES
   ========================================================================== */

.features-carousel {
  background: linear-gradient(90deg, #05050c 0%, #16135d 100%);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.features-carousel__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.features-carousel__track {
  position: relative;
  height: auto;
}

/* Slides */
.features-carousel__slide {
  display: none;
  animation: fadeIn 0.6s ease-in-out;
}

.features-carousel__slide.active {
  display: block;
}

/* Card com efeito glassmorphism */
.features-carousel__card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Imagem */
.features-carousel__image {
  width: 100%;
  height: 250px;
  border-radius: 25px;
  overflow: hidden;
  order: 2;
}

.features-carousel__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Conteúdo */
.features-carousel__content {
  text-align: center;
  order: 1;
}

.features-carousel__title {
  font-family: var(--fonte-secundaria);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.3;
}

.features-carousel__text {
  font-family: var(--fonte-principal);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Botões de navegação */
.features-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  z-index: 10;
}

.features-carousel__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.features-carousel__nav--prev {
  left: 10px;
}

.features-carousel__nav--next {
  right: 10px;
}

/* Indicadores */
.features-carousel__indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.features-carousel__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.features-carousel__indicator.active {
  width: 25px;
  border-radius: 4px;
  background: #ffffff;
}

/* Animação */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tablet */
@media (min-width: 768px) {
  .features-carousel {
    padding: 80px 40px;
  }

  .features-carousel__card {
    padding: 12px 15px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .features-carousel__image {
    width: 100%;
    max-width: 500px;
    height: 350px;
  }

  .features-carousel__content {
    text-align: center;
    max-width: 700px;
  }

  .features-carousel__title {
    font-size: 2.2rem;
  }

  .features-carousel__text {
    font-size: 1.1rem;
  }

  .features-carousel__nav {
    width: 55px;
    height: 55px;
  }

  .features-carousel__nav--prev {
    left: 20px;
  }

  .features-carousel__nav--next {
    right: 20px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .features-carousel {
    padding: 100px 60px;
  }

  .features-carousel__card {
    padding: 15px 20px;
    gap: 20px;
  }

  .features-carousel__image {
    width: 100%;
    max-width: 600px;
    height: 400px;
  }

  .features-carousel__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .features-carousel__text {
    font-size: 1.3rem;
  }
}

/* Telas grandes */
@media (min-width: 1600px) {
  .features-carousel {
    padding: 120px 80px;
  }

  .features-carousel__card {
    padding: 18px 25px;
    gap: 25px;
  }

  .features-carousel__image {
    width: 100%;
    max-width: 700px;
    height: 450px;
  }

  .features-carousel__title {
    font-size: 3rem;
  }

  .features-carousel__text {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   SEÇÃO SOBRE A PLATAFORMA - Mobile First
   ========================================================================== */

.sobre-plataforma {
  background: linear-gradient(90deg, #05050c 0%, #16135d 100%);
  padding: 60px 20px;
}

.sobre-plataforma__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

/* Texto explicativo */
.sobre-plataforma__texto {
  width: 100%;
  text-align: center;
}

.sobre-plataforma__titulo {
  font-family: var(--fonte-secundaria);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.sobre-plataforma__descricao {
  font-family: var(--fonte-principal);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 20px;
}

.sobre-plataforma__descricao:last-of-type {
  margin-bottom: 0;
}

/* Container da animação de digitação */
.sobre-plataforma__animacao {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.typing-container {
  text-align: center;
  padding: 20px;
}

.typing-text {
  color: #ffffff;
  font-family: var(--fonte-principal);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.typing-cursor {
  color: #ffffff;
  font-family: var(--fonte-principal);
  font-size: 1.3rem;
  font-weight: 300;
  animation: blink 1s infinite;
  opacity: 0.8;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Tablet e Desktop */
@media (min-width: 768px) {
  .sobre-plataforma {
    padding: 80px 40px;
  }

  .sobre-plataforma__container {
    flex-direction: row;
    gap: 80px;
    align-items: center;
  }

  .sobre-plataforma__texto {
    flex: 1;
    text-align: left;
  }

  .sobre-plataforma__titulo {
    font-size: 2.5rem;
  }

  .sobre-plataforma__descricao {
    font-size: 1.2rem;
    max-width: none;
  }

  .sobre-plataforma__animacao {
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .typing-container {
    text-align: left;
  }

  .typing-text,
  .typing-cursor {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .sobre-plataforma {
    padding: 100px 60px;
  }

  .sobre-plataforma__titulo {
    font-size: 3rem;
  }

  .sobre-plataforma__descricao {
    font-size: 1.3rem;
    line-height: 1.9;
  }

  .typing-text,
  .typing-cursor {
    font-size: 1.8rem;
    font-weight: 200;
  }
}

/* ==========================================================================
   SEÇÃO DE DEPOIMENTOS
   ========================================================================== */

.depoimentos {
  background: linear-gradient(90deg, #05050c 0%, #16135d 100%);
  padding: 60px 20px;
}

.depoimentos__container {
  max-width: 1200px;
  margin: 0 auto;
}

.depoimentos__titulo {
  font-family: var(--fonte-secundaria);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
}

.depoimentos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Card de depoimento */
.depoimento__card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Animação de hover */
.depoimento__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Header do card */
.depoimento__header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

/* Foto do médico */
.depoimento__foto {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.depoimento__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Informações do médico */
.depoimento__info {
  flex: 1;
}

.depoimento__nome {
  font-family: var(--fonte-secundaria);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 5px 0;
}

.depoimento__especialidade {
  font-family: var(--fonte-principal);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Conteúdo do depoimento */
.depoimento__conteudo {
  position: relative;
}

.depoimento__texto {
  font-family: var(--fonte-principal);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-style: italic;
}

/* Aspas decorativas (opcional) */
.depoimento__texto::before {
  content: '"';
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  left: -10px;
  top: -10px;
}

/* Tablet */
@media (min-width: 768px) {
  .depoimentos {
    padding: 80px 40px;
  }

  .depoimentos__titulo {
    font-size: 2.5rem;
    margin-bottom: 50px;
  }

  .depoimentos__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .depoimento__card {
    padding: 30px;
  }

  .depoimento__foto {
    width: 70px;
    height: 70px;
  }

  .depoimento__nome {
    font-size: 1.2rem;
  }

  .depoimento__especialidade {
    font-size: 1rem;
  }

  .depoimento__texto {
    font-size: 1.05rem;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .depoimentos {
    padding: 100px 60px;
  }

  .depoimentos__titulo {
    font-size: 3rem;
    margin-bottom: 60px;
  }

  .depoimentos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .depoimento__card {
    padding: 35px;
  }

  .depoimento__foto {
    width: 80px;
    height: 80px;
  }

  .depoimento__nome {
    font-size: 1.3rem;
  }

  .depoimento__texto {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

/* Telas grandes */
@media (min-width: 1600px) {
  .depoimentos {
    padding: 120px 80px;
  }

  .depoimentos__grid {
    gap: 40px;
  }

  .depoimento__card {
    padding: 40px;
  }

  .depoimento__nome {
    font-size: 1.4rem;
  }

  .depoimento__texto {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   SEÇÃO DE REDES SOCIAIS
   ========================================================================== */

.redes-sociais {
  background: linear-gradient(90deg, #05050c 0%, #16135d 100%);
  padding: 50px 20px;
}

.redes-sociais__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.redes-sociais__titulo {
  font-family: var(--fonte-secundaria);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 35px;
}

.redes-sociais__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Link da rede social */
.rede-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Ícone SVG */
.rede-social__icone {
  width: 28px;
  height: 28px;
  color: #ffffff;
  fill: #ffffff;
  transition: transform 0.3s ease;
}

/* Efeitos de hover */
.rede-social__link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rede-social__link:hover .rede-social__icone {
  transform: scale(1.1);
}


/* Tablet */
@media (min-width: 768px) {
  .redes-sociais {
    padding: 70px 40px;
  }

  .redes-sociais__titulo {
    font-size: 2.5rem;
    margin-bottom: 45px;
  }

  .redes-sociais__links {
    gap: 40px;
  }

  .rede-social__link {
    width: 65px;
    height: 65px;
  }

  .rede-social__icone {
    width: 35px;
    height: 35px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .redes-sociais {
    padding: 90px 60px;
  }

  .redes-sociais__titulo {
    font-size: 3rem;
    margin-bottom: 55px;
  }

  .redes-sociais__links {
    gap: 50px;
  }

  .rede-social__link {
    width: 75px;
    height: 75px;
  }

  .rede-social__icone {
    width: 40px;
    height: 40px;
  }
}

/* Telas grandes */
@media (min-width: 1600px) {
  .redes-sociais {
    padding: 100px 80px;
  }

  .redes-sociais__links {
    gap: 60px;
  }

  .rede-social__link {
    width: 85px;
    height: 85px;
  }

  .rede-social__icone {
    width: 45px;
    height: 45px;
  }
}
