/* ============================================================
   HOMINI — HOME PAGE STYLES (Professional & Dynamic)
   ============================================================ */
:root {
  --hom-navy: #082359;
  --hom-navy-dark: #081A40;
  --hom-gold: #F2CD5E;
  --hom-gold-dark: #D9A23D;
  --hom-white: #FFFFFF;
  --hom-bg: #F2F2F2;
}

.homini-body {
  margin: 0;
  background-color: var(--hom-bg);
  font-family: 'Outfit', sans-serif;
  color: var(--hom-navy);
  overflow-x: hidden;
}

.homini-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--hom-navy-dark) 0%, #0c2045 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
  color: var(--hom-white);
}

.homini-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 205, 94, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: homini-pulse 8s infinite alternate;
}

@keyframes homini-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

.homini-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.homini-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.homini-hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.homini-hero-title span {
  background: linear-gradient(135deg, var(--hom-gold) 0%, var(--hom-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.homini-hero-p {
  font-size: 1.25rem;
  opacity: 0.85;
  margin-bottom: 40px;
  line-height: 1.6;
}

.homini-btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.homini-btn-primary {
  background: linear-gradient(135deg, var(--hom-gold) 0%, var(--hom-gold-dark) 100%);
  color: var(--hom-navy-dark);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(242, 205, 94, 0.3);
}

.homini-btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(242, 205, 94, 0.45);
}

.homini-btn-outline {
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--hom-white);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.homini-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--hom-white);
}

.homini-features {
  padding: 100px 20px;
  background-color: var(--hom-white);
}

.homini-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.homini-section-tag {
  color: var(--hom-gold-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 12px;
}

.homini-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hom-navy-dark);
}

.homini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.homini-card {
  background: #FFF;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #EEE;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.homini-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(8, 35, 89, 0.08);
  border-color: var(--hom-gold);
}

.homini-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(8, 35, 89, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--hom-gold-dark);
  transition: all 0.3s;
}

.homini-card:hover .homini-card-icon {
  background: var(--hom-navy);
  color: var(--hom-gold);
}

.homini-card-h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--hom-navy-dark);
}

.homini-card-p {
  color: #64748B;
  line-height: 1.6;
  font-size: 1rem;
}

.homini-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: homini-bounce 2s infinite;
}

@keyframes homini-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Steps Section */
.homini-steps {
  padding: 100px 20px;
  background-color: #F8F9FB;
}

.homini-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.homini-step-card {
  text-align: center;
  position: relative;
}

.homini-step-number {
  width: 50px;
  height: 50px;
  background: var(--hom-gold);
  color: var(--hom-navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(242, 205, 94, 0.3);
}

.homini-step-h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--hom-navy-dark);
}

.homini-step-p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* Split Layout */
.homini-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  padding: 100px 20px;
  background-color: var(--hom-white);
}

.homini-split-content,
.homini-split-image {
  flex: 1;
  min-width: 300px;
}

.homini-split-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--hom-navy-dark);
  margin-bottom: 20px;
}

.homini-split-content p {
  font-size: 1.1rem;
  color: #64748B;
  line-height: 1.8;
  margin-bottom: 20px;
}

.homini-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.homini-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--hom-navy);
}

.homini-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hom-white);
  background: var(--hom-gold-dark);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.homini-illustration {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

/* Community Pillars */
.homini-pillars {
  padding: 100px 20px;
  background-color: var(--hom-navy-dark);
  color: var(--hom-white);
}

.homini-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.homini-pillar-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s;
}

.homini-pillar-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  border-color: var(--hom-gold);
}

/* Stats Bar */
.homini-stats-bar {
  padding: 60px 20px;
  background-color: var(--hom-gold-dark);
  color: var(--hom-navy-dark);
}

.homini-stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.homini-stat-item {
  text-align: center;
}

.homini-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 5px;
}

.homini-stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Reveal Animation */
.homini-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.homini-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Helper for staggered delay */
.homini-delay-1 { transition-delay: 0.2s; }
.homini-delay-2 { transition-delay: 0.4s; }
.homini-delay-3 { transition-delay: 0.6s; }
.homini-delay-4 { transition-delay: 0.8s; }

/* ============================================================
   REGISTER PAGE — STYLES (rediseno claro / dorado brillante)
   Prefijo de clases: regis
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   PAGINA BASE
   ============================================================ */

.regis-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background: #f2f2f2;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   PANEL IZQUIERDO — decorativo
   ============================================================ */

.regis-panel-left {
  flex: 0 0 42%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: linear-gradient(155deg, #082359 0%, #081a40 60%, #0a2060 100%);
  overflow: hidden;
}

/* Brillo radial dorado sobre el panel */
.regis-panel-left::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 205, 94, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.regis-panel-left::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217, 162, 61, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Geometria decorativa */
.regis-deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242, 205, 94, 0.15);
  pointer-events: none;
}

.regis-deco-ring-1 {
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: regis-spin-slow 18s linear infinite;
}

.regis-deco-ring-2 {
  width: 340px;
  height: 340px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: dashed;
  animation: regis-spin-slow 30s linear infinite reverse;
}

@keyframes regis-spin-slow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.regis-panel-logo-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
}

.regis-panel-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(242, 205, 94, 0.5));
  animation: regis-logo-float 4s ease-in-out infinite;
}

@keyframes regis-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.regis-panel-logo-fallback {
  display: none;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(242, 205, 94, 0.1);
  border: 2px solid rgba(242, 205, 94, 0.35);
  align-items: center;
  justify-content: center;
}

.regis-panel-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}

.regis-panel-heading h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.regis-panel-heading h2 span {
  background: linear-gradient(135deg, #f2cd5e, #f8e090, #d9a23d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(242, 205, 94, 0.4));
}

.regis-panel-heading p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Separador dorado */
.regis-panel-divider {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d9a23d, #f2cd5e, #d9a23d);
  border-radius: 4px;
  margin: 24px auto;
  box-shadow: 0 2px 12px rgba(242, 205, 94, 0.5);
}

/* Indicadores de beneficios */
.regis-panel-benefits {
  position: relative;
  z-index: 2;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.regis-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.regis-benefit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2cd5e, #d9a23d);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(242, 205, 94, 0.6);
}

/* ============================================================
   PANEL DERECHO — formulario
   ============================================================ */

.regis-panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: #f2f2f2;
  overflow-y: auto;
}

