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

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; position: relative; }

.header { text-align: center; margin-bottom: 50px; position: relative; }

h1 {
  font-size: 3.5rem; font-weight: 700; color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); margin-bottom: 10px;
  animation: slideInDown 1s ease-out;
}

.subtitle {
  font-size: 1.2rem; color: rgba(255, 255, 255, 0.8);
  font-weight: 300; animation: fadeIn 1.5s ease-out;
}

.version-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white; padding: 8px 20px; border-radius: 25px;
  font-weight: 600; margin-top: 10px; animation: pulse 2s infinite;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.beach-wave {
  position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  font-size: 4rem; animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; margin-bottom: 50px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px; padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative; overflow: hidden;
}

.card::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.card:hover::before { left: 100%; }
.card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2); }

.card-header { display: flex; align-items: center; margin-bottom: 20px; }
.card-icon  { font-size: 2.5rem; margin-right: 15px; animation: pulse 2s infinite; }
.card-title { font-size: 1.5rem; font-weight: 600; color: #2c3e50; }

.table-container { overflow-x: auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }

table { width: 100%; border-collapse: collapse; background: white; animation: slideInUp 1s ease-out; }

th {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white; padding: 20px 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  font-size: 0.9rem; position: relative;
}

th::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #f39c12, #e74c3c);
}

td { padding: 15px; text-align: center; border-bottom: 1px solid #ecf0f1; font-weight: 500; transition: all 0.3s ease; }

tr:hover {
  background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
  transform: scale(1.02);
}

.points-badge {
  display: inline-block; padding: 8px 16px; border-radius: 25px;
  font-weight: 600; font-size: 0.9rem;
  animation: bounceIn 0.8s ease-out;
}

.points-high   { background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; }
.points-medium { background: linear-gradient(135deg, #f39c12, #e67e22); color: white; }
.points-low    { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; }

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin: 50px 0;
}

.button {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 30px; border: none; border-radius: 15px;
  font-size: 1.1rem; font-weight: 600; text-decoration: none;
  color: white; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.button::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.6s ease;
  transform: translate(-50%, -50%);
}

.button:hover::before { width: 300px; height: 300px; }
.button:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }

.button i { margin-right: 10px; font-size: 1.3rem; animation: bounce 2s infinite; }

.calendar    { background: linear-gradient(135deg, #3498db, #2980b9); }
.formulario  { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.vip         { background: linear-gradient(135deg, #f39c12, #e67e22); }
.seguimiento { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.reglas      { background: linear-gradient(135deg, #34495e, #2c3e50); }
.cancelar    { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); display: none;
  justify-content: center; align-items: center; z-index: 1000;
  backdrop-filter: blur(10px); animation: fadeIn 0.3s ease-out;
}

.modal {
  background: white; width: 90%; max-width: 900px;
  padding: 40px; border-radius: 25px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  max-height: 90%; overflow-y: auto;
  position: relative; line-height: 1.8;
  animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal b { display: block; margin-top: 25px; font-size: 1.3rem; color: #2c3e50; font-weight: 600; }

.close-btn {
  position: absolute; top: 20px; right: 25px;
  font-size: 28px; background: none; border: none;
  cursor: pointer; color: #7f8c8d;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover { background: #e74c3c; color: white; transform: rotate(90deg); }

.new-feature {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white; padding: 20px; border-radius: 15px;
  margin: 20px 0; box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.modified-rule {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white; padding: 15px; border-radius: 10px; margin: 15px 0;
}

label    { display: block; margin-bottom: 6px; font-weight: 500; }
select   { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 12px; background: white; }
.input-hint { font-size: 0.9rem; color: #7f8c8d; margin-top: 6px; }

.alert {
  padding: 12px 14px; border-radius: 12px; line-height: 1.5;
}
.alert-info    { background: #fff7e6; border: 1px solid #ffe0a3; color: #8a6d3b; }
.alert-warn    { background: #fff1f0; border: 1px solid #ffccc7; color: #a8071a; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #135200; }

@keyframes slideInDown { from { transform: translateY(-100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInUp   { from { transform: translateY(50px);   opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes float       { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-20px); } }
@keyframes pulse       { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes bounce      { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes bounceIn    { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { transform: scale(1); opacity: 1; } }
@keyframes modalSlideIn{ from { transform: scale(0.7) translateY(-50px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .stats-container { grid-template-columns: 1fr; }
  .action-buttons  { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
