/* El Cuartel — stylesheet */
:root {
  --navy: #1A2744;
  --red: #CE2028;
  --amber: #FFBA05;
  --ash: #F4F4F5;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #ddd;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Georgia', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ash);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── BREAKING BAR ── */
.breaking-bar {
  background: var(--amber);
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 0;
  text-align: center;
}
.breaking-bar a { color: #000; }
.breaking-bar a:hover { text-decoration: underline; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
/* Logo badge EC */
.logo-mark {
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-logo .logo-text .logo-el {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.site-logo .logo-text .logo-cuartel {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 3px;
  transition: all 0.15s;
}
.site-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.site-nav a.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 6px 14px;
}
.site-nav a.nav-cta:hover {
  background: #a51920;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  margin-bottom: 32px;
}

.hero-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.hero-image {
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: linear-gradient(135deg, #0f1a30 0%, #1A2744 50%, #2a3a5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-placeholder svg {
  opacity: 0.12;
  width: 120px;
  height: 120px;
}

.hero-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag-pill {
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}
.hero-title a { color: var(--white); }
.hero-title a:hover { color: var(--amber); }

.hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── URGENTES STRIP ── */
.urgentes-strip {
  background: var(--white);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 32px;
}

.urgentes-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}

.urgentes-label {
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.urgentes-items {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.urgentes-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  padding: 2px 16px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.urgentes-item:last-child { border-right: none; }
.urgentes-item a:hover { color: var(--red); }

/* ── MAIN LAYOUT ── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 48px;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.section-header h2 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.section-header .red-bar {
  width: 4px;
  height: 20px;
  background: var(--red);
  border-radius: 2px;
}

/* ── CARDS GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .card-image img {
  transform: scale(1.03);
}
.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), #2a3a5a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image-placeholder svg {
  opacity: 0.15;
  width: 48px;
  height: 48px;
}

.card-body {
  padding: 16px;
}

.card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 8px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a:hover { color: var(--red); }

.card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-meta .dot { color: var(--border); }

/* ── LIST POSTS (older articles) ── */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-post {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.list-post:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.list-post-image {
  overflow: hidden;
  background: var(--navy);
}
.list-post-image img {
  width: 80px;
  height: 100%;
  object-fit: cover;
}
.list-post-image-placeholder {
  width: 80px;
  min-height: 70px;
  background: linear-gradient(135deg, var(--navy), #2a3a5a);
}

.list-post-body {
  padding: 12px 14px 12px 0;
}

.list-post-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 4px;
}

.list-post-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-post-title a:hover { color: var(--red); }

.list-post-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── SIDEBAR ── */
.sidebar {}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.widget-header {
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 16px;
}

.widget-body {
  padding: 16px;
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud-item {
  background: var(--ash);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.tag-cloud-item:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* About widget */
.about-widget p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.about-widget p:last-child { margin-bottom: 0; }

/* Contact widget */
.contact-widget {
  text-align: center;
  padding: 20px;
}
.contact-widget p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.btn-contact {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 3px;
  transition: background 0.15s;
}
.btn-contact:hover { background: #a51920; color: var(--white); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}
.pagination a,
.pagination .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  color: var(--text);
  transition: all 0.15s;
}
.pagination a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.pagination .page-number {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--white); }

.footer-sponsor {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sponsor-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.sponsor-text a {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.sponsor-text a:hover { color: var(--white); }

.copyright {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ── SINGLE POST ── */
.post-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 40px;
  margin-bottom: 32px;
}

.post-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 12px;
}

.post-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 780px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.post-byline .byline-sep { color: rgba(255,255,255,0.2); }
.post-byline .reading-time {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 2px;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  margin-bottom: 48px;
}

.post-feature-image {
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
}
.post-feature-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Post content typography */
.post-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.45rem;
  border-left: 4px solid var(--red);
  padding-left: 14px;
}

.post-content h3 {
  font-size: 1.15rem;
}

.post-content p { margin-bottom: 20px; }

.post-content strong { color: var(--navy); }

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.post-content li { margin-bottom: 8px; }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.post-content th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.post-content tr:nth-child(even) td { background: var(--ash); }

.post-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 32px 0;
}

.post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  background: var(--ash);
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-content code {
  background: var(--ash);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.post-content em > strong,
.post-content p:first-child > strong:first-child {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Post footer / tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-tag {
  background: var(--ash);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.post-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Related posts */
.related-posts {
  margin-top: 48px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-post { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding: 32px 24px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 1.4rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .post-title { font-size: 1.5rem; }
  .post-content { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
