/* ==========================================================
   SPONSORMII AD DEMO · HOME VIEW CSS
   Portada corporativa B2B, explicativa y confidencial (sin buscador)
   Con gradientes ambientales (círculos violeta y verde)
   ========================================================== */

.home-view-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: var(--ink, #0A0D18);
  display: flex;
  justify-content: center;
}

/* GRADIENTES AMBIENTALES DE CÍRCULOS (VIOLETA Y VERDE) */
.home-glow-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.75;
}

.home-glow-violet {
  width: min(650px, 60vw);
  height: min(650px, 60vw);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(99, 102, 241, 0.18) 45%, transparent 70%);
  top: 5%;
  left: -8%;
  animation: floatSlowViolet 14s ease-in-out infinite alternate;
}

.home-glow-green {
  width: min(600px, 55vw);
  height: min(600px, 55vw);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, rgba(5, 150, 105, 0.14) 45%, transparent 70%);
  top: 30%;
  right: -8%;
  animation: floatSlowGreen 16s ease-in-out infinite alternate;
}

.home-glow-center {
  width: min(450px, 45vw);
  height: min(450px, 45vw);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 70%);
  bottom: 5%;
  left: 30%;
}

@keyframes floatSlowViolet {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 20px) scale(1.08);
  }
}

@keyframes floatSlowGreen {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-30px, 25px) scale(1.06);
  }
}

/* CONTENEDOR PRINCIPAL */
.home-view {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.5vw, 36px) clamp(20px, 3.5vw, 44px);
  box-sizing: border-box;
  animation: homeFadeIn 0.35s ease-out;
}

@keyframes homeFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TOP BAR (LOGO, BADGE Y BOTONES) */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-logo-img {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.home-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 12.5px/1 var(--body, 'Nunito Sans', sans-serif);
  color: #E0E7FF;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.home-nav-badge svg {
  color: #A5B4FC;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-nav-link {
  color: var(--muted, #94A3B8);
  text-decoration: none;
  font: 700 13.5px var(--body, 'Nunito Sans', sans-serif);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.home-nav-link:hover {
  color: #fff;
}

.home-nav-btn-official {
  color: #fff;
  text-decoration: none;
  font: 700 13px var(--body, 'Nunito Sans', sans-serif);
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.home-nav-btn-official:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* HERO PRINCIPAL */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(36px, 5.5vw, 70px);
  gap: clamp(28px, 4vw, 42px);
}

.home-hero {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.home-headline {
  font: 900 clamp(34px, 4.8vw, 60px)/1.08 var(--display, 'Rubik', sans-serif);
  margin: 0;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.home-headline span {
  background: linear-gradient(135deg, #C7D2FE 0%, #818CF8 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-subheadline {
  font: 400 clamp(16px, 1.9vw, 19px)/1.55 var(--body, 'Nunito Sans', sans-serif);
  color: #CBD5E1;
  margin: 0;
  max-width: 60ch;
}

/* BOTONES DE ACCIÓN HERO */
.home-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.home-hero-btn {
  text-decoration: none;
  font: 800 14px var(--body, 'Nunito Sans', sans-serif);
  padding: 11px 22px;
  border-radius: 9px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-hero-btn.primary {
  background: #fff;
  color: #0A0D18;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.home-hero-btn.primary:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.28);
}

.home-hero-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.home-hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* CAJA DE CONFIDENCIALIDAD (SIN BUSCADOR) */
.home-confidential-box {
  width: 100%;
  max-width: 760px;
  background: rgba(22, 27, 46, 0.65);
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 16px;
  padding: clamp(20px, 2.8vw, 26px) clamp(22px, 3.2vw, 32px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  position: relative;
}

.home-confidential-title {
  color: #FCD34D;
  font: 800 15px/1.3 var(--display, 'Rubik', sans-serif);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-confidential-text {
  color: #E2E8F0;
  font: 400 14px/1.55 var(--body, 'Nunito Sans', sans-serif);
  margin: 0;
  max-width: 68ch;
  margin-inline: auto;
}

/* TRES PILARES TECNOLÓGICOS */
.home-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}

.home-pillar-card {
  background: rgba(18, 23, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.home-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.home-pillar-card:hover {
  background: rgba(26, 32, 56, 0.7);
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.home-pillar-card:hover::before {
  opacity: 1;
}

.home-pillar-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.home-pillar-icon-wrap.icon-stream {
  background: rgba(99, 102, 241, 0.18);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.home-pillar-icon-wrap.icon-chat {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.home-pillar-icon-wrap.icon-reward {
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.home-pillar-card h3 {
  font: 800 18px/1.2 var(--display, 'Rubik', sans-serif);
  color: #fff;
  margin: 0;
}

.home-pillar-card p {
  font: 400 14px/1.55 var(--body, 'Nunito Sans', sans-serif);
  color: var(--muted, #94A3B8);
  margin: 0;
}

/* FOOTER */
.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--muted, #94A3B8);
}

.home-footer a {
  color: #818CF8;
  text-decoration: none;
  font-weight: 700;
}

.home-footer a:hover {
  text-decoration: underline;
}

/* BOTÓN DE RETORNO A INICIO EN MODO STUDIO */
.brandline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted, #9298BF);
  font: 700 12px/1 var(--body, 'Nunito Sans', sans-serif);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}