/* ============================================================================
   HOME.CSS - Estilos para la página principal (Landing Page)
   ============================================================================
   
   Estructura:
   1. Hero Section
   2. Features Section
   3. Positioning Section
   4. Blog Cards
   5. FAQ Section
   6. CTA Section
   7. Utilidades
   8. Responsive
   
   NOTE: Los estilos del banner promocional (.promo-banner-compact) están en
   global.css para asegurar disponibilidad en todas las páginas.
   ============================================================================ */

/* ============================================================================
   1. HERO SECTION
   ============================================================================ */
.hero {
  padding: 0 16px 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero .title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 32px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero .cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero .badge-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   3. FEATURES SECTION
   ============================================================================ */
.features-section {
  padding: 80px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.features-section h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.features-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-section .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
}

.features-section .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.icon-header {
  margin-bottom: 24px;
  text-align: center;
}

.features-section .card h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  text-align: center;
}

.features-section .card .muted {
  margin-bottom: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.feature-list li {
  padding: 8px 0;
  color: var(--text-secondary);
}

.feature-list i {
  color: var(--success);
  margin-right: 10px;
}

/* ============================================================================
   4. POSITIONING SECTION - Renovaciones y Primeras Posiciones
   ============================================================================ */
.positioning-section {
  padding: 80px 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.positioning-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.positioning-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.positioning-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.positioning-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.positioning-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary-light);
}

.positioning-card p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================================
   5. BLOG CARDS - Recursos y Guías
   ============================================================================ */
.blog-resources-section {
  margin-top: 80px;
  margin-bottom: 80px;
}

.blog-resources-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 16px;
  color: var(--primary-light);
}

.blog-section-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.6);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.blog-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.blog-card-icon.gradient-purple {
  background: linear-gradient(135deg, var(--primary), var(--gradient-purple));
}

.blog-card-icon.gradient-pink {
  background: linear-gradient(135deg, var(--gradient-pink), var(--gradient-coral));
}

.blog-card-icon.gradient-blue {
  background: linear-gradient(135deg, var(--gradient-cyan), var(--gradient-teal));
}

.blog-card-icon i {
  font-size: 24px;
  color: white;
}

.blog-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.blog-card p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.blog-card-tags {
  margin-bottom: 20px;
}

.blog-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.blog-tag.tag-primary {
  background: rgba(102, 126, 234, 0.2);
  color: var(--primary-light);
}

.blog-tag.tag-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-light);
}

.blog-tag.tag-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning-light);
}

.blog-tag.tag-info {
  background: rgba(59, 130, 246, 0.2);
  color: var(--info-light);
}

