@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8faff;
  color: #2d3748;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ========== ANIMATED BACKGROUND TEXTURES ========== */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
  animation: floatBlob1 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -40%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
  animation: floatBlob2 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 80px) scale(1.1); }
  66% { transform: translate(40px, -50px) scale(0.95); }
}

@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -70px) scale(1.05); }
  66% { transform: translate(-40px, 60px) scale(0.9); }
}

/* Extra floating orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-orb-1 {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 10%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
  animation: floatBlob1 18s ease-in-out infinite reverse;
}

.bg-orb-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 5%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  animation: floatBlob2 22s ease-in-out infinite;
}

/* Grid texture overlay */
.grid-texture {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ========== HEADER ========== */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding: 14px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 20px rgba(59, 130, 246, 0.06);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(59, 130, 246, 0.2));
  transition: transform 0.3s, filter 0.3s;
}

.header-logo:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.35));
}

.header h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #4a6a8a;
}

.header a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.header a:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

/* ========== HERO / WELCOME SECTION ========== */
.hero {
  text-align: center;
  padding: 50px 20px 30px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  height: 110px;
  width: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 25px rgba(59, 130, 246, 0.25));
  animation: fadeInUp 0.8s ease;
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero p {
  font-size: 1rem;
  color: #6b839e;
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 920px;
  margin: 20px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ========== CARDS ========== */
.card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 22px;
  transition: all 0.4s ease;
  box-shadow: 0 1px 8px rgba(59, 130, 246, 0.04);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1e3a5f;
  letter-spacing: -0.2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #3b82f6, #60a5fa);
  border-radius: 4px;
  flex-shrink: 0;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.78rem;
  color: #6b839e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  background: rgba(248, 250, 255, 0.8);
  border: 1.5px solid rgba(59, 130, 246, 0.12);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: #2d3748;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0b0c4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08), 0 4px 20px rgba(59, 130, 246, 0.08);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%233b82f6' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* Range slider */
.range-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  outline: none;
  border: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
  border: 3px solid white;
  transition: box-shadow 0.3s, transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
}

#progressValue {
  font-weight: 800;
  font-size: 1.15rem;
  color: #3b82f6;
  min-width: 45px;
  text-align: right;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 11px 26px;
  border: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
  font-size: 0.76rem;
  padding: 5px 12px;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-small {
  font-size: 0.78rem;
  padding: 7px 16px;
}

/* ========== PROGRESS BAR ========== */
.progress-container {
  margin: 22px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

.progress-label span:last-child {
  color: #3b82f6;
  font-weight: 700;
  font-size: 1rem;
}

.progress-bar-bg {
  background: rgba(59, 130, 246, 0.06);
  border-radius: 20px;
  height: 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.08);
  box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.04);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #38bdf8);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 42px;
  position: relative;
  box-shadow: 0 2px 15px rgba(59, 130, 246, 0.3);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Mini progress in project list */
.mini-progress {
  width: 100%;
  height: 4px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 10px;
  transition: width 0.8s ease;
}

/* ========== PROJECT LIST ========== */
.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1.5px solid rgba(59, 130, 246, 0.06);
  border-radius: 14px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  cursor: default;
  background: rgba(255, 255, 255, 0.5);
}

.project-item:hover {
  background: rgba(59, 130, 246, 0.03);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.06);
  transform: translateX(4px);
}

.project-item.selected {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 25px rgba(59, 130, 246, 0.1);
}

.project-item .info {
  flex: 1;
}

.project-item .info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1e3a5f;
}

.project-item .info p {
  font-size: 0.78rem;
  color: #6b839e;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-item .actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.15), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.06);
  border-left: 3px solid rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: white;
  border-color: rgba(59, 130, 246, 0.12);
  border-left-color: #3b82f6;
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.08);
  transform: translateX(4px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 22px;
  width: 10px;
  height: 10px;
  background: white;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transition: box-shadow 0.3s;
}

.timeline-item:hover::before {
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15), 0 0 15px rgba(59, 130, 246, 0.2);
}

.timeline-item .date {
  font-size: 0.74rem;
  color: #60a5fa;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.timeline-item .title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #1e3a5f;
}

.timeline-item .description {
  font-size: 0.86rem;
  color: #5a6e84;
  line-height: 1.7;
  white-space: pre-line;
}

