/*
Theme Name: DavTerminal
Theme URI: https://davidabellan.com/
Author: Dave Nebot
Author URI: https://davidabellan.com/
Description: Tema minimalista estilo terminal, con animaciones sutiles, tipografía monoespaciada, navegación tipo comando y estética hacker limpia. Diseñado para blogs técnicos con snippets de código.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: davterminal
Tags: one-column, custom-colors, custom-logo, featured-images, block-styles, translation-ready, accessibility-ready
*/

:root{
  --bg: #070a0f;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.07);
  --text: rgba(245,247,255,.92);
  --muted: rgba(245,247,255,.64);
  --muted2: rgba(245,247,255,.45);
  --border: rgba(255,255,255,.10);
  --accent: #26f4a6; /* default green */
  --accent2: #6bdcff;
  --warn: #ffd166;
  --danger: #ff4d6d;
  --shadow: 0 18px 48px rgba(0,0,0,.55);
  --radius: 14px;
  --radius2: 18px;
  --container: 1060px;
  --font: "Jetbrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --line: 1.62;
}

[data-accent="cyan"]{ --accent: var(--accent2); }
[data-accent="green"]{ --accent: #26f4a6; }
[data-accent="amber"]{ --accent: #ffcc33; }

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:
    radial-gradient(800px 420px at 18% 14%, rgba(38,244,166,.08), transparent 65%),
    radial-gradient(900px 480px at 72% 22%, rgba(107,220,255,.07), transparent 60%),
    radial-gradient(700px 420px at 55% 90%, rgba(255,77,109,.04), transparent 70%),
    linear-gradient(180deg, #05070b, #070a0f 55%, #05070b);
  color: var(--text);
  background-attachment: fixed;
  font-family: var(--font);
  line-height: var(--line);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, button, input, textarea {
  font-family: var(--font);
}
/* Retro terminal glow (muy sutil) */
body{
  text-shadow: 0 0 10px rgba(38,244,166,.08);
}

/* “Fósforo” suave en títulos */
.content h1, .content h2, .content h3{
  text-shadow: 0 0 14px rgba(38,244,166,.10);
}

/* Un pelín más de grano visual, elegante */
.term-body{
  position: relative;
}
.term-body:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.06), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.04), transparent 34%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.03), transparent 36%);
  opacity: .12;
  mix-blend-mode: overlay;
}

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

img{ max-width:100%; height:auto; display:block; }

.container{
  width: min(100%, calc(var(--container) + 48px));
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 9999;
}

.header-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(18px 18px at 30% 35%, rgba(255,255,255,.14), transparent 55%),
              linear-gradient(135deg, rgba(38,244,166,.18), rgba(107,220,255,.10));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position: relative;
  overflow:hidden;
}
.brand-mark:before{
  content:"";
  position:absolute; inset:-2px;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.14), transparent 65%);
  transform: translateX(-60%);
  animation: shine 5.5s ease-in-out infinite;
  opacity:.9;
}
@keyframes shine{
  0%{ transform: translateX(-70%); }
  22%{ transform: translateX(120%); }
  100%{ transform: translateX(120%); }
}
.brand-title{
  display:flex; flex-direction:column;
  line-height: 1.05;
}
.brand-title strong{
  letter-spacing: .08em;
  font-size: 14px;
  text-transform: uppercase;
}
.brand-title span{
  color: var(--muted);
  font-size: 12px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav a{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  opacity: .9;
}
.nav a:hover{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration:none;
}
.nav .is-cta{
  border-color: rgba(38,244,166,.28);
  background: rgba(38,244,166,.10);
}
.nav .is-cta:hover{
  background: rgba(38,244,166,.14);
}

.header-tools{
  display:flex;
  align-items:center;
  gap: 10px;
}
.icon-btn{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  font-family: var(--font);
  letter-spacing: .02em;
}
.icon-btn:hover{ background: rgba(255,255,255,.05); }
.icon-btn:active{ transform: translateY(1px); }

.hero{
  padding: 34px 0 16px;
}
.hero-shell{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.term-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.18);
}
.term-dots{ display:flex; gap: 8px; }
.term-dot{
  width: 10px; height: 10px; border-radius: 20px;
  background: rgba(255,255,255,.18);
}
.term-dot:nth-child(1){ background: rgba(255,77,109,.85); }
.term-dot:nth-child(2){ background: rgba(255,209,102,.85); }
.term-dot:nth-child(3){ background: rgba(38,244,166,.75); }

