/* Se da diseño a perfil, mis-participaciones*/
/* =========================
   VARIABLES
========================= */
:root{
  --gold:#D4AF37;
  --gold-light:#F5D77A;
  --bg:#000;
  --card:#0b0b0b;

  --error:#ff6b6b;
  --success:#7CFC98;
}

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

body{
  background:var(--bg);
  color:#fff;
  font-family:'Poppins', sans-serif;
}

/* =========================
   HEADER
========================= */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,0.05);
}

header img{
  height:65px;
}

nav{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px;
}

nav a{
  color:#fff;
  text-decoration:none;
}

nav a:hover{
  color:var(--gold-light);
}

nav button{
  background:transparent;
  border:1px solid var(--gold);
  color:var(--gold-light);

  padding:6px 12px;
  border-radius:8px;

  font-size:12px;
  font-weight:500;

  cursor:pointer;
  transition:all 0.2s ease;
}

nav button:hover{
  background:rgba(212,175,55,0.15);
}

/* =========================
   CONTENEDOR
========================= */
main{
  padding:40px 16px;
}

/* =========================
   TITULOS
========================= */
h1{
  text-align:center;
  margin-bottom:30px;
  font-size:20px;
}

/* =========================
   CARDS
========================= */
.user-card{
  background:var(--card);
  border:1px solid rgba(212,175,55,0.3);
  border-radius:16px;
  padding:20px;
  margin-bottom:20px;
}

/* =========================
   TABLA PARTICIPACIONES
========================= */
table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

thead{
  background:var(--gold);
  color:#000;
}

th, td{
  padding:10px;
  text-align:center;
}

tbody tr{
  border-bottom:1px solid rgba(255,255,255,0.05);
}

/* =========================
   ESTADOS
========================= */
.estado{
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
  font-weight:500;
}

.estado.aprobado{
  background:#0f2e1c;
  color:#4cff9a;
}

.estado.rechazado,
.estado.error{
  background:#2a0f0f;
  color:#ff6b6b;
}

.estado.pendiente{
  background:#2a2410;
  color:#ffd95c;
}

/* =========================
   BOTÓN DETALLE
========================= */
.btn-small{
  border:1px solid var(--gold);
  background:rgba(212,175,55,0.08);
  color:var(--gold-light);

  padding:6px 12px;
  border-radius:999px; /* 🔥 pill */

  font-size:12px;
  font-weight:500;

  cursor:pointer;
  transition:all 0.2s ease;

  display:inline-block;
  text-align:center;
}

/* hover */
.btn-small:hover{
  background:rgba(212,175,55,0.2);
  box-shadow:0 4px 10px rgba(212,175,55,0.2);
}

/* click */
.btn-small:active{
  transform:scale(0.96);
}
/* =========================
   FORMULARIOS
========================= */
.user-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* títulos internos */
.user-form h2{
  text-align:center;
  margin-bottom:15px;
}

/* labels */
.user-form label{
  font-size:12px;
  color:var(--gold-light);
  text-align:left;
}

/* inputs */
.user-form input{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.1);
  background:#111;
  color:#fff;
  font-size:14px;
}

.user-form input:focus{
  outline:none;
  border-color:var(--gold-light);
  box-shadow:0 0 6px rgba(245,215,122,0.4);
}

/* errores */
.input-error{
  border-color:#ff6b6b !important;
}

.user-form small{
  font-size:11px;
  color:var(--error);
}

/* readonly */
.user-readonly{
  opacity:0.7;
}

/* botón */
.user-form button{
  margin-top:10px;
  padding:12px;
  border:none;
  border-radius:10px;
  background:linear-gradient(145deg,var(--gold),var(--gold-light));
  color:#000;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.user-form button:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 15px rgba(212,175,55,0.4);
}

/* =========================
   FOOTER
========================= */
.site-footer{
  border-top:1px solid rgba(212,175,55,0.3);
  margin-top:40px;
  padding:30px 20px;
}

.site-footer-content{
  display:flex;
  flex-direction:column;
  gap:20px;
  text-align:center;
}

.site-footer h3{
  color:var(--gold);
  font-size:14px;
  margin-bottom:8px;
}

.site-footer a{
  color:#fff;
  text-decoration:none;
}

.site-footer a:hover{
  color:var(--gold-light);
}

/* =========================
   WHATSAPP
========================= */
.whatsapp-float{
  position:fixed;
  bottom:18px;
  right:18px;
  width:55px;
  height:55px;
}

.whatsapp-float img{
  width:100%;
}

/* =========================
   DESKTOP
========================= */
@media (min-width:769px){

  main{
    max-width:900px;
    margin:auto;
  }

  h1{
    font-size:24px;
  }

  .user-card{
    padding:28px;
  }

  .site-footer-content{
    flex-direction:row;
    justify-content:space-between;
    text-align:left;
  }
}

@media (max-width:768px){
  .btn-small{
    width:100%;
    margin-top:6px;
  }
}