.regis-form-wrap {
  width: 100%;
  max-width: 560px;
}

/* Cabecera del formulario (solo visible en movil) */
.regis-form-header-mobile {
  display: none;
  text-align: center;
  margin-bottom: 28px;
}

.regis-form-header-mobile h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #082359;
  letter-spacing: -0.02em;
}

.regis-form-header-mobile h1 span {
  background: linear-gradient(135deg, #d9a23d, #f2cd5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.regis-form-header-mobile p {
  font-size: 0.84rem;
  color: #6b7280;
  margin-top: 4px;
}

/* ============================================================
   FORMULARIO
   ============================================================ */

.regis-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #d9a23d;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.regis-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 162, 61, 0.3), transparent);
}

.regis-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.regis-form-section {
  margin-bottom: 24px;
}

.regis-row-gap {
  margin-top: 18px;
}

.regis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.regis-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.regis-row .regis-field {
  margin-bottom: 0;
}

.regis-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #082359;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   INPUTS
   ============================================================ */

.regis-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.regis-input-icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: #d9a23d;
  pointer-events: none;
  transition: color 0.2s;
  flex-shrink: 0;
}

.regis-input {
  width: 100%;
  padding: 12px 13px 12px 38px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.91rem;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  box-shadow: 0 1px 3px rgba(8, 35, 89, 0.05);
}

.regis-input::placeholder {
  color: #94a3b8;
}

.regis-input:focus {
  border-color: #f2cd5e;
  box-shadow:
    0 0 0 3px rgba(242, 205, 94, 0.22),
    0 1px 6px rgba(217, 162, 61, 0.12);
  background: #fffdf5;
}

.regis-input-wrap:focus-within .regis-input-icon {
  color: #d9a23d;
}

.regis-select {
  width: 100%;
  padding: 12px 36px 12px 38px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.91rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.22s,
    box-shadow 0.22s,
    background 0.22s;
  box-shadow: 0 1px 3px rgba(8, 35, 89, 0.05);
}

.regis-select option {
  color: #1e293b;
  background: #ffffff;
}

.regis-select:focus {
  border-color: #f2cd5e;
  box-shadow:
    0 0 0 3px rgba(242, 205, 94, 0.22),
    0 1px 6px rgba(217, 162, 61, 0.12);
  background: #fffdf5;
}

.regis-select-arrow {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 15px;
  color: #d9a23d;
  pointer-events: none;
}

/* Campo telefono con indicativo de solo lectura */
.regis-phone-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition:
    border-color 0.22s,
    box-shadow 0.22s;
  box-shadow: 0 1px 3px rgba(8, 35, 89, 0.05);
}

.regis-phone-wrap:focus-within {
  border-color: #f2cd5e;
  box-shadow:
    0 0 0 3px rgba(242, 205, 94, 0.22),
    0 1px 6px rgba(217, 162, 61, 0.12);
}

.regis-phone-prefix-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 13px;
  height: 100%;
  white-space: nowrap;
  color: #082359;
  font-size: 0.88rem;
  font-weight: 600;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  min-width: 66px;
  user-select: none;
  flex-shrink: 0;
}

.regis-phone-prefix-display svg {
  width: 14px;
  height: 14px;
  color: #d9a23d;
  flex-shrink: 0;
}

.regis-phone-input {
  flex: 1;
  padding: 12px 13px;
  background: transparent;
  border: none;
  outline: none;
  color: #1e293b;
  font-size: 0.91rem;
  font-family: inherit;
}

.regis-phone-input::placeholder {
  color: #94a3b8;
}

/* Toggle contrasena */
.regis-toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #94a3b8;
  transition: color 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.regis-toggle-pass:hover {
  color: #d9a23d;
}

.regis-toggle-pass svg {
  width: 17px;
  height: 17px;
}

/* Estados de validacion */
.regis-input.regis-input-error,
.regis-select.regis-input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.regis-input.regis-input-valid,
.regis-select.regis-input-valid {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.regis-phone-wrap.regis-phone-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.regis-phone-wrap.regis-phone-valid {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* ============================================================
   FUERZA DE CONTRASENA
   ============================================================ */

.regis-strength {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.regis-strength-bars {
  display: flex;
  gap: 4px;
}

.regis-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: #e2e8f0;
  transition: background 0.32s ease;
}

.regis-strength-bar.regis-bar-active-1 {
  background: #ef4444;
}
.regis-strength-bar.regis-bar-active-2 {
  background: #f97316;
}
.regis-strength-bar.regis-bar-active-3 {
  background: #f2cd5e;
}
.regis-strength-bar.regis-bar-active-4 {
  background: #22c55e;
}

.regis-strength-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  min-height: 14px;
  transition: color 0.3s;
}

/* Requisitos */
.regis-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 4px;
}

.regis-req {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  color: #94a3b8;
  transition: color 0.25s ease;
}

.regis-req-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: color 0.25s ease;
  color: #cbd5e1;
}

.regis-req.regis-req-met {
  color: #16a34a;
}

.regis-req.regis-req-met .regis-req-icon {
  color: #22c55e;
}

/* ============================================================
   BOTON PRINCIPAL
   ============================================================ */

.regis-btn {
  position: relative;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(
    135deg,
    #d9a23d 0%,
    #f2cd5e 45%,
    #f8e090 70%,
    #d9a23d 100%
  );
  background-size: 200% 200%;
  animation: regis-btn-shimmer 3s ease infinite;
  border: none;
  border-radius: 10px;
  color: #082359;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow:
    0 4px 18px rgba(217, 162, 61, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  margin-top: 4px;
}

@keyframes regis-btn-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.regis-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -110%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}

.regis-btn:hover::before {
  left: 160%;
}

.regis-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(217, 162, 61, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.regis-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(217, 162, 61, 0.35);
}

.regis-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.regis-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(8, 35, 89, 0.25);
  border-top-color: #082359;
  border-radius: 50%;
  animation: regis-spin 0.65s linear infinite;
  margin: 0 auto;
}

.regis-btn.regis-btn-loading .regis-btn-text {
  display: none;
}
.regis-btn.regis-btn-loading .regis-btn-spinner {
  display: block;
}

@keyframes regis-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   PIE DEL FORMULARIO
   ============================================================ */

