/* ============================================================
   ZIPWEB — blog.css
   Estilos para las páginas del blog
   ============================================================ */

/* ==================== BLOG PAGE ==================== */

/* Blog Hero */
.blog-hero {
  padding: 8rem 6% 4rem;
  border-bottom: 1px solid var(--border);
}

.blog-hero-content {
  max-width: 800px;
}

.blog-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-top: 1rem;
}

.blog-hero-content h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero-content p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  line-height: 1.7;
}

/* Blog Search Section */
.blog-search-section {
  padding: 2rem 6%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.blog-search-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Search Row - Todos los filtros en una línea */
.blog-search-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 280px;
}

.blog-search-icon {
  position: absolute;
  left: 1.25rem;
  font-size: 1.2rem;
  color: var(--muted);
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  padding: 0.875rem 3.5rem 0.875rem 3rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.1);
}

.blog-search-input::placeholder {
  color: var(--muted);
}

.blog-search-clear {
  position: absolute;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.blog-search-clear:hover {
  background: var(--orange2);
  transform: scale(1.1);
}

/* Filter Select Wrapper */
.blog-filter-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 160px;
}

.blog-filter-select-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-filter-select {
  padding: 0.75rem 2rem 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF5C00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.blog-filter-select:focus {
  outline: none;
  border-color: var(--orange);
}

.blog-filter-select option {
  background: var(--card);
  color: var(--white);
}

.blog-category-select {
  min-width: 180px;
}

.blog-tag-select {
  min-width: 180px;
}

/* Results Count */
.blog-results-count {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.blog-results-number {
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
  margin-right: 0.25rem;
}

/* Blog Filters (legacy - kept for compatibility) */
.blog-filters {
  padding: 1.5rem 6%;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.blog-filters-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-filter-btn {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-btn:hover {
  border-color: var(--orange);
  color: var(--white);
}

.blog-filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Blog Posts Section */
.blog-posts-section {
  padding: 4rem 6%;
}

.blog-posts-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Blog Card */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--orange);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-read-more {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease;
}

/* Blog Loading */
.blog-loading {
  text-align: center;
  padding: 4rem 2rem;
}

.blog-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Blog Empty */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.blog-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.blog-empty p {
  color: var(--muted);
  font-size: 1.1rem;
}

.blog-clear-filters-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-clear-filters-btn:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.3);
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 6%;
}

.blog-page-btn {
  padding: 0.7rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-page-btn:hover:not(:disabled) {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
  transform: translateY(-2px);
}

.blog-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.blog-page-info {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==================== BLOG POST PAGE ==================== */

.blog-post-page {
  min-height: 100vh;
}

/* Post Loading */
.blog-post-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 4rem 2rem;
}

/* Post Content */
.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 6%;
}

/* Post Header */
.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
  margin-top: 50px;
}

.blog-post-back:hover {
  color: var(--orange);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-post-category {
  padding: 0.35rem 0.75rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-post-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  letter-spacing: -1px;
}

.blog-post-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.blog-post-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}

.blog-post-author-info {
  display: flex;
  flex-direction: column;
}

.blog-post-author-name {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.blog-post-author-role {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Featured Image */
.blog-post-featured-image {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
}

.blog-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Body */
.blog-post-body {
  margin-top: 3rem;
}

.blog-post-body-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--white);
}

.blog-post-body-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin: 2.5rem 0 1rem 0;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.blog-post-body-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 0.75rem 0;
  line-height: 1.3;
}

.blog-post-body-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 1.5rem 0 0.5rem 0;
}

.blog-post-body-content p {
  margin: 1.25rem 0;
  color: var(--white);
  word-wrap: break-word;
}

.blog-post-body-content ul,
.blog-post-body-content ol {
  margin: 1.25rem 0;
  padding-left: 2rem;
}

.blog-post-body-content li {
  margin: 0.75rem 0;
  color: var(--white);
  line-height: 1.7;
}

.blog-post-body-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--card);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--muted);
}

.blog-post-body-content pre {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #0d1117;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-post-body-content code {
  font-family: 'Consolas', 'Monaco', monospace;
  color: #e6edf3;
}

