﻿/* ── BITÁCORA ──
   [v2026.11.03-1] portada.css
   2026-11-03 | LA BARRA ÚNICA (preview aprobado por Alberto el 03-11): sale todo el bloque «HEAVENSY NAV» (la barra, el menú,
     #nav-btn-login, la lupa de «Buscar» y su ajuste al celular del 15-10). Ahora vive en hv-nav.css, que además
     conserva lo del celular: la barra nunca más ancha que la pantalla.
   [v2026.10.28-1] portada.css
   2026-10-28 | El video de la portada sin cortes en el celular (Alberto, 28-10: «se ve fuera de los márgenes»). El video es
     1920×1080 con la imagen en una franja de 1920×822 (bandas negras arriba y abajo). En una pantalla vertical la portada
     medía todo el alto y el video la llenaba recortando los costados: los globos de texto del video quedaban cortados.
     En pantallas verticales o casi cuadradas, la portada toma la forma de la franja y el video se ve entero, sin las
     bandas negras.
   [v2026.10.15-1] portada.css
   2026-10-15 | La portada en el celular (Alberto: «arregla la portada del celular»). La barra de arriba no
     cabía en un teléfono (390 px) y ensanchaba toda la página a 512 px: el navegador la mostraba cortada o
     achicada, y el botón del chat quedaba fuera de la pantalla.
     · #nav-btn-login: su estilo, que venía escrito en portada.html.
     · Hasta 600 px: barra con menos margen; sin el nombre «Heavensy» junto al logo, sin los separadores y
       sin el nombre del usuario (queda su avatar); «IA» se va solo bajo 360 px; los enlaces más compactos y, si aun así
       no caben, se deslizan de lado dentro de la barra (nunca ensanchan la página).
     · Hasta 400 px, «Buscar servicios» queda como una lupa (.hv-nav-buscar; en pantalla grande, solo el texto).
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-1: #bbbfff;
  --blue-2: #9db8f0;
  --blue-3: #78ade5;
  --blue-4: #C9D9FF;
  --blue-5: #EFF6FF;
  --navy:   #5E75BE;
  --navy-lt:#7D84C1;
  --text:   #1E2140;
  --text-lt:#6B7194;
  --border: #E4E6F0;
  --white:  #ffffff;
  --bg:     #F7F8FC;
}

body { font-family: 'DM Sans', sans-serif; color: var(--text); background: transparent; overflow-x: hidden; }

/* ── SKY BACKGROUND ── */
#sky-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../../assets/img/fondo portada333.jpg (1).jpg') center 20% / 100% auto no-repeat;
  pointer-events: none;
}
@media (max-width: 768px) {
  #sky-bg { background-size: cover; }
}
#cloud-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── NAVBAR ── */

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.hero-sky { display: none; }
.hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 6; }



.hero-inner { position: relative; z-index: 6; max-width: 700px; margin: 2.5rem auto 0; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.30); border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px; padding: 5px 16px;
  font-size: .78rem; font-weight: 500; color: var(--navy);
  margin-bottom: 1.5rem; backdrop-filter: blur(8px);
}
.hero-badge i { color: var(--blue-3); }

.hero-slogan { font-family: 'DM Serif Display', serif; font-size: clamp(1.4rem, 3vw, 2rem); color: rgba(25,61,109,.85); margin-bottom: 1.4rem; font-style: italic; letter-spacing: .01em; }
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5rem);
  color: #ffffff; line-height: 1.12;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero h1 em { font-style: italic; color: #3a6fa8; }

.hero p {
  font-size: 0.95rem; color: #5E75BE;
  line-height: 1.8; margin-bottom: 2rem;
  max-width: 500px; margin-inline: auto;
  margin-top: 0.2rem;
}
.hero-plataforma { visibility: hidden; }
.hero-tiempo { margin-top: -0.6rem !important; margin-bottom: 1rem !important; }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.btn-hero-primary {
  background: linear-gradient(90deg, #9497F4 0%, #89B9F8 100%); color: #ffffff; border: none;
  border: none; border-radius: 10px;
  padding: 12px 52px; font-size: 1rem; font-weight: 500; border-radius: 12px; box-shadow: 0 6px 20px rgba(100,100,120,0.35), 0 2px 6px rgba(120,120,140,0.2);
  font-family: inherit; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(25,61,109,.25);
}
.btn-hero-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(100,100,120,0.4), 0 2px 8px rgba(120,120,140,0.25); opacity: 0.95; }

.btn-aurora {
  position: relative;
  overflow: hidden;
  background: none !important;
  border: 1px solid rgba(150,175,255,0.4) !important;
  box-shadow: 0 8px 28px rgba(20,30,90,0.4) !important;
}
.btn-aurora::before {
  content: '';
  position: absolute; inset: -12px;
  background: url('../../assets/img/aurorazul4.jpg.jpeg') 50% 55% / 300% no-repeat;
  filter: blur(8px) brightness(1.3) saturate(0.85);
  z-index: -1;
}
.btn-aurora:hover { opacity: 0.9; }

