/* ==========================================================================
   GORDINHO PERSONALIZADOS — PORTAL SPLIT SCREEN
   Inspirado no estilo Infinity Tech (Cliente Final vs Lojista)
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #06180E;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  font-family: var(--font-body);
  background-color: #06180E;
  color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CONTAINER PRINCIPAL SPLIT SCREEN
   ========================================================================== */
.portal-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background-color: #06180E;
}

/* ==========================================================================
   HEADER FLUTUANTE CENTRAL (TOPO)
   ========================================================================== */
.portal-header-floating {
  position: absolute;
  top: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 39, 23, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(250, 184, 24, 0.28);
  border-radius: 20px;
  padding: 0.85rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(250, 184, 24, 0.15);
  text-align: center;
  transition: var(--transition-smooth);
}

.portal-header-floating:hover {
  border-color: rgba(250, 184, 24, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(250, 184, 24, 0.3);
  transform: translateX(-50%) translateY(-2px);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-transform: uppercase;
}

.brand-title span {
  color: var(--color-primary);
}

.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-gray-400);
  font-weight: 600;
}

.portal-prompt {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-top: 0.15rem;
}

.portal-catalogo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(250, 184, 24, 0.15);
  border: 1px solid rgba(250, 184, 24, 0.4);
  color: var(--yellow-amber, #FAB818);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

.portal-catalogo-pill:hover {
  background: var(--yellow-amber, #FAB818);
  color: #0A2717;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250, 184, 24, 0.3);
}

.side-sublink {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--yellow-amber, #FAB818);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease, transform 0.2s ease;
}

.side-sublink:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

/* ==========================================================================
   CONTAINER & BADGE DIVISOR "OU"
   ========================================================================== */
.portal-divider-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  pointer-events: none;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-divider-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-darker, #0A2717);
  border: 2px solid rgba(250, 184, 24, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.85), inset 0 0 10px rgba(250, 184, 24, 0.15);
  pointer-events: none;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Linha divisória sutil */
.portal-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(180deg, 
    rgba(250, 184, 24, 0.05) 0%, 
    rgba(250, 184, 24, 0.3) 50%, 
    rgba(34, 197, 94, 0.05) 100%);
  z-index: 35;
  pointer-events: none;
}

/* ==========================================================================
   PAINÉIS SPLIT SCREEN (LADO A LADO)
   ========================================================================== */
.portal-side {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4.5rem 4.5rem 4rem 4.5rem;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background-color: #06180E;
  transition: flex 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Imagens de fundo com sangria anti-gap */
.side-bg {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
  z-index: 1;
}

/* Camada de Overlay / Degradê */
.side-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: background 0.6s ease, opacity 0.6s ease;
}

/* Lado Cliente Final (Verde Floresta & Esmeralda) */
.side-b2c .side-bg {
  object-position: center 35%;
}
.side-b2c .side-overlay {
  background: var(--b2c-overlay);
}

/* Lado Terceirizado (Verde Floresta Profundo & Âmbar) */
.side-b2b .side-bg {
  object-position: center;
}
.side-b2b .side-overlay {
  background: var(--b2b-overlay);
}

/* ==========================================================================
   CONTEÚDO DO PAINEL (TEXTOS, BADGES E BOTÕES)
   ========================================================================== */
.side-content {
  position: relative;
  z-index: 10;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  transition: transform 0.4s ease;
}

/* Badge de Tag Superior */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.side-b2c .tag-badge {
  background: var(--b2c-badge-bg);
  border: 1px solid var(--b2c-badge-border);
  color: var(--b2c-badge-text);
}

.side-b2b .tag-badge {
  background: var(--b2b-badge-bg);
  border: 1px solid var(--b2b-badge-border);
  color: var(--b2b-badge-text);
}

.tag-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Título Principal */
.side-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--color-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Texto de Descrição */
.side-desc {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-gray-300);
  font-weight: 400;
  max-width: 480px;
}