.blog-card .btn-outline {
  width: 100%;
  text-align: center;
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.blog-card .btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.blog-cta-box {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border-radius: 16px;
  border: 2px solid rgba(102, 126, 234, 0.3);
}

.blog-cta-box p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

/* Sección de más guías */
.more-guides {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.more-guides a {
  color: var(--primary-light, #818cf8);
  text-decoration: none;
  transition: color var(--transition-fast, 150ms ease);
}

.more-guides a:hover {
  color: white;
  text-decoration: underline;
}

/* ============================================================================
   6. FAQ SECTION
   ============================================================================ */
.faq-section {
  margin-top: 60px;
}

.faq-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* ============================================================================
   7. CTA SECTION
   ============================================================================ */
.cta-section {
  margin-top: 60px;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: var(--radius-lg);
}

.cta-section .container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .cta-note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* ============================================================================
   8. UTILIDADES ESPECÍFICAS DE HOME
   ============================================================================ */
/* NOTE: Clases globales (.icon-*, .text-*, .mt-*, .mb-*) están en global.css */

/* Títulos específicos de home */
.highlight-title {
  margin-top: 0;
  color: var(--primary-light);
}

.steps-list {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.info-text {
  margin: 0;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Button variants específicos de landing */
.btn-light {
  background: white;
  color: var(--primary);
  border: none;
}

.btn-outline-light {
  background: transparent;
  border: 2px solid white;
  color: white;
}

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

/* Content section generic */
.content-section {
  padding: 80px 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.content-section .grid {
  margin-bottom: 40px;
}

/* Info box */
.info-box {
  margin-top: 40px;
  padding: 30px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.info-box h3 {
  margin-top: 0;
  color: var(--primary-light);
}

.info-box p {
  margin: 0;
  line-height: 1.8;
}

/* Arrow icon in buttons */
.btn .fa-arrow-right {
  margin-left: 8px;
}

/* ============================================================================
   8. RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
  /* NOTE: Responsive del banner (.promo-banner-compact) está en global.css */
  
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  .positioning-grid {
    grid-template-columns: 1fr;
  }
  
  .hero .cta {
    flex-direction: column;
  }
  
  .blog-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .blog-card {
    padding: 24px !important;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-section {
    padding: 40px 16px;
  }
  
  .content-section {
    padding: 60px 16px;
  }
  
  .faq-section {
    margin-top: 40px;
  }
}

/* ============================================
   NUEVAS SECCIONES HOME v5
   ============================================ */

/* Sección "Por qué funciona" */
.how-it-works-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.how-it-works-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.how-it-works-section h2 i {
  color: var(--primary);
  margin-right: 12px;
}

.explanation-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.explanation-box p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  text-align: center;
}

.benefit-highlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.benefit-highlight .benefit-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.benefit-highlight strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}

.benefit-highlight p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

/* Testimonios */
.testimonials-section {
  padding: 80px 24px;
  background: var(--bg-darker);
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.testimonials-section h2 i {
  color: #fbbf24;
  margin-right: 12px;
}

.testimonials-section .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-bottom: 24px;
  min-height: 80px;
}

.testimonial-quote::before {
  content: '"';
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
  display: block;
  margin-bottom: 8px;
}

.testimonial-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(79, 70, 229, 0.1));
  border-radius: 50px;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.testimonial-result .result-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-result .result-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.testimonials-note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 32px;
  font-style: italic;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Proceso */
.process-section {
  padding: 80px 24px;
  background: var(--bg-dark);
}

.process-section h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.process-section h2 i {
  color: var(--primary);
  margin-right: 12px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 48px;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.process-step .step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.process-step h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.process-note {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-md);
}

.process-note .note-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.process-note strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.process-note p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Responsive nuevas secciones */
@media (max-width: 992px) {
  .testimonials-section .grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .how-it-works-section,
  .testimonials-section,
  .process-section {
    padding: 60px 16px;
  }
  
  .explanation-box {
    padding: 24px;
  }
  
  .explanation-box p {
    font-size: 1rem;
  }
  
  .benefit-highlight {
    flex-direction: column;
    text-align: center;
  }
  
  .benefit-highlight p {
    text-align: center;
  }
  
  .testimonial-quote {
    min-height: auto;
  }
  
  .process-steps {
    gap: 20px;
  }
  
  .process-note {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

/* ============================================================================
   SECCIÓN PLATAFORMAS (Home Multi-plataforma)
   ============================================================================ */
.platforms-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.platforms-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.platforms-section h2 i {
  color: var(--primary);
  margin-right: 12px;
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.platform-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.platform-card.platform-wallapop:hover {
  border-color: #13c1ac;
}

.platform-card.platform-milanuncios:hover {
  border-color: #ff6b35;
}

.platform-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.platform-wallapop .platform-icon-large {
  background: linear-gradient(135deg, #13c1ac, #0d9488);
  color: white;
}

.platform-milanuncios .platform-icon-large {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
}

.platform-info h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 8px;
}

.platform-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.platform-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.platform-features li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding: 4px 0;
}

.platform-features li i {
  color: #22c55e;
  margin-right: 8px;
  font-size: 0.8rem;
}

.platform-cta {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.platform-card:hover .platform-cta {
  text-decoration: underline;
}

.platforms-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-top: 32px;
}

.platforms-note i {
  color: #f59e0b;
  margin-right: 8px;
}

/* ============================================================================
   SECCIÓN PASOS (Steps Grid)
   ============================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.steps-cta {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================================
   RESPONSIVE - Plataformas y Steps
   ============================================================================ */
@media (max-width: 768px) {
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .platform-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  
  .platform-icon-large {
    margin: 0 auto;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .step {
    padding: 16px;
  }
}
