/* ============================================
   ARTICLES BLOG - Latest Stories Layout
   ============================================ */

/* Articles Section */
.stories-section {
  padding: 3rem 0;
  background: #ffffff;
}

.stories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.stories-header .section-title {
  margin-bottom: 0;
}

.view-all-link {
  font-size: 0.813rem;
  color: #1B2B4B;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-weight: 600;
  transition: color 0.3s ease;
  display: none;
}

.view-all-link:hover {
  color: #2A9D8F;
}

/* Stories Layout - Mobile First */
.stories-section .stories-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Featured Story */
.story-featured {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-featured a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.story-featured:hover {
  box-shadow: 0 12px 32px rgba(27, 43, 75, 0.1);
}

.story-featured-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.story-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #1B2B4B;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.688rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Space Mono', monospace;
}

.story-featured-content {
  padding: 1.5rem;
}

.story-featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #1B2B4B;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.story-featured-excerpt {
  font-size: 0.938rem;
  line-height: 1.7;
  color: #4A5568;
  margin-bottom: 1.5rem;
  font-family: 'Space Mono', monospace;
}

.story-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.813rem;
  color: #4A5568;
  font-family: 'Space Mono', monospace;
}

.story-author {
  font-weight: 600;
  color: #1B2B4B;
}

.story-divider {
  color: #CBD5E0;
}

.story-read-time {
  color: #4A5568;
}

/* Stories List */
.stories-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-item {
  display: flex;
  gap: 1rem;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem;
  border: 1px solid #E2E8F0;
}

.story-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 1rem;
  width: 100%;
}

.story-item:hover {
  box-shadow: 0 4px 12px rgba(27, 43, 75, 0.08);
  border-color: #2A9D8F;
}

.story-item-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.story-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-item-category {
  font-size: 0.688rem;
  color: #2A9D8F;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-family: 'Space Mono', monospace;
}

.story-item-title {
  font-size: 0.938rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1B2B4B;
  margin-bottom: 0.5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.story-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #718096;
  font-family: 'Space Mono', monospace;
}

.story-item-meta .story-date {
  color: #718096;
  font-weight: 400;
}

.story-item-meta .story-divider {
  color: #CBD5E0;
}

/* Tablet */
@media (min-width: 768px) {
  .view-all-link {
    display: inline-block;
  }
  
  .stories-section .stories-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .story-featured-image {
    height: 320px;
  }
  
  .story-item {
    padding: 1.25rem;
  }
  
  .story-item-image {
    width: 120px;
    height: 120px;
  }
  
  .story-item-title {
    font-size: 1rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  /* CRITICAL: Stories layout en 2 columnas para desktop */
  .stories-section .stories-layout {
    grid-template-columns: 1.5fr 1fr !important;
    gap: 3rem;
  }
  
  .story-featured-image {
    height: 400px;
  }
  
  .story-featured-content {
    padding: 2rem;
  }
  
  .story-featured-title {
    font-size: 2rem;
  }
  
  .story-featured-excerpt {
    font-size: 1rem;
  }
  
  .stories-list {
    gap: 1.5rem;
  }
  
  .story-item {
    padding: 1.5rem;
  }
  
  .story-item-image {
    width: 140px;
    height: 140px;
  }
  
  .story-item-title {
    font-size: 1.125rem;
  }
}

/* ============================================
   ARTICLE SINGLE PAGE STYLES
   ============================================ */

.article-single {
  padding: 8rem 0 6rem;
  background: #ffffff;
}

/* Article Header */
.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  position: relative;
}

.article-share-container {
  position: absolute;
  top: 0;
  right: 0;
}

.article-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #1B2B4B 0%, #2A9D8F 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(27, 43, 75, 0.15);
}

.article-share-btn:hover {
  box-shadow: 0 4px 12px rgba(27, 43, 75, 0.25);
}

@media (max-width: 768px) {
  .article-share-btn span {
    display: none;
  }
  
  .article-share-btn {
    padding: 0.75rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
}

.article-breadcrumb {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1.5rem;
  font-family: 'Space Mono', monospace;
}

.article-breadcrumb a {
  color: #2A9D8F;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-category {
  display: inline-block;
  background: linear-gradient(135deg, #1B2B4B 0%, #2A9D8F 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-family: 'Space Mono', monospace;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1B2B4B;
  margin-bottom: 2rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B2B4B 0%, #2A9D8F 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.author-name {
  display: block;
  font-weight: 700;
  color: #1B2B4B;
  font-size: 0.938rem;
  font-family: 'Space Mono', monospace;
}

.author-info time {
  display: block;
  font-size: 0.813rem;
  color: #718096;
  font-family: 'Space Mono', monospace;
}

.article-stats {
  font-size: 0.875rem;
  color: #718096;
  font-family: 'Space Mono', monospace;
}

/* Featured Image */
.article-featured-img {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27, 43, 75, 0.12);
}

.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2D3748;
  font-family: 'Space Mono', monospace;
}

.article-content .lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1B2B4B;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #E2E8F0;
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1B2B4B;
  margin: 3rem 0 1.5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B2B4B;
  margin: 2rem 0 1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1B2B4B;
  margin: 1.5rem 0 1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.article-content p {
  margin-bottom: 1.5rem;
}

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

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content strong {
  font-weight: 700;
  color: #1B2B4B;
}

/* Info Boxes */
.info-box, .warning-box {
  background: #F7FAFC;
  border-left: 4px solid #2A9D8F;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
}

.warning-box {
  background: #FFF5F5;
  border-left-color: #F56565;
}

.info-icon, .warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Checklists */
.checklist-section {
  margin: 2rem 0;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.checklist li:last-child {
  border-bottom: none;
}

/* Price Table */
.price-table {
  background: #F7FAFC;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.price-row:last-child {
  border-bottom: none;
}

.price-label {
  font-weight: 600;
  color: #2D3748;
}

.price-value {
  font-weight: 700;
  color: #2A9D8F;
  font-size: 1.125rem;
}

/* Consequences Grid */
.consequences-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.consequence-card {
  background: #F7FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.consequence-card:hover {
  border-color: #2A9D8F;
}

.consequence-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.consequence-card h4 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: #1B2B4B;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.consequence-card p {
  font-size: 0.938rem;
  color: #718096;
  margin: 0;
}

/* CTA Box */
.cta-box {
  background: #ffffff;
  color: #1B2B4B;
  border: 3px solid #2A9D8F;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 4px 20px rgba(42, 157, 143, 0.12);
}

.cta-box h3 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  color: #1B2B4B;
  font-weight: 700;
}

.cta-box p {
  font-size: 1.125rem;
  margin: 0 0 2rem;
  color: #4A5568;
  line-height: 1.6;
}

.cta-box .btn-primary {
  background: #1B2B4B;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.063rem;
  box-shadow: 0 4px 12px rgba(27, 43, 75, 0.2);
  border: none;
}

.cta-box .btn-primary:hover {
  background: #2A9D8F;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(42, 157, 143, 0.3);
}

/* Related Articles */
.related-articles {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 2px solid #E2E8F0;
}

.related-articles h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1B2B4B;
  margin-bottom: 2rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.related-card {
  background: #ffffff;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.related-card:hover {
  border-color: #2A9D8F;
}

.related-category {
  display: inline-block;
  font-size: 0.688rem;
  color: #2A9D8F;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-family: 'Space Mono', monospace;
}

.related-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1B2B4B;
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* Responsive */
@media (min-width: 768px) {
  .article-title {
    font-size: 3rem;
  }
  
  .consequences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .article-title {
    font-size: 3.5rem;
  }
  
  .consequences-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
