/* ====== 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%; }
  .contenedor_tarjeta figure img{ width:200px; height:200px; }
}

/* ====== Title ====== */
h1 {
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-size: 48px;       /* slightly bigger for visual balance */
  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 0.2s ease, box-shadow 0.3s ease, filter 0.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 ====== */
.contenedor_tarjeta figure {
  position: relative;
  width: 200px;
  height: 200px;
  margin: auto;
  border-radius: 20px;
  overflow: hidden; /* rounded corners */
  background: var(--card);
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
}

.contenedor_tarjeta figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px; /* match card round corners */
}

/* figcaption overlay */
.contenedor_tarjeta figure figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 5px;
  background: rgba(0,0,0,0.6);
  text-align: center;
  box-sizing: border-box;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* title inside overlay */
.contenedor_tarjeta figure figcaption .titulo {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
  word-wrap: break-word;
}