.btn-aurora--bright {
  isolation: isolate;
}
.btn-aurora--bright::before {
  background: url('../../assets/img/aurorazul4.jpg.jpeg') 50% 55% / 300% no-repeat;
  filter: blur(8px) brightness(1.2) saturate(0.9);
}
.btn-aurora--bright:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(25,61,109,.25) !important;
}
.btn-aurora--bright:hover::before {
  filter: blur(8px) brightness(1.35) saturate(0.9) contrast(1.1);
}

.btn-aurora--intense::before {
  background: url('../../assets/img/aurorazul4.jpg.jpeg') 50% 40% / 250% no-repeat;
  filter: blur(6px) brightness(1.7) saturate(1.1);
  transition: filter 0.3s ease;
}
.btn-aurora--intense {
  box-shadow: 0 8px 28px rgba(255,255,255,0.15), 0 0 14px rgba(255,255,255,0.2) !important;
  border: 1px solid rgba(200,200,210,0.55) !important;
  transition: transform 0.2s ease, box-shadow 0.3s ease !important;
}
.btn-aurora--intense:hover {
  opacity: 1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(255,255,255,0.18), 0 0 14px rgba(255,255,255,0.14) !important;
}
.btn-aurora--intense:hover::before {
  filter: blur(6px) brightness(1.8) saturate(1.1);
}

.btn-logo-empezar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-logo-empezar {
  position: relative;
}
.btn-logo-empezar::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.75) 20%, rgba(255,255,255,0.25) 50%, transparent 72%);
  animation: breathe 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -60%) scale(1);   opacity: 0.6; }
  50%       { transform: translate(-50%, -60%) scale(1.5); opacity: 1;   }
}
.btn-logo-empezar img {
  width: 140px; height: 140px;
  transition: transform 0.2s;
  mix-blend-mode: normal;
  position: relative; z-index: 1;
}
.btn-logo-empezar:hover img { transform: scale(1.07); }
.btn-logo-empezar span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: 'Poppins', sans-serif;
}
.btn-hero-secondary {
  background: rgba(255,255,255,.35); color: var(--navy);
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 10px; padding: 13px 30px;
  font-size: .95rem; font-family: inherit; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .15s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.5); }

.hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px;
  max-width: 560px; margin: 0 auto;
}
.hero-stat-num { font-size: 1.7rem; font-weight: 700; color: var(--navy); display: block; }
.hero-stat-label { font-size: .75rem; color: rgba(30,33,64,.65); }