.term-title{
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.term-body{
  padding: 18px 18px 16px;
  position: relative;
}
.scanlines{
  pointer-events:none;
  position:absolute; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.02),
    rgba(255,255,255,.02) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: .18;
  mix-blend-mode: overlay;
}
.glow{
  pointer-events:none;
  position:absolute; inset:-40px;
  background: radial-gradient(380px 160px at 30% 10%, rgba(38,244,166,.16), transparent 70%),
              radial-gradient(380px 160px at 70% 35%, rgba(107,220,255,.12), transparent 70%);
  filter: blur(2px);
  opacity: .9;
}
.term-lines{
  position: relative;
}
.prompt{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  margin: 0 0 10px;
}
.prompt .ps1{
  color: var(--accent);
  white-space:nowrap;
  user-select:none;
}
.prompt .typed{
  color: var(--text);
}
.cursor{
  display:inline-block;
  width: 8px;
  margin-left: -8px;
	margin-top:4px;
  background: var(--accent);
  height: 1.05em;
  vertical-align: -2px;
  animation: blink 1.1s steps(1,end) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.hero-kpis{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.kpi{
  flex: 1 1 180px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.kpi .k{ color: var(--muted2); font-size: 12px; letter-spacing:.06em; text-transform:uppercase; }
.kpi .v{ font-size: 14px; margin-top: 4px; }

.main{
  padding: 18px 0 52px;
}
.grid{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  overflow:hidden;
}
.card-h{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.card-h h2, .card-h h3{
  margin:0;
  font-size: 13px;
  letter-spacing:.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-b{ padding: 16px; }

.post{
  padding: 16px 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.post:last-child{ border-bottom: 0; }
.post-title{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing:.01em;
}
.post-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  color: var(--muted2);
  font-size: 12px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
}
.post-excerpt{
  margin: 10px 0 0;
  color: var(--muted);
}

.content h1, .content h2, .content h3, .content h4{
  letter-spacing: .01em;
}
.content h1{ font-size: 26px; margin: 0 0 10px; }
.content h2{ font-size: 20px; margin: 22px 0 10px; }
.content h3{ font-size: 17px; margin: 18px 0 8px; }
.content p{ margin: 0 0 14px; color: var(--text); }
.content ul, .content ol{ margin: 0 0 14px 18px; color: var(--text); }
.content code, .content kbd{
  font-family: var(--font);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 2px 7px;
  font-size: .95em;
}
.content pre{
  background: #05070b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  overflow:auto;
  box-shadow: inset 0 0 0 1px rgba(38,244,166,.06);
}
.content pre code{
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(245,247,255,.92);
  font-size: 13px;
  line-height: 1.55;
}
.content blockquote{
  border-left: 3px solid rgba(38,244,166,.55);
  margin: 18px 0;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  color: var(--muted);
}
.content a{ text-decoration: underline; text-underline-offset: 3px; }
.content a:hover{ text-decoration-thickness: 2px; }

.pagination{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.12);
}
.pagination a, .pagination span{
  display:inline-flex;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: 13px;
}
.pagination .current{
  border-color: rgba(38,244,166,.35);
  background: rgba(38,244,166,.10);
}

.widget{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  margin-bottom: 14px;
}
.widget .w-h{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
  color: var(--muted);
  letter-spacing:.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.widget .w-b{ padding: 12px 14px; }
.widget ul{ margin: 0; padding-left: 0px; }
.widget li{ margin: 6px 0; color: var(--muted); }
.search-form{
  display:flex; gap: 10px;
}
.search-form input[type="search"]{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}
.search-form input[type="search"]::placeholder{ color: rgba(245,247,255,.45); }
.search-form button{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(38,244,166,.28);
  background: rgba(38,244,166,.10);
  color: var(--text);
  cursor:pointer;
  font-family: var(--font);
}
.search-form button:hover{ background: rgba(38,244,166,.14); }

.site-footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  padding: 18px 0;
  color: var(--muted);
  font-size: 11px;
}
.footer-grid{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items:center;
}
.footer-grid a{ color: var(--muted); }
.footer-grid a:hover{ color: var(--text); }

.cmdk{
  position: fixed;
  inset: 0;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.6);
  z-index: 60;
}
.cmdk[aria-hidden="false"]{ display:grid; }
.cmdk-panel{
  width: min(720px, calc(100% - 28px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,10,15,.92);
  box-shadow: 0 20px 70px rgba(0,0,0,.65);
  overflow:hidden;
}
.cmdk-top{
  padding: 12px 14px;
  display:flex;
  align-items:center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cmdk-top .hint{ color: var(--muted2); font-size: 12px; }
.cmdk-input{
  flex:1;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline:none;
}
.cmdk-list{
  max-height: 360px;
  overflow:auto;
}
.cmdk-item{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  cursor:pointer;
}
.cmdk-item:hover{ background: rgba(255,255,255,.04); }
.cmdk-item small{ color: var(--muted2); }
.cmdk-item kbd{
  border: 1px solid rgba(255,255,255,.12);
  padding: 3px 8px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
  .brand-mark:before{ display:none; }
}

/* =========================================================
   Pip-Boy mode (Fallout retro futurista)
   Activo con: html.davt-pipboy
   ========================================================= */
html.davt-pipboy{
  --bg: #050a06;
  --panel: rgba(140,255,120,.06);
  --panel2: rgba(140,255,120,.09);
  --text: rgba(196,255,182,.92);
  --muted: rgba(196,255,182,.64);
  --muted2: rgba(196,255,182,.45);
  --border: rgba(140,255,120,.18);
  --accent: #7cff6b;
  --warn: #ffd166;
  --danger: #ff4d6d;
  --radius: 10px;
  --radius2: 12px;
}

html.davt-pipboy body{
  background:
    radial-gradient(800px 420px at 18% 14%, rgba(124,255,107,.10), transparent 65%),
    radial-gradient(900px 480px at 72% 22%, rgba(124,255,107,.07), transparent 60%),
    linear-gradient(180deg, #040805, #050a06 55%, #040805);
  text-shadow: 0 0 14px rgba(124,255,107,.10);
}

/* Scanlines un pelín más marcadas en Pip-Boy */
html.davt-pipboy .scanlines{
  opacity: .26;
}

html.davt-pipboy .hero-shell,
html.davt-pipboy .card,
html.davt-pipboy .widget{
  box-shadow: 0 16px 46px rgba(0,0,0,.62);
}

/* Bordes un poco más “industrial” */
html.davt-pipboy .brand-mark,
html.davt-pipboy .chip,
html.davt-pipboy .icon-btn,
html.davt-pipboy .search-form input[type="search"],
html.davt-pipboy .search-form button{
  border-radius: 10px;
}

/* =========================================================
   Gutenberg blocks: unify terminal look
   ========================================================= */

/* Buttons */
.wp-block-button .wp-block-button__link{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 12px 14px;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.wp-block-button .wp-block-button__link:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link{
  background: transparent;
  border-color: rgba(38,244,166,.28);
}
html.davt-pipboy .wp-block-button.is-style-outline .wp-block-button__link{
  border-color: rgba(124,255,107,.30);
}
.wp-block-table td, .wp-block-table th{border:none;}
/* Tables */
.wp-block-table table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow: hidden;
}
.wp-block-table thead{
  background: rgba(0,0,0,.20);
	border-bottom:3px solid rgba(255, 255, 255, .08);
}
.wp-block-table th, .wp-block-table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--text);
}
.wp-block-table tr:last-child td{
  border-bottom: 0;
}
.wp-block-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.12);
}

/* Quote + Pullquote */
.wp-block-quote{
  border-left: 3px solid rgba(38,244,166,.55);
  margin: 18px 0;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  color: var(--muted);
}
.wp-block-pullquote{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  border-radius: 18px;
  padding: 16px 18px;
}
.wp-block-pullquote blockquote{
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

/* Code blocks */
.wp-block-code, .wp-block-preformatted{
  background: #05070b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(38,244,166,.06);
}
.wp-block-code code{
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(245,247,255,.92);
  font-size: 13px;
  line-height: 1.55;
}

/* Separator */
.wp-block-separator{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 22px 0;
}

/* Image captions */
.wp-block-image figcaption{
  color: var(--muted2);
  font-size: 12px;
  margin-top: 8px;
}

/* Lists */
.content ul li, .content ol li{
  margin: 6px 0;
}
/* =========================================================
   Comments: pro terminal redesign
   ========================================================= */

.comments-card{ margin-top: 16px; }
.comments-h{
  align-items: flex-start;
}
.comments-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.comments-b{ padding-top: 14px; }

.comments-intro{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.comments-tip{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  padding: 12px 12px;
  position: relative;
  overflow:hidden;
}

.comments-tip:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(420px 160px at 20% 10%, rgba(38,244,166,.12), transparent 70%),
  radial-gradient(420px 160px at 80% 30%, rgba(107,220,255,.10), transparent 70%);
  opacity:.8;
  pointer-events:none;
}

.tip-kicker{
  display:flex;
  align-items:center;
  gap: 10px;
  position: relative;
}
.tip-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(38,244,166,.12);
}
.tip-title{
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
.tip-text{
  margin: 10px 0 0;
  color: rgba(245,247,255,.76);
  position: relative;
}
.tip-chips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  position: relative;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
}
.chip-cta{
  border-color: rgba(38,244,166,.28);
  background: rgba(38,244,166,.10);
  color: var(--text);
  text-decoration:none;
}
.chip-cta:hover{
  background: rgba(38,244,166,.14);
  text-decoration:none;
}
.chip-dim{
  background: rgba(255,255,255,.02);
  color: var(--muted2);
}
.chip-outline{
  border-color: rgba(255,255,255,.14);
  background: transparent;
}
.chip-warn{
  border-color: rgba(255,209,102,.30);
  background: rgba(255,209,102,.10);
  color: rgba(245,247,255,.90);
}

/* Comment list */
.davt-comment-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.davt-comment{
  margin: 0;
  padding: 0;
}
.davt-comment-card{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}

.davt-comment-head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
}

.davt-comment-avatar .avatar{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.davt-comment-meta{
  flex:1;
  min-width: 0;
}
.davt-comment-author{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 8px;
}
.davt-author-name{
  color: rgba(245,247,255,.92);
  font-size: 14px;
  letter-spacing: .01em;
}
.davt-comment-submeta{
  margin-top: 6px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  color: var(--muted2);
  font-size: 12px;
}
.davt-comment-time{
  color: var(--muted2);
  text-decoration: none;
}
.davt-comment-time:hover{
  color: rgba(245,247,255,.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.davt-comment-actions{
  display:flex;
  justify-content:flex-end;
  white-space: nowrap;
}
.davt-comment-actions a{
  color: var(--text);
  text-decoration:none;
}
.davt-comment-actions a:hover{
  text-decoration:none;
}

.davt-comment-body{
  padding: 12px 14px 14px;
  color: rgba(245,247,255,.86);
}
.davt-comment-body p{
  margin: 0 0 10px;
  color: rgba(245,247,255,.86);
}
.davt-comment-body p:last-child{ margin-bottom:0; }

/* Nested replies (if any) */
.davt-comment .children{
  list-style:none;
  margin: 12px 0 0 18px;
  padding: 0;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.davt-comment .children .davt-comment-card{
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

/* Respond form */
.davt-respond{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.respond-title{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing:.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.davt-notes{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(0,0,0,.14);
}

.davt-comment-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .davt-comment-form{ grid-template-columns: 1fr; }
}

.davt-field{
  margin: 0;
}
.davt-field-full{
  grid-column: 1 / -1;
}

.davt-field label{
  display:block;
  margin-bottom: 8px;
  color: rgba(245,247,255,.72);
  font-size: 12px;
  letter-spacing:.06em;
  text-transform: uppercase;
}

.davt-field input[type="text"],
.davt-field input[type="email"],
.davt-field input[type="url"],
.davt-field textarea{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(245,247,255,.92);
  padding: 12px 12px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(38,244,166,.05);
}

.davt-field textarea{
  min-height: 150px;
  resize: vertical;
}

.davt-field input::placeholder,
.davt-field textarea::placeholder{
  color: rgba(245,247,255,.40);
}

.davt-field input:focus,
.davt-field textarea:focus{
  border-color: rgba(38,244,166,.28);
  background: rgba(0,0,0,.26);
}

.davt-help{
  display:block;
  margin-top: 8px;
  color: rgba(245,247,255,.55);
  font-size: 12px;
}

/* Cookies consent + "logged in as" */
.comment-form-cookies-consent{
  grid-column: 1 / -1;
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}
.comment-form-cookies-consent input{
  margin-top: 4px;
}
.comment-form-cookies-consent label{
  margin:0;
  text-transform:none;
  letter-spacing: 0;
  font-size: 13px;
  color: rgba(245,247,255,.68);
}

.logged-in-as, .comment-notes{
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: rgba(245,247,255,.60);
}
.logged-in-as a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Submit button */
.form-submit{
  grid-column: 1 / -1;
  margin: 0;
  display:flex;
  justify-content:flex-start;
}
.davt-submit{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(38,244,166,.28);
  background: rgba(38,244,166,.10);
  color: rgba(245,247,255,.92);
  cursor:pointer;
  font-family: var(--font);
  letter-spacing: .02em;
}
.davt-submit:hover{
  background: rgba(38,244,166,.14);
}
.davt-submit:active{
  transform: translateY(1px);
}
.davt-submit .btn-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(38,244,166,.12);
}

/* Make WP default "reply/cancel" links not ugly */
.cancel-reply{
  margin: 8px 0 12px;
}
.cancel-reply a{
  color: var(--muted2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* =========================================================
   Footer Nebula (CSS-only) - minimal, similar a midetuweb
   ========================================================= */

:root{
  /* Ajusta si quieres: intensidad y tonos */
  --nebula-a: rgba(40, 120, 255, .18);  /* azul */
  --nebula-b: rgba(190, 60, 255, .16);  /* violeta */
  --nebula-c: rgba(255, 50, 210, .14);  /* magenta */
  --nebula-deep: rgba(0, 0, 0, .92);
  --nebula-grid: rgba(255,255,255,.06);
}

/* Footer base */
.site-footer{
  position: relative;
  overflow: hidden;
  background: #06080c; /* fallback */
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Capa nebulosa */
.site-footer::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;

  /* Nebula = varias manchas radiales + viñeta oscura */
  background:
          radial-gradient(900px 240px at 18% 35%, var(--nebula-a), transparent 60%),
          radial-gradient(720px 220px at 48% 60%, var(--nebula-b), transparent 62%),
          radial-gradient(820px 260px at 86% 45%, var(--nebula-c), transparent 65%),
          radial-gradient(1200px 420px at 50% 120%, rgba(0,0,0,.55), transparent 70%),
          linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.90));

  filter: blur(10px) saturate(1.18);
  opacity: .95;
}

/* Capa grid suave + estrellas mínimas */
.site-footer::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background:
    /* grid muy sutil */
          linear-gradient(to bottom, var(--nebula-grid) 1px, transparent 1px),
          linear-gradient(to right,  var(--nebula-grid) 1px, transparent 1px),

            /* stars: puntitos raros usando radial gradients */
          radial-gradient(1px 1px at 12% 32%, rgba(255,255,255,.28), transparent 2px),
          radial-gradient(1px 1px at 22% 78%, rgba(255,255,255,.18), transparent 2px),
          radial-gradient(1px 1px at 38% 24%, rgba(255,255,255,.20), transparent 2px),
          radial-gradient(1px 1px at 54% 66%, rgba(255,255,255,.16), transparent 2px),
          radial-gradient(1px 1px at 73% 30%, rgba(255,255,255,.22), transparent 2px),
          radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,.14), transparent 2px);

  /* tamaño del grid */
  background-size:
          48px 48px,
          48px 48px,
          auto, auto, auto, auto, auto, auto;

  opacity: .24;
  mix-blend-mode: overlay;
}

/* Asegura que el contenido del footer quede por encima */
.site-footer > *{
  position: relative;
  z-index: 1;
}

/* Si tu footer tiene una barra interna, esto le da el look glass */
.site-footer .footer-bar{
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}

/* Si tu footer tiene links tipo “Términos / Privacidad” */
.site-footer a{
  color: rgba(245,247,255,.72);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.18);
}
.site-footer a:hover{
  color: rgba(245,247,255,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}
span#lagrani {
  color: #67ff00;
}
p.akismet_comment_form_privacy_notice{font-size:10px;}
/* =========================================================
   FX: subtle reveal (fade + up)
   ========================================================= */
.fx-reveal{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
}

.chip{    font-size: 11px;}

.fx-reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* stagger light, only for big blocks */
.fx-delay-1{ transition-delay: .08s; }
.fx-delay-2{ transition-delay: .14s; }
.fx-delay-3{ transition-delay: .20s; }

/* Respect reduce motion */
@media (prefers-reduced-motion: reduce){
  .fx-reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
html.davt-reduce-motion .fx-reveal{
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.term-title a{
  color: inherit;
  text-decoration: none;
}
.term-title a:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* =========================================================
   Sidebar widgets: DavTerminal custom (hardcoded)
   ========================================================= */
.sidebar{
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.w-card{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,.32);
}

.w-h{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
}

.w-h > span:first-child{
  color: rgba(245,247,255,.86);
  font-size: 13px;
  letter-spacing:.08em;
  text-transform: uppercase;
}

.w-kicker{
  color: rgba(245,247,255,.45);
  font-size: 12px;
  letter-spacing:.06em;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}

.w-b{ padding: 12px 12px; }

.w-about-row{
  display:flex;
  gap: 12px;
  align-items:center;
}

.w-avatar .avatar{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.w-about-title{ margin:0; }
.w-about-sub{
  margin: 4px 0;
  color: rgba(245,247,255,.68);
  font-size: 13px;
  line-height: 1.35;
}

.w-about-bio{
  margin-top: 10px;
  color: rgba(245,247,255,.72);
  font-size: 13px;
  line-height: 1.5;
}

.w-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* KPIs */
.w-stats-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kpi{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
}
.kpi-n{
  color: rgba(245,247,255,.92);
  font-size: 14px;
}
.kpi-l{
  color: rgba(245,247,255,.52);
  margin-top: 6px;
  font-size: 12px;
  letter-spacing:.06em;
  text-transform: uppercase;
}
.donaciones{text-align: center;margin-top:10px;}
.w-mini{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 10px;
}
.w-mini-t{font-size:10px; text-align: center;margin-top: 5px;}
/* Commands list */
.cmd-list{
  display:flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.cmd{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  text-decoration:none;
}
.cmd:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
.cmd-k{
  color: rgba(38,244,166,.90);
  font-size: 12px;
}
.cmd-v{
  color: rgba(245,247,255,.80);
  font-size: 13px;
}

/* Link lists */
.w-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.w-links li a{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  text-decoration:none;
}
.w-links li a:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
.w-link-title{
  color: rgba(245,247,255,.84);
  font-size: 13px;
  line-height: 1.25;
}
.w-link-meta{
  color: rgba(245,247,255,.45);
  font-size: 12px;
  white-space: nowrap;
}
.w-links-compact .w-link-meta{ display:none; }

.w-badge{
  color: rgba(245,247,255,.82);
  background: rgba(38,244,166,.10);
  border: 1px solid rgba(38,244,166,.22);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

/* Coffee CTA */
.w-coffee-text{
  margin:0 0 10px;
  color: rgba(245,247,255,.72);
  line-height: 1.5;
  font-size: 13px;
}

.w-cta{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(38,244,166,.28);
  background: rgba(38,244,166,.10);
  color: rgba(245,247,255,.92);
  text-decoration:none;
}
.w-cta:hover{
  background: rgba(38,244,166,.14);
}
.w-cta-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(38,244,166,.92);
  box-shadow: 0 0 0 4px rgba(38,244,166,.12);
}
.w-cta-ext{ opacity:.8; }

/* Chips */
.w-chips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip-n{
  margin-left: 8px;
  opacity: .7;
}
.w-empty{
  margin:0;
  color: rgba(245,247,255,.55);
  font-size: 13px;
}
/* KPIs: 4 columnas desktop, 2 tablet, 1 móvil */
.w-stats-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1100px){
  .w-stats-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .w-stats-grid{
    grid-template-columns: 1fr;
  }
}

/* KPI card */
.kpi{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  text-align: center;
  min-width: 0; /* importante para ellipsis */
}

.kpi-n{
  color: rgba(245,247,255,.92);
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-l{
  color: rgba(245,247,255,.52);
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-avatar {
  min-width: 75px;
}
.w-about-bio{margin-top:-7px;}
/* =========================================================
   Coffee widget: make it feel native + premium
   ========================================================= */
.w-coffee .w-b{ padding-top: 14px; }

.w-coffee-text{
  margin: 0 0 12px;
  color: rgba(245,247,255,.72);
  line-height: 1.55;
  font-size: 13px;
}

/* Contenedor general del CTA */
.w-coffee-cta{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

/* CTA nativo del theme (principal visualmente) */
.w-cta-native{
  justify-content: center;
  font-weight: 600;
  letter-spacing: .02em;
  position: relative;
  overflow:hidden;
}
.w-cta-native:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
          radial-gradient(240px 120px at 20% 30%, rgba(255,221,0,.24), transparent 65%),
          radial-gradient(240px 120px at 80% 60%, rgba(255,221,0,.16), transparent 70%);
  opacity:.55;
  pointer-events:none;
}
.w-cta-native:hover:before{ opacity:.75; }

/* Marco del embed para que no parezca pegote */
.w-embed-frame{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  padding: 10px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 62px; /* evita salto visual mientras carga */
  position: relative;
  overflow: hidden;
}

/* Un guiño terminal, súper sutil */
.w-embed-frame:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 45%, rgba(0,0,0,.22));
  opacity:.65;
}

/* El script mete un botón con estilos propios: lo centramos y le damos aire */
.w-embed-frame .bmc-btn-container,
.w-embed-frame .bmc-btn{
  margin: 0 !important;
}
.w-embed-frame iframe{
  max-width: 100%;
}

/* Texto final alineado y con presencia */
.w-coffee-mini{
  margin-top: 2px;
  justify-content: center;
}
.w-coffee-mini .w-mini-t{
  color: rgba(245,247,255,.55);
}
/* =========================================================
   Coffee widget - yellow main + status bar
   ========================================================= */
.w-coffee .w-b{ padding-top: 14px; }

.w-coffee-text{
  margin: 0 0 12px;
  color: rgba(245,247,255,.72);
  line-height: 1.55;
  font-size: 13px;
}

/* Marco para el embed: lo hace “nativo” */
.w-embed-frame{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  padding: 10px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 66px; /* evita salto mientras carga */
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(38,244,166,.04);
}

/* Glow sutil para que el amarillo “pertenezca” */
.w-embed-frame--bmc:before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
          radial-gradient(260px 120px at 25% 35%, rgba(255,221,0,.18), transparent 65%),
          radial-gradient(260px 120px at 80% 60%, rgba(255,221,0,.12), transparent 70%),
          linear-gradient(180deg, rgba(255,255,255,.05), transparent 55%, rgba(0,0,0,.25));
  opacity:.85;
}

/* Centrado del botón BMC */
.w-embed-frame .bmc-btn-container,
.w-embed-frame .bmc-btn{
  margin: 0 !important;
}
.w-embed-frame iframe{ max-width:100%; }

/* Status bar */
.w-status{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.w-status-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.w-led{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.w-led--ok{
  background: rgba(38,244,166,.92);
  box-shadow: 0 0 0 4px rgba(38,244,166,.10);
}
.w-led--warn{
  background: rgba(255,221,0,.92);
  box-shadow: 0 0 0 4px rgba(255,221,0,.12);
}
.w-led--dim{
  background: rgba(245,247,255,.35);
  box-shadow: 0 0 0 4px rgba(245,247,255,.06);
}

.w-status-k{
  color: rgba(245,247,255,.52);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.w-status-v{
  color: rgba(245,247,255,.82);
  font-size: 12px;
  white-space: nowrap;
}

/* Mini note */
.w-coffee-mini{
  margin-top: 10px;
  justify-content: center;
}
.w-coffee-mini .w-mini-t{
  color: rgba(245,247,255,.55);
}

/* =========================================================
   Sticky sidebar
   ========================================================= */
.sidebar{
  position: sticky;
  top: 18px;              /* ajusta según tu header */
  align-self: start;      /* importante si el parent es grid/flex */
  overflow: auto;         /* permite scroll interno si hay muchos widgets */
  overscroll-behavior: contain;
  scrollbar-width: thin;  /* Firefox */
}

/* Scrollbar suave (WebKit) */
.sidebar::-webkit-scrollbar{ width: 10px; }
.sidebar::-webkit-scrollbar-track{ background: rgba(255,255,255,.03); border-radius: 999px; }
.sidebar::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.12); border-radius: 999px; }
.sidebar::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.18); }

/* En móvil normalmente no conviene sticky sidebar */
@media (max-width: 980px){
  .sidebar{
    position: static;
    max-height: none;
    overflow: visible;
  }
}
/* =========================================================
   Content images: premium treatment
   Works for Gutenberg + classic editor
   ========================================================= */

.entry-content img,
.entry-content figure img,
.entry-content .wp-block-image img{
  max-width: 100%;
  height: auto;
  display: block;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);

  /* “lift” sutil, sin parecer neón barato */
  box-shadow:
          0 18px 44px rgba(0,0,0,.44),
          inset 0 0 0 1px rgba(38,244,166,.04);
}

/* Separación correcta: que no parezca incrustada en el texto */
.entry-content figure,
.entry-content .wp-block-image{
  margin: 18px 0 20px;
}

/* Centrado cómodo para Gutenberg */
.entry-content .wp-block-image{
  display: flex;
  justify-content: center;
}

/* Si viene con alineaciones WP, respétalas */
.entry-content .alignleft{
  float: left;
  margin: 8px 18px 12px 0;
  max-width: 42%;
}
.entry-content .alignright{
  float: right;
  margin: 8px 0 12px 18px;
  max-width: 42%;
}
.entry-content .aligncenter{
  margin-left: auto;
  margin-right: auto;
}

/* En móvil: nada de float, todo a lo sano */
@media (max-width: 720px){
  .entry-content .alignleft,
  .entry-content .alignright{
    float: none;
    margin: 14px 0;
    max-width: 100%;
  }
}

/* Caption que parezca “nota técnica”, no pie de foto de 2006 */
.entry-content figcaption,
.entry-content .wp-element-caption{
  margin-top: 10px;
  color: rgba(245,247,255,.58);
  font-size: 12px;
  line-height: 1.45;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

/* Si la imagen es link, que el hover tenga intención */
.entry-content a img{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.entry-content a:hover img{
  transform: translateY(-1px);
  border-color: rgba(38,244,166,.22);
  box-shadow:
          0 20px 52px rgba(0,0,0,.52),
          inset 0 0 0 1px rgba(38,244,166,.08);
}
/* =========================================================
   Terminal Frame (opt-in): .is-terminal-frame
   ========================================================= */
.entry-content figure.is-terminal-frame{
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow: hidden;

  box-shadow:
          0 22px 56px rgba(0,0,0,.55),
          inset 0 0 0 1px rgba(255,255,255,.06);
}

/* mini “top bar” con 3 dots */
.entry-content figure.is-terminal-frame::before{
  content:"";
  display:block;
  height: 38px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.08));
}

.entry-content figure.is-terminal-frame::after{
  content:"";
  position:absolute;
  top: 13px;
  left: 14px;
  width: 46px;
  height: 12px;
  background:
          radial-gradient(circle at 6px 6px, rgba(255,90,120,.85) 0 5px, transparent 6px),
          radial-gradient(circle at 23px 6px, rgba(255,210,90,.85) 0 5px, transparent 6px),
          radial-gradient(circle at 40px 6px, rgba(38,244,166,.80) 0 5px, transparent 6px);
  opacity:.9;
}

/* la imagen dentro del frame */
.entry-content figure.is-terminal-frame img{
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* padding para que no toque bordes */
.entry-content figure.is-terminal-frame .wp-block-image,
.entry-content figure.is-terminal-frame img{
  margin: 0;
}

/* caption dentro del frame (más integrado) */
.entry-content figure.is-terminal-frame figcaption{
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  border-radius: 0;
  background: rgba(0,0,0,.22);
  padding: 10px 12px;
}
/* =========================================================
   Content images: DavTerminal (targets your real wrapper)
   Wrapper in your theme: .card-b.content
   Gutenberg structure: .wp-block-image > figure > img
   ========================================================= */

/* Base: any image in post content */
.card-b.content img,
.card-b.content figure img,
.card-b.content .wp-block-image img{
  max-width: 100%;
  height: auto;
  display: block;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);

  box-shadow:
          0 18px 44px rgba(0,0,0,.44),
          inset 0 0 0 1px rgba(38,244,166,.04);
}

/* Spacing: make images breathe */
.card-b.content figure,
.card-b.content .wp-block-image{
  margin: 18px 0 20px;
}

/* Gutenberg image blocks center nicely */
.card-b.content .wp-block-image{
  display: flex;
  justify-content: center;
}

/* Alignments */
.card-b.content .alignleft{
  float: left;
  margin: 8px 18px 12px 0;
  max-width: 42%;
}
.card-b.content .alignright{
  float: right;
  margin: 8px 0 12px 18px;
  max-width: 42%;
}
.card-b.content .aligncenter{
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: kill floats */
@media (max-width: 720px){
  .card-b.content .alignleft,
  .card-b.content .alignright{
    float: none;
    margin: 14px 0;
    max-width: 100%;
  }
}

/* Captions: terminal note vibe */
.card-b.content figcaption,
.card-b.content .wp-element-caption{
  margin-top: 10px;
  color: rgba(245,247,255,.58);
  font-size: 12px;
  line-height: 1.45;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

/* Hover if image is a link */
.card-b.content a img{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-b.content a:hover img{
  transform: translateY(-1px);
  border-color: rgba(38,244,166,.22);
  box-shadow:
          0 20px 52px rgba(0,0,0,.52),
          inset 0 0 0 1px rgba(38,244,166,.08);
}


/* =========================================================
   Terminal Frame (opt-in): when wrapper has .is-terminal-frame
   Your markup: <div class="wp-block-image is-terminal-frame"><figure>...</figure></div>
   ========================================================= */

.card-b.content .wp-block-image.is-terminal-frame{
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow: hidden;

  box-shadow:
          0 22px 56px rgba(0,0,0,.55),
          inset 0 0 0 1px rgba(255,255,255,.06);
}

/* top bar */
.card-b.content .wp-block-image.is-terminal-frame::before{
  content:"";
  display:block;
  height: 38px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.08));
}

/* three dots */
.card-b.content .wp-block-image.is-terminal-frame::after{
  content:"";
  position:absolute;
  top: 13px;
  left: 14px;
  width: 46px;
  height: 12px;
  background:
          radial-gradient(circle at 6px 6px, rgba(255,90,120,.85) 0 5px, transparent 6px),
          radial-gradient(circle at 23px 6px, rgba(255,210,90,.85) 0 5px, transparent 6px),
          radial-gradient(circle at 40px 6px, rgba(38,244,166,.80) 0 5px, transparent 6px);
  opacity:.9;
  pointer-events:none;
}

/* Remove "double styling" inside the frame */
.card-b.content .wp-block-image.is-terminal-frame img{
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Ensure figure has no extra margin inside frame */
.card-b.content .wp-block-image.is-terminal-frame figure{
  margin: 0;
}

/* Caption inside indicating system note */
.card-b.content .wp-block-image.is-terminal-frame figcaption,
.card-b.content .wp-block-image.is-terminal-frame .wp-element-caption{
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  border-radius: 0;
  background: rgba(0,0,0,.22);
  padding: 10px 12px;
}
/* =========================================================
   Hero shell: mobile mode (no ugly wraps)
   ========================================================= */

/* 1) Oculta la hora en móvil */
@media (max-width: 640px){
  .term-time,
  .hero-time,
  .shell-time,
  .term-date .time,
  .header-time{
    display: none !important;
  }
}

/* 2) Compacta el header del hero para que no se rompa */
@media (max-width: 640px){
  /* Ajusta estos selectores a tus clases reales */
  .hero-shell,
  .term-shell,
  .shell{
    border-radius: 18px;
  }

  /* Barra superior: apílala y evita el wrap feo */
  .hero-shell .term-top,
  .hero-shell .shell-top,
  .term-top{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Título y fecha: una sola línea, con ellipsis */
  .hero-shell .term-title,
  .term-title{
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-shell .term-date,
  .term-date{
    opacity: .75;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Línea de comando: NO permitir wraps raros, usar ellipsis */
  .hero-shell .term-line,
  .hero-shell .term-cmd,
  .term-line,
  .term-cmd{
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* si tienes padding interno, respétalo */
  }

  /* El cursor/typed también sin romper */
  .hero-shell .typed,
  .typed{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
  }
}
.content p {
    margin: 0 0 20px;
    line-height: 1.65;
    color: var(--text);
}
.content h2 {
    font-size: 24px;
    margin: 36px 0 14px;
    letter-spacing: 0.02em;
}
.content ul li {
    position: relative;
	list-style: none;
    padding-left: 28px;
    margin: 10px 0;
}

.content ul li::before {
    content: "~$";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: inherit;
}
.content ul {
    margin: 0 0 26px 0;
}
.content p:last-child {
    margin-bottom: 0;
}
.content p strong {
    color: var(--accent);
    font-weight: 600;
}
.post-cover {
    position: relative;
    margin: 0 0 24px;
    overflow: hidden;
}

.post-cover img {
    display: block;
    width: 100%;
    height: auto;

    /* integración visual */
    opacity: .95;
    filter: saturate(.9) contrast(1.03);
}

.post-cover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    /* antes: 72px */
    height: 160px;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.25) 30%,
        rgba(0,0,0,0.6) 65%,
        rgba(0,0,0,0.9) 100%
    );

    pointer-events: none;
}

@supports (-webkit-mask-image: linear-gradient(#000, transparent)) or (mask-image: linear-gradient(#000, transparent)) {
    .post-cover::after { display: none; }

    .post-cover img {
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    }
}
.post-cover {
    padding: 2px;
}

.post-cover img {
    max-height: 420px;
    object-fit: cover;
}

