/* ===============================================
   CSS COMPLEMENTARIO PARA BLOG - SAFE TRAVEL PERÚ
   Hereda todo de main2.css y agrega estructura magazine
=============================================== */

/* ===== CONTENEDOR PRINCIPAL BLOG ===== */
.blog-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ARTÍCULOS ESTILO MAGAZINE (Sin Tarjetas) ===== */
.blog-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  transition: var(--transition);
}

.blog-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px var(--shadow-dark);
}

/* Alternancia: par a la derecha */
.blog-article:nth-child(even) .blog-article-image {
  order: 2;
}

.blog-article:nth-child(even) .blog-article-content {
  order: 1;
  padding: 60px 60px 60px 60px;
}

/* ===== IMAGEN DEL ARTÍCULO ===== */
.blog-article-image {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.blog-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-article:hover .blog-article-image img {
  transform: scale(1.1);
}

/* Badge sobre imagen */
.blog-badge-overlay {
  position: absolute;
  top: 30px;
  left: 30px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
  z-index: 2;
}

.blog-badge-tag {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTENIDO DEL ARTÍCULO ===== */
.blog-article-content {
  padding: 60px 0 60px 60px;
}

.blog-category-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  display: block;
}

.blog-article-title {
  font-size: 2.5rem;
  margin: 0 0 20px 0;
  color: var(--dark);
  line-height: 1.3;
  font-weight: 700;
}

.blog-article-description {
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* ===== LISTA DE CARACTERÍSTICAS ===== */
.blog-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
}

.blog-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-size: 0.95rem;
}

.blog-feature-item i {
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ===== INFO BOX ===== */
.blog-info-box {
  display: flex;
  gap: 25px;
  padding: 20px 0;
  border-top: 2px solid #e9ecef;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 30px;
}

.blog-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.95rem;
}

.blog-info-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ===== BOTONES DEL ARTÍCULO ===== */
.blog-article-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.blog-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 35px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.3);
}

.blog-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.5);
}

.blog-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 35px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.blog-btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== SECCIÓN CON DIVISOR ===== */
.blog-section {
  padding: 100px 0;
  position: relative;
}

.blog-section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 80px 0;
}

/* ===== COLORES POR CATEGORÍA ===== */
.blog-article.festividad .blog-badge-overlay {
  background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
}

.blog-article.festividad .blog-category-tag,
.blog-article.festividad .blog-feature-item i,
.blog-article.festividad .blog-info-item i {
  color: #F39C12;
}

.blog-article.gastronomia .blog-badge-overlay {
  background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

.blog-article.gastronomia .blog-category-tag,
.blog-article.gastronomia .blog-feature-item i,
.blog-article.gastronomia .blog-info-item i {
  color: #E74C3C;
}

.blog-article.cultura .blog-badge-overlay {
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
}

.blog-article.cultura .blog-category-tag,
.blog-article.cultura .blog-feature-item i,
.blog-article.cultura .blog-info-item i {
  color: #9B59B6;
}

/* ===== PRECIO BADGE (para gastronomía) ===== */
.blog-price-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* ===== CALL TO ACTION (CTA) ===== */
.cta {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: var(--white);
  background: var(--gradient-primary);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.95), rgba(26, 93, 26, 0.95));
  z-index: 1;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-badge i {
  margin-right: 8px;
}

.cta h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Stats del CTA */
.cta-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  min-width: 150px;
}

.cta-stat i {
  font-size: 2.5rem;
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cta-stat span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
}

/* Botones del CTA */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.cta .btn-primary,
.cta .btn-secondary {
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  min-width: 220px;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
}