/* ── FEATURES STRIP ── */
.features-strip {
  position: relative;
  overflow: hidden;
  background: #3d4f8a;
  border-bottom: none;
  padding: 1rem 2rem 4rem;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.features-strip::before {
  content: '';
  position: absolute; inset: -40px;
  background: url('../../assets/img/aurorazul4.jpg.jpeg') 20% 30% / cover no-repeat;
  filter: blur(38px);
  z-index: 0;
}
.features-strip-inner { position: relative; z-index: 2; }
.features-strip-inner {
  max-width: 1100px; margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.strip-item { display: flex; align-items: center; gap: 12px; }
.strip-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: transparent; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-size: 1.3rem;
}
.strip-text strong { font-size: .88rem; font-weight: 600; color: #fff; display: block; }
.strip-text span { font-size: .78rem; color: rgba(255,255,255,0.75); }

/* ── CÓMO FUNCIONA ── */
.how { padding: 5rem 2rem; background: rgba(72,90,156,0.58); }
.how-inner { max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-family: 'Poppins', sans-serif; font-size: 2.5rem; color: #fff; margin-bottom: .8rem; font-weight: 400; }
.section-title h2::after {
  content: '';
  display: block;
  width: 52px; height: 3px;
  background: linear-gradient(90deg, #9497F4, #89B9F8);
  border-radius: 2px;
  margin: .5rem auto 0;
}
.section-title p { color: rgba(255,255,255,0.8); font-size: .95rem; max-width: 500px; margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps::before {
  content: '';
  position: absolute; top: 28px; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 2px; background: linear-gradient(90deg, rgba(72,90,156,0.4), rgba(148,151,244,0.6), rgba(72,90,156,0.4));
  z-index: 0;
}

.step { text-align: center; position: relative; z-index: 2; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #7b7ef0, #89B9F8);
  color: #fff; font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; box-shadow: 0 4px 16px rgba(20,30,90,0.5); position: relative; z-index: 2;
}
.step h3 { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .4rem; }
.step p { font-size: .83rem; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 200px; margin: 0 auto; }

/* ── CRECE EN COMUNIDAD ── */
.crece-comunidad { padding: 5rem 2rem; background: rgba(72,90,156,0.58); }
.crece-inner { max-width: 1100px; margin: 0 auto; }
.crece-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  align-items: stretch;
}
.crece-card {
  background: linear-gradient(150deg, #536ab8 0%, #3a4e8f 100%) !important;
  border: 1px solid rgba(150,175,255,0.3);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15,25,80,0.55), 0 4px 10px rgba(15,25,80,0.3), inset 0 1px 0 rgba(180,205,255,0.15);
}
.crece-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15,25,80,0.65), 0 8px 18px rgba(15,25,80,0.35), inset 0 1px 0 rgba(180,205,255,0.2); }
.crece-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 45%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  border-radius: 18px 18px 0 0;
}
.crece-card::after {
  content: '';
  position: absolute;
  top: -40%; left: -15%;
  width: 65%; height: 75%;
  background: radial-gradient(
    ellipse at 40% 40%,
    rgba(255,255,255,0.13) 0%,
    rgba(255,255,255,0.06) 35%,
    rgba(255,255,255,0.02) 60%,
    transparent 75%
  );
  transform: rotate(-20deg);
  pointer-events: none;
  z-index: 0;
}
.crece-card > * { position: relative; z-index: 1; }
.crece-card--highlight {
  background: #3a4d8a;
  border-color: rgba(255,255,255,0.2);
}
.crece-card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: none;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #6BBEFF; font-size: 1.8rem;
  box-shadow: none;
}
.crece-card-icon--vip {
  color: #A98FFF; font-size: 1.8rem;
  background: none;
  border: none;
  box-shadow: none;
}
.crece-card-icon--gold {
  color: #E0B030; font-size: 1.8rem;
  background: none;
  border: none;
  box-shadow: none;
}
.crece-card h3 { font-size: .98rem; font-weight: 600; color: #ffffff; }
.crece-card p { font-size: .83rem; color: rgba(255,255,255,0.8); line-height: 1.7; }
.crece-badge {
  display: block;
  background: none;
  border: 1px solid rgba(150,160,180,0.5);
  border-radius: 6px;
  padding: 8px 14px; font-size: .82rem; height: 40px; font-weight: 600;
  margin-top: auto; width: 100%;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(80,100,200,0.25);
}
.crece-badge::before {
  content: '';
  position: absolute; inset: -10px;
  background: url('../../assets/img/aurorazul4.jpg.jpeg') 20% 30% / cover no-repeat;
  filter: blur(14px) brightness(1.3) saturate(0.85);
  z-index: 0;
  pointer-events: none;
}
.crece-badge span, .crece-badge-text {
  position: relative; z-index: 1;
}
.crece-badge span { font-size: .95rem; }
@media (max-width: 768px) {
  .crece-grid { grid-template-columns: 1fr; }
}

/* ── COMUNIDAD ── */
.community {
  padding: 5rem 2rem 0;
  background: linear-gradient(to bottom, rgba(72,90,156,0.58) 0%, rgba(72,90,156,0.58) 60%, rgba(72,90,156,0) 100%);
  position: relative;
}
.community-inner { max-width: 1100px; margin: 0 auto; }
.community-header {
  background: linear-gradient(135deg, #9497F4 0%, #89B9F8 100%);
  border-radius: 20px; padding: 2.5rem 2rem; text-align: center; margin-bottom: 2rem;
}
.community-header h2 { font-family: 'Poppins', sans-serif; font-size: 2.5rem; color: #ffffff; margin-bottom: .4rem; font-weight: 400; }
.community-header p { color: rgba(255,255,255,0.8); font-size: .95rem; }

.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.community-card {
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #4e63a8 0%, #3a4f8c 60%, #324480 100%); border: 1px solid rgba(148,151,244,0.25);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 12px 28px rgba(20,30,90,0.35), 0 4px 8px rgba(20,30,90,0.15);
}
.community-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,30,90,0.45), 0 8px 16px rgba(20,30,90,0.2); }
.community-card-img {
  height: 200px; background: linear-gradient(135deg, #9497F4, #89B9F8);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.6);
}
.community-card-body { padding: 1rem; }
.community-card-body strong { font-size: .9rem; color: #ffffff; display: block; margin-bottom: 2px; }
.community-card-body span { font-size: .78rem; color: rgba(255,255,255,0.75); }
.community-card-badge {
  display: inline-block; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
  font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-top: 6px;
}

/* ── COMMUNITY: RED DE CONOCIMIENTO ── */
.comm-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem;
  margin-bottom: 2.5rem; align-items: start;
}
.comm-featured {
  background: rgba(255,255,255,0.72); border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 16px 40px rgba(20,30,90,0.18);
}
.comm-featured-thumb {
  position: relative; height: 280px;
  background: linear-gradient(135deg, #1a1f6e 0%, #5E75BE 40%, #7c72d8 70%, #9497F4 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.comm-featured-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(148,151,244,0.45) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 25%, rgba(137,185,248,0.35) 0%, transparent 50%);
}
.comm-play-btn {
  position: relative; z-index: 1;
  width: 68px; height: 68px; background: rgba(255,255,255,0.95); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #46599c;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35); cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.comm-play-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(0,0,0,0.45); }
.comm-play-btn i { margin-left: 4px; }
.comm-duration {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.72); color: #fff;
  font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 4px;
}
.comm-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.25);
}
.comm-progress-fill { height: 100%; width: 35%; background: #fff; border-radius: 2px; }
.comm-featured-info { padding: 1.4rem; background: transparent; }
.comm-creator { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.comm-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #9497F4, #89B9F8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 2px solid rgba(72,90,156,0.15);
}
.comm-creator-info { flex: 1; }
.comm-creator-info strong { display: block; color: #2e3875; font-size: .95rem; font-weight: 600; }
.comm-creator-info span { font-size: .78rem; color: #7a8aae; }
.comm-plan-badge {
  font-size: .68rem; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  background: linear-gradient(90deg, #9497F4, #89B9F8); color: #fff; white-space: nowrap;
}
.comm-video-title {
  font-size: .95rem; font-weight: 500; color: #2e3875; line-height: 1.45; margin-bottom: .9rem;
}
.comm-meta { display: flex; gap: 1.2rem; }
.comm-meta span { font-size: .8rem; color: #9aa3c0; display: flex; align-items: center; gap: 4px; }

/* Stats sidebar */
.comm-stats { display: flex; flex-direction: column; gap: 1rem; }
.comm-stat-box {
  background: #46599c;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 16px;
  padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 8px 20px rgba(100,100,200,0.3);
}
.comm-stat-emoji { font-size: 1.8rem; line-height: 1; }
.comm-stat-box strong { display: block; font-size: 1.4rem; font-weight: 700; color: #fff; }
.comm-stat-box span { font-size: .78rem; color: rgba(255,255,255,0.65); line-height: 1.4; }

/* Carousel de videos */
.comm-carousel-label {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: 0 .5rem;
}
.comm-carousel-label span {
  font-size: .82rem; font-weight: 700; color: #46599c;
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.comm-carousel-label::after {
  content: ''; flex: 1; height: 1px; background: rgba(72,90,156,0.25);
}
.comm-carousel-wrap { overflow: hidden; margin: 0 -2rem; padding: .5rem 0 1.5rem; }
.comm-carousel {
  display: flex; gap: 1.2rem; padding: .5rem 2rem;
  width: max-content;
  animation: scrollCommCarousel 80s linear infinite;
  will-change: transform;
}
.comm-carousel:hover { animation-play-state: paused; }
@keyframes scrollCommCarousel {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.comm-video-card {
  flex: 0 0 240px; background: rgba(72,90,156,0.30); border-radius: 14px; overflow: hidden; backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 20px rgba(20,30,90,0.18);
  transition: transform .3s, box-shadow .3s; cursor: pointer;
}
.comm-video-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(20,30,90,0.28); }
.comm-card-thumb {
  position: relative; height: 150px;
  display: flex; align-items: center; justify-content: center;
}
.comm-card-play {
  width: 38px; height: 38px; background: rgba(255,255,255,0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: #46599c; position: relative; z-index: 1;
  transition: transform .2s;
}
.comm-video-card:hover .comm-card-play { transform: scale(1.12); }
.comm-card-dur {
  position: absolute; bottom: 7px; right: 7px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: .65rem; font-weight: 600; padding: 1px 5px; border-radius: 3px;
}
.comm-card-body { padding: .85rem; background: rgba(72,90,156,0.2); backdrop-filter: blur(6px); }
.comm-card-creator { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.comm-card-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #9497F4, #89B9F8);
  display: flex; align-items: center; justify-content: center; font-size: .68rem;
}
.comm-card-creator-name { font-size: .75rem; font-weight: 700; color: #fff; }
.comm-card-rubro { font-size: .68rem; color: rgba(255,255,255,0.75); }
.comm-card-title {
  font-size: .78rem; color: #fff; font-weight: 500; line-height: 1.4; margin-bottom: .55rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.comm-card-stats { display: flex; gap: .8rem; font-size: .68rem; color: rgba(255,255,255,0.7); }

.btn-center { text-align: center; margin-top: 1rem; }
.btn-outline-blue {
  background: transparent; color: var(--blue-3);
  border: 1.5px solid var(--blue-3); border-radius: 10px;
  padding: 10px 28px; font-size: .9rem; font-weight: 500;
  font-family: inherit; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-outline-blue:hover { background: #90b5fb; color: #fff; }

/* ── MIEMBROS DESTACADOS ── */
.members { padding: 5rem 2rem; background: rgba(72,90,156,0.58); }
.members-inner { max-width: 1100px; margin: 0 auto; }
.members-header {
  background: linear-gradient(135deg, #9497F4 0%, #89B9F8 100%);
  border-radius: 20px; padding: 2.5rem 2rem; text-align: center; margin-bottom: 2rem;
}
.members-header h2 { font-family: 'Poppins', sans-serif; font-size: 2.5rem; color: #ffffff; margin-bottom: .4rem; font-weight: 400; }
.members-header p { color: rgba(255,255,255,0.8); font-size: .95rem; }

/* ═══ MEMBER SLIDER ═══ */
.member-slider { position: relative; max-width: 820px; margin: 0 auto; }

.mcn-card {
  background: #3d4f8a;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 12px 28px rgba(20,30,90,0.45), 0 4px 8px rgba(20,30,90,0.2);
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: stretch;
}

.mcn-card::before {
  content: '';
  position: absolute; inset: -40px;
  background: url('../../assets/img/aurorazul4.jpg.jpeg') 20% 30% / cover no-repeat;
  filter: blur(38px);
  z-index: 0;
}
.mcn-card > * { position: relative; z-index: 1; }

/* ── Left: profile ── */
.mcn-left {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
}
.mcn-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #9497F4, #89B9F8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; color: rgba(255,255,255,.85);
  flex-shrink: 0;
}
.mcn-name  { font-size: .98rem; font-weight: 700; color: #fff; line-height: 1.3; }
.mcn-spec  { font-size: .75rem; color: rgba(255,255,255,0.7); line-height: 1.35; }
.mcn-location { font-size: .72rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; gap: 4px; }
.mcn-tags  { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.mcn-tag   {
  font-size: .67rem; color: #fff;
  background: rgba(148,151,244,0.3); border: 1px solid rgba(148,151,244,0.4);
  border-radius: 20px; padding: 3px 9px;
  display: flex; align-items: center; gap: 4px;
}

/* ── Vertical divider ── */
.mcn-vdivider {
  width: 1px; flex-shrink: 0;
  background: linear-gradient(to bottom, rgba(148,151,244,0.05), rgba(148,151,244,0.4), rgba(148,151,244,0.05));
}

/* ── Right: metrics + growth ── */
.mcn-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.mcn-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.mcn-metrics-row2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
}
.mcn-metric {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: .65rem .85rem;
}
.mcn-metric-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.mcn-metric-icon {
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.mcn-metric-icon.green  { color: #D4AA3A; font-size: 1.15rem; }
.mcn-metric-icon.rosa   { color: #4A9FD4; }
.mcn-metric-icon.teal2  { color: #2ECC71; }
.mcn-metric-icon.purple { color: #b0b3ff; }
.mcn-metric-icon.azul   { color: #E07060; }
.mcn-metric-label { font-size: .67rem; color: rgba(255,255,255,0.65); }
.mcn-metric-value { font-size: 1.05rem; font-weight: 700; color: #fff; }

/* ── Growth badge: last item in right col, full width ── */
.mcn-growth {
  background: linear-gradient(90deg, #4b5edb 0%, #89B9F8 100%);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  padding: .9rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(20,30,90,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  text-align: center;
  flex: 1;
}
.mcn-growth-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #1a2a6e; margin-bottom: 3px;
}
@keyframes mcnShine {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.mcn-growth-value {
  font-size: 2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, #1a2a6e 30%, #fff 50%, #1a2a6e 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mcnShine 3.5s linear infinite;
}

/* ── Slider nav ── */
.slider-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.4rem;
}
.slider-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.22); }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: background .2s, transform .2s;
}
.slider-dot.active { background: #89B9F8; transform: scale(1.35); }

.mcn-cards-wrap { position: relative; overflow: hidden; }

/* Slider transition animations */
@keyframes mcnExitLeft   { from { opacity:1; transform: translateX(0);     } to { opacity:0; transform: translateX(-40px); } }
@keyframes mcnExitRight  { from { opacity:1; transform: translateX(0);     } to { opacity:0; transform: translateX(40px);  } }
@keyframes mcnEnterRight { from { opacity:0; transform: translateX(40px);  } to { opacity:1; transform: translateX(0);     } }
@keyframes mcnEnterLeft  { from { opacity:0; transform: translateX(-40px); } to { opacity:1; transform: translateX(0);     } }
.mcn-card.exit-left   { animation: mcnExitLeft   .18s ease forwards; }
.mcn-card.exit-right  { animation: mcnExitRight  .18s ease forwards; }
.mcn-card.enter-right { animation: mcnEnterRight .28s cubic-bezier(.22,1,.36,1) forwards; }
.mcn-card.enter-left  { animation: mcnEnterLeft  .28s cubic-bezier(.22,1,.36,1) forwards; }

@media (max-width: 768px) {
  .mcn-left { width: 150px; }
}
@media (max-width: 620px) {
  .mcn-card { flex-direction: column; }
  .mcn-left { width: 100%; }
  .mcn-vdivider { width: 100%; height: 1px; }
  .mcn-metrics { grid-template-columns: repeat(2, 1fr); }
}
.btn-expand {
  display: block; margin: 2rem auto 0;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-3));
  color: #fff; border: none; border-radius: 10px;
  padding: 12px 36px; font-size: .95rem; font-weight: 500;
  font-family: inherit; cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.btn-expand:hover { opacity: .9; transform: translateY(-1px); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(to bottom, rgba(46,56,117,0.0) 0%, rgba(46,56,117,0.65) 65%, rgba(46,56,117,0.75) 100%);
  padding: 5rem 2rem; text-align: center;
}
.cta-band h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem; color: #fff; margin-bottom: .8rem;
  font-weight: 400;
}
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 2rem; max-width: 480px; margin-inline: auto; }
.cta-band-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-white {
  background: #fff; color: var(--navy);
  border: none; border-radius: 10px;
  padding: 12px 30px; font-size: .95rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: transform .15s;
}
.btn-cta-white:hover { transform: translateY(-2px); }
.btn-cta-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 10px; padding: 12px 30px;
  font-size: .95rem; font-family: inherit; cursor: pointer;
  transition: background .15s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.1); }

/* ── FOOTER ── */
footer {
  background: #2e3875; border-top: none;
  padding: 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand-logo { width: 28px; height: 28px; background: linear-gradient(135deg, #9497F4, #89B9F8); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; }
.footer-brand span { font-weight: 600; color: #ffffff; font-size: .9rem; font-family: 'Poppins', sans-serif; }
footer p { font-size: .8rem; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 1rem; align-items: center; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .8rem; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-links a:hover { color: #5C82FF; }




@media (max-width: 768px) {
    
  .hero { padding: 1.5rem 1.2rem 2rem; }
  .hero-inner { margin: 0.5rem auto 0; }

  .features-strip { padding: 2rem 1.2rem 4rem; }
  .features-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .how { padding: 3rem 1.2rem; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps::before { display: none; }

  .community { padding: 3rem 1.2rem; }
  .community-grid { grid-template-columns: 1fr; }
  .community-header, .members-header { padding: 1.5rem 1rem; }
  .community-header h2, .members-header h2 { font-size: 1.8rem; }

  .crece-comunidad { padding: 3rem 1.2rem; }
  .crece-grid { grid-template-columns: 1fr; gap: 1rem; }
  .crece-card { padding: 1.5rem 1.2rem; }
  .crece-card h3 { font-size: .95rem; }

  .members { padding: 3rem 1.2rem; }
  .member-metrics { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .member-top { flex-wrap: wrap; }
  .member-growth { font-size: 1.2rem; }
  .member-name { font-size: .9rem; }
  .member-spec { font-size: .75rem; }
  .metric-value { font-size: .95rem; }
  .metric-label { font-size: .68rem; }
  .metric-icon { width: 30px; height: 30px; font-size: .8rem; }
  .member-card { padding: 1rem; }

  .section-title h2 { font-size: 1.8rem; }

  .cta-band { padding: 3rem 1.2rem; }
  .cta-band h2 { font-size: 1.6rem; }
  .cta-band-btns { flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; text-align: center; gap: 0.8rem; }
  .footer-links { justify-content: center; }
  footer { padding: 1.5rem 1.2rem; }

  .plans-wrap { padding: 0 1.2rem 1rem; }
  .section-label { padding: 1.5rem 1.2rem 0.75rem; }
  .hero p { font-size: .9rem; }
  .hero-ctas button { padding: 10px 36px; font-size: .9rem; }
  .strip-item { gap: 8px; }
  .strip-text strong { font-size: .82rem; }
  .strip-text span { font-size: .72rem; }
  .member-metrics { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .metric-item .metric-value { font-size: .9rem; }

  /* Aurora buttons: reduce wide padding on mobile */
  .btn-aurora { padding: 14px 60px !important; }

}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .features-strip-inner { grid-template-columns: 1fr; }
  .member-avatar { width: 50px; height: 50px; font-size: 1.2rem; }
  .hero-stats { gap: 1.2rem; padding: 1rem 1rem; }
  .hero-stat-num { font-size: 1.3rem; }
  .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 90px; }
  /* Aurora buttons: reduce even more on small phones */
  .btn-aurora { padding: 12px 40px !important; font-size: 1rem !important; }
}

@media (max-width: 768px) {
  /* Community comm-layout stacks vertically */
  .comm-layout { grid-template-columns: 1fr; }
  .comm-stats { flex-direction: row; flex-wrap: wrap; }
  .comm-stat-box { flex: 1 1 calc(50% - .5rem); }

  /* Hero stats row */
  .hero-stats { gap: 1.5rem; padding: 1.2rem 1rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-slogan { font-size: 1.1rem; }

  /* Community carousel */
  .comm-carousel-wrap { margin: 0 -1.2rem; }

  /* Chat panel on mobile */
  .chat-panel { width: calc(100vw - 32px); right: 16px; }
}

.metric-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.metric-item { text-align: left; background: rgba(255,255,255,0.07); border-radius: 10px; padding: .6rem .75rem; border: 1px solid rgba(255,255,255,0.1); }
.metric-item .metric-icon { width: 28px; height: 28px; font-size: .8rem; flex-shrink: 0; margin: 0; }
.metric-item .metric-label { font-size: .72rem; color: rgba(255,255,255,0.65); margin: 0; }
.metric-item .metric-value { font-size: 1rem; font-weight: 700; color: #fff; padding-left: 34px; }
.chat-bubble-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #837DFF 0%, #5E75BE 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(44,62,158,.5), 0 2px 8px rgba(0,0,0,.15);
  z-index: 9999;
  transition: transform .2s, box-shadow .2s;
}
.chat-bubble-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(148,151,244,.6), 0 4px 12px rgba(0,0,0,.15);
}
.chat-bubble-btn svg { transition: opacity .2s, transform .2s; }
.chat-bubble-btn .icon-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.7); }
.chat-bubble-btn.open .icon-chat { opacity: 0; transform: rotate(90deg) scale(.7); }
.chat-bubble-btn.open .icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Notification dot */
.chat-notif-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: #FF4D6D;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,77,109,.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(255,77,109,0); }
}
.chat-bubble-btn.open .chat-notif-dot { display: none; }

/* Chat panel */
.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  max-height: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(30,33,64,.18), 0 4px 16px rgba(0,0,0,.1);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.95);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Panel header */
.chat-header {
  background: linear-gradient(135deg, #8E89E8 0%, #5E75BE 100%);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
}
.chat-header-info { flex: 1; }
.chat-header-name { font-size: .9rem; font-weight: 600; color: #fff; display: block; }
.chat-header-status { font-size: .75rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; }
.chat-status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; display: inline-block; }
.chat-header-close {
  background: rgba(255,255,255,.2); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.chat-header-close:hover { background: rgba(255,255,255,.35); }

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F7F8FC;
  max-height: 300px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #d0d4e8; border-radius: 4px; }

/* Message bubbles */
.msg {
  display: flex;
  gap: 8px;
  max-width: 90%;
  animation: msg-in .25s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8E89E8, #5E75BE);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0; color: #fff;
}
.msg-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: .84rem;
  line-height: 1.5;
  max-width: 240px;
}
.msg.bot .msg-bubble {
  background: #fff;
  color: #1E2140;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, #8E89E8, #5E75BE);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: .68rem;
  color: #9BA3C2;
  margin-top: 3px;
  display: block;
  text-align: right;
}
.msg.bot .msg-time { text-align: left; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: msg-in .25s ease;
}
.typing-dots {
  background: #fff;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: #9BA3C2;
  border-radius: 50%;
  animation: typing-bounce .9s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* Quick replies */
.chat-quick-replies {
  padding: .6rem 1.2rem;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  background: #F7F8FC;
  border-top: 1px solid #E4E6F0;
}
.quick-reply-btn {
  background: #fff;
  border: 1.5px solid #C9D9FF;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: .76rem;
  color: #5E75BE;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.quick-reply-btn:hover {
  background: #C9D9FF;
  border-color: #9db8f0;
}

/* Input area */
.chat-input-area {
  padding: .85rem 1rem;
  border-top: 1px solid #E4E6F0;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
}
.chat-input {
  flex: 1;
  border: 1.5px solid #E4E6F0;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
  color: #1E2140;
  outline: none;
  background: #F7F8FC;
  transition: border-color .15s, background .15s;
}
.chat-input:focus {
  border-color: #9497F4;
  background: #fff;
}
.chat-input::placeholder { color: #9BA3C2; }
.chat-send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #746DDE;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .15s, opacity .15s;
  color: #fff;
}
.chat-send-btn:hover { transform: scale(1.08); }
.chat-send-btn:disabled { opacity: 1; cursor: default; transform: none; }

/* Mobile */
@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 90px;
  }
  .chat-bubble-btn {
    right: 16px;
    bottom: 16px;
  }
}

/* PARA QUIÉN ES */
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.para-quien {
  padding: 5rem 0;
  background: rgba(72,90,156,0.58);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.para-quien::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
  transform: translateZ(0);
}
.para-quien-inner {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}
.para-quien .section-title { text-align: center; margin-bottom: 3rem; animation: slideUp 0.6s ease-out; padding: 0 2rem; }
.para-quien .section-title h2 { font-family: 'Poppins', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); color: #fff; font-weight: 400; margin: 0 0 1rem 0; line-height: 1.2; }
.para-quien .section-title p { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin: 0 auto; line-height: 1.6; text-align: center; max-width: 720px; }

.rubros-grid {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 3rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  position: relative;
  width: auto;
  min-width: 100%;
}

.rubros-grid::-webkit-scrollbar { display: none; }

.rubro-card {
  flex: 0 0 260px;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 12px 40px rgba(80,100,200,0.25);
  position: relative;
  overflow: hidden;
}

/* Div de fondo aurora — posición controlada por JS */
.card-aurora-bg {
  position: absolute;
  inset: -40px;
  background: url('../../assets/img/aurorazul4.jpg.jpeg') no-repeat;
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.rubro-card::before { display: none; }

.rubro-card:hover {
  transform: translateY(-12px) scale(1.05);
  border-color: rgba(255,255,255,0.65);
  box-shadow: 0 24px 50px rgba(80,100,200,0.35);
}

@keyframes panBg {
  0% { background-position: 50% 50%; }
  50% { background-position: 30% 50%; }
  100% { background-position: 50% 50%; }
}

.rubro-card > :not(.card-aurora-bg) { position: relative; z-index: 2; }
.card-aurora-bg { position: absolute !important; z-index: 0 !important; }
.rubro-emoji {
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: none;
  border: none;
  margin: 0 auto 1.5rem;
  color: #82A8FF;
}
.rubro-card h3 { font-size: 1.3rem; color: #ffffff; margin: 0 0 1rem 0; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.rubro-card p { font-size: 0.95rem; color: rgba(255,255,255,0.92); margin: 0; line-height: 1.6; flex-grow: 1; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

.rubro-cierre {
  background: linear-gradient(135deg, #3559B6 0%, #2D4AA3 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
  animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-delay: 1.2s;
  position: relative;
  overflow: hidden;
}

.rubro-cierre::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.rubro-cierre p { 
  font-size: 1.1rem; 
  color: white; 
  margin: 1rem 0; 
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.rubro-cierre p:first-child { font-weight: 500; }
.rubro-cierre p:last-child { font-weight: 700; font-size: 1.3rem; }

@media (max-width: 768px) {
  .para-quien { padding: 2.5rem 0; overflow: visible; }
  .para-quien .section-title { padding: 0 1.5rem; }
  .para-quien .section-title h2 { font-size: 1.8rem; }
  .para-quien-inner { overflow-x: auto; scrollbar-width: none; }
  .para-quien-inner::-webkit-scrollbar { display: none; }
  .rubros-grid {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem 1.5rem;
    width: max-content;
    min-width: unset;
  }
  .rubro-card { flex: 0 0 75vw; min-height: 280px; }
}

@media (max-width: 480px) {
  .para-quien { padding: 2rem 0; }
  .para-quien .section-title { padding: 0 1rem; }
  .para-quien .section-title h2 { font-size: 1.5rem; }
  .para-quien .section-title p { font-size: 0.95rem; }
  .rubro-card {
    flex: 0 0 80vw;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    min-height: 260px;
  }
  .rubro-emoji { font-size: 2.5rem; }
  .rubro-card h3 { font-size: 1.1rem; }
  .rubro-card p { font-size: 0.9rem; }
  .rubro-cierre { padding: 2rem 1rem; border-radius: 16px; }
}

/* Member card animations */
@keyframes memberSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.member-card.anim-ready {
  opacity: 0;
  transform: translateY(40px);
}
.member-card.anim-visible {
  animation: memberSlideUp 0.6s ease forwards;
}


/* Chat bubble button */
.chat-bubble-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #837DFF 0%, #5E75BE 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(44,62,158,.5), 0 2px 8px rgba(0,0,0,.15);
  z-index: 9999;
  transition: transform .2s, box-shadow .2s;
}
.chat-bubble-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(148,151,244,.6), 0 4px 12px rgba(0,0,0,.15);
}
.chat-bubble-btn svg { transition: opacity .2s, transform .2s; }
.chat-bubble-btn .icon-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.7); }
.chat-bubble-btn.open .icon-chat { opacity: 0; transform: rotate(90deg) scale(.7); }
.chat-bubble-btn.open .icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Notification dot */
.chat-notif-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: #FF4D6D;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,77,109,.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(255,77,109,0); }
}
.chat-bubble-btn.open .chat-notif-dot { display: none; }

/* Chat panel */
.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  max-height: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(30,33,64,.18), 0 4px 16px rgba(0,0,0,.1);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.95);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Panel header */
.chat-header {
  background: linear-gradient(135deg, #8E89E8 0%, #5E75BE 100%);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
}
.chat-header-info { flex: 1; }
.chat-header-name { font-size: .9rem; font-weight: 600; color: #fff; display: block; }
.chat-header-status { font-size: .75rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; }
.chat-status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; display: inline-block; }
.chat-header-close {
  background: rgba(255,255,255,.2); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.chat-header-close:hover { background: rgba(255,255,255,.35); }

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F7F8FC;
  max-height: 300px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #d0d4e8; border-radius: 4px; }

/* Message bubbles */
.msg {
  display: flex;
  gap: 8px;
  max-width: 90%;
  animation: msg-in .25s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8E89E8, #5E75BE);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0; color: #fff;
}
.msg-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: .84rem;
  line-height: 1.5;
  max-width: 240px;
}
.msg.bot .msg-bubble {
  background: #fff;
  color: #1E2140;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, #8E89E8, #5E75BE);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: .68rem;
  color: #9BA3C2;
  margin-top: 3px;
  display: block;
  text-align: right;
}
.msg.bot .msg-time { text-align: left; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: msg-in .25s ease;
}
.typing-dots {
  background: #fff;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: flex;
  gap: 4px;
  align-items: center;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: #9BA3C2;
  border-radius: 50%;
  animation: typing-bounce .9s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* Quick replies */
.chat-quick-replies {
  padding: .6rem 1.2rem;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  background: #F7F8FC;
  border-top: 1px solid #E4E6F0;
}
.quick-reply-btn {
  background: #fff;
  border: 1.5px solid #C9D9FF;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: .76rem;
  color: #5E75BE;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.quick-reply-btn:hover {
  background: #C9D9FF;
  border-color: #9db8f0;
}

/* Input area */
.chat-input-area {
  padding: .85rem 1rem;
  border-top: 1px solid #E4E6F0;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
}
.chat-input {
  flex: 1;
  border: 1.5px solid #E4E6F0;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
  color: #1E2140;
  outline: none;
  background: #F7F8FC;
  transition: border-color .15s, background .15s;
}
.chat-input:focus {
  border-color: #9497F4;
  background: #fff;
}
.chat-input::placeholder { color: #9BA3C2; }
.chat-send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #746DDE;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .15s, opacity .15s;
  color: #fff;
}
.chat-send-btn:hover { transform: scale(1.08); }
.chat-send-btn:disabled { opacity: 1; cursor: default; transform: none; }

/* Mobile */
@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 90px;
  }
  .chat-bubble-btn {
    right: 16px;
    bottom: 16px;
  }
}

/* [28-10-2026] EL VIDEO ENTERO EN PANTALLAS VERTICALES. La franja con imagen del video mide 1920×822 y está centrada
   (bandas de 128 px arriba y abajo). La portada toma esa forma; el video, a todo el ancho y centrado en alto, deja
   las bandas fuera (overflow: hidden de .hero). */
@media (max-aspect-ratio: 4/3) {
  .hero { min-height: 0; height: auto; aspect-ratio: 1920 / 822; }
  .hero video { top: 50% !important; height: auto !important; transform: translateY(-50%); object-fit: contain !important; }
}

