/* ---------- Variables (grises, sin azules) ---------- */
:root{
  --bg: #000000;
  --fg: #e6e6e6;      /* texto base gris claro */
  --muted: #cfcfcf;   /* texto secundario/gris */
  --panel: rgba(255,255,255,0.06);
}

/* ---------- Tipografías ---------- */
/* Texto (cuerpo): Jura — fina, futurista y legible */
*{ box-sizing: border-box; }
body{
  font-family: "Jura", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  margin: 0;
  text-align: center;
  overflow-x: hidden;
  background: var(--bg); /* sin degradados */
}

/* Títulos: Orbitron */
h1, h2, h3{
  font-family: "Orbitron", "Jura", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: 0.5px;
  margin-top: 0;
}

/* Texto pequeño/explicativo */
p, li, small{
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.2px;
}

a{
  color: inherit; /* nada de azules */
  text-decoration-color: rgba(255,255,255,0.45);
  text-underline-offset: 3px;
}

/* ---------- Logo ---------- */
.logo {
  width: 33vw;
  max-width: 400px;
  min-width: 150px;
  height: auto;
  margin: 40px auto 0px;  /* menos espacio debajo del logo */
  display: block;
}

.logo-credit{
  width: 33vw;  
  margin: -15px auto 0px;   /* pegado al logo */
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.873);
  line-height: 1.4;
}

.logo-credit .label{
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
}

.logo-credit .names{
  display: block;
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

@media (max-width: 700px) {

  .logo-credit{
    width: 33vw;      /* 👉 mismo ancho que el logo en móvil */
    font-size: 2vw;   /* opcional, para que escale */
  }
}

/* ---------- Intro / Vídeo ---------- */
.video-container {
  position: relative;
  width: 80vw;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.5;
}



/* Panel translúcido SIN borde para “Bienvenido a XHARP” */
.glass-text{
  /* antes: position:absolute; bottom:10%; left:50%; transform:translateX(-50%); */
  position: static;          /* ya no se superpone al vídeo */
  transform: none;
  width: min(80%, 900px);    /* igual de ancho pero como bloque normal */
  margin: 24px auto 0;       /* separación por debajo del vídeo y centrado */

  padding: 20px;
  /*background: var(--panel);*/
  background: none;
  backdrop-filter: blur(12px);
  border: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.glass-text h2 {
  font-size: 1.9em;
  font-weight: 600;
  text-shadow: none;
  margin: 0;
}

.glass-text p {
  font-size: 1em;
  text-align: justify;
  color: white;
}

/* ---------- Support / Call-to-action cards ---------- */

.support-wrapper {
  padding: 30px 20px 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 90%;
  margin: 0 auto;
}

.support-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(31, 72, 255, 0.35); /* línea fina azul eléctrico */
  text-align: left;
}

.support-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.support-card p {
  font-size: 0.95rem;
  margin: 0 0 10px;
}

/* SIN hover — no animación, no neon */
.support-card:hover {
  transform: none;
  border-color: rgba(31, 72, 255, 0.35); 
  box-shadow: none;
  animation: none;
}




/* ---------- Videopodcasts ---------- */
.videopodcasts {
  margin: 80px auto;
  padding: 20px;
}

.videopodcasts h2 {
  margin-bottom: 30px;
  font-size: 1.9em;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.grid-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  width: 90%;
  margin: 0 auto;
}

/* Tarjeta de vídeo con etiqueta de episodio */
.video-card { text-align: center; }
.video-card iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}
.video-card .ep{
  margin-top: 10px;
  font-family: "Orbitron", "Jura", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1F48FF; /* azul de la web */

  /* Neón azul (RGB de #1F48FF = 31,72,255) */
  text-shadow:
    0 0 6px  rgba(31, 72, 255, 0.85),
    0 0 18px rgba(31, 72, 255, 0.65),
    0 0 36px rgba(31, 72, 255, 0.45);
  animation: neonPulse 2.6s ease-in-out infinite alternate;
  will-change: text-shadow;
}

