/*
Theme Name: Fútbol en vivo
Theme URI: https://example.com/futbol-en-vivo
Author: Hecho con Claude
Author URI: https://anthropic.com
Description: Tema limpio y claro para blogs de noticias de fútbol. Incluye sección de noticias, marcador de resultados de partidos y diseño tipo matchday. Listo para usar, responsive y accesible.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: futbol-en-vivo
Tags: blog, news, sports, football, clean, responsive, custom-logo, featured-images
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --paper:      #FCFCFA;
  --surface:    #FFFFFF;
  --ink:        #15181C;
  --muted:      #6B7280;
  --faint:      #9AA1AB;
  --line:       #E6E8E3;
  --primary:      #D7263D;
  --primary-dk:   #A81729;
  --live:       #E11D48;
  --primary-tint: #FBEEF0;

  --maxw: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 9px;

  --ff-display: "Archivo", "Archivo Fallback", system-ui, -apple-system, sans-serif;
  --ff-board:   "Oswald", "Archivo", system-ui, sans-serif;
  --ff-body:    "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 1px 2px rgba(21,24,28,.04), 0 8px 24px rgba(21,24,28,.05);
}

/* ============================================================
   FUENTES DE RESPALDO CON MÉTRICAS AJUSTADAS
   Reducen el salto de diseño (CLS) cuando la fuente web reemplaza
   a la del sistema. Valores afinados; pueden retocarse si hace falta.
   ============================================================ */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 102%;
  ascent-override: 91%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
img, iframe, video, embed, object, svg { max-width: 100%; }
iframe { border: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand img { max-height: 46px; width: auto; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { max-height: 38px; width: auto; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--primary);
  position: relative;
  flex: none;
}
.brand-mark::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.55) 49.5%, rgba(255,255,255,.55) 50.5%, transparent 51%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.55) 0 6px, transparent 6.5px);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.site-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-tagline {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
  color: var(--faint);
  margin-top: 3px;
}

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  background: var(--primary-tint);
  color: var(--primary-dk);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    inset: 76px 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px var(--gut); gap: 2px; }
  .main-nav a { display: block; }
}

/* ============================================================
   SCOREBOARD STRIP (signature)
   ============================================================ */
.matchstrip {
  background: var(--primary-tint);
  border-bottom: 1px solid var(--line);
}
.matchstrip-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
}
.matchstrip-head h2 {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.matchstrip-head a { font-family: var(--ff-board); font-size: 13px; letter-spacing: .04em; }
.matchstrip-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 16px 0 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.matchstrip-rail::-webkit-scrollbar { height: 8px; }
.matchstrip-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.match-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.match-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  color: var(--muted);
}
.match-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600;
}
.match-status.is-live { color: var(--live); }
.match-status.is-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.match-status.is-upcoming { color: var(--primary); }

.match-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.match-team { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.match-team .dot {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  background: var(--primary-tint); border: 1px solid var(--line);
}
.match-score {
  font-family: var(--ff-board);
  font-weight: 700;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  min-width: 28px;
  text-align: right;
}
.match-score.win { color: var(--primary-dk); }
.match-divider { height: 1px; background: var(--line); }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-main { padding: clamp(28px, 5vw, 56px) 0; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 26px;
}
.section-head h2 { font-size: clamp(20px, 3vw, 26px); margin: 0; }

/* ============================================================
   HERO / FEATURED
   ============================================================ */
.hero { margin-bottom: clamp(34px, 5vw, 54px); }
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: flex-end;
}
.hero-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
}
.hero-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,10,.86) 0%, rgba(8,12,10,.25) 55%, transparent 100%);
}
.hero-body { position: relative; padding: clamp(22px, 4vw, 44px); color: #fff; max-width: 760px; }
.hero-body .eyebrow { color: #FF9DAB; }
.hero-body h1 {
  color: #fff;
  font-size: clamp(28px, 5vw, 50px);
  margin: 10px 0 8px;
}
.hero-body h1 a { color: #fff; text-decoration: none; }
.hero-body h1 a:hover { text-decoration: underline; }
.hero-excerpt { color: rgba(255,255,255,.85); font-size: 17px; margin: 0; }
.hero-meta {
  margin-top: 16px;
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

/* ============================================================
   POST GRID
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; }
.post-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--primary-tint);
  margin-bottom: 14px;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-cat {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 7px;
  display: inline-block;
}
.post-card h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--primary-dk); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.post-byline {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 11px;
  color: var(--faint);
  margin-top: auto;
}

/* ============================================================
   SINGLE / PAGE
   ============================================================ */
.article-header { max-width: 760px; margin: 0 auto clamp(20px, 4vw, 34px); text-align: center; }
.article-header h1 { font-size: clamp(28px, 5vw, 46px); margin: 12px 0; }
.article-meta {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--muted);
}
.article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(24px, 4vw, 40px);
  aspect-ratio: 21 / 9;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 680px) { .article-hero { aspect-ratio: 3 / 2; } }

.entry-content { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 1.4em 0;
  padding: 4px 0 4px 22px;
  font-size: 21px;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink);
}
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figcaption { font-size: 13px; color: var(--faint); text-align: center; margin-top: 8px; }
.entry-content code {
  background: var(--primary-tint); padding: 2px 6px; border-radius: 5px; font-size: .9em;
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }

.entry-footer {
  max-width: 720px; margin: clamp(28px,4vw,40px) auto 0;
  padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.tag-pill {
  font-family: var(--ff-board);
  text-transform: uppercase; letter-spacing: .06em;
  font-size: 12px; font-weight: 500;
  background: var(--primary-tint); color: var(--primary-dk);
  padding: 6px 12px; border-radius: 20px; text-decoration: none;
}
.tag-pill:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ============================================================
   SIDEBAR / WIDGETS
   ============================================================ */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 30px; }
@media (max-width: 900px) { .sidebar { position: static; } }
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.widget-title {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--primary-dk); }

.mini-result {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px; align-items: center;
  font-size: 14px;
}
.mini-result .vs { color: var(--muted); }
.mini-result .sc {
  font-family: var(--ff-board); font-weight: 700;
  font-variant-numeric: tabular-nums; font-size: 17px;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 15px;
  background: var(--paper);
}
.search-form button {
  background: var(--primary); color: #fff; border: 0;
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
  font-family: var(--ff-board); text-transform: uppercase; letter-spacing: .06em;
  font-size: 13px; font-weight: 500;
}
.search-form button:hover { background: var(--primary-dk); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { margin-top: 44px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
  font-family: var(--ff-board);
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { max-width: 720px; margin: clamp(36px,5vw,56px) auto 0; }
.comments-title { font-size: 24px; margin-bottom: 22px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.comment-author { font-weight: 600; color: var(--ink); }
.comment-form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--ff-body); font-size: 15px; background: var(--paper);
}
.comment-form .submit, .form-submit input {
  background: var(--primary); color: #fff; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 8px; margin-top: 14px;
  font-family: var(--ff-board); text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(36px, 5vw, 60px) 0 28px;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.footer-about { flex: 1 1 280px; max-width: 420px; }
.footer-cols > .footer-widget,
.footer-cols > div:not(.footer-about) { flex: 1 1 180px; }
@media (max-width: 760px) { .footer-cols { gap: 28px; } }
.site-footer h4,
.site-footer .footer-heading {
  color: #fff;
  font-family: var(--ff-board);
  text-transform: uppercase; letter-spacing: .1em;
  font-size: 13px; font-weight: 600; margin: 0 0 14px;
}
.site-footer .footer-about p { color: rgba(255,255,255,.6); font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: rgba(255,255,255,.75); font-size: 15px; }
.site-footer a:hover { color: #FF9DAB; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img { max-height: 34px; width: auto; }
.footer-brand .site-title { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ============================================================
   COMPARTIR + PREFERIR EN GOOGLE
   ============================================================ */
.post-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 22px;
}
.post-actions-share { display: inline-flex; align-items: center; gap: 12px; }
.post-actions-label {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.share-btns { display: inline-flex; gap: 9px; }
.share-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.share-btn:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.share-btn.is-facebook:hover { background: #1877F2; border-color: #1877F2; }
.share-btn.is-x:hover        { background: #000000; border-color: #000000; }
.share-btn.is-whatsapp:hover { background: #25D366; border-color: #25D366; }

.gnews-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.gnews-btn:hover {
  background: var(--paper);
  border-color: #d7d9d4;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.gnews-btn .g-logo { flex: none; }

/* Fila de compartir al final del artículo */
.entry-share {
  max-width: 720px;
  margin: clamp(28px,4vw,40px) auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}

@media (max-width: 520px) {
  .post-actions { gap: 14px; }
  .entry-share { justify-content: center; }
}

/* ============================================================
   MIGAS DE PAN
   ============================================================ */
.breadcrumbs {
  font-family: var(--ff-board);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li::after { content: "/"; color: var(--faint); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-dk); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ============================================================
   UTIL
   ============================================================ */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state h2 { color: var(--ink); }

/* ============================================================
   RESPONSIVE — REFUERZOS Y ANUNCIOS (CLS)
   ============================================================ */
/* Evita que palabras o URLs largas desborden en móvil. */
.entry-content,
.post-card h3,
.hero-body h1,
.article-header h1 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Incrustaciones (YouTube, etc.) y tablas dentro del contenido. */
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video { width: 100%; }

.entry-content figure { max-width: 100%; }
.entry-content .wp-block-embed__wrapper { position: relative; }

/* Tablas anchas: scroll horizontal en móvil en lugar de romper el ancho. */
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content > table,
.entry-content .wp-block-table { display: block; max-width: 100%; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 1px solid var(--line); }

/* Bloques de AdSense: reservan su espacio y se centran (reduce el salto de diseño). */
ins.adsbygoogle { display: block; margin: 24px auto; text-align: center; max-width: 100%; }

/* Imágenes alineadas a ancho completo no deben desbordar el contenedor. */
.alignfull, .alignwide { max-width: 100%; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .alignleft, .alignright { float: none; margin: 0 0 1em; }
}