.regis-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.84rem;
  color: #64748b;
}

.regis-footer a {
  color: #d9a23d;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.regis-footer a:hover {
  color: #082359;
  text-decoration: underline;
}

/* ============================================================
   MODAL
   ============================================================ */

.regis-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 64, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.regis-modal-overlay.regis-modal-open {
  opacity: 1;
  visibility: visible;
}

.regis-modal {
  background: #ffffff;
  border: 1px solid rgba(242, 205, 94, 0.4);
  border-radius: 18px;
  padding: 44px 36px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow:
    0 24px 64px rgba(8, 26, 64, 0.2),
    0 4px 16px rgba(8, 26, 64, 0.08);
  transform: scale(0.88) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.regis-modal-overlay.regis-modal-open .regis-modal {
  transform: scale(1) translateY(0);
}

.regis-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #d9a23d,
    #f2cd5e,
    #d9a23d,
    transparent
  );
  border-radius: 0 0 4px 4px;
}

.regis-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(242, 205, 94, 0.15),
    rgba(217, 162, 61, 0.12)
  );
  border: 2px solid rgba(217, 162, 61, 0.4);
  margin: 0 auto 20px;
  animation: regis-icon-pop 0.45s 0.15s cubic-bezier(0.34, 1.5, 0.64, 1) both;
}

@keyframes regis-icon-pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.regis-modal-icon svg {
  width: 34px;
  height: 34px;
  color: #d9a23d;
}

.regis-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #082359;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.regis-modal-text {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 26px;
}

.regis-modal-text strong {
  color: #d9a23d;
  font-weight: 700;
}

.login-toggle-pass {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  z-index: 5;
}

.login-toggle-pass:hover {
  color: #d9a23d;
}

.login-toggle-pass svg {
  width: 18px;
  height: 18px;
}

.regis-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.regis-modal-btn-primary {
  padding: 13px 24px;
  background: linear-gradient(135deg, #d9a23d, #f2cd5e, #d9a23d);
  background-size: 200% 200%;
  animation: regis-btn-shimmer 3s ease infinite;
  border: none;
  border-radius: 10px;
  color: #082359;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(217, 162, 61, 0.4);
}

.regis-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 162, 61, 0.55);
}

.regis-modal-btn-secondary {
  padding: 12px 24px;
  background: transparent;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.regis-modal-btn-secondary:hover {
  border-color: #d9a23d;
  color: #d9a23d;
  background: rgba(217, 162, 61, 0.04);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .regis-page {
    flex-direction: column;
  }

  .regis-panel-left {
    flex: none;
    width: 100%;
    padding: 40px 24px 36px;
    min-height: 280px;
  }

  .regis-deco-ring-1,
  .regis-deco-ring-2 {
    display: none;
  }

  .regis-panel-benefits {
    display: none;
  }

  .regis-panel-right {
    padding: 32px 20px 40px;
  }

  .regis-form-header-mobile {
    display: block;
  }

  .regis-panel-heading {
    display: none;
  }

  .regis-panel-divider {
    display: none;
  }
}

@media (max-width: 560px) {
  .regis-row {
    grid-template-columns: 1fr;
  }

  .regis-requirements {
    grid-template-columns: 1fr;
  }

  .regis-panel-right {
    padding: 24px 16px 36px;
  }
}

/* ============================================================
   LOGIN PAGE — STYLES (Navy & Gold Premium)
   Prefijo de clases: login
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  font-family: "Outfit", sans-serif;
  background: #f2f2f2;
  position: relative;
  overflow: hidden;
}

/* Panel Izquierdo Decorativo */
.login-panel-left {
  flex: 0 0 45%;
  background: linear-gradient(155deg, #082359 0%, #081a40 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.login-panel-left::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(242, 205, 94, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.login-deco-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(242, 205, 94, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.login-logo-anim {
  width: 140px;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
  animation: login-float 5s ease-in-out infinite;
  position: relative;
  z-index: 5;
}

@keyframes login-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.login-panel-info {
  text-align: center;
  position: relative;
  z-index: 5;
}

.login-panel-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.login-panel-info h2 span {
  color: #f2cd5e;
}

.login-panel-info p {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 320px;
  margin: 0 auto;
}

/* Panel Derecho Formulario */
.login-panel-right {
  flex: 1;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 50px 45px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(8, 35, 89, 0.08);
  border: 1px solid rgba(8, 35, 89, 0.05);
}

.login-header {
  margin-bottom: 35px;
}

.login-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #081a40;
  letter-spacing: -1px;
}

.login-header p {
  font-size: 0.9rem;
  color: #777;
  margin-top: 5px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #081a40;
  margin-left: 2px;
}

.login-input-group {
  position: relative;
}

.login-input {
  width: 100%;
  background: #f8f9fb;
  border: 2px solid #eee;
  padding: 14px 45px 14px 48px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #081a40;
  transition: all 0.3s;
}

.login-input:focus {
  outline: none;
  background: #fff;
  border-color: #f2cd5e;
  box-shadow: 0 0 0 4px rgba(242, 205, 94, 0.15);
}

.login-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  transition: color 0.3s;
}

.login-input:focus + .login-icon {
  color: #d9a23d;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -5px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
}

.login-forgot {
  font-size: 0.85rem;
  color: #d9a23d;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.login-forgot:hover {
  color: #082359;
}

.login-btn {
  background: linear-gradient(135deg, #082359 0%, #081a40 100%);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  box-shadow: 0 10px 25px rgba(8, 35, 89, 0.2);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(8, 35, 89, 0.3);
  background: #081a40;
}

.login-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #777;
}

.login-footer a {
  color: #d9a23d;
  text-decoration: none;
  font-weight: 800;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 900px) {
  .login-page {
    flex-direction: column;
  }
  .login-panel-left {
    flex: none;
    width: 100%;
    min-height: 250px;
    padding: 40px;
  }
  .login-panel-info h2 {
    font-size: 1.8rem;
  }
  .login-panel-info p {
    display: none;
  }
  .login-box {
    box-shadow: none;
    background: transparent;
    padding: 20px;
  }
  .login-panel-right {
    background: #f2f2f2;
  }
}

/* ============================================================ 
   DASHBOARD UI COMPONENTS (styles.css)
   ============================================================ */

