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

:root {
  --rosa: #f8c7d6;
  --celeste: #c8ecf7;
  --lila: #e5d3f2;
  --amarillo: #fff6c1;
  --gris-suave: #f0f0f0;
  --texto: #333;
  --fuente: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(120deg, #c8ecf7, #e5d3f2 80%);
  min-height: 100vh;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

header {
  background: linear-gradient(120deg, #f8c7d6, #c8ecf7 80%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 16px #b84cbf22;
  margin-bottom: 32px;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
}

#user-greeting {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #555;
}

.header-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
}

.volver-btn {
  display: inline-block;
  margin-top: 1rem;
  background: #fff;
  color: #703377;
  border: 2px solid #b84cbf;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-weight: bold;
  font-size: 1em;
  margin: 0;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-decoration: none;
}

.volver-btn:hover {
  background: #e5d3f2;
  color: #703377;
  border-color: #703377;
}

#historial-container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.comision-item {
  background: white;
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  text-align: left;
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), box-shadow 0.18s;
  border: 2.5px solid var(--rosa);
  max-width: 480px;
  margin: 0 auto 1.2rem auto;
  position: relative;
}

.comision-item:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 8px 24px rgba(248, 199, 214, 0.18);
  border-color: var(--lila);
}

.comision-item h3 {
  margin-top: 0;
  color: var(--rosa);
  font-size: 1.15em;
  margin-bottom: 0.5rem;
}

.comision-item p {
  margin: 0.5rem 0;
}

.acciones-comision {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.acciones-comision button {
  background: var(--celeste);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.acciones-comision button:hover {
  background: var(--rosa);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #888;
  background: var(--gris-suave);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

#cerrar-sesion-btn {
  background: #fff;
  color: #b3004b;
  border: 2px solid #b3004b;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-family: var(--fuente);
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  margin: 0;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
  letter-spacing: 0.5px;
}

#cerrar-sesion-btn:hover {
  background: #f8c7d6;
  color: #b3004b;
  border-color: #d45ab2;
  transform: none;
  box-shadow: none;
}

.perfil-switcher {
  display: flex;
  gap: 10px;
  margin: 18px 0 10px 0;
  justify-content: center;
}

.switcher-btn {
  background: #fcd6f5;
  color: #703377;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.switcher-btn.active,
.switcher-btn:hover {
  background: #b84cbf;
  color: #fff;
}

.comision-item.finalizado {
  border: 2.5px solid #4caf50;
  background: #f0fff7;
}

.trabajo-final-preview-container {
  margin: 10px 0 0 0;
}

.btn-descargar-final {
  display: inline-block;
  margin-top: 8px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-descargar-final:hover {
  background: #388e3c;
}

.feedback-section {
  margin-top: 16px;
  background: #f8c7d633;
  border: 2px solid #f8c7d6;
  border-radius: 12px;
  padding: 12px 16px 10px 16px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-feedback {
  background: #ffe1f6;
  color: #b84cbf;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.08em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
  margin-top: 0;
  box-shadow: 0 2px 8px #f8c7d655;
  display: block;
}

.btn-feedback:hover {
  background: #b84cbf;
  color: #fff;
}

.feedback-form label {
  font-weight: bold;
  color: #703377;
}

.feedback-stars {
  font-size: 1.5em;
  margin: 6px 0 8px 0;
  cursor: pointer;
  color: #bbb;
  user-select: none;
}

.feedback-stars .star {
  margin-right: 2px;
  transition: color 0.2s;
}

.feedback-form textarea {
  border-radius: 8px;
  border: 1.5px solid #e5d3f2;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 1em;
  width: 98%;
  resize: vertical;
  margin-bottom: 8px;
}

.btn-enviar-feedback {
  background: #b84cbf;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.btn-enviar-feedback:hover {
  background: #703377;
  color: #fff;
}

main {
  background: #fff8fdcc;
  border-radius: 18px;
  box-shadow: 0 2px 16px #b84cbf22;
  padding: 32px 18px 24px 18px;
  max-width: 420px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#paypal-button-container {
  width: 100%;
  max-width: 340px;
  margin: 32px 0 18px 0;
}

#pago-status {
  margin-top: 18px;
  font-size: 1.1em;
  color: #4caf50;
  text-align: center;
}

#no-progreso-msg {
  text-align: center;
  color: #b84cbf;
  font-size: 1.18em;
  margin: 2.5em 0 1.5em 0;
  font-weight: 600;
  background: #fff6c1cc;
  border-radius: 12px;
  padding: 1.2em 0.7em;
  box-shadow: 0 2px 8px #f8c7d655;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  main {
    padding: 18px 4px 18px 4px;
    max-width: 98vw;
  }
  header {
    padding: 1.2rem 0;
  }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }
}