:root {
  --d: 600ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: "Lato-Bold", sans-serif;
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f4f4f4;
}

/* CONTENEDORES */
.cuerpo_articulos {
  width: 100%;
  padding: 20px;
}

.contenedor-general {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* GRID */
.page-content {
  display: grid;
  grid-gap: 28px;
  width: 100%;
}

/* ESCRITORIO */
@media (min-width: 1200px) {
  .page-content {
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 32px;
  }
}

/* LAPTOP / TABLET HORIZONTAL */
@media (max-width: 1199px) and (min-width: 900px) {
  .page-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TABLET VERTICAL */
@media (max-width: 899px) and (min-width: 550px) {
  .page-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MÓVIL */
@media (max-width: 549px) {
  .page-content {
    grid-template-columns: 1fr;
  }
}

/* TARJETA */
.tarjeta {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 14px; /* 👈 NUEVO */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  outline: 1px solid rgb(235, 227, 227);
  outline-offset: -px;
}

/* IMAGEN DE FONDO SIN RECORTE */
.tarjeta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 14px;
  transition: transform var(--d) var(--e);
}

/* DEGRADADO INFERIOR */
.tarjeta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
}

/* CONTENIDO HOVER */
.content {
  position: relative;
  z-index: 2;
  padding-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tarjeta:hover .content {
  opacity: 1;
  transform: translateY(0);
}

/* ZOOM SUAVE */
.tarjeta:hover::before {
  transform: scale(1.05);
}

/* BOTÓN */
.btn {
  background-color: #006ebd;
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.25s ease;
}

.btn:hover {
  background-color: #00508f;
}
