/* Estilos mejorados para la página de blog */

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 80px 0 50px;
  text-align: center;
  margin-bottom: 0;
}

.blog-hero h1 {
  font-size: 2.5rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.1rem;
  color: #37474f;
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

.search-form {
  display: flex;
  position: relative;
}

.search-form input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-form input:focus {
  border-color: #2ECC71;
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.search-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  background: #2ECC71;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form button:hover {
  background: #27ae60;
}

/* Contenedor del blog */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  overflow: hidden; /* Prevenimos desbordamiento en móviles */
}

/* Cambiamos el grid para poner la barra lateral a la izquierda */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

/* Artículo destacado */
.blog-featured {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.blog-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

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

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

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.blog-category {
  background: #2ECC71;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 15px;
}

.blog-date {
  color: #757575;
  font-size: 0.9rem;
}

.blog-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.3;
}

.blog-excerpt {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  color: #2ECC71;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  color: #27ae60;
}

.blog-read-more:hover i {
  transform: translateX(5px);
}

/* Grid de artículos recientes */
.blog-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.section-title {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #2ECC71;
}

/* Tarjetas de blog */
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

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

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

.blog-card-image .blog-category {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 1;
}

.blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: 1.2rem;
  margin: 10px 0;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

/* Paginación */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.pagination-item, .pagination-dots, .pagination-next {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-item {
  background: #f5f5f5;
  color: #333;
}

.pagination-item.active, .pagination-item:hover {
  background: #2ECC71;
  color: white;
}

.pagination-dots {
  color: #757575;
}

.pagination-next {
  background: #f5f5f5;
  color: #333;
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

.pagination-next:hover {
  background: #2ECC71;
  color: white;
}

.pagination-next i {
  margin-left: 5px;
}

/* Barra lateral del blog */
.blog-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  padding-right: 20px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  padding-bottom: 10px;
}

.widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #2ECC71;
}

/* Categorías */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-item:hover {
  color: #2ECC71;
}

.category-item span {
  color: #999;
  font-size: 0.9rem;
}

/* Artículos populares */
.popular-post {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-image {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.4;
}

.popular-post-content h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.popular-post-content h4 a:hover {
  color: #2ECC71;
}

.popular-post-date {
  font-size: 0.8rem;
  color: #999;
}

/* Etiquetas */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  background: #f5f5f5;
  color: #555;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: #2ECC71;
  color: white;
}

/* Newsletter */
.newsletter-widget {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.newsletter-widget p {
  margin-bottom: 15px;
  color: #37474f;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.newsletter-form input:focus {
  border-color: #2ECC71;
  outline: none;
}

.newsletter-form .cta-button {
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  /* Usamos CSS Grid para controlar el orden de los elementos */
  .blog-sidebar {
    grid-row: 1;
    margin-bottom: 40px;
    position: static;
    padding-right: 0;
  }
  
  main {
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .blog-container {
    padding: 40px 15px;
  }
  
  .blog-recent-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-hero h1 {
    font-size: 2rem;
  }
  
  .blog-featured {
    flex-direction: column;
  }
  
  .blog-image {
    height: 250px;
  }
  
  .blog-grid {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .blog-hero h1 {
    font-size: 1.8rem;
  }
  
  .blog-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
  
  .blog-sidebar {
    margin-bottom: 30px;
  }
}
/* Estilos para la gestión del blog */

/* Variables */
:root {
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #C8E6C9;
  --accent-color: #FF9800;
  --text-primary: #212121;
  --text-secondary: #757575;
  --divider-color: #BDBDBD;
  --background-light: #F5F5F5;
  --background-white: #FFFFFF;
  --error-color: #F44336;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --info-color: #2196F3;
  --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 6px 12px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

/* Article Title */
.article-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Search Container */
.search-container {
  position: relative;
  width: 250px;
}

.search-container input[type="text"] {
  width: 100%;
  padding: 10px 35px 10px 15px;
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: border-color var(--transition-speed) ease;
}

.search-container input[type="text"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

.search-container i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--background-white);
  margin: auto;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  width: 80%;
  max-width: 600px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .search-container {
      width: 100%;
  }
}
/* Estilos para la página de blog */

/* Header actions */
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Stat cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(76, 175, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  background-color: rgba(76, 175, 80, 0.2);
}

.stat-icon i {
  font-size: 28px;
  color: #4caf50;
}

.stat-info {
  flex: 1;
}

.stat-info h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #666;
  font-weight: 500;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #333;
  line-height: 1;
}

/* Blog articles */
.blog-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.blog-article-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.no-image {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-image i {
  font-size: 48px;
  color: #ccc;
}

.article-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
}

.article-status.publicado {
  background-color: rgba(76, 175, 80, 0.9);
  color: white;
}

.article-status.borrador {
  background-color: rgba(255, 152, 0, 0.9);
  color: white;
}

.article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px;
  color: #333;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #666;
}

.article-meta span {
  display: flex;
  align-items: center;
}

.article-meta i {
  margin-right: 5px;
  font-size: 14px;
  color: #4caf50;
}

.article-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  flex: 1;
}

