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

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, #353346ff 0%, #2a2a3e 50%, #1e1e2e 100%) fixed;
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  padding: 130px 20px 40px;
}

.top-bar {
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% 200%;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.8s ease-out, topBarMove 6s ease-in-out infinite;
  overflow: hidden;
  min-height: 100px;
}

@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes topBarMove {
  0%, 100% { 
    background-position: 0% 50%;
    transform: translateY(0px);
  }
  25% { 
    background-position: 100% 50%;
    transform: translateY(-1px);
  }
  50% { 
    background-position: 0% 100%;
    transform: translateY(0px);
  }
  75% { 
    background-position: 100% 0%;
    transform: translateY(1px);
  }
}

.top-bar h1 {
  font-size: 35px;
  color: #ff8c42;
  font-family: 'Fredoka', sans-serif;
  text-shadow: 0 2px 10px rgba(255, 140, 66, 0.5);
  animation: glowTitle 3s ease-in-out infinite alternate;
  margin: 0;
}

@keyframes glowTitle {
  0% { 
    color: #ff8c42;
    text-shadow: 0 2px 10px rgba(255, 140, 66, 0.5), 0 0 20px rgba(255, 140, 66, 0.3);
  }
  100% { 
    color: #ffab70;
    text-shadow: 0 2px 15px rgba(255, 171, 112, 0.8), 0 0 30px rgba(255, 171, 112, 0.5);
  }
}

.btn-volver-top {
  background: #ff8c42;
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2em;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.btn-volver-top:hover {
  background: #e67a35;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6);
}

.container { 
  max-width: 1100px; 
  margin: 0 auto; 
}

.page-title { 
  text-align: center; 
  font-size: 2.2em; 
  margin-bottom: 30px; 
  color: #fff;
}

.detalle-container {
  background: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.detalle-container img { 
  width: 280px; 
  border-radius: 10px; 
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); 
}

.detalle-texto { 
  flex: 1; 
}

.detalle-texto h2 { 
  font-size: 2em; 
  margin-bottom: 10px; 
  color: #1e3a8a;
}

.detalle-texto p { 
  margin: 8px 0; 
  line-height: 1.6;
}

.botones { 
  display: flex; 
  gap: 15px; 
  margin-top: 25px;
  flex-wrap: wrap;
}

.botones a, .botones span {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 18px 35px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2em;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.botones a:hover { 
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-disabled {
  background: #9ca3af !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.btn-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(156, 163, 175, 0.4) !important;
  background: #9ca3af !important;
}

@media (max-width: 900px) {
  .detalle-container { 
    flex-direction: column;
    padding: 30px;
  }
  
  .detalle-container img { 
    width: 100%; 
    max-width: 400px;
    margin: 0 auto;
  }

  .btn-volver-top {
    padding: 12px 25px;
    font-size: 1em;
  }

  .btn {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  .page-title {
    font-size: 1.8em;
  }
}

@media (max-width: 600px) {
  .botones {
    flex-direction: column;
  }

  .botones a, .botones span {
    width: 100%;
    text-align: center;
  }
}