/* Dropdown User Menu */
.dasini-user-dropdown {
  position: relative;
  z-index: 1000;
}

.dasini-user-trigger {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8f9fb;
  padding: 8px 8px 8px 18px;
  border-radius: 50px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s;
}

.dasini-user-trigger:hover {
  background: #ffffff;
  border-color: #f2cd5e;
  box-shadow: 0 5px 15px rgba(8, 35, 89, 0.05);
}

.dasini-dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(8, 26, 64, 0.15);
  border: 1px solid rgba(8, 35, 89, 0.08);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.dasini-user-dropdown.dasini-active .dasini-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dasini-dropdown-header {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 10px;
}

.dasini-drop-name {
  font-weight: 800;
  color: #081a40;
  font-size: 0.95rem;
  margin: 0;
  text-transform: uppercase;
}

.dasini-drop-email {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.dasini-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dasini-dropdown-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  transition: all 0.2s;
}

.dasini-dropdown-list li a:hover {
  background: #f8f9fb;
  color: #082359;
}

.dasini-drop-logout a {
  color: #e74c3c !important;
}

.dasini-drop-logout a:hover {
  background: #fff5f5 !important;
}

/* Alineacion Header Right */
.dasini-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Fix avatar alignment */
.dasini-avatar-wrapper {
  display: flex;
  align-items: center;
}

/* Dashboard Content Styles */
.das-content {
  background: #f8f9fb;
  min-height: 100vh;
}

/* Uppercase name in header trigger */
.dasini-user-name {
  text-transform: uppercase;
}

.das-container {
  padding-bottom: 50px;
}

.das-grid-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .das-grid-demo {
    grid-template-columns: 1fr;
  }
}

/* ============================================================ 
   DASHBOARD UPGRADE PAGE (dasupg)
   ============================================================ */

.dasupg-header {
  margin-bottom: 50px;
  max-width: 850px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.dasupg-header h1 {
  font-size: 2.6rem;
  font-weight: 950;
  color: #082359;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.dasupg-summary-card {
  background: linear-gradient(135deg, #082359, #1a3c7e);
  color: white;
  padding: 40px;
  border-radius: 35px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 25px 50px rgba(8, 35, 89, 0.2);
  position: relative;
  overflow: hidden;
}

.dasupg-summary-card::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 250px; height: 250px;
  background: rgba(242, 205, 94, 0.1); border-radius: 50%;
}

.dasupg-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 950px;
  margin: 0 auto;
}

.dasupg-card {
  background: #FFF;
  border: 1px solid #E5E9F0;
  border-radius: 30px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dasupg-card:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 35px rgba(8, 35, 89, 0.08);
}

.dasupg-card.is-company {
  background: #082359;
  color: white;
  border: none;
}

