/*
 * ===============================================
 * CTA V2 - Call to Action Premium
 * ===============================================
 * Estilo unificado con la home
 * Fondo negro sólido con degradado bordó
 * Sin imagen de fondo, sin glassmorphism
 * Diseño simple, elegante y directo
 * VERSION: 2.1 - Botones horizontales en tablet+
 * ===============================================
 */

/* ===================================================
   SECCIÓN CTA
   =================================================== */

.cta-v2 {
  position: relative;
  background: linear-gradient(
    135deg,
    #000000 0%,
    var(--color-primary-dark) 50%,
    #000000 100%
  );
  padding: var(--spacing-20) 0;
  overflow: hidden;
}

/* Efecto radial oscuro */
.cta-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ===================================================
   CONTENIDO DEL CTA
   =================================================== */

.cta-v2__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

/* ===================================================
   TÍTULO DEL CTA
   =================================================== */

.cta-v2__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-white);
  margin: 0 0 var(--spacing-6) 0;
  animation: fadeInUp 0.8s ease-out;
}

/* Palabra destacada con gradiente */
.cta-v2__title-highlight {
  background: linear-gradient(
    135deg,
    var(--color-primary-lighter) 0%,
    var(--color-white) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* ===================================================
   SUBTÍTULO DEL CTA
   =================================================== */

.cta-v2__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--spacing-8) 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ===================================================
   BOTONES DEL CTA
   =================================================== */

.cta-v2__buttons {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Asegurar que los botones mantengan su ancho natural en desktop */
.cta-v2__buttons .btn-primary,
.cta-v2__buttons .btn-secondary {
  flex-shrink: 0;
  min-width: auto;
  width: auto;
}

/* FORZAR layout horizontal en pantallas mayores a 640px */
@media (min-width: 641px) {
  .cta-v2__buttons {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  
  .cta-v2__buttons .btn-primary,
  .cta-v2__buttons .btn-secondary,
  .cta-v2__buttons .btn {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
  }
}

/* ===================================================
   ANIMACIONES
   =================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 640px) {
  .cta-v2 {
    padding: var(--spacing-16) 0;
  }
  
  .cta-v2__content {
    padding: 0 var(--spacing-4);
  }
  
  .cta-v2__title {
    font-size: 2rem;
  }
  
  .cta-v2__subtitle {
    font-size: var(--font-size-base);
  }
  
  .cta-v2__buttons {
    flex-direction: column;
    gap: var(--spacing-3);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* En móvil, los botones ocupan todo el ancho */
  .cta-v2__buttons .btn-primary,
  .cta-v2__buttons .btn-secondary,
  .cta-v2__buttons .btn {
    width: 100% !important;
    max-width: 100%;
  }
}

/* ===================================================
   ACCESIBILIDAD
   =================================================== */

@media (prefers-reduced-motion: reduce) {
  .cta-v2__title,
  .cta-v2__subtitle,
  .cta-v2__buttons {
    animation: none;
  }
}

/* ===================================================
   COMPATIBILIDAD CON CLASES ANTIGUAS
   =================================================== */

.cta-premium-section {
  position: relative;
  background: linear-gradient(
    135deg,
    #000000 0%,
    var(--color-primary-dark) 50%,
    #000000 100%
  );
  padding: var(--spacing-20) 0;
  overflow: hidden;
}

.cta-premium-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.cta-particles {
  display: none;
}

.cta-premium-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.cta-premium-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-white);
  margin: 0 0 var(--spacing-6) 0;
}

.cta-premium-title .section-title-highlight {
  background: linear-gradient(
    135deg,
    var(--color-primary-lighter) 0%,
    var(--color-white) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.cta-premium-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--spacing-8) 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-premium-buttons {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-premium-section {
    padding: var(--spacing-16) 0;
  }
  
  .cta-premium-content {
    padding: 0 var(--spacing-4);
  }
  
  .cta-premium-title {
    font-size: 2rem;
  }
  
  .cta-premium-buttons {
    flex-direction: column;
    gap: var(--spacing-3);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}