.cta .btn-primary:hover {
  background: var(--light);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.cta .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Animación de entrada */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cta-content {
  animation: fadeInScale 0.6s ease-out;
}

/* ===== RESPONSIVE CTA ===== */
@media (max-width: 768px) {
  .cta {
    padding: 80px 20px;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta p {
    font-size: 1.1rem;
  }
  
  .cta-stats {
    gap: 25px;
  }
  
  .cta-stat {
    min-width: 130px;
    padding: 15px;
  }
  
  .cta-stat i {
    font-size: 2rem;
  }
  
  .cta-stat span {
    font-size: 0.9rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta .btn-primary,
  .cta .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 60px 15px;
  }
  
  .cta h2 {
    font-size: 1.75rem;
  }
  
  .cta p {
    font-size: 1rem;
  }
  
  .cta-badge {
    font-size: 0.8rem;
    padding: 8px 20px;
  }
  
  .cta-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-stat {
    width: 100%;
  }
}


/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 1024px) {
  .blog-article {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .blog-article:nth-child(even) .blog-article-image,
  .blog-article:nth-child(even) .blog-article-content {
    order: initial;
  }
  
  .blog-article-image {
    height: 350px;
  }
  
  .blog-article-content,
  .blog-article:nth-child(even) .blog-article-content {
    padding: 50px 40px;
  }
  
  .blog-article-title {
    font-size: 2rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .blog-article {
    margin-bottom: 60px;
  }
  
  .blog-article-image {
    height: 280px;
  }
  
  .blog-article-content,
  .blog-article:nth-child(even) .blog-article-content {
    padding: 40px 30px;
  }
  
  .blog-article-title {
    font-size: 1.75rem;
  }
  
  .blog-article-description {
    font-size: 1rem;
  }
  
  .blog-features-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .blog-badge-overlay,
  .blog-badge-tag {
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .blog-info-box {
    flex-direction: column;
    gap: 15px;
  }
  
  .blog-article-actions {
    flex-direction: column;
  }
  
  .blog-btn-primary,
  .blog-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .blog-section {
    padding: 60px 0;
  }
  
  .blog-article-image {
    height: 240px;
  }
  
  .blog-article-content,
  .blog-article:nth-child(even) .blog-article-content {
    padding: 30px 20px;
  }
  
  .blog-article-title {
    font-size: 1.5rem;
  }
  
  .blog-article-description {
    font-size: 0.95rem;
  }
  
  .blog-features-list {
    padding: 20px;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-article {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== HEREDA SECCIÓN HEADER DEL SISTEMA ===== */
.blog-wrapper .section-header-enhanced {
  margin-bottom: 80px;
}

/* ===== ======= ===== */
/* ===== ESTILOS PARA PÁGINA DE ARTÍCULO ===== */

/* Grid para tours dentro de artículo */
.blog-wrapper .tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Grid para features dentro de artículo */
.blog-wrapper .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Asegurar que las tarjetas de tour se vean bien */
.blog-wrapper .tour-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-wrapper .tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Imagen de las tarjetas */
.blog-wrapper .tour-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-wrapper .tour-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-wrapper .tour-card:hover .tour-image-container img {
  transform: scale(1.1);
}

/* Overlay de las imágenes */
.blog-wrapper .tour-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px;
}

.blog-wrapper .tour-label {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-wrapper .tour-price {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Contenido de las tarjetas */
.blog-wrapper .tour-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-wrapper .tour-info h3 {
  font-size: 1.4rem;
  margin: 15px 0;
  color: var(--dark);
  line-height: 1.3;
}

.blog-wrapper .tour-info p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* Detalles del tour */
.blog-wrapper .tour-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
  margin-top: auto;
}

.blog-wrapper .tour-details span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray);
}

.blog-wrapper .tour-details i {
  color: var(--primary);
}

/* Features (consejos) */
.blog-wrapper .feature {
  background: var(--white);
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  text-align: center;
}

.blog-wrapper .feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.blog-wrapper .feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.3);
}

.blog-wrapper .feature-icon i {
  font-size: 30px;
  color: var(--white);
}

.blog-wrapper .feature h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.blog-wrapper .feature p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1rem;
}

/* Hero específico para artículo */
.hero[style*="height: 70vh"] .hero-content h1 {
  font-size: 3rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive para artículo */
@media (max-width: 768px) {
  .blog-wrapper .tours-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .blog-wrapper .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .hero[style*="height: 70vh"] .hero-content h1 {
    font-size: 2rem;
  }
  
  .blog-wrapper .tour-info {
    padding: 20px;
  }
  
  .blog-wrapper .feature {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .blog-wrapper .tour-image-container {
    height: 200px;
  }
  
  .hero[style*="height: 70vh"] .hero-content h1 {
    font-size: 1.75rem;
  }
}

/* Espaciado específico para secciones dentro de blog-wrapper */
.blog-wrapper > article {
  margin-bottom: 80px;
}

.blog-wrapper > article:last-child {
  margin-bottom: 0;
}

/* Ajuste de párrafos dentro de features */
.blog-wrapper .feature p[style*="font-size"] {
  text-align: left;
  margin-bottom: 20px;
}

/* Subtítulos dentro de features */
.blog-wrapper .feature h3:not(:first-of-type) {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}