.dasupg-card.is-company .dasupg-target-name { color: #F2CD5E; }
.dasupg-card.is-company .dasupg-avatar-circle { background: #F2CD5E; color: #082359; }

.dasupg-avatar-circle {
  width: 65px; height: 65px; border-radius: 20px; 
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.4rem; background: #F4F7FB; color: #082359;
  flex-shrink: 0;
}

.dasupg-card-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 25px;
}

.dasupg-details { flex: 1; }
.dasupg-target-name { font-weight: 850; font-size: 1.25rem; display: block; }
.dasupg-target-subtitle { display: block; font-size: 0.9rem; opacity: 0.7; margin-top: 2px; }

.dasupg-bank-select-wrap { min-width: 280px; }
.dasupg-bank-select {
  width: 100%; padding: 14px 20px; border-radius: 16px; border: 2px solid #F1F5F9;
  background: #F8FAFC; color: #082359 !important; font-weight: 700; font-size: 0.9rem; cursor: pointer; outline: none;
}

.dasupg-bank-select option {
  background: #FFF;
  color: #082359;
  padding: 10px;
}

.is-company .dasupg-bank-select { background: rgba(255,255,255,0.08); color: white !important; border-color: rgba(255,255,255,0.1); }
.is-company .dasupg-bank-select option { background: #082359; color: white; }

.dasupg-card-action { min-width: 160px; text-align: right; }

.dasupg-btn-confirm {
  background: #F2CD5E; color: #082359; border: none; padding: 14px 30px;
  border-radius: 16px; font-weight: 900; cursor: pointer; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.85rem;
}

.dasupg-btn-confirm:disabled {
  background: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dasupg-btn-confirm:hover:not(:disabled) { background: #e0bc4b; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(242, 205, 94, 0.3); }

.dasupg-anchored {
  border: 2px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.02) !important;
  position: relative;
}

.dasupg-anchored::after {
  content: 'Vínculo Asegurado';
  position: absolute; top: -12px; right: 30px;
  background: #10B981; color: white; padding: 6px 16px;
  border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase;
}

.dasupg-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(8, 35, 89, 0.85); backdrop-filter: blur(12px);
  z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px;
}

.dasupg-modal.active { display: flex; animation: modalFadeIn 0.3s ease; }

.dasupg-modal-content {
  background: #FFF; width: 100%; max-width: 550px; border-radius: 40px; padding: 50px;
  position: relative; box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  text-align: center;
}

/* Modal Ticket (Subir Comprobante) Improved */
.dasupg-upload-area {
  border: 3px dashed #E2E8F0;
  border-radius: 25px;
  padding: 40px 20px;
  background: #F8FAFC;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  margin-bottom: 25px;
}

.dasupg-upload-area:hover {
  border-color: #F2CD5E;
  background: #FFF;
}

.dasupg-upload-icon {
  width: 50px; height: 50px; background: #082359; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px;
}

.dasupg-upload-text {
  font-weight: 700; color: #082359; font-size: 1rem; display: block;
}

.dasupg-upload-hint {
  font-size: 0.8rem; color: #94A3B8; margin-top: 5px; display: block;
}

.dasupg-file-input {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}

.dasupg-disclaimer {
  background: #FFF9E6; border: 1px solid #FFEBB3; color: #856404;
  padding: 15px; border-radius: 16px; font-size: 0.85rem; font-weight: 600;
  text-align: left; margin-bottom: 25px; display: flex; gap: 10px;
}

/* Notificaciones Header */
.dasini-notifications { position: relative; }
.dasini-badge {
    position: absolute; top: -5px; right: -5px;
    background: #FF4D4D; color: white; border-radius: 50%;
    width: 18px; height: 18px; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #FFF;
}

.dasini-notif-menu {
    position: absolute; top: calc(100% + 15px); right: 0;
    width: 320px; background: #FFF; border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 1px solid #E2E8F0;
    z-index: 1000; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dasini-notif-menu.active {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.dasini-notif-header {
    padding: 20px; border-bottom: 1px solid #F1F5F9;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 800; color: #082359;
}

.dasini-notif-count {
    background: #E0E7FF; color: #4338CA;
    padding: 4px 10px; border-radius: 20px; font-size: 11px;
}

.dasini-notif-list { max-height: 350px; overflow-y: auto; }

.dasini-notif-item {
    padding: 15px 20px; border-bottom: 1px solid #F8FAFC;
    transition: background 0.2s; cursor: pointer; display: flex; gap: 12px;
}

.dasini-notif-item:last-child { border-bottom: none; }
.dasini-notif-item:hover { background: #F8FAFC; }

.dasini-notif-title { font-weight: 700; color: #082359; font-size: 0.9rem; margin-bottom: 4px; }
.dasini-notif-text { font-size: 0.8rem; color: #64748B; line-height: 1.4; margin-bottom: 6px; }
.dasini-notif-time { font-size: 10px; color: #94A3B8; font-weight: 600; }

.dasini-notif-empty { padding: 40px 20px; text-align: center; color: #94A3B8; font-size: 0.85rem; }

.dasini-notif-footer {
    padding: 15px; text-align: center; border-top: 1px solid #F1F5F9;
}

.dasini-notif-footer a {
    color: #4338CA; font-weight: 700; font-size: 0.85rem; text-decoration: none;
}

/* Fix Email Wrap in Dropdown */
.dasini-drop-email {
    font-size: 11px !important; color: #94A3B8 !important;
    word-break: break-all; white-space: normal; line-height: 1.3;
    max-width: 100%; display: block; margin-top: 4px;
}

.dasupg-btn-green {
    background: #10B981; color: #FFF; border: none; padding: 15px;
    border-radius: 12px; font-weight: 800; font-size: 0.9rem; cursor: pointer;
    transition: all 0.3s; width: 100%; text-transform: uppercase;
}
.dasupg-btn-green:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); }

.dasupg-btn-orange {
    background: #F59E0B; color: #FFF; border: none; padding: 15px;
    border-radius: 12px; font-weight: 800; font-size: 0.9rem; cursor: pointer;
    transition: all 0.3s; width: 100%; text-transform: uppercase;
}
.dasupg-btn-orange:hover { background: #D97706; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2); }

@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Wide Modal Detail Professional Overhaul */
#modalNotifDetail .dasupg-modal-content {
    background: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(8, 26, 64, 0.25);
    border: 1px solid rgba(8, 35, 89, 0.05);
    overflow: hidden;
    padding: 0 !important;
    max-width: 950px;
    width: 95%;
}

@media (min-width: 992px) {
    #modalNotifDetail .dasupg-modal-content {
        display: flex;
        flex-direction: row;
        min-height: 500px;
    }
    #modalNotifDetail .modal-left-col {
        flex: 1.2;
        padding: 40px;
        display: flex;
        flex-direction: column;
    }
    #modalNotifDetail .modal-right-col {
        flex: 0.8;
        background: #F8FAFC;
        border-left: 1px solid #EDF2F7;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
}

@media (max-width: 991px) {
    #modalNotifDetail .modal-left-col,
    #modalNotifDetail .modal-right-col {
        padding: 30px 20px;
    }
    #modalNotifDetail .modal-right-col {
        background: #F8FAFC;
        border-top: 1px solid #EDF2F7;
    }
}

/* Modal Internal Elements */
#notifDetailIcon {
    width: 60px; height: 60px; border-radius: 18px;
    background: #082359; color: #F2CD5E;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
#notifDetailTitle { font-size: 1.6rem; font-weight: 900; color: #081A40; margin: 0 0 10px 0; }
#notifDetailBody { color: #64748B; line-height: 1.7; font-size: 1rem; margin-bottom: 25px; }

/* Receipt Styling */
.notif-receipt-preview {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #FFF;
    border: 2px solid #FFF;
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}
.notif-receipt-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.notif-receipt-preview:hover { transform: scale(1.02); }

/* Header Dropdown Mobile Fix */
@media (max-width: 576px) {
    .dasini-notif-menu {
        width: 320px !important;
        right: -60px !important;
        position: fixed !important;
        top: 70px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px);
    }
    .dasini-notif-menu.active { transform: translateX(-50%) translateY(0); }
}

/* Overlay Zoom */
.notif-zoom-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 26, 64, 0.98); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 20px; cursor: zoom-out;
    backdrop-filter: blur(15px);
}
.notif-zoom-overlay.active { display: flex; animation: modalFadeIn 0.3s; }
.notif-zoom-overlay img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

.dasupg-avatar-circle.company {
    background: #082359;
    color: #f2cd5e;
}

.dasupg-avatar-circle.user {
  background: #f1f5f9;
  color: #64748b;
}

.dasupg-details {
  display: flex;
  flex-direction: column;
}

.dasupg-target-name {
  display: block;
  font-weight: 700;
  color: #081a40;
  font-size: 1.1rem;
}

.dasupg-amount {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Modal Wide Loading Overlay */
.modal-loading-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 100; flex-direction: column; gap:15px;
}
.modal-loading-overlay.active { display: flex; animation: modalFadeIn 0.3s; }
.modal-loading-overlay .spinner {
    width: 40px; height: 40px;
    border: 4px solid #F1F5F9;
    border-top-color: #082359;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}
.modal-loading-overlay span { color: #082359; font-weight: 800; font-size: 0.9rem; letter-spacing: 1px; }

/* Loading States for Buttons */
.dasupg-btn-green.is-loading, .dasupg-btn-orange.is-loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
}
.dasupg-btn-green.is-loading::after, .dasupg-btn-orange.is-loading::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    top: 50%; left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFF;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin { to { transform: rotate(360deg); } }

.dasupg-btn-pay {
  background: #082359;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.dasupg-btn-pay:hover {
  background: #f2cd5e;
  color: #082359;
  box-shadow: 0 5px 15px rgba(242, 205, 94, 0.3);
}

.dasupg-footer-notice {
  margin-top: 30px;
  color: #94a3b8;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .dasupg-card {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .dasupg-card-info {
    flex-direction: column;
  }

  .dasupg-btn-pay {
    width: 100%;
  }
}