/* Chips / Badges de Diferenciais */
.features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #E2E8F0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.pill-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botão de Ação CTA */
.btn-portal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
  padding: 1.05rem 2rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Botão B2C (Cliente Final - Verde Esmeralda) */
.side-b2c .btn-portal-action {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.38);
}

.side-b2c .btn-portal-action:hover {
  background: linear-gradient(135deg, #34D399 0%, #22C55E 100%);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.58);
  transform: translateY(-3px);
}

/* Botão B2B (Terceirizado - Amarelo Ouro Oficial) */
.side-b2b .btn-portal-action {
  background: linear-gradient(135deg, #FAB818 0%, #E5A50E 100%);
  color: #0A2717;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(250, 184, 24, 0.38);
}

.side-b2b .btn-portal-action:hover {
  background: linear-gradient(135deg, #FCD34D 0%, #FAB818 100%);
  box-shadow: 0 14px 30px rgba(250, 184, 24, 0.58);
  transform: translateY(-3px);
}

.btn-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-portal-action:hover .btn-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   ESTADOS DE HOVER DINÂMICOS NO DESKTOP
   ========================================================================== */
@media (min-width: 993px) {
  /* Quando o usuário passa o mouse na esquerda */
  .portal-wrapper.hover-b2c .side-b2c {
    flex: 1.25;
  }
  .portal-wrapper.hover-b2c .side-b2b {
    flex: 0.75;
    filter: brightness(0.7);
  }
  .portal-wrapper.hover-b2c .side-b2c .side-bg {
    transform: scale(1.05);
  }
  .portal-wrapper.hover-b2c .portal-divider-badge {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: #22C55E;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
  }
  .portal-wrapper.hover-b2c .portal-divider-wrapper {
    left: 62.5%;
  }

  /* Quando o usuário passa o mouse na direita */
  .portal-wrapper.hover-b2b .side-b2b {
    flex: 1.25;
  }
  .portal-wrapper.hover-b2b .side-b2c {
    flex: 0.75;
    filter: brightness(0.7);
  }
  .portal-wrapper.hover-b2b .side-b2b .side-bg {
    transform: scale(1.05);
  }
  .portal-wrapper.hover-b2b .portal-divider-badge {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: #FAB818;
    box-shadow: 0 0 25px rgba(250, 184, 24, 0.6);
  }
  .portal-wrapper.hover-b2b .portal-divider-wrapper {
    left: 37.5%;
  }
}

/* ==========================================================================
   BARRA INFERIOR DISCRETA / FOOTER
   ========================================================================== */
.portal-footer {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  z-index: 45;
  pointer-events: none;
}

.portal-footer a, .portal-footer span {
  pointer-events: auto;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.portal-footer a:hover {
  color: var(--color-primary);
}

.footer-celulares-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 39, 23, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(250, 184, 24, 0.2);
}

/* ==========================================================================
   RESPONSIVIDADE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
  .portal-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .portal-header-floating {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 1.5rem auto 1rem auto;
    width: calc(100% - 2.5rem);
    max-width: 440px;
    padding: 0.75rem 1.25rem;
  }

  .portal-header-floating:hover {
    transform: none;
  }

  .portal-side {
    min-height: 520px;
    padding: 3rem 1.75rem 3.5rem 1.75rem;
  }

  .portal-divider-wrapper {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 52px;
    margin: -26px 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: none;
  }

  .portal-divider-line {
    position: absolute;
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(250, 184, 24, 0.15) 12%, 
      rgba(250, 184, 24, 0.7) 50%, 
      rgba(250, 184, 24, 0.15) 88%, 
      transparent 100%);
    z-index: 1;
  }

  .portal-divider-badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    z-index: 2;
    width: 48px;
    height: 48px;
    font-size: 0.85rem;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.95), 0 0 16px rgba(250, 184, 24, 0.35);
  }

  .side-title {
    font-size: 2.35rem;
  }

  .side-desc {
    font-size: 0.95rem;
  }

  .portal-footer {
    position: relative;
    bottom: auto;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    background: var(--bg-deep, #06180E);
  }
}
