﻿/* =====================================================
   SECCIÓN COMPARACIÓN DIRECTA - ARREGLADA
   ===================================================== */

.comparison-section {
  background: linear-gradient(135deg, #fdf8f6 0%, #f5f0f3 100%);
  padding: 80px 0;
  position: relative;
}

/* Hero Image Section */
.comparison-hero {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
}

.comparison-hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(94, 59, 77, 0.12);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.comparison-hero-image:hover {
  transform: translateY(-5px);
}

.comparison-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vino-corporativo, #5E3B4D);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: -25px;
  position: relative;
  box-shadow: 0 8px 20px rgba(94, 59, 77, 0.25);
  z-index: 10;
}

.comparison-hero-badge svg {
  width: 16px;
  height: 16px;
  fill: #f5b942;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  /* FORCE 2 columns on desktop/tablet to avoid 3+1 orphan layout */
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 60px 0;
  max-width: 1000px; /* Limit width to keep cards compact and centered */
  margin-left: auto;
  margin-right: auto;
}

/* Comparison Cards */
.comparison-card {
  background: white;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 4px 15px rgba(94, 59, 77, 0.08);
  border: 1px solid rgba(94, 59, 77, 0.08);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(94, 59, 77, 0.12);
}

/* Featured Card (MemoryTale) */
.comparison-card.featured {
  background: linear-gradient(135deg, #ffffff 0%, #faf9fa 100%);
  border: 2px solid var(--vino-corporativo, #5E3B4D);
  box-shadow: 0 8px 30px rgba(94, 59, 77, 0.12);
  position: relative;
}

.comparison-card.featured::after {
  content: ' MEJOR';
  position: absolute;
  top: 15px;
  right: -25px;
  background: linear-gradient(135deg, #f5b942, #ffd700);
  color: #3d2817;
  padding: 5px 35px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(245, 185, 66, 0.35);
}

/* Card Icons - TAMAÑO REDUCIDO */
.card-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vino-corporativo, #5E3B4D), #7a4d62);
  color: white;
  box-shadow: 0 6px 18px rgba(94, 59, 77, 0.2);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.card-icon.secondary {
  background: linear-gradient(135deg, #e3e3e3, #c9c9c9);
  color: #666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--vino-corporativo, #5E3B4D);
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

.card-subtitle {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 25px;
  font-weight: 500;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  line-height: 1.4;
  font-size: 0.9rem;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list span {
  flex: 1;
  color: #555;
}

.feature-list strong {
  color: var(--vino-corporativo, #5E3B4D);
}

/* Check Icon - TAMAÑO REDUCIDO */
.check-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  stroke: #10b981;
  stroke-width: 3;
  margin-top: 1px;
  flex-shrink: 0;
}

.check-icon.partial {
  stroke: #f59e0b;
}

/* Cross Icon - TAMAÑO REDUCIDO */
.cross-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  stroke: #ef4444;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Card CTA */
.card-cta {
  margin-top: 25px;
  text-align: center;
}

.card-cta .btn {
  width: 100%;
  padding: 14px 25px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.card-cta .btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(94, 59, 77, 0.25);
}

/* Bottom CTA Section */
.comparison-cta {
  background: linear-gradient(135deg, rgba(94, 59, 77, 0.04), rgba(255, 255, 255, 0.5));
  border-radius: 20px;
  padding: 50px 35px;
  text-align: center;
  margin-top: 50px;
  border: 1px solid rgba(94, 59, 77, 0.1);
  box-shadow: 0 10px 35px rgba(94, 59, 77, 0.06);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--vino-corporativo, #5E3B4D);
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(94, 59, 77, 0.2);
}

.cta-content .btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(94, 59, 77, 0.3);
}

.cta-content .btn-large svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cta-content .btn-large:hover svg {
  transform: translateX(4px);
}

.trust-subtext {
  font-size: 0.9rem;
  color: #888;
  margin-top: 18px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .comparison-section {
    padding: 60px 0;
  }

  .comparison-hero {
    margin: 30px auto;
  }

  .comparison-hero-image {
    max-width: 400px;
  }

  .comparison-hero-badge {
    font-size: 0.8rem;
    padding: 8px 20px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
  }

  .comparison-card {
    padding: 25px 20px;
  }

  .comparison-card.featured::after {
    font-size: 0.6rem;
    padding: 4px 30px;
    right: -20px;
  }

  .card-icon {
    width: 45px;
    height: 45px;
  }

  .card-icon svg {
    width: 22px;
    height: 22px;
  }

  .comparison-card h3 {
    font-size: 1.35rem;
  }

  .feature-list li {
    font-size: 0.85rem;
    gap: 8px;
  }

  .check-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .cross-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
  }

  .comparison-cta {
    padding: 35px 25px;
    margin-top: 40px;
  }

  .cta-content h3 {
    font-size: 1.6rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .cta-content .btn-large {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .cta-content .btn-large svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .comparison-section {
    padding: 40px 0;
  }

  .comparison-hero-image {
    max-width: 320px;
    border-radius: 12px;
  }

  .comparison-grid {
    margin: 30px 0;
  }

  .comparison-card {
    padding: 20px 18px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .card-icon svg {
    width: 20px;
    height: 20px;
  }

  .comparison-card h3 {
    font-size: 1.25rem;
  }

  .feature-list li {
    font-size: 0.8rem;
  }

  .cta-content h3 {
    font-size: 1.4rem;
  }
}