.blog-post-body-content p code {
  background: rgba(255, 92, 0, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-post-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block;
}

.blog-post-body-content figure {
  margin: 1.5rem 0;
}

.blog-post-body-content figure img {
  margin: 0;
}

.blog-post-body-content figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.blog-post-body-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.blog-post-body-content a:hover {
  color: var(--orange2);
}

.blog-post-body-content strong {
  font-weight: 800;
  color: var(--white);
}

.blog-post-body-content em {
  font-style: italic;
  color: var(--white);
}

.blog-post-body-content u {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-body-content hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.blog-post-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  overflow-x: auto;
  display: block;
}

.blog-post-body-content th,
.blog-post-body-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.blog-post-body-content th {
  background: var(--card);
  font-weight: 700;
  color: var(--white);
}

.blog-post-body-content td {
  color: var(--white);
}

/* Post Tags */
.blog-post-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.blog-post-tags-title {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-tag {
  padding: 0.35rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.blog-tag:hover {
  border-color: var(--orange);
  color: var(--white);
}

/* Post Share */
.blog-post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-post-share>span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-post-share-buttons {
  display: flex;
  gap: 0.5rem;
}

.blog-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-share-btn:hover {
  border-color: var(--orange);
  color: var(--white);
  background: var(--orange);
}

/* Post Navigation */
.blog-post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-post-nav-prev,
.blog-post-nav-next {
  flex: 1;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-post-nav-prev:hover,
.blog-post-nav-next:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.blog-post-nav-prev span,
.blog-post-nav-next span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-post-nav-prev strong,
.blog-post-nav-next strong {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.4;
}

/* Post Error */
.blog-post-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 4rem 2rem;
  text-align: center;
}

.blog-error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.blog-post-error h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.75rem 0;
}

.blog-post-error p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
}

/* ==================== ADMIN BLOG ==================== */

.admin-categorias-container {
  padding: 2rem;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.admin-categorias-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-categoria-tag {
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Admin Editor */
.admin-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.editor-btn {
  padding: 0.5rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.admin-editor {
  border-radius: 0 0 12px 12px !important;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.7;
  padding: 1.5rem;
  min-height: 300px;
  background: var(--card);
  color: var(--white);
}

.admin-editor[contenteditable="true"] {
  overflow-y: auto;
  max-height: 500px;
}

.admin-editor[contenteditable="true"]:empty:before {
  content: attr(placeholder);
  color: var(--muted);
  font-style: italic;
}

.admin-editor[contenteditable="true"]:focus {
  outline: none;
  border-color: var(--orange);
}

/* Estilos dentro del editor */
.admin-editor h2,
.admin-editor h3,
.admin-editor h4 {
  color: var(--white);
  margin: 1.5rem 0 0.75rem 0;
}

.admin-editor h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.admin-editor h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-editor h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-editor p {
  margin: 1rem 0;
  color: var(--white);
}

.admin-editor ul,
.admin-editor ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.admin-editor li {
  margin: 0.5rem 0;
  color: var(--white);
}

.admin-editor blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(255, 92, 0, 0.1);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
}

.admin-editor pre {
  margin: 1rem 0;
  padding: 1rem;
  background: #0d1117;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  font-family: 'Consolas', 'Monaco', monospace;
  color: #e6edf3;
}

.admin-editor code {
  font-family: 'Consolas', 'Monaco', monospace;
  background: rgba(255, 92, 0, 0.15);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #e6edf3;
}

.admin-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.admin-editor a {
  color: var(--orange);
  text-decoration: underline;
}

.admin-editor strong {
  font-weight: 800;
}

.admin-editor em {
  font-style: italic;
}

.admin-editor u {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Admin Image Upload */
.admin-image-upload {
  margin-bottom: 1rem;
}

.admin-image-preview {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.admin-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: cover;
}

.admin-image-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.admin-image-remove:hover {
  background: var(--orange);
  transform: scale(1.1);
}

.admin-file-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-file-label:hover {
  border-color: var(--orange);
  background: rgba(255, 92, 0, 0.05);
}

.admin-file-icon {
  font-size: 2rem;
}

.admin-file-text {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-table th {
  padding: 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--white);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: rgba(255, 92, 0, 0.05);
}

/* Badge styles */
.admin-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge-warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Icon buttons */
.btn-icon-edit,
.btn-icon-view {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-icon-edit:hover {
  border-color: var(--orange);
  background: var(--orange);
}

.btn-icon-view:hover {
  border-color: var(--blue);
  background: var(--blue);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-search-section {
    padding: 1.5rem 4%;
  }

  .blog-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-input-wrapper {
    min-width: 100%;
  }

  .blog-search-input {
    font-size: 0.95rem;
    padding: 0.875rem 3.5rem 0.875rem 2.75rem;
  }

  .blog-filter-select-wrapper {
    min-width: 100%;
  }

  .blog-filter-select {
    width: 100%;
  }

  .blog-category-select,
  .blog-tag-select {
    min-width: 100%;
  }

  .blog-results-count {
    width: 100%;
    justify-content: center;
  }

  .blog-filters {
    top: auto;
    position: relative;
  }

  .blog-filters-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .blog-filter-btn {
    white-space: nowrap;
  }

  .blog-post-navigation {
    flex-direction: column;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .blog-pagination {
    gap: 1rem;
    padding: 2rem 5%;
  }

  .blog-page-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
  }

  .blog-page-info {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADICIONAL - TODOS LOS DISPOSITIVOS
   ═══════════════════════════════════════════════════════════════ */

/* ─── MOBILE XS (≤320px) ───────────────────────────────────── */
@media (max-width: 320px) {
  .blog-hero {
    padding: 6rem 4% 3rem;
  }

  .blog-hero-content h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .blog-hero-content p {
    font-size: 0.8rem;
  }

  .blog-search-input {
    font-size: 0.85rem;
    padding: 0.75rem 3rem 0.75rem 2.5rem;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    border-radius: 12px;
  }

  .blog-card-image {
    height: 160px;
  }

  .blog-card-content {
    padding: 1.2rem;
  }

  .blog-card-title {
    font-size: 1.05rem;
  }

  .blog-card-excerpt {
    font-size: 0.85rem;
  }
}

/* ─── FOLDABLE / SMALL TABLET (≤600px) ───────────────────── */
@media (max-width: 600px) {
  .blog-hero {
    padding: 7rem 5% 3.5rem;
  }

  .blog-hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .blog-search-section {
    padding: 1.5rem 5%;
  }

  .blog-posts-section {
    padding: 3rem 5%;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-pagination {
    padding: 2rem 5%;
  }

  .blog-post-content {
    padding: 3rem 5%;
  }
}

/* ─── TABLET MEDIUM (≤834px) - iPad Air, iPad Pro 11" ────── */
@media (min-width: 601px) and (max-width: 834px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .blog-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }
}

/* ─── TABLET LARGE (≤1024px) - iPad Pro 12.9" ────────────── */
@media (min-width: 835px) and (max-width: 1024px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .blog-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
  }
}

/* ─── DESKTOP SMALL (≤1280px) - Laptops 13" ──────────────── */
@media (min-width: 1025px) and (max-width: 1280px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
    margin: 0 auto;
  }

  .blog-hero-content,
  .blog-post-content {
    max-width: 900px;
  }
}

/* ─── DESKTOP MEDIUM (≤1440px) - Laptops 15", Monitores ──── */
@media (min-width: 1281px) and (max-width: 1440px) {
  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }

  .blog-hero-content,
  .blog-post-content {
    max-width: 950px;
  }
}

/* ─── DESKTOP LARGE (≤1680px) - Monitores 17-19" ─────────── */
@media (min-width: 1441px) and (max-width: 1680px) {
  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    gap: 2.2rem;
  }

  .blog-hero-content,
  .blog-post-content {
    max-width: 1050px;
  }

  .blog-card {
    border-radius: 18px;
  }

  .blog-card-image {
    height: 220px;
  }

  .blog-card-content {
    padding: 1.8rem;
  }

  .blog-card-title {
    font-size: 1.35rem;
  }
}

/* ─── DESKTOP XL (≤1920px) - Monitores 21-24" ────────────── */
@media (min-width: 1681px) and (max-width: 1920px) {
  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1500px;
    gap: 2.5rem;
  }

  .blog-hero-content,
  .blog-post-content {
    max-width: 1150px;
  }

  .blog-card {
    border-radius: 20px;
  }

  .blog-card-image {
    height: 240px;
  }

  .blog-card-content {
    padding: 2rem;
  }

  .blog-card-title {
    font-size: 1.4rem;
  }

  .blog-card-excerpt {
    font-size: 1rem;
  }
}

/* ─── DESKTOP ULTRA (≥1921px) - Monitores 27"+, 4K, 5K ───── */
@media (min-width: 1921px) {
  .blog-hero {
    padding: 10rem 6% 5rem;
  }

  .blog-hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

  .blog-hero-content p {
    font-size: 1.3rem;
  }

  .blog-search-input {
    padding: 1.1rem 4rem 1.1rem 3.5rem;
    font-size: 1.1rem;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1700px;
    gap: 3rem;
  }

  .blog-card {
    border-radius: 24px;
  }

  .blog-card-image {
    height: 280px;
  }

  .blog-card-category {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
  }

  .blog-card-content {
    padding: 2.5rem;
  }

  .blog-card-title {
    font-size: 1.6rem;
  }

  .blog-card-excerpt {
    font-size: 1.05rem;
  }

  .blog-post-content {
    max-width: 1000px;
    padding: 5rem 6%;
  }

  .blog-post-header h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
  }

  .blog-post-subtitle {
    font-size: 1.4rem;
  }

  .blog-post-body-content {
    font-size: 1.25rem;
    line-height: 1.9;
  }
}

/* ─── ORIENTACIONES LANDSCAPE ─────────────────────────────── */
/* Landscape móvil */
@media (max-width: 768px) and (max-height: 500px) {
  .blog-hero {
    padding: 5rem 4% 2rem;
    min-height: auto;
  }

  .blog-hero-content h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
  }

  .blog-search-section {
    padding: 1rem 4%;
  }

  .blog-search-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-search-input-wrapper {
    min-width: 200px;
    flex: 1;
  }

  .blog-filter-select-wrapper {
    min-width: 140px;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .blog-card-image {
    height: 140px;
  }

  .blog-card-content {
    padding: 1rem;
  }

  .blog-card-title {
    font-size: 0.95rem;
  }

  .blog-card-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
}

/* Landscape tablet */
@media (min-width: 769px) and (max-width: 1024px) and (max-height: 700px) {
  .blog-hero {
    padding: 7rem 4% 3rem;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-card-image {
    height: 180px;
  }
}

/* ─── ACCESIBILIDAD - PREFERENCIA REDUCCIÓN MOVIMIENTO ───── */
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card-image img,
  .blog-filter-btn,
  .blog-page-btn {
    transition: none !important;
  }

  .blog-loading-spinner {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── ACCESIBILIDAD - ALTO CONTRASTE ─────────────────────── */
@media (prefers-contrast: high) {
  .blog-card {
    border-width: 2px;
  }

  .blog-card-link:hover .blog-card {
    border-color: var(--orange);
  }

  .blog-search-input:focus {
    border-width: 2px;
  }

  .blog-filter-btn.active {
    border: 2px solid var(--white);
  }
}

/* ─── IMPRESIÓN ──────────────────────────────────────────── */
@media print {
  nav,
  footer,
  .blog-search-section,
  .blog-filters,
  .blog-pagination,
  .hamburger,
  .nav-right {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .blog-posts-grid {
    display: block;
  }

  .blog-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 1.5rem;
    page-break-inside: avoid;
  }

  .blog-card-image {
    height: 150px;
  }

  .blog-card-category {
    background: #eee !important;
    color: #000 !important;
  }

  a {
    text-decoration: underline;
  }

  .blog-card-read-more::after {
    content: " (ver más)";
  }
}