/* ============================================================ 
   DASHBOARD PROFILE PAGE (hompro)
   ============================================================ */

.hompro-profile-header-new {
  display: flex;
  align-items: center;
  gap: 30px;
  background: linear-gradient(to right, #ffffff, #fdfaef);
  border-left: 6px solid #f2cd5e;
}

.hompro-avatar-initials {
  width: 100px;
  height: 100px;
  background: #082359;
  color: #f2cd5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(8, 35, 89, 0.15);
  border: 4px solid #fff;
  transition: all 0.3s;
}

.hompro-avatar-initials:hover {
  transform: scale(1.05) rotate(-2deg);
}

.dasini-avatar-initials {
  width: 42px;
  height: 42px;
  background: #082359;
  color: #f2cd5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(8, 35, 89, 0.1);
}

.hompro-info-side {
  flex: 1;
}

.hompro-user-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: #081a40;
  margin-bottom: 5px;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

.hompro-wrapper {
  display: flex;
  gap: 30px;
  align-items: start;
}

.hompro-main {
  flex: 1;
}

.hompro-sidebar {
  width: 350px;
  position: sticky;
  top: 20px;
}

@media (max-width: 1024px) {
  .hompro-wrapper {
    flex-direction: column;
  }
  .hompro-sidebar {
    width: 100%;
    position: static;
  }
}

.hompro-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(8, 26, 64, 0.05);
  padding: 35px;
  border: 1px solid rgba(8, 35, 89, 0.03);
  margin-bottom: 30px;
}

.hompro-header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hompro-title {
  font-size: 1.4rem;
  font-weight: 850;
  color: #081a40;
  margin: 0;
}

.hompro-grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .hompro-grid-form {
    grid-template-columns: 1fr;
  }
}

.hompro-field {
  margin-bottom: 15px;
}

.hompro-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hompro-input {
  width: 100%;
  background: #f8f9fb;
  border: 1px solid #e2e8f0;
  padding: 14px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #081a40;
  transition: all 0.3s;
}

.hompro-input:focus {
  outline: none;
  border-color: #082359;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 35, 89, 0.05);
}

.hompro-input:disabled {
  background: #edf2f7;
  cursor: not-allowed;
  color: #a0aec0;
}

.hompro-input-wrap {
  position: relative;
  width: 100%;
}

.hompro-toggle-pass {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: color 0.3s;
}

.hompro-toggle-pass:hover {
  color: #082359;
}

.hompro-toggle-pass svg {
  width: 100%;
  height: 100%;
}

.hompro-btn {
  background: #082359;
  color: #f2cd5e;
  border: none;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.hompro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(8, 35, 89, 0.2);
}

.hompro-btn.is-loading {
  position: relative !important;
  color: transparent !important;
  pointer-events: none !important;
}

.hompro-btn.is-loading::after {
  content: "" !important;
  position: absolute !important;
  width: 20px !important;
  height: 20px !important;
  top: 50% !important;
  left: 50% !important;
  margin: -10px 0 0 -10px !important;
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: btn-spin 0.6s linear infinite !important;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Professional Static Info Grid */
.hompro-grid-info-static {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  padding-top: 10px;
}

.hompro-static-item {
  background: #f9fafb;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s;
}

.hompro-static-item:hover {
  background: #ffffff;
  border-color: #082359;
  box-shadow: 0 10px 25px rgba(8, 35, 89, 0.04);
}

.hompro-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hompro-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 10px;
  color: #082359;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.hompro-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.hompro-static-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #081a40;
  margin: 0;
  padding-left: 0;
}

.hompro-bank-card-empty {
  padding: 40px;
  text-align: center;
  background: #fff;
  border: 2px dashed #f1f5f9;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hompro-bank-card-empty p {
  color: #64748b;
  font-weight: 600;
}

.hompro-bank-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 5px;
}

.hompro-bank-badge.active {
  background: #e8f5e9;
  color: #2e7d32;
}
.hompro-bank-badge.status-pendiente {
  background: rgba(242, 205, 94, 0.15);
  color: #b08d23;
}
.status-en_proceso {
  background: rgba(52, 152, 219, 0.15);
  color: #2980b9;
}
.status-resuelto {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}
.hompro-bank-badge.pending {
  background: #fff3e0;
  color: #ef6c00;
}
.hompro-bank-badge.rejected {
  background: #ffebee;
  color: #c62828;
}

.hompro-bank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.hompro-bank-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.hompro-bank-card:hover {
  transform: translateY(-5px);
  border-color: #082359;
  box-shadow: 0 15px 30px rgba(8, 35, 89, 0.1);
}

.hompro-bank-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 850;
  color: #081a40;
  letter-spacing: -0.5px;
}

.hompro-bank-info p {
  margin: 5px 0 0;
  font-size: 0.85rem;
  color: #64748b;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 1px;
}

.hompro-bank-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.hompro-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #64748b;
}

.hompro-action-btn:hover {
  border-color: #082359;
  color: #082359;
  background: #f8fafc;
}

.hompro-action-btn.delete:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* Profile Sidebar Card */
.hompro-side-profile {
  text-align: center;
}

.hompro-avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid #f1f5f9;
}

.hompro-side-name {
  font-weight: 850;
  font-size: 1.2rem;
  color: #081a40;
  margin-bottom: 5px;
}

.hompro-side-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #27ae60;
  color: #fff;
}

/* Banking Modal */
.hompro-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 64, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.hompro-modal.active {
  display: flex;
}

.hompro-modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  padding: 35px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hompro-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
}

/* SUPPORT AREA STYLES */
.hompro-support-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .hompro-support-grid {
    grid-template-columns: 1fr;
  }
}

.hompro-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .hompro-form-grid {
    grid-template-columns: 1fr;
  }
  .hompro-form-actions {
    justify-content: center !important;
  }
  .hompro-form-actions button {
    width: 100%;
  }
}

.hompro-support-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-info-card {
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  border-left: 5px solid #f2cd5e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.support-info-card h4 {
  color: #082359;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.support-info-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hompro-textarea {
  width: 100%;
  min-height: 150px;
  background: #f8f9fb;
  border: 2px solid #e2e8f0;
  padding: 15px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #081a40;
  resize: vertical;
  transition: all 0.3s;
}

