/* ═══════════════════════════════════════════════════
   TESTVOCACIONAL.CSS — EligeBien · Illa Psychology
   UNIFICADO: Base + V2 + Widget + Responsive
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: hsl(266, 100%, 62%);
  --secondary-purple: #835ab8;
  --light-blue: #B0D3FF;
  --bright-blue: #18B3FF;
  --black-crystal: #1a1a1a;
  --dark-gray: #2d2d2d;
  --light-gray: #f4f5fb;
  --white: #ffffff;
  --success-green: #28a745;
  --warning-orange: #ffc107;
  --card-shadow: 0 8px 32px rgba(124,58,237,0.10);
  --card-hover-shadow: 0 20px 50px rgba(124,58,237,0.22);
  --radius-card: 22px;
  --radius-btn: 14px;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.6;
  color: var(--black-crystal);
  background: var(--light-gray);
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
header {
  background: linear-gradient(135deg,rgba(22,22,22,0.91),rgba(26,26,26,0.82));
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 0 0 8px 8px;
}

.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    order: 3;
}

.logo-container { display: flex; align-items: center; gap: 5px; cursor: pointer; transition: transform 0.3s ease, filter 0.3s ease; }
.logo-container:hover { transform: scale(1.05); filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.6)); }
.logo-img { height: 80px; width: 80px; transition: transform 0.4s ease; }
.logo-container:hover .logo-img { transform: rotate(-5deg) scale(1.08); }
.logo-text { font-size: 28px; line-height: 1; color: white; font-weight: bold; letter-spacing: 1px; font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; text-shadow: 2px 2px 8px rgba(151,151,151,0.7); transition: color 0.3s ease, text-shadow 0.3s ease; }
.logo-text1 { color: white; font-size: 12px; text-shadow: 2px 2px 5px rgba(151,151,151,0.6); transition: color 0.3s ease, text-shadow 0.3s ease; }
.logo-container:hover .logo-text, .logo-container:hover .logo-text1 { color: #B0D3FF; text-shadow: 0 0 15px rgba(176,211,255,0.8); }
.logo-wrapper { display: flex; align-items: center; gap: 10px; }
.tipografia { display: flex; flex-direction: column; font-family: Georgia, 'Times New Roman', Times, serif; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15); padding: 10px 0;
  display: none; flex-direction: column; border-radius: 10px; min-width: 180px;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.35); animation: dropdownFade 0.3s ease; z-index: 1000;
}
.dropdown:hover .dropdown-menu, .dropdown-menu:hover { display: flex; background: rgba(0,0,0,0.349); color: white; }
@keyframes dropdownFade { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.dropdown-menu li a { color: white; padding: 10px 15px; display: block; font-size: 14px; text-decoration: none; transition: all 0.3s ease; border-radius: 6px; }
.dropdown-menu li a:hover { background: rgba(255,255,255,0.15); color: #B0D3FF; box-shadow: 0 0 8px rgba(176,211,255,0.6); }

/* FIX: position relative para que el menú móvil absolute se posicione bien */
nav { display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links li { position: relative; padding: 5px 10px; }
.nav-links a { position: relative; color: var(--white); text-decoration: none; font-weight: 500; padding: 6px 10px; border-radius: 8px; transition: all 0.3s ease; }
.nav-links a:hover { color: #EAF3FF; text-shadow: 0 0 8px rgba(255,255,255,0.7); background-color: rgba(255,255,255,0.05); transform: translateY(-2px) scale(1.05); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0%; height: 2px; background: linear-gradient(90deg, #B0D3FF, #ffffff); box-shadow: 0 0 6px #B0D3FF; transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

/* ══════════════════════════════════════════════
   AUTH & AVATAR SYSTEM
   ══════════════════════════════════════════════ */
.auth-zone { display:flex; align-items:center; gap:10px; position:relative; }
.auth-guest { display:flex; align-items:center; gap:10px; }

.btn-nav-login, .btn-nav-register {
  display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 50px;
  text-decoration: none; font-size: 13.5px; font-weight: 600; letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); white-space: nowrap;
}
.btn-nav-login { color: #fff; background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.25); backdrop-filter: blur(8px); }
.btn-nav-login:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-nav-register { color: #1a1a1a; background: linear-gradient(135deg, #fff, #e8f4ff); border: 1.5px solid transparent; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.btn-nav-register:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }
.btn-nav-login i, .btn-nav-register i { font-size: 13px; }

.avatar-wrapper { position: relative; }
.avatar-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.3); background: linear-gradient(135deg, #7c3aed, #2563eb);
  cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); padding: 0; box-shadow: 0 4px 15px rgba(124,58,237,0.4);
}
.avatar-btn:hover { transform: scale(1.1); border-color: rgba(255,255,255,0.6); box-shadow: 0 6px 20px rgba(124,58,237,0.6); }
.avatar-btn.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 6px 20px rgba(124,58,237,0.5); }
.avatar-photo { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.avatar-initials { color: white; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; user-select: none; font-family: Georgia, serif; }
.avatar-status { position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; background: #22c55e; border-radius: 50%; border: 2px solid #1a1a1a; animation: pulseOnline 2.5s ease-in-out infinite; }
@keyframes pulseOnline { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }

.avatar-dropdown {
  position: absolute; top: calc(100% + 14px); right: 0; width: 260px;
  background: rgba(15,15,20,0.96); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); overflow: hidden;
  opacity: 0; transform: translateY(-10px) scale(0.96); pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); z-index: 9999;
}
.avatar-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.dropdown-user-header { display:flex; align-items:center; gap:12px; padding:16px 16px 14px; }
.dropdown-avatar-big { width:46px; height:46px; border-radius:50%; background: linear-gradient(135deg,#7c3aed,#2563eb); display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; border:2px solid rgba(255,255,255,0.15); }
.dropdown-photo { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.dropdown-initials { color:white; font-size:16px; font-weight:700; font-family:Georgia,serif; }
.dropdown-user-info { display:flex; flex-direction:column; gap:2px; overflow:hidden; }
.dropdown-name { color:#fff; font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dropdown-username { color:rgba(255,255,255,0.45); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dropdown-divider { height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.08),transparent); margin:0 12px; }
.dropdown-options { list-style:none; padding:6px 0; margin:0; }
.dropdown-option { display:flex; align-items:center; gap:12px; padding:10px 16px; color:rgba(255,255,255,0.8); text-decoration:none; font-size:13.5px; font-weight:500; cursor:pointer; transition:all 0.2s ease; width:100%; border:none; background:none; }
.dropdown-option:hover { background:rgba(255,255,255,0.07); color:#fff; padding-left:20px; }
.option-icon { width:30px; height:30px; border-radius:8px; background:rgba(255,255,255,0.07); display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.dropdown-option:hover .option-icon { background:rgba(124,58,237,0.3); color:#a78bfa; }
.option-label { flex:1; }
.option-arrow { color:rgba(255,255,255,0.2); font-size:11px; transition:all 0.2s ease; }
.dropdown-option:hover .option-arrow { color:rgba(255,255,255,0.5); transform:translateX(3px); }
.dropdown-logout { display:flex; align-items:center; gap:10px; padding:13px 16px; color:#f87171; text-decoration:none; font-size:13.5px; font-weight:600; transition:all 0.2s ease; background:rgba(248,113,113,0.04); margin:4px 0 0; }
.dropdown-logout:hover { background:rgba(248,113,113,0.12); color:#fca5a5; padding-left:22px; }
.avatar-btn.uploading { pointer-events:none; }
.avatar-btn.uploading::after { content:''; position:absolute; inset:0; border-radius:50%; border:2px solid transparent; border-top-color:#fff; animation:spinAvatar 0.8s linear infinite; }
@keyframes spinAvatar { to { transform:rotate(360deg); } }

/* ══════════════════════════════════════════════
   MAIN & HERO
   ══════════════════════════════════════════════ */
main { padding-top: 110px; min-height: calc(100vh - 200px); }

.test-hero {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #4f46e5 40%, var(--bright-blue) 100%);
  padding: 4rem 0 3.5rem; text-align: center; position: relative; overflow: hidden;
  border-radius: 0 0 32px 32px; margin-bottom: 2.5rem;
}
.test-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%); pointer-events: none; }
.test-hero::after { content: ''; position: absolute; width: 350px; height: 350px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); top: -80px; right: -80px; pointer-events: none; }
.test-hero-content { position: relative; z-index: 2; padding: 0 20px; }
.test-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--white); margin-bottom: 0.75rem; text-shadow: 0 2px 20px rgba(0,0,0,0.2); letter-spacing: -0.02em; animation: fadeInDown 0.7s ease both; }
.test-hero p { font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(255,255,255,0.85); margin-bottom: 2rem; animation: fadeInUp 0.7s ease 0.15s both; }

.mascot-bubble {
  background: rgba(255,255,255,0.97); padding: 1.1rem 1.8rem; border-radius: 20px;
  display: inline-block; box-shadow: 0 12px 40px rgba(0,0,0,0.18); position: relative; max-width: 90%;
  animation: bounce 3s ease-in-out infinit;
}
.mascot-bubble::before { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 10px solid rgba(255,255,255,0.97); }
.mascot-bubble span { color: var(--primary-purple); font-weight: 700; font-size: clamp(0.9rem, 2vw, 1.05rem); }

@keyframes fadeInDown { from { opacity:0; transform:translateY(-24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } }

/* ══════════════════════════════════════════════
   CONTENEDOR Y CARDS
   ══════════════════════════════════════════════ */
.test-container { background: var(--white); margin: 0 auto 3rem; border-radius: 28px; box-shadow: 0 4px 40px rgba(0,0,0,0.07); overflow: hidden; max-width: 1200px; }
.welcome-screen { padding: 3.5rem 2.5rem; text-align: center; }
.welcome-screen h2 { font-family: 'Sora', sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--primary-purple); margin-bottom: 0.75rem; }
.welcome-screen > p { font-size: clamp(0.95rem, 2vw, 1.05rem); color: #666; margin-bottom: 2.5rem; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* FIX: padding-top para dar aire entre hero y stats */
.v2-stats-row { display: flex; justify-content: center; gap: 2.5rem; margin: 0 auto 2rem; flex-wrap: wrap; max-width: 1200px; padding: 1.5rem 24px 0; }
.v2-stat { text-align: center; cursor: default; }
.v2-stat-num { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--primary-purple); line-height: 1; transition: transform 0.3s ease; }
.v2-stat:hover .v2-stat-num { transform: scale(1.08); }
.v2-stat-label { font-size: 12px; color: #94a3b8; margin-top: 4px; font-weight: 500; }

.v2-section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; padding: 0 0.25rem; }
.v2-section-label span { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--black-crystal); white-space: nowrap; }
.v2-section-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(124,58,237,0.3), transparent); }

.v2-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.75rem; }
.v2-pill { padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1.5px solid; cursor: pointer; transition: all 0.22s ease; user-select: none; font-family: 'DM Sans', sans-serif; }
.v2-pill.active { background: linear-gradient(135deg, var(--primary-purple), var(--bright-blue)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(124,58,237,0.3); }
.v2-pill:not(.active) { background: #fff; color: var(--primary-purple); border-color: rgba(124,58,237,0.22); }
.v2-pill:not(.active):hover { background: rgba(124,58,237,0.06); transform: translateY(-1px); }

.welcome-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0 0; text-align: left; }

.feature-item {
  position: relative; background: linear-gradient(160deg, #fafbff 0%, #f3f4fd 100%);
  padding: 2rem 1.75rem 1.75rem; border-radius: var(--radius-card);
  border: 1.5px solid rgba(124,58,237,0.09); box-shadow: var(--card-shadow);
  transition: transform 0.35s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.35s ease, border-color 0.3s ease;
  cursor: pointer; overflow: hidden; display: flex; flex-direction: column;
  /* FIX: min-height para cards de altura uniforme */
  min-height: 260px;
}
.feature-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary-purple), var(--bright-blue)); opacity: 0; transition: opacity 0.35s ease; z-index: 0; border-radius: inherit; }
.feature-item:hover::before { opacity: 0.07; }
.feature-item:hover { transform: translateY(-10px) scale(1.015); box-shadow: var(--card-hover-shadow); border-color: rgba(124,58,237,0.25); }
.feature-item > * { position: relative; z-index: 1; }
.feature-item::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-purple), var(--bright-blue)); opacity: 0; transition: opacity 0.3s ease; border-radius: inherit inherit 0 0; }
.feature-item:hover::after { opacity: 1; }

