/*
 * ===============================================
 * PREMIUM SECTIONS CSS - Boulangeri
 * ===============================================
 * Estilos premium cohesivos para FAQ, Testimonios,
 * CTA, Footer y Header
 * ===============================================
 */

/* ===================================================
   FAQ SECTION PREMIUM
   =================================================== */

.faq-section {
  background: linear-gradient(
    to bottom,
    var(--color-white) 0%,
    var(--color-gray-50) 50%,
    var(--color-white) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Pattern de fondo sutil */
.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B1538' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.faq-list {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: var(--spacing-6);
}

/* Accordion Premium */
.accordion {
  background: var(--color-white);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.accordion::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), #9d2834);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accordion:hover::before,
.accordion.active::before {
  opacity: 1;
}

.accordion:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(139, 21, 56, 0.15);
}

.accordion__header {
  padding: var(--spacing-6) var(--spacing-8);
  background: transparent;
  position: relative;
}

.accordion__header::after {
  content: '';
  position: absolute;
  left: var(--spacing-6);
  right: var(--spacing-6);
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gray-200), transparent);
}

.accordion.active .accordion__header::after {
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

.accordion__header:hover {
  background: linear-gradient(to right, transparent, rgba(139, 21, 56, 0.02), transparent);
}

.accordion__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--color-gray-900);
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.accordion__title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.accordion.active .accordion__title::before {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.2);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  transition: all 0.3s ease;
}

.accordion.active .accordion__icon {
  stroke: var(--color-primary);
}

.accordion__body {
  padding: 0 var(--spacing-8) var(--spacing-6);
  color: var(--color-gray-700);
  line-height: 1.8;
  font-size: var(--font-size-base);
}

/* ===================================================
   TESTIMONIOS SECTION PREMIUM
   =================================================== */

.testimonios-section {
  background: linear-gradient(
    135deg,
    #1a0a0e 0%,
    var(--color-black) 30%,
    var(--color-primary) 100%
  );
  position: relative;
  overflow: hidden;
}

.testimonios-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
}

.testimonios-container {
  position: relative;
  z-index: 1;
}

.testimonios-header .section-title {
  color: var(--color-white);
}

.testimonios-header .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Grid mejorado */
.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* WhatsApp Screenshot Premium */
.whatsapp-screenshot {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-screenshot::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    #ff69b4,
    var(--color-primary)
  );
  border-radius: 16px;
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  transition: opacity 0.4s ease;
}

.whatsapp-screenshot:hover::before {
  opacity: 0.6;
}

.whatsapp-screenshot:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(139, 21, 56, 0.4);
}

.whatsapp-screenshot__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.whatsapp-screenshot:hover .whatsapp-screenshot__image {
  transform: scale(1.05);
}

/* ===================================================
   CTA SECTION PREMIUM
   =================================================== */

.cta-premium-section {
  position: relative;
  padding: var(--spacing-24) 0;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-black) 0%,
    #1a0a0e 50%,
    var(--color-primary) 100%
  );
}

/* Imagen de fondo con overlay */
.cta-premium-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/elegante1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

/* Overlay gradiente */
.cta-premium-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.cta-premium-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-premium-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-6);
  line-height: 1.2;
}

.cta-premium-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-10);
  line-height: 1.6;
}

/* Contenedor de botones premium */
.cta-premium-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-premium-buttons {
    flex-direction: row;
  }
}

/* Botón CTA Premium Principal */
.btn-cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b91d47 100%);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-lg);
  font-weight: 700;
  padding: 20px 40px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(139, 21, 56, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 1;
}

.btn-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #b91d47 0%, #ff69b4 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-cta-primary:hover::before {
  opacity: 1;
}

.btn-cta-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 50px rgba(139, 21, 56, 0.6);
}

/* Botón CTA Secundario */
.btn-cta-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-lg);
  font-weight: 600;
  padding: 18px 38px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn-cta-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-cta-secondary:hover::before {
  opacity: 1;
}

.btn-cta-secondary:hover {
  border-color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Partículas decorativas para CTA */
.cta-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.cta-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-white);
  border-radius: 50%;
  opacity: 0;
  animation: float-up 15s ease-in-out infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0;
  }
}

.cta-particle:nth-child(1) { left: 15%; animation-delay: 0s; }
.cta-particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.cta-particle:nth-child(3) { left: 45%; animation-delay: 4s; }
.cta-particle:nth-child(4) { left: 60%; animation-delay: 1s; }
.cta-particle:nth-child(5) { left: 75%; animation-delay: 3s; }
.cta-particle:nth-child(6) { left: 90%; animation-delay: 5s; }

/* ===================================================
   FOOTER PREMIUM
   =================================================== */

.footer-premium {
  background: linear-gradient(
    to bottom,
    #0a0506 0%,
    var(--color-black) 50%,
    #1a0a0e 100%
  );
  color: var(--color-gray-300);
  padding: var(--spacing-20) 0 var(--spacing-8);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.footer-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-primary),
    transparent
  );
  opacity: 0.5;
}

.footer__content {
  position: relative;
  z-index: 1;
}

.footer__section {
  margin-bottom: var(--spacing-8);
}

.footer__title {
  color: var(--color-white);
  margin-bottom: var(--spacing-4);
  font-size: var(--font-size-lg);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.footer__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), transparent);
}

.footer__text {
  line-height: 1.8;
  margin-bottom: var(--spacing-4);
  color: var(--color-gray-400);
}

.footer__link {
  position: relative;
  transition: all 0.3s ease;
  padding-left: 20px;
}

.footer__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer__link:hover::before {
  width: 12px;
}

.footer__link:hover {
  color: var(--color-primary);
  transform: translateX(8px);
}

/* Social Links Premium */
.footer__social {
  display: flex;
  gap: var(--spacing-3);
  margin-top: var(--spacing-6);
}

.footer__social-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: all 0.3s ease;
}

.footer__social-link::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #ff69b4);
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.footer__social-link:hover::before {
  opacity: 1;
}

.footer__social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 8px 20px rgba(139, 21, 56, 0.4);
}

/* Bottom Bar Premium */
.footer__bottom {
  margin-top: var(--spacing-16);
  padding-top: var(--spacing-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
}

.footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-primary),
    transparent
  );
}

.footer__copyright {
  color: var(--color-gray-500);
  font-size: var(--font-size-sm);
}

/* ===================================================
   HEADER PREMIUM
   =================================================== */

/* NOTA: Los estilos del header están centralizados en header.css
   No agregar overrides aquí para mantener consistencia */

/* Responsive */
@media (max-width: 768px) {
  .cta-premium-title {
    font-size: 2rem;
  }
  
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 400px;
  }
}