.hompro-textarea:focus {
  outline: none;
  border-color: #082359;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 35, 89, 0.05);
}

/* ============================================================ 
   REFERRALS TABLE — STYLES (lsrefe)
   ============================================================ */

.lsrefe-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.lsrefe-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
}

.lsrefe-table th {
  background: #f8f9fb;
  padding: 20px 25px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1.2px;
  border-bottom: 1px solid #edf2f7;
}

.lsrefe-table td {
  padding: 22px 25px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  transition: all 0.2s;
}

.lsrefe-table tr:last-child td {
  border-bottom: none;
}

.lsrefe-table tr:hover td {
  background: #f9fbff;
}

.lsrefe-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge States */
.lsrefe-badge-plus {
  background: #fff9e6;
  color: #b08d23;
  border: 1px solid rgba(242, 205, 94, 0.3);
}

.lsrefe-badge-free {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.lsrefe-badge-active {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.lsrefe-badge-inactive {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.lsrefe-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .lsrefe-table th,
  .lsrefe-table td {
    padding: 15px 15px;
  }
}

/* ============================================================ 
   UPLINE LIST � STYLES (upline) 
   ============================================================ */
.upline-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}
.upline-item {
  background: #ffffff;
  border: 1px solid rgba(8, 35, 89, 0.08);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: all 0.3s ease;
}
.upline-item:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(8, 35, 89, 0.05);
  border-color: #f2cd5e;
}
.upline-level {
  width: 36px;
  height: 36px;
  background: #f8f9fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #082359;
  font-size: 0.8rem;
  flex-shrink: 0;
  border: 2px solid #f1f5f9;
}
.upline-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #082359, #0a2e7a);
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.upline-info {
  flex: 1;
}
.upline-name {
  font-weight: 800;
  color: #081a40;
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.upline-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.upline-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.upline-badge-plus {
  background: #fff9e6;
  color: #b08d23;
  border: 1px solid rgba(242, 205, 94, 0.3);
}
.upline-badge-free {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ============================================================ 
   CUSTOM DIAGRAM TREE (diagrama.php) 
   ============================================================ */
.header-info-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 5px;
}
.header-text .header-title {
  margin: 0;
  font-size: 1.8rem;
  color: #082359;
  font-weight: 800;
}
.header-text .header-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.diagr-header-icon {
  background: #082359;
  color: #f2cd5e;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(8, 35, 89, 0.15);
  animation: pulse-diagr 2s infinite;
}

@keyframes pulse-diagr {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 205, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(242, 205, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 205, 94, 0);
  }
}

.diagr-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 30px;
  min-height: 400px;
  box-shadow: 0 25px 50px -12px rgba(8, 35, 89, 0.05);
  margin-top: 25px;
  position: relative;
  overflow: hidden;
}

.diagr-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(242, 205, 94, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* CUSTOM TREE COMPONENT */
.mof-tree-wrapper {
  padding: 10px 0;
  width: 100%;
  overflow-x: auto;
  position: relative;
}

/* Scrollbar para el contenedor del arbol */
.mof-tree-wrapper::-webkit-scrollbar {
  height: 8px;
}
.mof-tree-wrapper::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}
.mof-tree-wrapper::-webkit-scrollbar-track {
  background-color: #f1f5f9;
}

.mof-tree-root,
.mof-tree-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mof-tree-children {
  padding-left: 35px;
  margin-top: 5px;
  position: relative;
}

.mof-tree-children::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -5px;
  bottom: 20px;
  border-left: 2px dashed rgba(8, 35, 89, 0.1);
}

.mof-tree-li {
  position: relative;
  padding: 6px 0;
}

/* Linea horizontal hacia el hijo */
.mof-tree-children > .mof-tree-li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 28px;
  width: 18px;
  border-top: 2px dashed rgba(8, 35, 89, 0.1);
}

.mof-collapse {
  display: none !important;
}

.mof-tree-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.mof-tree-toggle {
  width: 34px;
  height: 34px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 2; /* encima de las rayas */
}

.mof-tree-toggle:hover {
  background: #fff;
  border-color: #cbd5e1;
  color: #082359;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.mof-toggle-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mof-tree-toggle.open .mof-toggle-icon {
  transform: rotate(90deg);
}

