/*
Theme Name: Carga Blog
Description: Plantilla de WordPress para blog especializado en transporte de carga y logística con diseño minimalista naranja/negro.
Author: Carga.com.pe
Version: 1.0
Text Domain: carga-blog
*/

/* Reset y variables CSS */
:root {
  --primary: #ffa800;
  --primary-dark: #e6940b;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: white;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--neutral-700);
  border: 1px solid var(--neutral-300);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  background-color: var(--primary);
  color: white;
}

/* Header */
.site-header {
  background-color: white;
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-logo {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: var(--neutral-800);
}

.site-logo .primary-text {
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: var(--neutral-700);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--primary);
}

.blog-subtitle {
  color: var(--neutral-600);
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(255, 168, 0, 0.05) 0%, rgba(255, 168, 0, 0.1) 100%);
  padding: 64px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-content .primary-text {
  color: var(--primary);
}

.hero-description {
  font-size: 20px;
  color: var(--neutral-600);
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Search */
.search-container {
  max-width: 400px;
  margin: 0 auto 32px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 16px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
}

/* Categories */
.categories-section {
  margin-bottom: 32px;
}

.categories-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--neutral-800);
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tag {
  padding: 8px 16px;
  background-color: var(--neutral-200);
  border-radius: 20px;
  text-decoration: none;
  color: var(--neutral-700);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-tag:hover,
.category-tag.active {
  background-color: var(--primary);
  color: white;
}

/* Featured Post */
.featured-section {
  padding: 64px 0;
}

.featured-post {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.featured-image {
  position: relative;
  min-height: 400px;
}

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

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.featured-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--neutral-800);
}

.featured-excerpt {
  font-size: 18px;
  color: var(--neutral-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  color: var(--neutral-500);
  margin-bottom: 32px;
  gap: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Posts Grid */
.posts-section {
  padding: 64px 0;
  background-color: var(--neutral-50);
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
  color: var(--neutral-800);
}

.section-description {
  font-size: 20px;
  color: var(--neutral-600);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.post-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

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

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

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

.post-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.post-content {
  padding: 24px;
}

.post-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--neutral-800);
}

.post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--primary);
}

.post-excerpt {
  color: var(--neutral-600);
  margin-bottom: 16px;
  line-height: 1.6;
}

.post-meta-small {
  display: flex;
  align-items: center;
  color: var(--neutral-500);
  font-size: 14px;
  margin-bottom: 16px;
  gap: 8px;
}

/* Newsletter */
.newsletter-section {
  padding: 64px 0;
}

.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 168, 0, 0.1) 0%, rgba(255, 168, 0, 0.05) 100%);
  padding: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 168, 0, 0.2);
  text-align: center;
}

.newsletter-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 32px;
}

.newsletter-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--neutral-800);
}

.newsletter-description {
  color: var(--neutral-600);
  margin-bottom: 32px;
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 16px;
}

.newsletter-disclaimer {
  font-size: 12px;
  color: var(--neutral-500);
  margin-top: 16px;
}

/* Footer */
.site-footer {
  background-color: var(--neutral-800);
  color: white;
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-description {
  color: var(--neutral-300);
  margin-bottom: 24px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-dark);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-700);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  color: var(--neutral-400);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Single Post */
.single-post-header {
  padding: 64px 0 32px;
  text-align: center;
}

.single-post-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--neutral-500);
  margin-bottom: 32px;
}

.single-post-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 48px;
  border-radius: 12px;
  overflow: hidden;
}

.single-post-image img {
  width: 100%;
  height: auto;
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
}

.single-post-content h2 {
  font-size: 32px;
  font-weight: bold;
  margin: 48px 0 24px;
  color: var(--neutral-800);
}

.single-post-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--neutral-800);
}

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

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 24px;
  padding-left: 32px;
}

.single-post-content li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .main-nav ul {
    gap: 16px;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  .featured-post {
    grid-template-columns: 1fr;
  }
  
  .featured-content {
    padding: 32px 24px;
  }
  
  .featured-title {
    font-size: 24px;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .single-post-title {
    font-size: 32px;
  }
  
  .single-post-meta {
    flex-direction: column;
    gap: 16px;
  }
}