.article-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Empty state */
.empty-state {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin: 30px auto;
  max-width: 600px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-state-icon i {
  font-size: 36px;
  color: #4caf50;
}

.empty-state h3 {
  font-size: 22px;
  margin: 0 0 15px;
  color: #333;
}

.empty-state p {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h2 {
  font-size: 22px;
  margin: 0;
  color: #333;
}

.filter-container {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
}

.search-container input {
  padding: 10px 15px 10px 40px;
  border-radius: 25px;
  border: 1px solid #ddd;
  width: 250px;
  font-size: 14px;
  transition: all 0.3s;
}

.search-container input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  width: 280px;
}

.search-container i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 25px;
  background-color: #f0f0f0;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #e0e0e0;
}

.filter-btn.active {
  background-color: #4caf50;
  color: white;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  gap: 8px;
}

.btn i {
  font-size: 16px;
}

.btn-primary {
  background-color: #4caf50;
  color: white;
}

.btn-primary:hover {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-outline {
  background-color: white;
  color: #4caf50;
  border: 1px solid #4caf50;
}

.btn-outline:hover {
  background-color: rgba(76, 175, 80, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pagination-info {
  font-size: 14px;
  color: #666;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-btn {
  padding: 8px 15px;
  border-radius: 25px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.pagination-btn:hover:not(.disabled) {
  background-color: #e0e0e0;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 5px;
}

.pagination-page {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination-page:hover:not(.active) {
  background-color: #e0e0e0;
}

.pagination-page.active {
  background-color: #4caf50;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-articles {
    grid-template-columns: 1fr;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-container {
    width: 100%;
  }

  .search-container {
    width: 100%;
  }

  .search-container input {
    width: 100%;
  }

  .pagination-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-article-card {
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

.blog-article-card:nth-child(2) {
  animation-delay: 0.1s;
}

.blog-article-card:nth-child(3) {
  animation-delay: 0.2s;
}

.blog-article-card:nth-child(4) {
  animation-delay: 0.3s;
}

.stat-card {
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

.stat-card:nth-child(2) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 100;
  display: none;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
  padding-left: 20px;
}

.dropdown-menu a.delete-article {
  color: #f44336;
}

.dropdown-menu a.delete-article:hover {
  background-color: rgba(244, 67, 54, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Formulario de artículo */
.article-form-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.article-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group-half {
  flex: 1;
  min-width: 250px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

/* Carga de archivos */
.file-upload-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.file-upload-preview {
  width: 200px;
  height: 150px;
  border-radius: 8px;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  background-size: cover;
  background-position: center;
  transition: all 0.3s;
}

.file-upload-preview.has-image {
  color: transparent;
}

.file-upload-preview i {
  font-size: 36px;
  margin-bottom: 10px;
}

.file-upload-input {
  flex: 1;
  min-width: 250px;
}

.form-control-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #f0f0f0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.file-upload-label:hover {
  background-color: #e0e0e0;
}

.file-upload-info {
  margin-top: 10px;
  font-size: 13px;
  color: #888;
}

/* Editor de texto */
.ql-toolbar.ql-snow {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-color: #ddd;
}

.ql-container.ql-snow {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-color: #ddd;
}

.ql-editor {
  min-height: 200px;
}

.ql-editor:focus {
  border-color: #4caf50;
}
