/* ═══ PORTADA MAGAZINE v3 — Estilo overlay ═══ */
.pv-mag { max-width: 1240px; margin: 0 auto; padding: 20px 16px 60px; }

/* ─── HERO GRID ASIMÉTRICO ─── */
.pv-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 4px;
  margin-bottom: 44px;
  border-radius: 14px;
  overflow: hidden;
}
.pv-hg__item {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
  min-height: 0;
}
.pv-hg__main {
  grid-row: 1 / 3;
}
.pv-hg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  transition: background 0.3s;
}
.pv-hg__item:hover .pv-hg__overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}
.pv-hg__item:hover img,
.pv-hg__item::before { transition: transform 0.4s; }
.pv-hg__text {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-hg__cat {
  display: inline-block;
  width: fit-content;
  background: #00e5ff;
  color: #0a0e1a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
}
.pv-hg__title {
  margin: 0;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}
.pv-hg__main .pv-hg__title { font-size: 26px; }
.pv-hg__side .pv-hg__title { font-size: 15px; }
.pv-hg__meta { color: rgba(255,255,255,0.6); font-size: 12px; }

/* ─── SECCIONES ─── */
.pv-sec { margin-bottom: 44px; }
.pv-sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #00e5ff;
}
.pv-sec__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pv-sec__accent {
  width: 5px;
  height: 24px;
  background: #ff2ec4;
  border-radius: 3px;
  display: inline-block;
}
.pv-sec__more {
  color: #00e5ff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.pv-sec__more:hover { color: #ff2ec4 !important; }

/* ─── LISTA HORIZONTAL (Tendencias, Antiviral) ─── */
.pv-list { display: flex; flex-direction: column; gap: 16px; }
.pv-list__item {
  display: flex;
  gap: 18px;
  background: #131829;
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pv-list__item:hover {
  transform: translateX(4px);
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 6px 24px rgba(0,229,255,0.1);
}
.pv-list__img {
  width: 220px;
  min-height: 140px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.4s;
}
.pv-list__item:hover .pv-list__img { transform: scale(1.05); }
.pv-list__body {
  padding: 16px 18px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}
.pv-list__cat {
  color: #00e5ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pv-list__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: #fff;
}
.pv-list__item:hover .pv-list__title { color: #00e5ff; }
.pv-list__meta { color: #6b7590; font-size: 12px; }
.pv-list__excerpt { color: #9aa3b8; font-size: 14px; line-height: 1.5; margin: 0; }

/* ─── OVERLAY GRID (Datos Curiosos) ─── */
.pv-ogrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
}
.pv-ocard {
  position: relative;
  aspect-ratio: 16/11;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
}
.pv-ocard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  transition: background 0.3s;
}
.pv-ocard:hover .pv-ocard__overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.15) 100%);
}
.pv-ocard__text {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-ocard__cat {
  display: inline-block;
  width: fit-content;
  background: #ff2ec4;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 3px;
}
.pv-ocard__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
}
.pv-ocard:hover .pv-ocard__title { color: #00e5ff; }

/* ─── CTA ─── */
.pv-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(255,46,196,0.08));
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 14px;
  padding: 40px 24px;
}
.pv-cta h2 { margin: 0 0 6px; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 24px; }
.pv-cta p { color: #9aa3b8; margin: 0 0 18px; }
.pv-cta__buttons { display: flex; gap: 12px; justify-content: center; }
.pv-cta__btn {
  background: linear-gradient(135deg, #00e5ff, #8b5cf6);
  color: #0a0e1a !important;
  font-weight: 800;
  padding: 11px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s;
}
.pv-cta__btn:hover { transform: scale(1.05); }


/* ─── TARJETAS 3 COLUMNAS ─── */
.pv-cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pv-c3 {
  background: #131829;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pv-c3:hover {
  transform: translateY(-5px);
  border-color: rgba(0,229,255,0.45);
  box-shadow: 0 10px 32px rgba(0,229,255,0.12);
}
.pv-c3__img {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.pv-c3__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(19,24,41,0.6) 0%, transparent 40%);
}
.pv-c3:hover .pv-c3__img {
  transform: scale(1.03);
}
.pv-c3__imgover { transition: transform 0.4s; }
.pv-c3__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pv-c3__cat {
  color: #00e5ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pv-c3__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
}
.pv-c3:hover .pv-c3__title { color: #00e5ff; }
.pv-c3__meta {
  color: #6b7590;
  font-size: 12px;
  margin-top: auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .pv-hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .pv-ogrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pv-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .pv-hg__main { grid-row: auto; min-height: 260px; }
  .pv-hg__side { min-height: 160px; }
  .pv-hg__main .pv-hg__title { font-size: 22px; }
  .pv-ogrid { grid-template-columns: 1fr; }
  .pv-list__item { flex-direction: column; }
  .pv-list__img { width: 100%; min-height: 180px; }
  .pv-list__body { padding: 14px 16px; }
}

/* ─── DIRECTORIO IA (tarjetas de acceso rápido) ─── */
.pv-dir {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}
.pv-dir__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.pv-dir__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.pv-dir__card--cyan {
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(0,229,255,0.04));
  border: 1px solid rgba(0,229,255,0.3);
}
.pv-dir__card--magenta {
  background: linear-gradient(135deg, rgba(255,46,196,0.12), rgba(255,46,196,0.04));
  border: 1px solid rgba(255,46,196,0.3);
}
.pv-dir__card--purple {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(139,92,246,0.04));
  border: 1px solid rgba(139,92,246,0.3);
}
.pv-dir__icon { font-size: 32px; flex-shrink: 0; }
.pv-dir__card h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.pv-dir__card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #8a94ab;
  line-height: 1.4;
}
.pv-dir__arrow {
  margin-left: auto;
  font-size: 20px;
  font-weight: 700;
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}
.pv-dir__card--cyan .pv-dir__arrow { color: #00e5ff; }
.pv-dir__card--magenta .pv-dir__arrow { color: #ff2ec4; }
.pv-dir__card--purple .pv-dir__arrow { color: #8b5cf6; }
.pv-dir__card:hover .pv-dir__arrow { opacity: 1; transform: translateX(4px); }

@media (max-width: 768px) {
  .pv-dir { grid-template-columns: 1fr; }
}

/* ─── TARJETAS 3 COLUMNAS ─── */
.pv-cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pv-c3 {
  background: #131829;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pv-c3:hover {
  transform: translateY(-5px);
  border-color: rgba(0,229,255,0.45);
  box-shadow: 0 10px 32px rgba(0,229,255,0.12);
}
.pv-c3__img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}
.pv-c3:hover .pv-c3__img { transform: scale(1.04); }
.pv-c3__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pv-c3__cat {
  color: #00e5ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pv-c3__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
}
.pv-c3:hover .pv-c3__title { color: #00e5ff; }
.pv-c3__meta { color: #6b7590; font-size: 12px; margin-top: auto; }

@media (max-width: 1024px) { .pv-cards3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pv-cards3 { grid-template-columns: 1fr; } }

/* ─── TARJETAS DE TEXTO (Prompts, Herramientas) estilo Digital Brain ─── */
.pv-textgrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.pv-textgrid .pv-tcard:nth-child(n+3) {
  grid-column: auto;
}
.pv-textgrid .pv-tcard:nth-child(3),
.pv-textgrid .pv-tcard:nth-child(4),
.pv-textgrid .pv-tcard:nth-child(5) {
  grid-column: auto;
}
/* Cuando hay 5 items: primeros 2 en fila de 2, últimos 3 en fila de 3 */
.pv-textgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pv-tcard--big {
  grid-column: 1 / 3;
}
.pv-tcard {
  background: #131829;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pv-tcard:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 8px 28px rgba(0,229,255,0.1);
}
.pv-tcard__date {
  color: #00e5ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pv-tcard__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.pv-tcard--big .pv-tcard__title { font-size: 22px; }
.pv-tcard:not(.pv-tcard--big) .pv-tcard__title { font-size: 16px; }
.pv-tcard:hover .pv-tcard__title { color: #00e5ff; }
.pv-tcard__desc {
  color: #8a94ab;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .pv-textgrid { grid-template-columns: 1fr; }
  .pv-tcard--big { grid-column: auto; }
}
