/* Archivo: css/inicio/bienvenida.css */

/* === WELCOME CARD === */
.welcome-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  width: 100%;
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 148px;
}

/* Avatar ring */
.welcome-avatar-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2px;
  background: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

/* Left content */
.welcome-left {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 66%;
}

/* Profile area */
.welcome-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.welcome-greeting {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

.welcome-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
  margin: 4px 0 0 0;
}

/* Stats area */
.welcome-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}

.welcome-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.03em;
  line-height: 1;
}

.welcome-stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 6px;
}

/* Progress bars */
.welcome-progress-track {
  width: 64px;
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 99px;
  margin-top: 10px;
  overflow: hidden;
}

.welcome-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-progress-fill.green {
  background: linear-gradient(90deg, #84cc16, #22c55e);
}

.welcome-progress-fill.red {
  background: linear-gradient(90deg, #f97316, #ef4444);
}

/* Divider */
.welcome-divider {
  width: 1px;
  height: 56px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Illustration */
.welcome-illustration {
  position: absolute;
  right: 50px;
  bottom: -15%;
  height: 130%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

/* === BOTÓN ADMINISTRACIÓN (solo Admin) === */
.welcome-admin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
  white-space: nowrap;
  width: fit-content;
}

.welcome-admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.welcome-admin-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .welcome-card {
    padding: 28px 32px;
  }
  .welcome-left {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .welcome-card {
    padding: 24px 20px 0px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-left {
    width: 100%;
    gap: 20px;
    padding-bottom: 20px;
  }

  .welcome-name {
    font-size: 1.25rem;
  }

  .welcome-stat-value {
    font-size: 1.4rem;
  }

  .welcome-stats {
    gap: 24px;
  }

  /* Botón Admin en móvil — ajusta padding y font-size para cambiar tamaño */
  .welcome-admin-btn {
    padding: 8px 14px;   /* ← sube/baja el 2do valor para más/menos ancho */
    font-size: 0.79rem;  /* ← sube/baja para texto más grande/pequeño */
    border-radius: 10px;
    gap: 5px;
    width: fit-content;  /* ← evita que se estire al 100% */
    margin-left: 15px;
  }

  /* Imagen abajo — ajusta height para cambiar tamaño */
  .welcome-illustration {
    position: relative;
    right: auto;
    bottom: auto;
    height: 260px;       /* ← sube/baja este valor para más/menos grande */
    width: auto;         /* ← con height fijo, width:auto mantiene proporción */
    max-height: none;    /* ← quitamos el límite para que height tenga efecto */
    object-fit: contain;
    object-position: center bottom;
    opacity: 1;
    display: block;
    margin-top: 4px;
    align-self: center;
    margin-left: -35px;
  }
}