.mof-tree-spacer {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.mof-tree-content {
  position: relative;
  background: #f8fafc;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  display: inline-flex; /* inline-flex para ajustarse al texto */
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  z-index: 2;
}

.mof-tree-content:hover {
  background: #ffffff;
  border-color: #f2cd5e;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(8, 35, 89, 0.05);
  z-index: 30;
}

.diagr-user-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.diagr-node-label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.diagr-badge {
  background: #f2cd5e;
  color: #082359;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(242, 205, 94, 0.3);
}

/* Tooltip (Modal-like popup) */
.diagr-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  /* Se alinea a la izquierda de .mof-tree-content por defecto */
  left: 0;
  background: linear-gradient(135deg, #082359 0%, #061633 100%);
  color: #fff;
  padding: 16px 20px;
  border-radius: 20px;
  min-width: 240px;
  box-shadow: 0 20px 40px rgba(8, 35, 89, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999999; /* Siempre al frente de todo */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 5px solid #f2cd5e;
  pointer-events: none;
}

.mof-tree-content:hover .diagr-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.diagr-tt-row {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.diagr-tt-row:last-child {
  margin-bottom: 0;
}

.diagr-tt-icon {
  color: #f2cd5e;
  flex-shrink: 0;
}

/* Base Controls */
.diagr-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.btn-diagr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #475569;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-diagr:hover {
  background: #fff;
  border-color: #e2e8f0;
  color: #082359;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.btn-diagr-primary {
  background: #082359;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(8, 35, 89, 0.15);
}

.btn-diagr-primary:hover {
  background: #0c317a;
  color: #f2cd5e;
  box-shadow: 0 10px 25px rgba(8, 35, 89, 0.25);
  border-color: #0c317a;
}

.diagr-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #f8fafc;
  border-radius: 20px;
  border: 2px dashed #e2e8f0;
}

.empty-icon-box {
  background: #ffffff;
  color: #94a3b8;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

.empty-text {
  color: #64748b;
  font-weight: 600;
  font-size: 1.05rem;
}

.diagr-spacer {
  height: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .diagr-controls {
    width: 100%;
  }
  .btn-diagr {
    width: 100%;
    justify-content: center;
  }
  .diagr-container {
    padding: 20px;
    border-radius: 20px;
  }
  .diagr-tooltip {
    min-width: 180px;
    font-size: 0.8rem;
  }
  .header-info-group {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================ 
   RESPONSIVE UPLINE 
   ============================================================ */
@media (max-width: 768px) {
  .upline-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
  }
  .upline-level {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
    margin-bottom: 10px !important;
  }
  .upline-info {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .upline-meta {
    flex-direction: column !important;
    gap: 5px !important;
  }
}

/* Global Tooltip Override */
.global-diagr-tooltip {
  position: absolute !important;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* ============================================================ 
   COMBICON — FORGOT PASSWORD STYLES 
   ============================================================ */ 
.combicon-page { min-height: 100vh; display: flex; align-items: stretch; font-family: 'Outfit', sans-serif; background: #F2F2F2; position: relative; overflow: hidden; } 
.combicon-panel-left { flex: 0 0 45%; background: linear-gradient(155deg, #082359 0%, #081A40 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; position: relative; overflow: hidden; color: #fff; } 
.combicon-deco-circle { position: absolute; width: 600px; height: 600px; border: 1px solid rgba(242, 205, 94, 0.08); border-radius: 50%; pointer-events: none; } 
.combicon-logo-anim { width: 140px; margin-bottom: 30px; filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3)); animation: combicon-float 5s ease-in-out infinite; position: relative; z-index: 5; } 
@keyframes combicon-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } } 
.combicon-panel-info { text-align: center; position: relative; z-index: 5; } 
.combicon-panel-info h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 15px; } 
.combicon-panel-info h2 span { color: #F2CD5E; } 
.combicon-panel-info p { font-size: 1rem; opacity: 0.7; max-width: 320px; margin: 0 auto; } 
.combicon-panel-right { flex: 1; background: #F2F2F2; display: flex; align-items: center; justify-content: center; padding: 40px; } 
.combicon-box { width: 100%; max-width: 420px; background: #FFFFFF; padding: 50px 45px; border-radius: 28px; box-shadow: 0 20px 60px rgba(8, 35, 89, 0.08); border: 1px solid rgba(8, 35, 89, 0.05); } 
.combicon-header { margin-bottom: 35px; } 
.combicon-header h1 { font-size: 1.8rem; font-weight: 800; color: #081A40; letter-spacing: -1px; } 
.combicon-header p { font-size: 0.9rem; color: #777; margin-top: 5px; } 
.combicon-form { display: flex; flex-direction: column; gap: 22px; } 
.combicon-field { display: flex; flex-direction: column; gap: 8px; } 
.combicon-label { font-size: 0.85rem; font-weight: 700; color: #081A40; margin-left: 2px; } 
.combicon-input-group { position: relative; } 
.combicon-input { width: 100%; background: #F8F9FB; border: 2px solid #EEE; padding: 14px 45px 14px 48px; border-radius: 14px; font-family: inherit; font-size: 0.95rem; color: #081A40; transition: all 0.3s; } 
.combicon-input:focus { outline: none; background: #FFF; border-color: #F2CD5E; box-shadow: 0 0 0 4px rgba(242, 205, 94, 0.15); } 
.combicon-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #AAA; transition: color 0.3s; } 
.combicon-input:focus + .combicon-icon { color: #D9A23D; } 
.combicon-btn { background: linear-gradient(135deg, #082359 0%, #081A40 100%); color: #FFFFFF; border: none; padding: 16px; border-radius: 14px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: all 0.3s; margin-top: 10px; box-shadow: 0 10px 25px rgba(8, 35, 89, 0.2); } 
.combicon-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(8, 35, 89, 0.3); background: #081A40; } 
.combicon-btn:disabled { opacity: 0.7; cursor: not-allowed; } 
.combicon-footer { text-align: center; margin-top: 30px; font-size: 0.9rem; color: #777; } 
.combicon-footer a { color: #D9A23D; text-decoration: none; font-weight: 800; } 
.combicon-footer a:hover { text-decoration: underline; } 

/* --- NETWORK TREE (D3.JS) STYLES --- */
.tree-wrapper {
    margin-top: 30px;
    padding: 0 15px;
}

.tree-container {
    width: 100%;
    height: 700px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(8, 35, 89, 0.04);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tree-node circle {
    fill: #FFFFFF;
    stroke: #E2E8F0;
    stroke-width: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tree-node:hover circle {
    stroke: var(--hom-gold);
    stroke-width: 4px;
    filter: drop-shadow(0 0 10px rgba(242, 205, 94, 0.3));
}

.tree-node text {
    font-family: 'Inter', 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: var(--hom-navy-dark);
}

.tree-node .node-id {
    font-size: 10px;
    fill: #94A3B8;
}

.tree-link {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 2px;
    stroke-linecap: round;
}

.tree-node.status-active circle { stroke: #10B981; }
.tree-node.status-pending circle { stroke: #F59E0B; }
.tree-node.status-expired circle { stroke: #EF4444; }

.tree-tooltip {
    position: absolute;
    padding: 20px;
    background: #082359;
    color: white;
    border-radius: 16px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border: 1px solid rgba(242, 205, 94, 0.4);
    min-width: 200px;
    backdrop-filter: blur(5px);
}

.tree-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #082359 transparent transparent transparent;
}

.tree-tooltip strong {
    color: var(--hom-gold);
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    border-bottom: 1px solid rgba(242, 205, 94, 0.2);
    padding-bottom: 5px;
}

.tree-tooltip .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.tree-tooltip .info-label { color: rgba(255,255,255,0.6); font-size: 11px; }

.tree-controls {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.tree-btn {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--hom-navy);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tree-btn:hover {
    background: var(--hom-navy);
    color: #FFFFFF;
    border-color: var(--hom-navy);
    transform: scale(1.05);
}

.tree-btn svg { width: 20px; height: 20px; }

.tree-legend {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hom-navy);
}

.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-active { background: #10B981; }
.dot-pending { background: #F59E0B; }
.dot-expired { background: #EF4444; }