.v2-icon-3d { font-size: 3.4rem; line-height: 1; display: block; user-select: none; filter: drop-shadow(2px 6px 10px rgba(124,58,237,0.30)) drop-shadow(-1px -2px 5px rgba(255,255,255,0.55)); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.v2-card:hover .v2-icon-3d { transform: scale(1.2) rotate(6deg) translateY(-5px); }

.feature-item h4 { font-family: 'Sora', sans-serif; font-size: 1.05rem; color: var(--black-crystal); margin-bottom: 0.5rem; font-weight: 700; line-height: 1.4; }
.feature-item p { color: #7c7c9a; font-size: 0.88rem; margin-bottom: 1.25rem; font-weight: 500; flex: 1; }

.v2-time-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.v2-tdot { width: 5px; height: 5px; border-radius: 50%; background: #c4b5fd; flex-shrink: 0; }
.v2-tlbl { font-size: 11.5px; color: #a78bfa; font-weight: 600; }
.v2-ptrack { background: rgba(124,58,237,0.08); border-radius: 6px; height: 4px; margin-bottom: 1.1rem; overflow: hidden; }
.v2-pbar { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary-purple), var(--bright-blue)); width: 0; animation: v2lb 1.5s ease-out forwards; }
@keyframes v2lb { from { width: 0; } to { width: var(--w); } }

.v2-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.v2-dpill { padding: 4px 11px; border-radius: 10px; font-size: 11px; font-weight: 600; background: rgba(124,58,237,0.08); color: var(--primary-purple); border: 1px solid rgba(124,58,237,0.12); white-space: nowrap; flex-shrink: 0; }
.v2-dpill.med { background: rgba(245,158,11,0.08); color: #b45309; border-color: rgba(245,158,11,0.15); }
.v2-dpill.hard { background: rgba(239,68,68,0.08); color: #b91c1c; border-color: rgba(239,68,68,0.12); }

.badge { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, #ff4757, #ff6b81); color: white; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.05em; box-shadow: 0 3px 10px rgba(255,71,87,0.35); animation: pulse 2.2s ease-in-out infinite; z-index: 2; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* FIX: flex:1 en lugar de width:100% para no aplastar la .v2-dpill */
.go-button {
  flex: 1; padding: 13px 20px;
  background: linear-gradient(135deg, var(--primary-purple), var(--bright-blue));
  color: white; border: none; border-radius: var(--radius-btn); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 6px 18px rgba(124,58,237,0.28); position: relative; overflow: hidden; margin-top: auto;
  pointer-events: auto; z-index: 10;
}
.go-button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(124,58,237,0.4); filter: brightness(1.07); }
.go-button:active { transform: translateY(0); }

/* ══════════════════════════════════════════════
   BANNER MINDI
   ══════════════════════════════════════════════ */
.v2-mindi-band {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #4f46e5 50%, var(--bright-blue) 100%);
  border-radius: 20px; padding: 1.75rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 2rem; position: relative; overflow: hidden;
}
.v2-mindi-band::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.05); top: -60px; right: 110px; pointer-events: none; }
.v2-mindi-text h3 { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.v2-mindi-text p { font-size: 0.84rem; color: rgba(255,255,255,0.72); margin: 0; }
.v2-mindi-btn { padding: 12px 24px; background: #fff; color: var(--primary-purple); border: none; border-radius: 13px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap; transition: all 0.25s ease; box-shadow: 0 4px 14px rgba(0,0,0,0.2); flex-shrink: 0; }
.v2-mindi-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.25); }

/* ══════════════════════════════════════════════
   WIDGET MINDI (FLOTANTE)
   ══════════════════════════════════════════════ */
.mindi-widget { position: fixed; bottom: 25px; right: 25px; z-index: 99999; display: flex; flex-direction: column; align-items: flex-end; font-family: 'DM Sans', sans-serif; }
.mindi-toggle-btn { width: 65px; height: 65px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-purple), var(--bright-blue)); border: none; color: white; font-size: 1.8rem; cursor: pointer; box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: transform 0.3s; }
.mindi-toggle-btn:hover { transform: scale(1.1); }
.mindi-toggle-btn.active { background: #fff; color: var(--primary-purple); }
.mindi-icon-open, .mindi-icon-close { position: absolute; transition: opacity 0.3s; }
.mindi-icon-close { opacity: 0; }
.mindi-toggle-btn.active .mindi-icon-open { opacity: 0; }
.mindi-toggle-btn.active .mindi-icon-close { opacity: 1; }
.mindi-notification { position: absolute; top: 0; right: 0; background: #ff4757; color: white; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

.mindi-chat-window {
  position: absolute; bottom: 80px; right: 0; width: 380px; height: 550px;
  background: #fff; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(124,58,237,0.1);
}
.mindi-chat-window.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.mindi-chat-header { background: linear-gradient(135deg, var(--primary-purple), #4f46e5); padding: 1.2rem 1.5rem; display: flex; align-items: center; color: white; border-radius: 15px;}
.mindi-avatar { font-size: 2rem; margin-right: 12px; }
.mindi-header-info { flex: 1; }
.mindi-name { font-weight: 700; font-size: 1.1rem; display: block; }
.mindi-status { font-size: 0.75rem; opacity: 0.8; display: flex; align-items: center; gap: 5px; }
/* FIX: renombrado a mindiPulse para no colisionar con @keyframes pulse del badge */
.mindi-status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: mindiPulse 2s infinite; }
@keyframes mindiPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.mindi-minimize-btn { background: rgba(255,255,255,0.2); border: none; color: white; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }

/* FIX: fondo del chat como variable para futura compatibilidad con modo oscuro */
.mindi-chat-body { flex: 1; padding: 1.5rem; overflow-y: auto; background: rgba(124,58,237,0.03); display: flex; flex-direction: column; gap: 12px; }
.mindi-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
.mindi-msg.bot { align-self: flex-start; background: white; color: #333; border: 1px solid rgba(0,0,0,0.05); border-radius: 4px 16px 16px 16px; }
.mindi-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--primary-purple), var(--bright-blue)); color: white; border-radius: 16px 4px 16px 16px; }

.typing-indicator { display: flex; gap: 5px; padding: 15px; background: white; width: fit-content; border-radius: 16px; }
.typing-indicator span { width: 8px; height: 8px; background: #c4b5fd; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out; }

.mindi-chat-footer { padding: 1rem; background: white; border-top: 1px solid #f0f0f0; display: flex; gap: 10px; }
#mindiInput { flex: 1; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 12px; outline: none; }
#mindiInput:focus { border-color: var(--primary-purple); }
#mindiSendBtn { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-purple), var(--bright-blue)); color: white; border: none; cursor: pointer; font-size: 1rem; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer { background: linear-gradient(135deg, #000000 0%, #4e4e4e 100%); color: white; position: relative; overflow: hidden; margin-top: 3rem; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), rgba(24,179,255,0.5), transparent); }
footer::after { content: ''; position: absolute; bottom: -120px; right: -120px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%); pointer-events: none; }
.footer-content { display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 56px 0 40px;
    position: relative;
    z-index: 1;
    align-items: baseline;
    justify-items: center;
    margin: 20px;}
.footer-section h3 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 18px; color: #8262e5; position: relative; padding-bottom: 12px; }
.footer-section h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 2px; background: linear-gradient(90deg, #7c3aed, #18B3FF); border-radius: 2px; }
.footer-section p { font-size: 13.5px; line-height: 1.75; color: #94a3b8; margin-bottom: 16px; text-align: justify; }
.footer-section a { display: block; color: #e2e8f0; text-decoration: none; margin-bottom: 12px; font-size: 15px; transition: all 0.3s ease; padding: 5px 0; border-radius: 20px; }
.footer-section a:hover { color: #ffffffe6; padding-left: 13px; }
.contact-info { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 6px 0; }
.contact-info i { font-size: 16px; color: #7c3aed; width: 22px; flex-shrink: 0; }
.social-media { margin-top: 22px; }
.social-media h4 { font-size: 14px; margin-bottom: 14px; color: #e2e8f0; font-weight: 600; }
.social-links { display:flex; gap:12px; flex-wrap:wrap; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; text-decoration: none; color: white; transition: all 0.3s ease; }
.social-btn:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.social-btn i { font-size: 18px; }
.facebook  { background: #1877F2; }
.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.linkedin  { background: #0077B5; }
.tiktok    { background: linear-gradient(135deg, #010101, #333); }
.youtube   { background: #FF0000; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 22px 0; text-align: center; position: relative; z-index: 1; }
.footer-bottom p { font-size: 13px; color: #475569; margin: 0; }

/* Extras */
.profile-toast { position: fixed; bottom: -70px; left: 50%; transform: translateX(-50%); background: rgba(15,15,20,0.95); backdrop-filter: blur(12px); color: #fff; padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 30px rgba(0,0,0,0.4); z-index: 99999; transition: bottom 0.4s cubic-bezier(0.34,1.56,0.64,1); white-space: nowrap; }
.profile-toast.show { bottom: 28px; }
.profile-toast i { color: #22c55e; font-size: 16px; }
.session-alert { position: fixed; top: 20px; right: 20px; background: rgba(255,255,255,0.97); border-radius: 18px; padding: 18px 22px; display: none; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,0.18); z-index: 9999; border: 1px solid rgba(124,58,237,0.12); animation: slideIn 0.4s ease-out; }
.alert-content { display:flex; align-items:center; justify-content:space-between; }
.alert-content p { font-size: 1rem; color: #333; margin: 0; }
.alert-content a { text-decoration:none; color:var(--primary-purple); font-weight:700; margin-left:5px; }
@keyframes slideIn { from { right:-380px; opacity:0; } to { right:20px; opacity:1; } }
img.emoji { height: 1em !important; width: 1em !important; margin: 0 0.05em 0 0.1em !important; vertical-align: -0.15em !important; display: inline-block !important; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* FIX: footer 4 columnas → 2x2 sin desborde */
@media (max-width: 1024px) {
  .welcome-features { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  
   .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 16px;
        text-align: center;
    }
   
}


@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(22,22,22,0.98); backdrop-filter: blur(10px); flex-direction: column; padding: 1rem 0; gap: 0; display: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.active {         left: 60%;
        display: flex;
        background: #363636;
        border-radius: 12px;
        width: 40%;}
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 1rem; border-radius: 0; }
  .dropdown-menu { position: static; box-shadow: none; background: rgba(0,0,0,0.3); border-radius: 0; }

  .logo-img { height: 56px; width: 56px; }
  .logo-text { font-size: 20px; }
  .logo-text1 { font-size: 10px; }
  .btn-nav-login span, .btn-nav-register span { display: none; }
  .btn-nav-login, .btn-nav-register { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
  .avatar-btn { width: 46px; height: 46px; }
  .avatar-dropdown { right: -8px; width: 230px; }

  .test-hero { padding: 3rem 0 2.5rem; border-radius: 0 0 24px 24px; margin-bottom: 1.5rem; }
  .test-hero h1 { font-size: 1.8rem; }
  .test-hero p  { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .mascot-bubble { padding: 0.9rem 1.2rem; }
  .mascot-bubble span { font-size: 0.88rem; }

  main { padding-top: 90px; }
  .welcome-screen { padding: 2rem 1.25rem; }
  .welcome-screen h2 { font-size: 1.5rem; }

  .welcome-features { grid-template-columns: 1fr; gap: 1rem; }
  .feature-item { padding: 1.5rem 1.25rem; border-radius: 18px; min-height: unset; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto auto; column-gap: 1rem; align-items: center; }
  .feature-item .v2-icon-3d { grid-column: 1; grid-row: 1 / 3; align-self: center; margin-bottom: 0; font-size: 2.8rem; }
  .feature-item .badge { position: static; grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 4px; }
  .feature-item h4 { grid-column: 2; grid-row: 2; font-size: 0.98rem; margin-bottom: 4px; }
  .feature-item p { grid-column: 2; grid-row: 3; font-size: 0.82rem; margin-bottom: 10px; }
  .feature-item .v2-time-row, .feature-item .v2-ptrack { grid-column: 2; }
  .v2-card-foot { grid-column: 1 / -1; grid-row: 5; display: flex; margin-top: 1rem; }
  /* En móvil el botón sí ocupa todo el ancho */
  .go-button { flex: unset; width: 100%; padding: 12px 16px; font-size: 0.9rem; }

  .v2-stats-row { gap: 1.25rem; }
  .v2-stat-num { font-size: 1.6rem; }
  .v2-mindi-band { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem; }
  .v2-mindi-btn { width: 100%; }

  .mindi-chat-window { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: auto; border-radius: 0; z-index: 9998; }
  .mindi-widget { bottom: 15px; right: 15px; }
  .mindi-toggle-btn { width: 55px; height: 55px; font-size: 1.5rem; }

  .footer-content { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
  .footer-section h3 { font-size: 17px; }
  .footer-section p  { font-size: 13px; }
  .social-links { justify-content: flex-start; }
  .social-btn { width: 38px; height: 38px; border-radius: 10px; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .test-hero h1 { font-size: 1.5rem; }
  .mascot-bubble { padding: 0.75rem 1rem; }
  .welcome-screen h2 { font-size: 1.3rem; }
  .feature-item { padding: 1.25rem 1rem; }
  .feature-item h4 { font-size: 0.92rem; }
  .footer-section h3 { font-size: 15px; }
  .profile-toast { font-size: 13px; padding: 10px 18px; }
}

#imgs{
  width: 45px;
}
@media (max-width: 768px) {
.auth-zone {
        left: 18%;
}
#imgs{
  width: 60px;
}

}
@media (max-width: 768px) {
    footer {
        font-size: 12px;
    }
    .sent {
      display:none;
    }
    .styl{
      display:none;
    }
}