.progress-bump {
  display: inline-block;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 6px;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* ========== CLIENT LINK BOX ========== */
.client-link-box {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.client-link-box label {
  font-weight: 600;
  font-size: 0.78rem;
  color: #6b839e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: block;
}

.copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.copy-row input {
  flex: 1;
  padding: 9px 14px;
  background: white;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 10px;
  font-size: 0.82rem;
  font-family: 'Inter', monospace;
  color: #3b82f6;
}

.client-link-box small {
  color: #6b839e;
  font-size: 0.8rem;
}

.client-link-box code {
  background: rgba(59, 130, 246, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #2563eb;
}

/* ========== LOGIN SCREEN (client) ========== */
.login-container {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 20px;
  animation: fadeInUp 0.6s ease;
}

.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 22px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.08);
}

.login-card .login-logo {
  height: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 15px rgba(59, 130, 246, 0.15));
}

.login-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 6px;
  border: none;
  padding: 0;
  justify-content: center;
}

.login-card h2::before {
  display: none;
}

.login-card p {
  color: #6b839e;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.login-card .form-group {
  text-align: left;
}

.login-card .btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  margin-top: 5px;
}

.login-error {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 10px;
  font-weight: 500;
  display: none;
}

/* ========== PROJECT DETAIL (client view) ========== */
.project-detail {
  animation: fadeInUp 0.6s ease;
}

.project-header-card {
  text-align: center;
  padding: 35px 28px;
}

.project-header-card .project-logo {
  height: 55px;
  margin-bottom: 15px;
  filter: drop-shadow(0 3px 12px rgba(59, 130, 246, 0.15));
}

.project-header-card h2 {
  justify-content: center;
  font-size: 1.35rem;
  border: none;
  padding: 0;
  margin-bottom: 6px;
}

.project-header-card h2::before { display: none; }

.project-header-card .meta {
  color: #6b839e;
  font-size: 0.88rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

/* ========== STATUS BADGES ========== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.badge-completed {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.badge-paused {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.15);
}

/* ========== CLIENT REQUESTS / SOLICITUDES ========== */
.request-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.08);
}

.request-pending {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
  border-left: 3px solid rgba(245, 158, 11, 0.5);
}

.request-delivered {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.12);
  border-left: 3px solid rgba(34, 197, 94, 0.5);
}

.request-delivered .request-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.request-item:hover {
  transform: translateX(4px);
}

.request-check {
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.request-check:hover {
  transform: scale(1.2);
}

.request-check-empty {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
  transition: all 0.2s;
}

.request-check:hover .request-check-empty {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.1);
}

.request-content {
  flex: 1;
}

.request-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e3a5f;
  margin-bottom: 3px;
}

.request-meta {
  font-size: 0.72rem;
  color: #6b839e;
  letter-spacing: 0.3px;
}

/* Client view requests (no delete, no toggle) */
.request-item-client {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.08);
}

.request-item-client.request-pending {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
  border-left: 3px solid rgba(245, 158, 11, 0.5);
}

.request-item-client.request-delivered {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.12);
  border-left: 3px solid rgba(34, 197, 94, 0.5);
}

.request-item-client.request-delivered .request-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.request-item-client:hover {
  transform: translateX(4px);
}

.request-icon-pending {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  flex-shrink: 0;
}

/* ========== INTERNAL NOTES (admin only) ========== */
.note-item {
  padding: 14px 18px;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-left: 3px solid rgba(251, 191, 36, 0.5);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.note-item:hover {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
  border-left-color: rgba(251, 191, 36, 0.7);
}

.note-date {
  font-size: 0.72rem;
  color: #ca8a04;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.note-text {
  font-size: 0.88rem;
  color: #5a6e84;
  line-height: 1.6;
  white-space: pre-line;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 45px;
  color: #a0b0c4;
  font-size: 0.9rem;
  border: 2px dashed rgba(59, 130, 246, 0.08);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.02);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  z-index: 999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: white;
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.toast-error {
  background: white;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease both;
}

/* Stagger children */
.card:nth-child(1) { animation: fadeInUp 0.5s ease 0s both; }
.card:nth-child(2) { animation: fadeInUp 0.5s ease 0.08s both; }
.card:nth-child(3) { animation: fadeInUp 0.5s ease 0.16s both; }
.card:nth-child(4) { animation: fadeInUp 0.5s ease 0.24s both; }

/* Pulse for active elements */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.25);
}

