:root{
  --bg:#0b0b0c;
  --fg:#e9e9ea;
  --muted:#b9b9be;
  --max: 980px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; border-bottom:1px solid rgba(233,233,234,.25); }
a:hover{ border-bottom-color:rgba(233,233,234,.7); }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 22px;
}

h1,h2,h3{
  line-height:1.15;
  letter-spacing:-0.02em;
  margin: 0 0 16px 0;
}

p{ margin: 0 0 16px 0; color:var(--muted); font-size: 18px; }

.nav{
  position: sticky;
  top: 0;
  background: rgba(11,11,12,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 999;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
}

.brand{
  font-weight:650;
  letter-spacing:.2px;
  border-bottom:none;
}

.links{
  display:flex;
  gap:14px;
}

.links a{
  border-bottom:none;
  opacity:.85;
}

.links a:hover{
  opacity:1;
}


/* ====== Textos index ====== */
.textos-index{
  width: min(1100px, 92vw);
  margin: 110px auto;
  font-family: "Playfair Display", serif;
  color: #cccccc;
}

.textos-head{
  margin-bottom: 32px;
}

.textos-title{
  margin: 0 0 10px 0;
  font-size: 28px;
  letter-spacing: 1px;
  font-weight: 600;
}

.textos-subtitle{
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.6px;
  opacity: 0.85;
  line-height: 1.7;
}

.textos-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:34px;
}
@media (max-width: 980px){
  .textos-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .textos-grid{ grid-template-columns:1fr; }
}

/* Que SOLO las cards sean items "visibles" del grid */
.textos-grid{
  grid-auto-flow: row;
  align-items: stretch;
}

.textos-grid > *:not(.texto-card){
  display: none !important;
}


.texto-card{
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(204,204,204,0.18);
  padding: 22px 20px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  background: rgba(255,255,255,0.02);
}

.texto-card:hover{
  transform: translateY(-3px);
  border-color: rgba(204,204,204,0.45);
  background: rgba(255,255,255,0.04);
}

.texto-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.texto-tag{
  border: 1px solid rgba(204,204,204,0.22);
  padding: 4px 8px;
}

.texto-h{
  margin: 0 0 10px 0;
  font-size: 16px;
  letter-spacing: 0.8px;
  font-weight: 600;
  line-height: 1.35;
}

