/*
Theme Name: JMonreal Tech
Theme URI: https://jmonreal.blogs.upv.es
Author: Javier Monreal Trigo
Description: Tema personal oscuro y tecnológico, ligero y accesible.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: jmonreal-tech
*/

:root {
  --jm-bg: #02060b;
  --jm-surface: #07111b;
  --jm-surface-strong: #0b1b2c;
  --jm-border: #18344f;
  --jm-text: #f1f7ff;
  --jm-muted: #afc0d5;
  --jm-blue: #45b8ff;
  --jm-blue-strong: #1687d4;
  --jm-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  --jm-radius: 18px;
  --jm-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--jm-bg);
  color: var(--jm-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 85% 5%, rgba(21, 136, 212, 0.14), transparent 30rem), radial-gradient(circle at 10% 60%, rgba(69, 184, 255, 0.045), transparent 26rem);
}

body::after { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ""; background-image: linear-gradient(rgba(69, 184, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(69, 184, 255, 0.018) 1px, transparent 1px); background-size: 2rem 2rem; mask-image: radial-gradient(circle at 50% 20%, black, transparent 78%); opacity: 0.65; }

a { color: var(--jm-blue); text-decoration-thickness: 0.12em; text-underline-offset: 0.16em; }
a:hover { color: #9bddff; }
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.jm-shell { width: min(calc(100% - 2rem), var(--jm-width)); margin-inline: auto; }
.jm-skip-link { position: absolute; left: 1rem; top: -4rem; padding: 0.7rem 1rem; background: var(--jm-blue); color: #03101b; z-index: 10; }
.jm-skip-link:focus { top: 1rem; }

.jm-site-header { border-bottom: 1px solid rgba(69, 184, 255, 0.13); background: rgba(2, 6, 11, 0.9); backdrop-filter: blur(16px); }
.jm-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 5.2rem; }
.jm-brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--jm-text); font-weight: 750; text-decoration: none; letter-spacing: -0.02em; } .jm-brand span { white-space: nowrap; }
.jm-brand-logo { display: block; width: 2.7rem; height: 2.7rem; border: 1px solid var(--jm-blue); border-radius: 50%; object-fit: cover; box-shadow: 0 0 18px rgba(69, 184, 255, 0.22); }
.jm-nav ul { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.jm-nav a { color: var(--jm-muted); text-decoration: none; font-size: 0.95rem; }
.jm-nav a:hover, .jm-nav .current-menu-item a { color: var(--jm-text); }

.jm-main { padding: 4.5rem 0 5rem; }
.jm-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 5vw, 5rem); border: 1px solid var(--jm-border); border-radius: calc(var(--jm-radius) + 8px); background: linear-gradient(135deg, rgba(10, 26, 45, 0.92), rgba(5, 12, 21, 0.9)); box-shadow: var(--jm-shadow); }
.jm-hero::after { position: absolute; right: clamp(-4rem, -5vw, -1rem); bottom: clamp(-4rem, -5vw, -1rem); width: clamp(14rem, 30vw, 24rem); height: clamp(14rem, 30vw, 24rem); content: ""; background: url("assets/monreal.png") center / contain no-repeat; opacity: 0.12; mix-blend-mode: screen; pointer-events: none; }
.jm-kicker { margin: 0 0 1rem; color: var(--jm-blue); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.jm-hero h1 { max-width: none; margin: 0; font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.065em; white-space: nowrap; }
.jm-hero-lead { max-width: 50rem; margin: 1.6rem 0 0; color: var(--jm-muted); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.jm-tagline { max-width: 53rem; margin: 1.8rem 0 0; padding-left: 1rem; border-left: 3px solid var(--jm-blue); color: var(--jm-text); font-size: clamp(1rem, 1.8vw, 1.25rem); font-style: italic; }
.jm-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.jm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: 0.65rem 1.1rem; border: 1px solid var(--jm-blue); border-radius: 999px; background: var(--jm-blue); color: #041522; font-weight: 750; text-decoration: none; }
.jm-button:hover { background: #9bddff; color: #041522; }
.jm-button--ghost { background: transparent; color: var(--jm-text); }
.jm-button--ghost:hover { color: #041522; }

.jm-section { margin-top: 4rem; }
.jm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.jm-section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.04em; }
.jm-section-heading a { font-size: 0.95rem; }
.jm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.jm-card { display: flex; flex-direction: column; min-height: 15rem; padding: 1.4rem; border: 1px solid var(--jm-border); border-radius: var(--jm-radius); background: rgba(7, 17, 29, 0.88); }
.jm-card:hover { border-color: var(--jm-blue-strong); transform: translateY(-2px); transition: transform 160ms ease, border-color 160ms ease; }
.jm-card time { color: var(--jm-muted); font-size: 0.82rem; }
.jm-card h3 { margin: 0.55rem 0 0.6rem; font-size: 1.25rem; line-height: 1.2; }
.jm-card p { margin: 0; color: var(--jm-muted); }
.jm-card-link { margin-top: auto; padding-top: 1.2rem; font-weight: 700; }

.jm-content { max-width: 48rem; margin-inline: auto; }
.jm-content h1, .jm-content h2, .jm-content h3 { line-height: 1.15; letter-spacing: -0.04em; }
.jm-content h1 { margin-top: 0; font-size: clamp(2.2rem, 5vw, 4rem); }
.jm-content h2 { margin-top: 2.5rem; font-size: 1.7rem; }
.jm-content p, .jm-content li { color: #d5e3f3; }
.jm-content blockquote { margin-inline: 0; padding: 1rem 1.2rem; border-left: 3px solid var(--jm-blue); background: var(--jm-surface); color: var(--jm-text); }
.jm-meta { color: var(--jm-muted); font-size: 0.9rem; }
.jm-pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

.jm-site-footer { padding: 2.3rem 0; border-top: 1px solid rgba(69, 184, 255, 0.13); color: var(--jm-muted); }
.jm-footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.jm-footer-title { margin: 0; color: var(--jm-text); font-weight: 750; }
.jm-disclaimer { margin: 0; font-size: 0.86rem; font-style: italic; }
.jm-empty { padding: 1.5rem; border: 1px dashed var(--jm-border); border-radius: var(--jm-radius); color: var(--jm-muted); }

@media (max-width: 760px) {
  .jm-header-inner { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .jm-nav ul { gap: 0.7rem 1rem; }
  .jm-main { padding-top: 2rem; } .jm-hero h1 { white-space: normal; }
  .jm-grid, .jm-footer-grid { grid-template-columns: 1fr; }
  .jm-section-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


.jm-social { margin-top: 1.25rem; }
.jm-social-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.jm-social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--jm-border); border-radius: 0.75rem; background: rgba(7, 17, 29, 0.7); color: var(--jm-muted); text-decoration: none; font-size: 0.72rem; font-weight: 800; letter-spacing: -0.04em; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease; }
.jm-social-link:hover { border-color: var(--jm-blue); background: rgba(69, 184, 255, 0.12); color: var(--jm-text); transform: translateY(-2px); }
.jm-social-mark--wide { font-size: 0.62rem; letter-spacing: -0.08em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }