/*
Theme Name:  Enterprise Moto
Theme URI:   https://jjramosgo.blog
Author:      Juanjo & María José
Author URI:  https://jjramosgo.blog
Description: Tema personalizado para el Diario de ruta de la Enterprise. Blog de viajes en moto con diseño editorial oscuro, tipografía Bebas Neue + DM Sans y acento dorado.
Version:     1.5.1
Requires at least: 6.0
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       enterprise-moto
Tags: blog, travel, motorcycle, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ─────────────────────────────────────────
   TOKENS DE DISEÑO
───────────────────────────────────────── */
:root {
  --black:      #0e0e0e;
  --dark:       #1a1a1a;
  --mid:        #5a5a5a;
  --light-mid:  #888;
  --border:     #e2e2de;
  --surface:    #f5f5f2;
  --surface-dk: #f0f0ec;
  --white:      #ffffff;
  --gold:       #f2c118;
  --gold-dk:    #c9a010;
  --gold-lt:    rgba(242,193,24,0.10);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-serif:   'DM Serif Display', serif;

  --max:        1240px;
  --nav-h:      64px;
  --ease:       cubic-bezier(.25,.46,.45,.94);

  --radius:     2px;
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   56px;
  --space-xl:   80px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-dk); text-decoration: none; transition: color .15s; }
a:hover { color: var(--black); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: .4em; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
th { font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); background: var(--surface); }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding-top: var(--nav-h); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 40px; }

/* ─────────────────────────────────────────
   SKIP LINK (accesibilidad)
───────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--gold); color: var(--black);
  font-weight: 700; font-size: 13px; letter-spacing: .06em;
  padding: 10px 20px; z-index: 9999; border-radius: 0 0 2px 2px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: background .2s;
}
.site-logo:hover .logo-icon { background: var(--gold); }
.logo-text-wrap { line-height: 1.2; }
.logo-name {
  display: block; font-family: var(--font-display);
  font-size: 16px; letter-spacing: .1em; color: var(--black);
  text-transform: uppercase; line-height: 1;
}
.logo-sub { display: block; font-size: 10px; color: var(--mid); letter-spacing: .04em; margin-top: 2px; }

/* Menú principal */
.nav-wrapper { display: flex; align-items: center; gap: 4px; }
.main-navigation ul {
  display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0;
}
.main-navigation ul li a {
  font-size: 13px; font-weight: 500; color: var(--mid);
  text-decoration: none; padding: 7px 14px; display: block;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a {
  color: var(--black); background: var(--surface);
}
.main-navigation ul li.menu-item-type-cta > a,
.main-navigation ul li:last-child > a {
  background: var(--black); color: var(--white) !important;
  font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 18px;
}
.main-navigation ul li.menu-item-type-cta > a:hover,
.main-navigation ul li:last-child > a:hover {
  background: var(--gold); color: var(--black) !important;
}

/* Submenús */
.main-navigation ul ul {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 200px; flex-direction: column; gap: 0;
  display: none; z-index: 100;
}
.main-navigation ul li { position: relative; }
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul ul li a { padding: 10px 16px; border-radius: 0; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.nav-toggle-bar {
  width: 22px; height: 2px; background: var(--black); border-radius: 1px;
  transition: transform .25s, opacity .25s;
  display: block;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   TICKER
───────────────────────────────────────── */
.site-ticker {
  background: var(--gold); overflow: hidden; padding: 9px 0;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: .12em; color: var(--black);
  padding: 0 28px; white-space: nowrap;
}
.ticker-item::after { content: ' ✦ '; margin-left: 28px; opacity: .5; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   HERO (página de inicio)
───────────────────────────────────────── */
.home-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  border-bottom: 1px solid var(--border);
}
.hero-left {
  background: var(--black); padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.hero-left::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: .35; pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); position: relative; z-index: 1;
}
.hero-tag::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); }

.hero-headline { position: relative; z-index: 1; }
.hero-headline h1 {
  font-family: var(--font-display);
  font-size: clamp(68px, 7vw, 106px);
  line-height: .9; letter-spacing: .03em;
  color: var(--white); margin: 0;
}
.hero-headline .line-gold  { color: var(--gold); display: block; }
.hero-headline .line-outline {
  color: transparent; display: block;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.25);
}
.hero-headline .line-white { display: block; }
.hero-desc {
  margin-top: 28px; font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,.5); max-width: 380px; line-height: 1.8;
}

.hero-bottom { position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); margin-bottom: 28px; }
.hero-stat-num { font-family: var(--font-display); font-size: 44px; letter-spacing: .04em; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: .07em; text-transform: uppercase; margin-top: 3px; }

.hero-right {
  position: relative; overflow: hidden; background: var(--surface);
  min-height: 400px;
}
.hero-right .hero-featured-image { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
  width: 100%; height: 100%; min-height: 420px;
  background: linear-gradient(160deg, #d4b060 0%, #8a5c1a 40%, #2a1a08 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.hero-photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(14,14,14,.85), transparent);
  padding: 32px 28px 20px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.hero-photo-label { font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; color: var(--white); }
.hero-photo-tag {
  background: var(--gold); color: var(--black);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; flex-shrink: 0;
}

/* ─────────────────────────────────────────
   TAGS / BADGES
───────────────────────────────────────── */
.entry-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px;
}
.entry-tag--cat  { background: var(--black); color: var(--white); }
.entry-tag--date { background: var(--surface); color: var(--mid); border: 1px solid var(--border); }
.entry-tag--new  { background: var(--gold); color: var(--black); }
.entry-tags      { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─────────────────────────────────────────
   BOTONES
───────────────────────────────────────── */
.btn, .wp-block-button__link, input[type="submit"] {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 24px; text-decoration: none; border: none;
  transition: background .2s, color .2s, transform .2s;
  cursor: pointer;
}
.btn--dark, .wp-block-button__link {
  background: var(--black); color: var(--white);
}
.btn--dark:hover, .wp-block-button__link:hover {
  background: var(--gold); color: var(--black); transform: translateY(-1px);
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-dk); color: var(--black); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--mid);
  border: 1px solid var(--border); padding: 12px 20px;
}
.btn--ghost:hover { color: var(--black); border-color: var(--black); }

/* ─────────────────────────────────────────
   SECCIÓN: ÚLTIMA RUTA DESTACADA (home)
───────────────────────────────────────── */
.featured-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 36px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.featured-grid {
  display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: start;
}
.featured-number {
  font-family: var(--font-display); font-size: 160px; line-height: .85;
  color: var(--surface); letter-spacing: -.02em; margin-bottom: -20px;
  user-select: none;
}
.featured-title {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 54px);
  letter-spacing: .03em; line-height: .95; color: var(--black);
  text-transform: uppercase; margin-bottom: 18px;
}
.featured-excerpt {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--mid); margin-bottom: 28px; max-width: 540px;
}
.featured-stats {
  display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.featured-stat {
  flex: 1; padding: 14px 0; border-right: 1px solid var(--border); padding-left: 18px;
}
.featured-stat:first-child { padding-left: 0; }
.featured-stat:last-child  { border-right: none; }
.featured-stat-num { font-family: var(--font-display); font-size: 28px; letter-spacing: .04em; color: var(--black); line-height: 1; }
.featured-stat-label { font-size: 11px; color: var(--mid); text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }
.featured-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.featured-image-wrap { position: sticky; top: calc(var(--nav-h) + 24px); }
.featured-image {
  position: relative; overflow: hidden;
  background: var(--surface); aspect-ratio: 4/3;
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-image-no-img {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 72px;
  background: linear-gradient(135deg, #3a3a6a 0%, #0e0818 100%);
}
.featured-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,.65) 0%, transparent 60%);
  pointer-events: none;
}
.featured-image-meta {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  z-index: 1; display: flex; justify-content: space-between; align-items: flex-end;
}
.featured-image-title { font-family: var(--font-display); font-size: 15px; letter-spacing: .1em; color: var(--white); max-width: 200px; line-height: 1.2; }
.featured-image-km { background: var(--gold); color: var(--black); font-family: var(--font-display); font-size: 16px; letter-spacing: .08em; padding: 5px 12px; flex-shrink: 0; }

/* ─────────────────────────────────────────
   GRID DE POSTS (archivo / home)
───────────────────────────────────────── */
.posts-section { padding: var(--space-lg) 0; }
.posts-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px;
}
.posts-section-title { font-family: var(--font-display); font-size: 40px; letter-spacing: .05em; }
.posts-count { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; }

.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--border); border: 1px solid var(--border); gap: 1px;
}
.posts-grid--2col { grid-template-columns: repeat(2, 1fr); }
.posts-grid--4col { grid-template-columns: repeat(4, 1fr); }

/* Post card */
.post-card { background: var(--white); overflow: hidden; transition: background .2s; }
.post-card:hover { background: var(--surface); }
.post-card:hover .post-card-arrow { background: var(--gold); color: var(--black); }
.post-card:hover .post-card-thumb-inner { transform: scale(1.04); }

.post-card-thumb { height: 200px; overflow: hidden; position: relative; }
.post-card-thumb-inner { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.post-card-thumb-inner img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: linear-gradient(135deg, #2d5a27, #0a1e08 80%);
}
.post-card-num {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: .1em;
  color: rgba(255,255,255,.4); z-index: 1;
}
.post-card-body { padding: 18px 20px 20px; }
.post-card-title {
  font-family: var(--font-display); font-size: 19px; letter-spacing: .04em;
  color: var(--black); line-height: 1.1; margin-bottom: 8px; margin-top: 8px;
  text-transform: uppercase;
}
.post-card-title a { color: var(--black); text-decoration: none; }
.post-card-title a:hover { color: var(--gold-dk); }
.post-card-excerpt { font-size: 13px; color: var(--mid); line-height: 1.6; font-weight: 300; margin-bottom: 14px; }
.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.post-card-km { font-family: var(--font-display); font-size: 22px; letter-spacing: .04em; color: var(--black); }
.post-card-km span { font-family: var(--font-body); font-size: 11px; color: var(--mid); font-weight: 400; }
.post-card-arrow {
  width: 32px; height: 32px; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: background .2s, color .2s; flex-shrink: 0;
}

/* ─────────────────────────────────────────
   SECCIÓN DESTINOS
───────────────────────────────────────── */
.destinations-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-lg) 0; }
.destinations-grid {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--border); margin-top: 28px;
}
.destination-item {
  flex: 1; min-width: 150px; padding: 18px 20px;
  border-right: 1px solid var(--border);
  transition: background .2s; position: relative; cursor: default;
}
.destination-item:last-child { border-right: none; }
.destination-item:hover { background: var(--surface); }
.destination-flag { font-size: 20px; margin-bottom: 6px; }
.destination-name { font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; color: var(--black); margin-bottom: 2px; }
.destination-country { font-size: 11px; color: var(--mid); letter-spacing: .03em; }
.destination-dot { position: absolute; top: 14px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ─────────────────────────────────────────
   SECCIÓN SOBRE EL BLOG
───────────────────────────────────────── */
.about-section {
  background: var(--black); padding: var(--space-xl) 0;
  position: relative; overflow: hidden;
}
.about-section::before {
  content: 'ENTERPRISE'; position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-size: 160px; letter-spacing: .04em;
  color: rgba(255,255,255,.025); pointer-events: none; user-select: none;
  line-height: 1; white-space: nowrap;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.about-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.about-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold); }
.about-title {
  font-family: var(--font-display); font-size: clamp(44px, 5vw, 68px);
  letter-spacing: .03em; line-height: .95; color: var(--white); margin-bottom: 24px;
}
.about-title span { color: var(--gold); }
.about-text { font-size: 16px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.about-image-wrap { position: relative; }
.about-image {
  position: relative; overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(135deg, #4a3a1a, #1a0e04 80%);
  display: flex; align-items: center; justify-content: center; font-size: 72px;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-frame {
  position: absolute; top: -12px; right: -12px; bottom: 12px; left: 12px;
  border: 1.5px solid rgba(242,193,24,.3); pointer-events: none; z-index: 1;
}
.about-image-badge {
  position: absolute; bottom: 20px; left: -16px;
  background: var(--gold); color: var(--black);
  font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; padding: 8px 16px; z-index: 2;
}

/* ─────────────────────────────────────────
   VISTA INDIVIDUAL DE POST (single.php)
───────────────────────────────────────── */
.post-hero-wrap {
  background: var(--black); padding: 64px 40px 56px;
  position: relative; overflow: hidden;
}
.post-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 36px;
  transition: color .2s;
}
.post-back:hover { color: var(--gold); }
.post-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 86px); line-height: .9;
  letter-spacing: .03em; color: var(--white);
  max-width: 900px; margin-bottom: 20px; text-transform: uppercase;
}
.post-hero-sub { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.5); max-width: 560px; line-height: 1.7; }

/* Data strip */
.post-data-strip {
  display: flex; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.post-data-item { flex: 1; padding: 18px 24px; border-right: 1px solid var(--border); }
.post-data-item:last-child { border-right: none; }
.post-data-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 4px; }
.post-data-value { font-family: var(--font-display); font-size: 20px; letter-spacing: .04em; color: var(--black); }

/* Post layout */
.post-layout {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 320px;
  align-items: start;
}
.post-content-area { padding: 56px 64px 72px 40px; border-right: 1px solid var(--border); min-width: 0; }
.post-sidebar { padding: 48px 32px; position: sticky; top: calc(var(--nav-h) + 24px); }

/* Imagen de portada */
.post-cover {
  position: relative; overflow: hidden; margin-bottom: 40px;
}
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.post-cover-caption {
  background: var(--surface); padding: 10px 14px;
  font-size: 12px; color: var(--mid); font-style: italic; border-bottom: 1px solid var(--border);
}

/* Tipografía del relato */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--font-display); letter-spacing: .05em;
  color: var(--black); text-transform: uppercase; margin-top: 48px; margin-bottom: 14px;
  line-height: 1;
}
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; font-family: var(--font-body); text-transform: none; font-weight: 700; }
.entry-content p  { font-size: 17px; line-height: 1.85; color: #3a3a3a; font-weight: 300; margin-bottom: 20px; }
.entry-content strong { font-weight: 700; color: var(--black); }
.entry-content em    { font-style: italic; }
.entry-content a     { color: var(--gold-dk); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--black); }
.entry-content ul, .entry-content ol { font-size: 16px; color: #3a3a3a; margin-bottom: 20px; line-height: 1.7; }
.entry-content blockquote {
  border-left: 3px solid var(--gold); padding: 14px 24px;
  background: var(--surface); margin: 36px 0;
  font-size: 19px; font-style: italic; color: var(--black); line-height: 1.55;
  font-family: var(--font-serif);
}
.entry-content blockquote p { font-size: inherit; color: inherit; font-style: inherit; margin: 0; font-family: inherit; font-weight: 400; }
.entry-content img { width: 100%; height: auto; margin: 28px 0; }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { font-size: 12px; color: var(--mid); font-style: italic; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.entry-content table { margin-bottom: 24px; }
.entry-content .wp-block-image { margin: 32px 0; }
.entry-content .wp-block-gallery { margin: 32px 0; }
.entry-content .wp-block-columns { margin: 28px 0; gap: 24px; }

/* Cuadro de info práctica */
.practical-info {
  background: var(--surface); border-top: 3px solid var(--gold);
  padding: 22px 24px; margin: 40px 0;
}
.practical-info-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; }
.practical-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 14px; color: #3a3a3a; }
.practical-info-grid strong { color: var(--black); }

/* Post meta footer */
.post-meta-footer {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a { font-size: 12px; font-weight: 600; padding: 5px 12px; background: var(--surface); color: var(--mid); border: 1px solid var(--border); letter-spacing: .04em; text-transform: uppercase; transition: background .15s, color .15s; }
.post-tags a:hover { background: var(--black); color: var(--white); }
.post-share { font-size: 12px; color: var(--mid); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* Navegación entre posts */
.post-navigation {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.post-nav-item { padding: 28px 32px; border-right: 1px solid var(--border); }
.post-nav-item:last-child { border-right: none; text-align: right; }
.post-nav-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.post-nav-item:last-child .post-nav-label { justify-content: flex-end; }
.post-nav-title { font-family: var(--font-display); font-size: 18px; letter-spacing: .06em; color: var(--black); line-height: 1.2; text-transform: uppercase; }
.post-nav-title a { color: var(--black); text-decoration: none; transition: color .15s; }
.post-nav-title a:hover { color: var(--gold-dk); }

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar-widget { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.sidebar-widget:last-child { border-bottom: none; margin-bottom: 0; }
.widget-title {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 16px;
}
/* Widget: lista de entradas recientes */
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { font-size: 14px; font-weight: 500; color: var(--black); text-decoration: none; display: block; transition: color .15s; }
.sidebar-widget ul li a:hover { color: var(--gold-dk); }
.sidebar-widget ul li .post-date { font-size: 11px; color: var(--mid); margin-top: 2px; }
/* Widget: categorías */
.sidebar-widget .cat-item a { display: flex; justify-content: space-between; align-items: center; }
/* Widget: search */
.sidebar-widget .search-form { display: flex; }
.sidebar-widget .search-field {
  flex: 1; border: 1px solid var(--border); border-right: none;
  padding: 9px 14px; font-size: 14px; background: var(--white);
  font-family: var(--font-body);
}
.sidebar-widget .search-field:focus { outline: none; border-color: var(--gold); }
.sidebar-widget .search-submit {
  background: var(--black); color: var(--white); border: none;
  padding: 9px 16px; font-size: 13px; cursor: pointer;
  transition: background .2s;
}
.sidebar-widget .search-submit:hover { background: var(--gold); color: var(--black); }
/* Tip box */
.tip-box {
  background: var(--gold-lt); border-left: 3px solid var(--gold);
  padding: 14px 16px;
}
.tip-box-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 6px; }
.tip-box-text { font-size: 13px; color: var(--dark); line-height: 1.6; }

/* ─────────────────────────────────────────
   PÁGINA ESTÁTICA (page.php)
───────────────────────────────────────── */
.page-hero-wrap {
  background: var(--black); padding: 56px 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(44px, 5vw, 80px);
  letter-spacing: .03em; color: var(--white); text-transform: uppercase;
  max-width: 800px; line-height: .95;
}
.page-content-wrap { max-width: var(--max); margin: 0 auto; padding: var(--space-lg) 40px; }
.page-content-wrap .entry-content p { font-size: 17px; }

/* ─────────────────────────────────────────
   ARCHIVO (archive.php)
───────────────────────────────────────── */
.archive-header { background: var(--black); padding: 48px 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.archive-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.archive-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold); }
.archive-title { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); letter-spacing: .03em; color: var(--white); text-transform: uppercase; line-height: .95; }
.archive-desc { font-size: 15px; font-weight: 300; color: rgba(255,255,255,.5); margin-top: 14px; max-width: 520px; line-height: 1.7; }
.archive-posts { max-width: var(--max); margin: 0 auto; padding: var(--space-lg) 40px; }

/* ─────────────────────────────────────────
   PAGINACIÓN
───────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 48px; }
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--border); font-size: 14px; font-weight: 500; color: var(--mid);
  transition: all .15s; text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--black); color: var(--black); }
.pagination .page-numbers.current { background: var(--black); border-color: var(--black); color: var(--white); font-weight: 700; }

/* ─────────────────────────────────────────
   COMENTARIOS
───────────────────────────────────────── */
.comments-section { max-width: var(--max); margin: 0 auto; padding: 0 40px var(--space-lg); border-top: 1px solid var(--border); padding-top: var(--space-lg); }
.comments-title { font-family: var(--font-display); font-size: 28px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 32px; }
.comment { padding: 24px 0; border-bottom: 1px solid var(--border); }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author { font-weight: 700; font-size: 14px; color: var(--black); }
.comment-date { font-size: 12px; color: var(--mid); }
.comment-content p { font-size: 15px; color: #3a3a3a; line-height: 1.7; margin-bottom: 8px; }
.reply a { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); text-decoration: none; transition: color .15s; }
.reply a:hover { color: var(--black); }
.comment-form-wrap { margin-top: 48px; }
.comment-form-title { font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 14px; background: var(--white);
  transition: border-color .2s; margin-bottom: 16px; display: block;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--gold); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form-cookies-consent label { font-size: 13px; color: var(--mid); }
.comment-form input[type="submit"] { background: var(--black); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 13px 26px; border: none; cursor: pointer; transition: background .2s; margin-top: 8px; }
.comment-form input[type="submit"]:hover { background: var(--gold); color: var(--black); }

/* ─────────────────────────────────────────
   404
───────────────────────────────────────── */
.error-404-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 40px; }
.error-404-num { font-family: var(--font-display); font-size: 180px; color: var(--surface); line-height: 1; letter-spacing: -.02em; margin-bottom: -20px; user-select: none; }
.error-404-title { font-family: var(--font-display); font-size: 36px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.error-404-desc { font-size: 16px; font-weight: 300; color: var(--mid); max-width: 400px; margin: 0 auto 28px; line-height: 1.7; }

/* ─────────────────────────────────────────
   BUSQUEDA
───────────────────────────────────────── */
.search-header { background: var(--black); padding: 48px 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.search-header-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.search-header-title { font-family: var(--font-display); font-size: clamp(36px, 4vw, 64px); letter-spacing: .04em; color: var(--white); text-transform: uppercase; }
.search-header-title span { color: var(--gold); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--black); border-top: 3px solid var(--gold);
  padding: 56px 40px 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-display); font-size: 26px; letter-spacing: .08em; color: var(--white); margin-bottom: 12px; line-height: 1; }
.footer-brand-name span { color: var(--gold); }
.footer-brand-desc { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.4); line-height: 1.7; }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; font-weight: 300; transition: color .15s; }
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,.25); }
.footer-bottom a { color: var(--gold); text-decoration: none; }
/* Widgets en footer */
.footer-widget-area .widget { }
.footer-widget-area .widget-title { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-widget-area .widget ul { list-style: none; padding: 0; }
.footer-widget-area .widget ul li a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; font-weight: 300; transition: color .15s; }
.footer-widget-area .widget ul li a:hover { color: rgba(255,255,255,.85); }

/* ─────────────────────────────────────────
   BLOQUE DE GUTENBERG: overrides
───────────────────────────────────────── */
.wp-block-image figcaption { font-size: 12px; color: var(--mid); font-style: italic; padding: 8px 0 0; }
.wp-block-pullquote { border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); padding: 28px 24px; margin: 36px 0; }
.wp-block-pullquote blockquote { border-left: none; background: transparent; padding: 0; }
.wp-block-pullquote p { font-size: 22px; font-style: italic; font-family: var(--font-serif); color: var(--black); text-align: center; }
.wp-block-pullquote cite { font-size: 12px; color: var(--mid); letter-spacing: .06em; text-transform: uppercase; font-style: normal; }
.wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.wp-block-separator.is-style-wide { border-top-width: 3px; border-color: var(--gold); }
.wp-block-code { background: var(--surface); border: 1px solid var(--border); padding: 20px; font-size: 14px; overflow-x: auto; }
.wp-block-table table { font-size: 14px; }
.wp-block-button .wp-block-button__link { display: inline-flex; background: var(--black); color: var(--white); padding: 13px 24px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s; border-radius: 0 !important; }
.wp-block-button .wp-block-button__link:hover { background: var(--gold); color: var(--black); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--black); border: 2px solid var(--black) !important; }
.is-style-outline .wp-block-button__link:hover { background: var(--black); color: var(--white); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: 1fr; gap: 40px; }
  .featured-image-wrap { position: static; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; border-top: 1px solid var(--border); padding: 40px; }
  .post-content-area { border-right: none; padding: 48px 40px; }
}
@media (max-width: 900px) {
  :root { --space-lg: 40px; --space-xl: 56px; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 300px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .post-data-strip { flex-wrap: wrap; }
  .post-data-item { min-width: 50%; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-item { border-right: none; border-bottom: 1px solid var(--border); }
  .post-nav-item:last-child { border-bottom: none; text-align: left; }
  .post-nav-item:last-child .post-nav-label { justify-content: flex-start; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 20px; }
  .site-header { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-wrapper { position: fixed; top: 0; right: -100%; bottom: 0; width: min(300px, 85vw); background: var(--white); box-shadow: -8px 0 32px rgba(0,0,0,.15); flex-direction: column; justify-content: flex-start; padding: 80px 24px 40px; transition: right .3s var(--ease); z-index: 400; }
  .nav-wrapper.is-open { right: 0; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-navigation ul li a { font-size: 16px; padding: 12px 16px; }
  .posts-grid { grid-template-columns: 1fr; }
  .destinations-grid { flex-direction: column; }
  .destination-item { border-right: none; border-bottom: 1px solid var(--border); }
  .about-section::before { display: none; }
  .hero-left { padding: 48px 24px; }
  .post-hero-wrap, .archive-header, .page-hero-wrap { padding: 48px 24px; }
  .post-content-area { padding: 36px 24px; }
  .post-sidebar { padding: 32px 24px; }
  .archive-posts { padding: var(--space-lg) 24px; }
  .comments-section { padding: var(--space-lg) 24px; }
}