.texto-ex{
  margin: 0 0 14px 0;
  font-size: 12px;
  letter-spacing: 0.6px;
  line-height: 1.85;
  opacity: 0.9;

  /* corta el texto a “X” líneas (funciona en la mayoría de navegadores modernos) */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.texto-more{
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 980px){
  .textos-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .textos-index{ margin: 90px auto; }
  .textos-grid{ grid-template-columns: 1fr; }
}

/* ====== Entradas: formato mínimo sin romper tu theme ====== */
.wrap .wp-block-heading,
.wrap h1, .wrap h2, .wrap h3, .wrap h4{
  margin-top: 32px;
  margin-bottom: 14px;
}

.wrap p{
  max-width: 70ch;         /* lectura cómoda */
  color: var(--muted);     /* ya lo tienes, lo reafirmo */
}

.wrap img{
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap blockquote{
  margin: 28px 0;
  padding: 14px 18px;
  border-left: 3px solid rgba(233,233,234,.25);
  background: rgba(255,255,255,.03);
  color: var(--fg);
}

.wrap hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 28px 0;
}

/* ====== TABLAS (antes lo tenías metido dentro de <style>...</style>) ====== */

/* Tablas legibles en tu tema oscuro */
table{
  border-collapse: collapse;
  margin: 20px auto;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  color: #111 !important;              /* texto de tabla oscuro */
  background: #fff !important;         /* fondo de tabla blanco */
}

th, td{
  border: 1px solid #000;
  padding: 6px 12px;
  text-align: center;
  color: #111 !important;              /* fuerza texto oscuro en celdas */
  background: #fff !important;         /* celdas blancas por defecto */
}

th{
  background: #e8e8e8 !important;      /* cabecera gris */
  font-weight: bold;
}

/* conserva tus resaltados en rojo */
.acentuada,
.resaltado{
  color: #c40000 !important;
  font-weight: bold;
}

/* por si tienes filas con clase metrica (tu tabla de griego) */
tr.metrica td{
  background: #f5f5f5 !important;
}

/* si dentro de una celda hay <em> u otros tags, que no vuelvan a blanco */
td em, th em, td strong, th strong, td span, th span{
  color: inherit;
}

/* =========================
   MENÚ (aislado) — SOLO 1 BLOQUE
   ========================= */
/* Reset */
nav.nav .js-paganus-menu,
nav.nav .js-paganus-menu ul,
nav.nav .js-paganus-menu li{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* 1er nivel horizontal */
nav.nav .js-paganus-menu{
  display:flex !important;
  gap:140px !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
}

/* cada LI del 1er nivel posiciona su dropdown */
nav.nav .js-paganus-menu > li{
  position:relative !important;
}

/* links sin subrayado */
nav.nav .js-paganus-menu a{
  display:block !important;
  border-bottom:none !important;
  text-decoration:none !important;
  padding:8px 12px !important;
}

/* ===== ocultar submenús SIEMPRE por defecto ===== */
nav.nav .js-paganus-menu > li > ul.submenu,
nav.nav .js-paganus-menu > li > ul,
nav.nav .js-paganus-menu ul ul{
  display:none !important;
  position:absolute !important;
  top:100% !important;
  left:0 !important;

  min-width:0px !important;
background: rgba(11,11,12,0.85) !important;
  padding:0px 0 !important;

  z-index:999999 !important;
}

/* 3er nivel a la derecha */
nav.nav .js-paganus-menu ul ul{
  top:0 !important;
  left:100% !important;
}

/* ===== abrir SOLO al hover/focus ===== */
nav.nav .js-paganus-menu li:hover > ul,
nav.nav .js-paganus-menu li:focus-within > ul{
  display:block !important;
}

/* padding en items del dropdown */
nav.nav .js-paganus-menu ul a{
  padding:8px 16px !important;
  white-space:nowrap !important;
}





/* === COMMENTS (PRO) === */
.c-comments{
  margin: 64px auto 0;
  max-width: 920px;
  padding: 24px;
  border: 0px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}

.c-comments__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.c-comments__title{
  margin:0;
  font-size: 18px;
  letter-spacing: .3px;
}

.c-comments__nav{
  display:flex;
  gap:10px;
  font-size: 13px;
}
.c-comments__nav a{
  border-bottom: none;
  opacity: .9;
}
.c-comments__nav a:hover{ opacity: 1; }

.c-comments__list{
  list-style:none;
  margin: 0;
  padding: 0;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

/* WordPress comment structure */
.c-comments .comment{
  margin:0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
}

.c-comments .comment-body{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}

.c-comments .avatar{
  border-radius: 999px;
  display:block;
}

.c-comments .comment-meta{
  margin:0 0 6px 0;
  font-size: 13px;
  color: rgba(233,233,234,.75);
}
.c-comments .comment-meta a{ border-bottom:none; }

.c-comments .comment-author{
  font-weight: 650;
  color: rgba(233,233,234,.95);
}
.c-comments .comment-metadata{
  display:inline;
  margin-left: 8px;
  opacity:.85;
}
.c-comments .comment-metadata time{ opacity:.9; }

.c-comments .comment-content{
  margin-top: 8px;
  color: rgba(233,233,234,.92);
}
.c-comments .comment-content p{
  margin: 0 0 10px 0;
}
.c-comments .comment-content p:last-child{ margin-bottom:0; }

.c-comments .reply{
  margin-top: 10px;
}
.c-comments .reply a{
  display:inline-block;
  border-bottom:none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.c-comments .reply a:hover{
  background: rgba(255,255,255,.08);
}

/* Form */
.c-comments__form{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.c-form{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.c-field{
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.c-field--full{ grid-column: 1 / -1; }

.c-field label{
  font-size: 13px;
  color: rgba(233,233,234,.85);
}

.c-field input,
.c-field textarea{
  width:100%;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(233,233,234,.95);
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
}

.c-field textarea{ resize: vertical; min-height: 120px; }

.c-field input:focus,
.c-field textarea:focus{
  border-color: rgba(233,233,234,.30);
  box-shadow: 0 0 0 4px rgba(233,233,234,.08);
}

.c-btn{
  margin-top: 6px;
  justify-self: start;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(233,233,234,.10);
  color: rgba(233,233,234,.95);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}
.c-btn:hover{
  background: rgba(233,233,234,.16);
}

.c-comments__closed{
  margin: 12px 0 0;
  color: rgba(233,233,234,.7);
  font-size: 13px;
}

@media (max-width: 820px){
  .c-form{ grid-template-columns: 1fr; }
}


/* =========================
   RAW HTML – centrado texto
   ========================= */

html, body {
  height: 100%;
}

.raw-centrado{
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;   /* <- ESTO es lo que faltaba */
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;                /* separa líneas sin chapuzas */
}


/* =========================
       Centrar imágenes
   ========================= */

img {
  max-width: 100%;
  height: auto;
}


.entry-content img,
.wp-block-image img {
  display: block;
  margin: 1.5em auto;
  max-width: 100%;
  height: auto;
}


.entry-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content img,
.entry-content figure,
.entry-content figure img,
.wp-block-image img,
.wp-block-image {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Centrar la columna de lectura */
.wrap p,
.wrap ul,
.wrap ol,
.wrap blockquote {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Centrar imágenes (Gutenberg + clásico) */
.wrap .wp-block-image,
.wrap figure,
.wrap img {
  max-width: 100%;
}

.wrap .wp-block-image,
.wrap figure {
  margin-left: auto !important;
  margin-right: auto !important;
}

.wrap img {
  display: block;
  height: auto;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Centrar el pie de foto */
.wrap figcaption,
.wrap .wp-caption-text {
  text-align: center;
}

.wrap img[style*="width"],
.wrap img[width]{
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}


