/* ===== ARTÍCULO COMPLETO - DISEÑO MODERNO ===== */
.article-full {
  padding: 40px 0 60px;
  background-color: #ffffff;
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
}

/* Header del artículo */
.article-header {
  margin-bottom: 2.5rem;
  padding: 0 20px;
}

.article-title {
  font-family: 'Utendo-Semibold', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border-left: 4px solid #e91e63;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Imagen principal - APAISADA MÁS ANCHA */
.article-image-container {
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  aspect-ratio: 5/2;
  background: #f8f9fa;
}

.article-main-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-image-container:hover .article-main-image {
  transform: scale(1.02);
}

/* Contenido del artículo - SOLUCIÓN DEFINITIVA PARA CKEDITOR */
.article-content {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #3d3d3d;
  margin-bottom: 3rem;
  padding: 0 20px;
  font-weight: 300;
}

/* Margen equilibrado entre párrafos */
.article-content p {
  margin: 0 0 1.2rem 0 !important;
}

/* Ocultar párrafos vacíos (el JavaScript los elimina pero esto es backup) */
.article-content p:empty {
  display: none !important;
}

.article-content h2 {
  font-family: 'Utendo-Semibold', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
}

.article-content h3 {
  font-family: 'Utendo-Semibold', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 2rem 0 0.8rem;
  letter-spacing: -0.01em;
}

.article-content h4 {
  font-family: 'Utendo-Semibold', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 0.7rem;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.7rem;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 3px solid #1a1a1a;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background-color: #fafbfc;
  padding: 1.2rem 1.2rem 1.2rem 1.5rem;
  border-radius: 4px;
  font-size: 1.05rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.article-content a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-color: rgba(26, 26, 26, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s;
  font-weight: 400;
}

.article-content a:hover {
  text-decoration-color: #1a1a1a;
}

.article-content strong {
  font-family: 'Utendo-Semibold', sans-serif;
  font-weight: 600;
  color: #1a1a1a;
}

.article-content code {
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #e83e8c;
  border: 1px solid #e9ecef;
}

.article-content pre {
  background-color: #1a1a1a;
  color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content pre code {
  background: none;
  padding: 0;
  color: #f8f9fa;
  border: none;
}

/* Botón volver - MODERNO */
.article-back {
  margin: 3rem 0 0;
  text-align: center;
  padding: 0 20px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 13px 28px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Utendo-Semibold', sans-serif;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-back:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-back svg {
  width: 16px;
  height: 16px;
}

/* ===== CONTACT CTA SECTION ===== */
.contact-cta {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.contact-cta h2 {
  font-family: 'Utendo-Semibold', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: white;
}

.contact-cta p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto 35px;
  opacity: 0.9;
  color: white;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #2c2c2c;
  border: none;
  padding: 18px 35px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Utendo-Semibold', sans-serif;
}

.cta-button:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE - TABLETS (768px - 1023px) ===== */
@media (min-width: 769px) and (max-width: 1023px) {
  .article-title {
    font-size: 1.9rem;
  }

  .article-content {
    font-size: 0.9rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .article-image-container {
    aspect-ratio: 16/7;
  }
}

/* ===== RESPONSIVE - MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
  .article-full {
    padding: 30px 0 50px;
  }

  .article-header {
    margin-bottom: 2rem;
  }

  .article-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .article-content {
    font-size: 0.9rem;
    padding: 0 15px;
  }

  .article-content h2 {
    font-size: 1.4rem;
  }

  .article-content h3 {
    font-size: 1.2rem;
  }

  .article-meta {
    gap: 0.6rem;
  }

  .article-image-container {
    margin-bottom: 2rem;
    aspect-ratio: 16/9;
    border-radius: 6px;
  }

  .article-back {
    padding: 0 15px;
    margin: 2.5rem 0 0;
  }
}

/* ===== RESPONSIVE - SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  .article-title {
    font-size: 1.4rem;
  }

  .article-content {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .article-content h2 {
    font-size: 1.25rem;
  }

  .article-content h3 {
    font-size: 1.1rem;
  }

  .btn-back {
    padding: 12px 24px;
    font-size: 0.75rem;
  }

  .article-image-container {
    aspect-ratio: 16/10;
    border-radius: 4px;
  }
}

/* ===== RESPONSIVE - LARGE DESKTOP (min-width: 1400px) ===== */
@media (min-width: 1400px) {
  .article-container {
    max-width: 820px;
  }

  .article-title {
    font-size: 2.5rem;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .article-image-container {
    aspect-ratio: 5/2;
  }
}

/* Gutter lateral para el artículo completo */
.article-container {
  padding: 0 30px; /* antes 20px en desktop → más aire */
}

@media (max-width: 768px) {
  .article-container {
    padding: 0 25px !important;  /* antes 15px → más margen en tablet/móvil */
  }

  .article-header,
  .article-content,
  .article-back {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .article-container {
    padding: 0 35px !important;  /* antes 25px → más aire en small mobile */
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .contact-cta {
    padding: 50px 0 !important;
  }
  .contact-cta h2 {
    font-size: 1.4rem !important;
    margin: 0 15px 15px !important;
    letter-spacing: -0.3px !important;
  }
  .contact-cta p {
    font-size: 0.9rem !important;
    margin: 0 15px 15px !important;
  }
  .cta-button {
    display: block !important;
    width: 80% !important;
    max-width: 250px !important;
    margin: 0 auto !important;
    padding: 14px 25px !important;
    font-size: 0.8rem !important;
  }
}