:root {
  --kairos-azul: #2F40FA;
  --kairos-amarelo: #E89C24;
}

/* Reset básico */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

/* Carrossel */
.carrossel {
  position: relative;
  overflow: hidden;
  width: 100%;
}


.carrossel:hover .prev,
.carrossel:hover .next,
.carrossel:hover .dots {
  opacity: 1;
  visibility: visible;
}

.prev,
.next,
.dots {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slide.ativo {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: calc(100vw * 0.3);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.slide {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.descricao {
  position: absolute;
  bottom: 15px;
  left: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  display: none;
}

.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 11;
}

.dots button {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--kairos-azul);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dots button.ativo {
  background: var(--kairos-azul);
  transform: scale(1.2);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #e8e8e8;
  color: var(--kairos-azul);
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.prev:hover, .next:hover {
  background: #d0d0ff;
}

.prev {
  left: 16px;
}

.next {
  right: 16px;
}

/* Segmentos */
  .segmentos-destaque {
    position: relative;
    padding: 100px 20px;
    background-color: #f9f9f9;
    overflow: hidden;
    text-align: center;
  }
  
  .section-titulo {
    font-size: 3rem;
    color: var(--kairos-amarelo);
    font-weight: bold;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
  }
  
  /* Ícones de fundo */
  .decoracao-icones i {
    position: absolute;
    font-size: 6rem;
    color: rgba(0, 170, 255, 0.063);
    z-index: 0;
    animation: flutuar 12s ease-in-out infinite;
  }
  .decoracao-icones i:nth-child(1) { top: 10%; left: 15%; }
.decoracao-icones i:nth-child(2) { top: 25%; right: 20%; }
.decoracao-icones i:nth-child(3) { top: 50%; left: 10%; }
.decoracao-icones i:nth-child(4) { top: 40%; right: 4%; }
.decoracao-icones i:nth-child(5) { bottom: 10%; left: 30%; }
.decoracao-icones i:nth-child(6) { top: 10%; left: 65%; }
.decoracao-icones i:nth-child(7) { top: 20%; right: 55%; }
.decoracao-icones i:nth-child(8) { top: 30%; left: 3%; }
.decoracao-icones i:nth-child(9) { top: 60%; right: 25%; }
.decoracao-icones i:nth-child(10) { bottom: 10%; left: 60%; }
.decoracao-icones i:nth-child(11) { bottom: 20%; right: 10%; }
.decoracao-icones i:nth-child(12) { top: 35%; left: 45%; }
  
  @keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  .segmentos-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    position: relative;
    z-index: 2;
  }
  
  .segmento-box {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    width: 260px;
    padding-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }
  
  .segmento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  }
  
  .segmento-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 4px solid var(--kairos-amarelo);
  }
  
  .segmento-box h3 {
    font-size: 1.3rem;
    color: var(--kairos-azul);
    margin-top: 16px;
    font-weight: 600;
  }
  
  .segmento-box p {
    font-size: 0.95rem;
    color: #444;
    margin: 10px 16px;
  }
  
  .veja-mais {
    display: inline-block;
    margin-top: 8px;
    color: var(--kairos-amarelo);
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  /* Responsivo */
  @media (max-width: 768px) {
    .segmentos-cards {
      flex-direction: column;
      align-items: center;
    }
  }
  
/* Blocos de segmento */
.segmentos-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.segmento-bloco {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 260px;
  text-align: center;
}

.segmento-bloco:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.segmento-bloco img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.segmento-bloco h3 {
  font-size: 1.2rem;
  color: var(--kairos-azul);
  font-weight: 600;
  margin: 16px 0;
}


 /* KPLUS */
 .kplus-section {
    position: relative;
    background-image: url("/static/img/back_kplus.png");
    background-size: cover;
    background-position: center;
    height: 620px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kplus-overlay {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .kplus-logo {
    height: 340px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  }
  
/* Animação pulse */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(232, 156, 36, 0.6);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(232, 156, 36, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(232, 156, 36, 0);
  }
}

/* Aplicando ao botão */
.kplus-btn {
  background-color: #E89C24;
  color: white;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  animation: pulse 2.5s infinite;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.kplus-btn:hover {
  background-color: #cf841c;
  animation: none;
}

/* Diferenciais */

.diferenciais-section {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.section-titulo {
  font-size: 2.8rem;
  color: #E89C24;
  margin-bottom: 40px;
  font-weight: bold;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.diferencial-item {
  display: flex;
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  flex-direction: column;
  align-content: center;
  align-items: center;
}

.diferencial-item:hover {
  transform: translateY(-5px);
}

.diferencial-item img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.diferencial-item h3 {
  color: #2F40FA;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.diferencial-item p {
  font-size: 0.95rem;
  color: #444;
}


/* Jornairós */
.jornairos-section {
  padding: 60px 20px;
  position: relative;
  background-color: #e7e7e7;
}

.section-jornairos-titulo {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--kairos-amarelo);
  text-align: center;
  margin-bottom: 40px;
}

/* Container slider */
.jornairos-slider-wrapper {
  position: relative;
  overflow: hidden;
}

/* Faixa deslizante */
.jornairos-slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 40px;
}

/* Card de notícia */
.jornairos-card {
  flex: 0 0 280px;
  margin: 0 12px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 420px;
}

.jornairos-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.jornairos-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* Categoria */
.jornairos-categoria {
  text-align: center;
  display: inline-block;
  background: linear-gradient(to right, #E89C24, #FFD180);
  color: #000;
  font-size: 14px;
  padding: 6px 24px;
  clip-path: polygon(0% 0%, 100% 0%, 95% 50%, 100% 100%, 0% 100%, 5% 50%);
  margin-bottom: 4px;
}

.jornairos-data {
  font-size: 10px;
  color: #888;
}

.jornairos-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--kairos-azul);
}

.jornairos-resumo {
  font-size: 13px;
  color: #444;
  flex-grow: 1;
}

/* Botões */
.jornairos-botoes {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-amarelo {
  background: var(--kairos-amarelo);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-azul {
  background: var(--kairos-azul);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Botões de navegação */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--kairos-amarelo);
  color: white;
  font-size: 2rem;
  padding: 10px 16px;
  border: none;
  border-radius: 5%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;

  /* Ocultos por padrão */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* Mostrar botões no hover */
.jornairos-section:hover .slider-btn,
.jornairos-section:hover .slider-dots {
  opacity: 1;
  visibility: visible;
}

/* Dots */
.slider-dots {
  text-align: center;
  margin-top: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots button.ativo {
  background: var(--kairos-azul);
}

/* PARCERIA CCAA */
.parceria-ccaa-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.container-ccaa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.ccaa-texto {
  flex: 1;
  min-width: 300px;
}

.ccaa-texto h2 {
  color: #E89C24;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.ccaa-texto h3 {
  color: #2F40FA;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.ccaa-texto p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 16px;
}

.ccaa-imagem {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.ccaa-imagem img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .container-ccaa {
    flex-direction: column;
    text-align: center;
  }
}


/* UNIDADES */

.mapa-unidades {
  padding: 60px 20px;
  text-align: center;
  background-color: #e7e7e7;
}

.unidades-menu {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.unidade-btn {
  background-color: white;
  border: 2px solid var(--kairos-amarelo);
  color: var(--kairos-amarelo);
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unidade-btn.ativo {
  background-color: var(--kairos-amarelo);
  color: white;
}

.mapa-frame iframe {
  width: 100%;
  max-width: 800px;
  height: 360px;
  border: none;
  margin: auto;
  margin-bottom: 24px;
}

.info-unidade {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  margin-bottom: 40px;
}

.info-unidade h3 {
  font-size: 1.5rem;
  color: var(--kairos-azul);
  margin-bottom: 8px;
}

.info-unidade p {
  font-size: 1rem;
  color: #444;
}

.toast {
  visibility: hidden;
  min-width: 200px;
  background-color: var(--kairos-azul);
  color: white;
  text-align: center;
  border-radius: 30px;
  padding: 14px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}



@media (max-width: 768px) {
  .section-titulo, .segmentos-titulo, .section-jornairos-titulo {
    font-size: 2rem;
  }

  .diferenciais-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .kplus-logo {
    height: 200px;
  }

  .kplus-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Melhorias Mobile */
@media (max-width: 768px) {
  .jornairos-slider {
    gap: 20px;
    padding-left: 10px;
  }
  .slider-btn {
    display: none; /* Sem setas no mobile */
  }
  .slider-dots {
    opacity: 1;
    visibility: visible;
    margin-top: 12px;
  }
}

/* Melhoria do hover apenas no desktop */
@media (min-width: 769px) {
  .jornairos-section:hover .slider-btn {
    opacity: 1;
    visibility: visible;
  }
}