::selection {
  background: rgba(59, 130, 246, 0.15);
  color: #1e3a5f;
}

/* ========== PARTICLES (decorative) ========== */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ========== SPARKLES / DESTELLOS ========== */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.sparkle-dot {
  width: 3px;
  height: 3px;
  background: #60a5fa;
  box-shadow: 0 0 6px 2px rgba(96, 165, 250, 0.6), 0 0 15px 4px rgba(96, 165, 250, 0.2);
  animation: sparkleFloat linear infinite, sparklePulse 2s ease-in-out infinite;
}

.sparkle-star {
  width: 2px;
  height: 2px;
  background: white;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.8), 0 0 10px 3px rgba(59, 130, 246, 0.4);
  animation: sparkleFloat linear infinite, sparkleBlink 3s ease-in-out infinite;
}

.sparkle-streak {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
  border-radius: 0;
  animation: streakMove linear infinite;
}

@keyframes sparkleFloat {
  0% { transform: translate(0, 0); }
  25% { transform: translate(15px, -25px); }
  50% { transform: translate(-10px, -50px); }
  75% { transform: translate(20px, -75px); }
  100% { transform: translate(-5px, -100vh); opacity: 0; }
}

@keyframes sparklePulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.8); }
}

@keyframes sparkleBlink {
  0%, 100% { opacity: 0; }
  10% { opacity: 1; }
  20% { opacity: 0; }
  30% { opacity: 0.8; }
  40% { opacity: 0; }
  70% { opacity: 1; }
  80% { opacity: 0; }
}

@keyframes streakMove {
  0% { transform: translateX(-100vw) rotate(-25deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateX(100vw) rotate(-25deg); opacity: 0; }
}

/* ========== SHOOTING STARS / ESTRELLAS FUGACES ========== */
.shooting-star {
  position: fixed;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.4), rgba(255, 255, 255, 0.6), transparent);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: shootingStar linear infinite;
}

.shooting-star::before {
  content: '';
  position: absolute;
  right: 0;
  top: -1px;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5), 0 0 8px 2px rgba(96, 165, 250, 0.3);
}

.shooting-star-long {
  width: 120px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(255, 255, 255, 0.45), transparent);
}

.shooting-star-short {
  width: 50px;
  background: linear-gradient(90deg, rgba(147, 197, 253, 0.3), rgba(255, 255, 255, 0.5), transparent);
}

@keyframes shootingStar {
  0% { transform: translate(0, 0) rotate(-30deg); opacity: 0; }
  3% { opacity: 0.7; }
  8% { opacity: 0; transform: translate(300px, 150px) rotate(-30deg); }
  100% { opacity: 0; transform: translate(300px, 150px) rotate(-30deg); }
}

/* Ambient light sweep across page */
.light-sweep {
  position: fixed;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.03), rgba(96, 165, 250, 0.05), rgba(59, 130, 246, 0.03), transparent);
  animation: sweepAcross 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  transform: skewX(-15deg);
}

@keyframes sweepAcross {
  0% { left: -50%; }
  100% { left: 120%; }
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 40px 20px 50px;
  position: relative;
  z-index: 1;
}

.footer a {
  color: #93a8c4;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 28px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 30px;
  transition: all 0.4s ease;
  opacity: 0.4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #60a5fa;
  border-radius: 50%;
  opacity: 0.6;
  transition: all 0.3s;
}

.footer a:hover {
  opacity: 1;
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.footer a:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 12px 16px;
  }
  .container {
    padding: 0 12px;
    margin: 15px auto 30px;
  }
  .card {
    padding: 20px 18px;
    border-radius: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero { padding: 25px 16px 10px; }
  .hero h2 { font-size: 1.4rem; }
  .hero-logo { height: 140px; }
  .hero p { font-size: 0.88rem; margin-bottom: 0; }
  .login-card { padding: 28px 22px; }
  .login-container { padding: 0 16px; }
  .project-header-card { padding: 25px 18px; }
  .project-header-card .project-logo { height: 70px; }
  .footer { padding: 15px 16px 20px; }
  body { min-height: auto; }
}