.video-card .ep{
  margin-top: 10px;
  font-family: "Orbitron", "Jura", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1F48FF; /* azul de la web */

  /* Neón azul (RGB de #1F48FF = 31,72,255) */
  text-shadow:
    0 0 6px  rgba(31, 72, 255, 0.85),
    0 0 18px rgba(31, 72, 255, 0.65),
    0 0 36px rgba(31, 72, 255, 0.45);
  animation: neonPulse 2.6s ease-in-out infinite alternate;
  will-change: text-shadow;
}


/* ---------- Artículos ---------- */
.articulos { padding: 40px 20px; }

.articulos h2 {
  margin-bottom: 20px;
  font-size: 1.9em;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.articulos-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 90%;
  margin: 0 auto;
}

.articulos-content article {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.articulos-content article:hover{
  transform: translateY(-6px);
  border-color: rgba(31, 72, 255, 0.55);
  box-shadow:
    0 0 6px  rgba(31, 72, 255, 0.50),
    0 0 18px rgba(31, 72, 255, 0.35),
    0 0 36px rgba(31, 72, 255, 0.25);
  animation: neonCardPulse 2.6s ease-in-out infinite alternate;
}

/* ----- Tarjeta de PDF en Artículos ----- */

.articulos-content .pdf-card {
  padding: 0;                 /* quita el padding interior solo para esta tarjeta */
  overflow: hidden;
  display: flex;
}

.pdf-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

/* Contenedor de la preview del PDF: “media página” */
.pdf-preview {
  width: 100%;
  aspect-ratio: 4 / 3;        /* rectángulo tipo página */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

/* El PDF incrustado */
.pdf-preview object {
  width: 100%;
  height: 100%;
  border: none;
  display: block;

  /* zoom ligero para que parezca recorte de la página */
  transform: scale(1.1);
  transform-origin: top center;
}

/* Texto debajo de la preview */
.pdf-meta {
  padding: 16px 18px 18px;
}

.pdf-meta h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.pdf-meta p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive para móvil / tablet */
@media (max-width: 768px) {
  .pdf-preview {
    aspect-ratio: 3 / 4;  /* más vertical en pantallas pequeñas */
  }
}

/* ====== PDF sin controles + clicable ====== */

.pdf-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.pdf-frame object {
  width: 100%;
  height: 100%;
  pointer-events: none;      /* no permite interactuar ni scroll ni controles */
  border: none;
  display: block;
  transform: scale(1.1);     /* recorte tipo media página */
  transform-origin: top center;
}

/* capa clicable que cubre TODO el PDF */
.pdf-clicklayer {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 5;
  cursor: pointer;
}



@keyframes neonCardPulse{
  0%{
    box-shadow:
      0 0 4px  rgba(31, 72, 255, 0.30),
      0 0 10px rgba(31, 72, 255, 0.22),
      0 0 20px rgba(31, 72, 255, 0.18);
  }
  50%{
    box-shadow:
      0 0 8px  rgba(31, 72, 255, 0.75),
      0 0 22px rgba(31, 72, 255, 0.55),
      0 0 44px rgba(31, 72, 255, 0.40);
  }
  100%{
    box-shadow:
      0 0 6px  rgba(31, 72, 255, 0.50),
      0 0 18px rgba(31, 72, 255, 0.35),
      0 0 36px rgba(31, 72, 255, 0.25);
  }
}

/* ---------- Redes sociales (sin línea separadora | iconos imagen) ---------- */
.social{
  width: 90%;
  margin: 36px auto 0;
  padding: 28px 0 0; /* sin borde superior ni línea extra */
  border-top: 0;
  position: relative;
}

.social h2{
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.social-icons{
  display:flex;
  gap:22px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
}

/* Caja blanca, cuadrada, sin efectos, centrada */
.social-icons a{
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1F48FF;   /* << blanco */
  border-radius: 0;      /* cuadrado */
  border: 0;             /* sin borde */
  box-shadow: none;
  padding: 0;            /* mantiene el PNG centrado */
}

/* Tamaño del PNG dentro de la caja */
.social-icons img{
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.social-icons a{
  transition: transform .18s ease, box-shadow .25s ease;
}

.social-icons a:hover{
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 6px  rgba(31, 72, 255, 0.65),
    0 0 18px rgba(31, 72, 255, 0.45),
    0 0 36px rgba(31, 72, 255, 0.35);
  animation: neonBoxPulse 2.6s ease-in-out infinite alternate;
}

@keyframes neonBoxPulse{
  0%{
    box-shadow:
      0 0 4px  rgba(31, 72, 255, 0.35),
      0 0 10px rgba(31, 72, 255, 0.25),
      0 0 20px rgba(31, 72, 255, 0.20);
  }
  50%{
    box-shadow:
      0 0 8px  rgba(31, 72, 255, 0.80),
      0 0 22px rgba(31, 72, 255, 0.60),
      0 0 44px rgba(31, 72, 255, 0.45);
  }
  100%{
    box-shadow:
      0 0 6px  rgba(31, 72, 255, 0.65),
      0 0 18px rgba(31, 72, 255, 0.45),
      0 0 36px rgba(31, 72, 255, 0.35);
  }
}

/* Política de privacidad pequeña bajo los iconos */
.privacidad{
  margin: 32px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.privacidad a{
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
}

/* ---------- Footer (sin línea separadora) ---------- */
footer {
  margin-top: 60px;
  padding: 16px 0 26px;
  border-top: 0; /* quitada la línea */
  font-size: 0.9em;
  color: #adadad;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .video-container { width: 90vw; }
  .glass-text { width: 90%; font-size: 0.95em; }
  .logo { width: 50vw; }
}

/* Subrayado (underline) en neón azul al hacer hover */
a{
  text-decoration: underline;
  text-decoration-color: rgb(31, 72, 255); /* #1F48FF */
  text-decoration-thickness: 2px;          /* opcional */
  text-underline-offset: 3px;              /* opcional */
}

/* Color al seleccionar texto */
::selection {
  background: rgb(31, 72, 255); /* #1F48FF */
  color: #fff;                  /* color del texto seleccionado */
}

/* Firefox */
::-moz-selection {
  background: rgb(31, 72, 255);
  color: #fff;
}


/* ====== GLASS TEXT: borde azul + esquinas cuadradas ====== */
.glass-text{
  width: min(86%, 920px);
  max-width: 70ch;
  margin: 22px auto 0;
  padding: 22px 22px 20px;

  text-align: left;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(31, 72, 255, 0.35); /* ✅ borde azul marca */
  border-radius: 0;                           /* ✅ esquinas cuadradas */
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

/* Espaciado y color general dentro del bloque */
.glass-text p{
  margin: 0 0 14px;
  letter-spacing: 0.15px;
  color: rgba(255,255,255,0.88);
}

/* Lead / Body / Note */
.glass-text .lead{
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.96);
}

.glass-text .body{
  font-size: 1rem;
  line-height: 1.65;
}

.glass-text .note{
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0;
  border-left: 2px solid rgba(31,72,255,0.55);
  padding-left: 12px;
}

/* ====== "Subrayado" tipo subrayador para palabras clave ======
   Úsalo envolviendo palabras con: <span class="hl">palabra</span>
   - Esquinas totalmente cuadradas (sin border-radius)
*/
.glass-text .hl{
  display: inline;
  padding: 0 .14em;
  background: linear-gradient(
    transparent 58%,
    rgba(31, 72, 255, 0.55) 58%,
    rgba(31, 72, 255, 0.55) 92%,
    transparent 92%
  );
  border-radius: 0; /* ✅ cuadrado */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Opcional: versión más intensa para 1-2 términos muy clave */
.glass-text .hl-strong{
  display: inline;
  padding: 0 .14em;
  background: linear-gradient(
    transparent 52%,
    rgba(31, 72, 255, 0.75) 52%,
    rgba(31, 72, 255, 0.75) 94%,
    transparent 94%
  );
  border-radius: 0; /* ✅ cuadrado */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
