/* Estilos base del proyecto */
:root {
  --brand-color: #0d6efd;
  /*--yen-yellow: rgb(255, 221, 60);*/
  --yen-yellow: #78d8d1;
  --yen-yellow-tit: #44546A;
  --form-bg: rgb(42, 43, 48);
  --text-dark: rgb(64, 64, 64);
  --net-purple: #44546A;
  --accent-orange: #10a69b;
  /*--accent-orange: rgb(249, 161, 0);*/
  --cian: #78d8d1;
  --cian-claro: #cffdfb;
  --cian-intenso: #10a69b;
  --cian-alt: #18d7c9;
  --gris-claro: #f7f7f7;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,.09);
  --shadow-lg: 0 12px 28px rgba(0,0,0,.12);
  --radius-md: 12px;
  --radius-lg: 16px;
}

body {
  background-color: var(--gris-claro);
  font-family: Calibri, Arial, Helvetica, sans-serif;
  color: var(--text-dark);
}

.card {
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.card .card-header {
  border-bottom: 1px solid #f0f0f0;
}

.navbar-brand {
  font-weight: 600;
}

.card-title {
  color: var(--brand-color);
}

footer {
  background: #fff;
}

/* Navbar YNet (fondo amarillo, textos oscuros) */
.navbar-ynet {
  background: var(--yen-yellow);
  background: var(--yen-yellow);
  box-shadow: var(--shadow-md);
}
.navbar-ynet .navbar-brand,
.navbar-ynet .nav-link {
  color: var(--form-bg) !important;
}
.navbar-ynet .nav-link:hover,
.navbar-ynet .navbar-brand:hover {
  color: #111 !important;
}
.navbar-ynet .navbar-toggler {
  border-color: rgba(0,0,0,.2);
}

/* Splash overlay */
.splash-overlay {
  position: fixed;
  inset: 0;
  /*background: #000;*/
  display: grid;
  place-items: center;
  z-index: 1050;
  animation: splash-spin 3s linear 1;
}

.splash-center { text-align: center; }

.logo-circle {
  width: clamp(140px, 25vw, 240px);
  height: clamp(140px, 25vw, 240px);
  border-radius: 50%;
  background: #000;
  border: 4px solid var(--cian-intenso);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(16,166,155,0.35);
}

.logo-text { align-items: baseline; gap: 0.2em; }
.y-letter { color: #fff; font-weight: 700; font-size: clamp(32px, 5vw, 64px); }
.yen { color: var(--yen-yellow); font-weight: 700; font-size: clamp(50px, 5vw, 64px); }
.yen_tit { color: var(--yen-yellow-tit); font-weight: 700; font-size: clamp(50px, 5vw, 64px); }
.net-text { color: var(--cian-intenso); font-weight: 700; font-size: clamp(30px, 3.5vw, 36px); }

@keyframes splash-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.splash-overlay.expand {
  transform: scale(18);
  transition: transform 600ms ease-in;
}

/* Brand header above form */
.brand-line { font-size: 4rem; font-weight: 700; color: var(--yen-yellow);}

/* Botón de Administración (lila, texto blanco) */
.btn-admin {
  background-color: rgb(112,48,160);
  color: #fff;
  border: none;
}
.btn-admin:hover {
  background-color: rgb(98,42,140);
  color: #fff;
}
.brand-y { color: #44546A; font-weight: 800; }
.brand-yen { color: var(--yen-yellow); font-weight: 800; }
.brand-net { color: var(--net-purple); font-size: 2rem; font-weight: 700; margin-top: 0.25rem; }

.brand-logo { height: 48px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.brand-logo-xl { height: 150px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }

/* Utilidades de marca y app */
.bg-brand-yellow { background: var(--yen-yellow) !important; }
.border-brand-2 { border: 2px solid var(--yen-yellow) !important; }
.border-accent { border-color: var(--accent-orange) !important; }
.surface-dark { background: var(--form-bg); color: #fff; }
.app-elevate { transition: box-shadow .2s ease, transform .08s ease; }
.app-elevate:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.welcome-text { color: rgb(112,48,160); font-weight: 700; }
.btn-outline-brand { border: 2px solid var(--accent-orange); color: #444; background: transparent; }
.btn-outline-brand:hover { background: var(--yen-yellow); color: var(--form-bg); }
.btn-cian { background: var(--cian-intenso); color: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.btn-cian:hover { filter: brightness(1.05); }
.avatar { border-radius: 50%; background: #f0f0f0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.avatar-sm { width: 40px; height: 40px; }
.avatar-md { width: 56px; height: 50px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Home hero con fondo cian y separador en onda */
.home-hero { background: var(--cian-claro); position: relative; padding: 48px 0 64px; }
.wave-sep { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave-sep svg { display: block; width: 100%; height: 80px; }

/* Panel de formulario blanco para Home */
.form-white { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* Login card */
.login-card {
  background: var(--form-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(255, 221, 60, 0.35);
}

.login-title { color: #fff; font-size: 1.35rem; font-weight: 700; }

.input-light {
  background: #fff !important;
  color: var(--text-dark) !important;
  border-color: var(--cian-intenso);
}
.input-light::placeholder { color: #7a7a7a; }

.form-control:focus {
  border-color: var(--cian-intenso);
  box-shadow: 0 0 0 .2rem rgba(16,166,155,.15);
}

.btn-brand {
  background: var(--yen-yellow);
  color: var(--form-bg);
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: transform .08s ease-in, filter .15s ease-in;
}
.btn-brand:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }

.recover-link { color: var(--cian-intenso); text-decoration: none; font-weight: 500; }
.recover-link:hover { color: var(--cian-alt); text-decoration: underline; }

/* Registro: tipografías solicitadas */
.felicidades-title {
  font-family: 'Brandon Bromley', Calibri, Arial, sans-serif;
  color: rgb(112, 48, 160);
  font-weight: 700;
}
.invitation-subtitle {
  font-family: 'Century Gothic', Calibri, Arial, sans-serif;
  color: rgb(42, 43, 48);
  font-weight: 700;
}

/* Registro: visual de verificación del invitador */
.sponsor-ok {
  border: 2px solid rgb(0, 210, 95);
  color: rgb(0, 210, 95);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex; /* solo ocupa el contenido */
  align-items: center;
  gap: 8px;
  background : #fff;
  margin-top: -.5rem;
}
.sponsor-container { text-align: right; }
.sponsor-ok .check-circle {
  width: 22px;
  height: 22px;
  border: 2px solid rgb(0, 210, 95);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
}
.fuenteBlanca{
  color: white;
}

/* Botón de registro: ancho completo y estilo visible cuando está deshabilitado */
#btnRegister.btn-primary, #btnRegister.btn-brand {
  width: 100%;
}
#btnRegister.btn-primary:disabled {
  background: transparent !important;
  border: 2px solid var(--brand-color) !important;
  color: var(--brand-color) !important;
  opacity: 1 !important; /* evitar el fade por disabled */
}
/* Variante brand (amarillo) */
#btnRegister.btn-brand:disabled {
  background: transparent !important;
  border: 2px solid var(--yen-yellow) !important;
  color: var(--yen-yellow) !important;
  opacity: 1 !important;
}

/* Dashboard header */
.header-dashboard { background: #fff; border: 1px solid #eee; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.text-default { color: var(--text-dark); }
.countdown-box { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* Level table */
.level-table { 
  --bs-table-bg: transparent; 
  --bs-table-striped-bg: transparent; 
  --bs-table-accent-bg: transparent; 
  --bs-table-hover-bg: transparent; 
}
.level-table thead tr { background: var(--yen-yellow); }
.level-table thead th { text-transform: none; text-align: center; font-weight: 700; }
.level-table tbody td { text-align: center; border-top: 6px solid #fff; border-bottom: 6px solid #fff; border-left: 6px solid #fff; border-right: 6px solid #fff; }
.level-table tbody tr:nth-child(odd) td { background: var(--cian-claro); }
.level-table tbody tr:nth-child(even) td { background: #fff; }

.inviter-card { box-shadow: var(--shadow-sm); border-radius: var(--radius-md); }

.level-table tbody tr:hover td { filter: brightness(0.98); }

.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(16,166,155,.25); }

.btn-admin { box-shadow: 0 4px 12px rgba(112,48,160,.24); border-radius: var(--radius-md); }

/* Digits */
.digits-wrap { border-radius: 10px; }
.digit-item {
  font-family: Calibri, Arial, sans-serif;
  display: inline-block;
  min-width: 38px;
  padding: 6px 10px;
  border: 2px solid var(--accent-orange);
  color: var(--net-purple);
  font-weight: 700;
  border-radius: 6px;
}

/* Primeros pasos: burbujas de progreso */
.steps-header { }
.steps-title { font-size: 1.25rem; }
.step-bubbles { }
.step-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--accent-orange);
  color: var(--net-purple);
  background: #fff;
  transition: box-shadow .2s ease, transform .08s ease;
}
.step-active { background: var(--yen-yellow) !important; }
.step-complete { background: rgb(0,210,95) !important; color: #fff !important; border-color: rgb(0,210,95) !important; }
.step-pending { background: #fff; }

.step-bubble:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.checkmark { display:inline-block; width:20px; height:20px; border-radius:50%; line-height:16px; text-align:center; font-weight:700; border:2px solid transparent; }
.checkmark-ok { border-color: rgb(0,128,0); color: rgb(0,128,0); }
.checkmark-pending { border-color: rgb(180,180,180); color: rgb(180,180,180); }

progress {
    width: 100%;
    height: 35px;
    -webkit-appearance: none;
    appearance: none;
}

/* Fondo de la barra */
progress::-webkit-progress-bar {
    background-color: #fff; /* cambia este color */
    border-radius: 4px;
}

/* Parte que AVANZA */
progress::-webkit-progress-value {
    background-color: rgb(0,210,95) !important; /* tu color */
    border-radius: 4px;
    transition: width 0.3s;
}

/* Firefox */
progress::-moz-progress-bar {
    background-color: rgb(0,210,95) !important;
}

.backBlanco{
  background : #fff !important;
}
#btnLogin,.btn-cian{
  background : var(--cian-intenso);
  color : #fff;
}


.btn-material {
  background: var(--cian-alt);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px var(--cian-intenso);
}

.btn-material:active {
  box-shadow: 0 2px 4px var(--cian-intenso);
  transform: translateY(2px);
}

.btn-ios {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 20px;
  border: 1px solid #d1d1d6;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  display: inline-block;
  transition: all 0.15s ease;
  box-shadow: 0 3px 8px var(--cian-intenso);
}

.btn-ios:active {
  transform: scale(0.96);
  /*background: #f2f2f7;*/
  background: var(--cian-claro);
}