/* ====== Theme ====== */
:root{
  --bg: #1a1a1d;
  --card: #222227;
  --text: #e8e8f0;
  --muted: #a9a9b3;
  --accent: #9b30ff;
  --accent-2: #6a0dad;
  --glow: rgba(155,48,255,.45);
}

/* ====== Base ====== */
body{
  background: var(--bg);
  width: 70%;
  max-width: 1500px;
  margin: auto;
  color: var(--text);
  font-family: 'Roboto', sans-serif;
}

@media (max-width: 600px){
  body{ width: 85%; }
}

/* ====== Page Title ====== */
h1{
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 20px var(--glow);
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, filter .3s ease;
}
h1:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 26px var(--glow);
  filter: saturate(1.1);
}

/* ====== Description bars ====== */
.desciption{
  margin: 20px auto;
  width: 100%;
  padding: 14px 0;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #efe6ff;
  background: rgba(155,48,255,.16);
  border: 2px solid rgba(155,48,255,.55);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
  transition: background .3s ease, border-color .3s ease, transform .2s ease;
  text-decoration: none;
  cursor: pointer;
}
.desciption:hover{
  background: rgba(155,48,255,.26);
  border-color: #bb86fc;
  transform: translateY(-2px);
}

.shortA{ text-decoration: none; color: inherit; }
.description2{ font-size: 18px; color: var(--muted); }

/* ====== Buttons ====== */
.button{
  border: none;
  color: #fff;
  padding: 12px 24px;
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 14px var(--glow);
  transition: transform .2s ease, box-shadow .3s ease, filter .3s ease;
}
.button:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px var(--glow);
  filter: saturate(1.1);
}
.button1{ font-size: 30px; padding: 10px 22px; }

/* ====== Layout / text ====== */
header, #articulos{ text-align: center; margin-bottom: 24px; }
p, a{ color: var(--text); transition: color .2s ease; }
a:hover{ color: #d7b6ff; }

/* ====== Motion preference ====== */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* ====== App cards ====== */
#articulos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

/* Each card */
.contenedor_tarjeta{
  width: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
  background: var(--card);
  border: 2px solid rgba(155,48,255,0.55); /* purple border */
}

.contenedor_tarjeta:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(155,48,255,.25) inset;
  border-color: #9b30ff; /* stronger purple on hover */
}


/* Figure / Image */
.contenedor_tarjeta figure{
  margin: 0;
  width: 100%;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}

figure img.frontal{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform .35s ease, filter .35s ease;
}

.contenedor_tarjeta:hover figure img.frontal{
  transform: scale(1.04);
  filter: saturate(1.08);
}

/* Title below image */
.tit{
  margin: 10px 0 14px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 1px 1px 3px #000;
  text-align: center;
  word-break: break-word;
}

/* Mobile tweaks */
@media (max-width: 600px){
  #articulos{ gap: 16px; }
  .tit{ font-size: 17px; }
  .contenedor_tarjeta figure{ height: 180px; }
}

/* Header animation like app cards */
#jrgapps {
  border-radius: 20px; /* match app card roundness */
  overflow: hidden;
  display: block;
  margin: 20px auto;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid rgba(155,48,255,0.55); /* optional purple border */
}

#jrgapps:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(155,48,255,.25) inset;
  border-color: #9b30ff; /* stronger purple on hover */
}
