/* ==========================================================================
   SECCIÓN CONTACTO / LANDING & GRACIAS (CONTACTO.CSS)
   ========================================================================== */

.contact-page, 
.thanks-page {
  padding: var(--space-3xl) var(--space-md) var(--space-2xl);
  min-height: 100vh;
  background-color: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-contacto {
  background-color: var(--bg-primary);
  padding: var(--space-3xl) 0;
  position: relative;
}

.contact-container {
  max-width: var(--content-max-width, 1100px);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

/* BADGES DE CABECERA */
.contact-badge, 
.thanks-badge {
  display: inline-block;
  background-color: var(--accent-soft);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--border-accent-subtle);
}

/* TIPOGRAFÍA */
.contact-title, 
.thanks-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.contact-title em, 
.thanks-title em { 
  font-style: italic; 
  color: var(--accent); 
}

.contact-description, 
.thanks-description { 
  font-family: var(--font-body);
  font-size: 1.05rem; 
  color: var(--text-muted);
  line-height: 1.6; 
  margin-bottom: var(--space-xl); 
}

/* LISTA DE BENEFICIOS */
.contact-benefits-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex; 
  flex-direction: column; 
  gap: var(--space-md); 
}

.benefit-item {
  display: flex; 
  align-items: flex-start; 
  gap: var(--space-xs);
  color: var(--text-main); 
  font-weight: 500; 
  font-size: 0.975rem; 
  line-height: 1.5;
  will-change: transform;
  transition: transform 0.3s var(--ease-out-expo);
}

.benefit-item:hover { 
  transform: translateX(6px); 
}

.benefit-icon {
  display: flex; 
  align-items: center; 
  justify-content: center;
  width: 24px; 
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.benefit-icon svg { 
  width: 100%; 
  height: 100%; 
  stroke: currentColor; 
}

/* CONTENEDORES DE FORMULARIO Y GRACIAS */
.contact-form-wrapper, 
.thanks-card {
  background-color: var(--bg-surface);
  backdrop-filter: var(--backdrop-blur, blur(10px));
  -webkit-backdrop-filter: var(--backdrop-blur, blur(10px));
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  will-change: transform, box-shadow;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s ease;
}

.thanks-card {
  max-width: 650px; 
  width: 100%; 
  text-align: center;
  animation: cardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-form-wrapper:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

/* BORDES SUPERIORES ANIMADOS */
.form-card-glow, 
.thanks-card-glow {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 4px;
  background: linear-gradient(90deg, var(--bg-body), var(--accent), var(--secondary, var(--accent-hover)), var(--bg-body));
  background-size: 200% 100%;
  will-change: background-position;
  animation: glowMove 4s linear infinite;
}

@keyframes glowMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ÍCONO PÁGINA GRACIAS */
.thanks-icon {
  width: 80px; 
  height: 80px;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin: 0 auto var(--space-lg);
  border: 1px solid var(--border-accent-subtle);
  box-shadow: var(--shadow-glow);
  animation: iconPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes iconPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.thanks-actions { 
  display: flex; 
  gap: var(--space-md); 
  justify-content: center; 
  align-items: center; 
  flex-wrap: wrap; 
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
  .contact-container { 
    grid-template-columns: 1fr; 
    gap: var(--space-xl); 
  }
  
  .contact-page { 
    padding-top: var(--space-2xl); 
  }
  
  .contact-form-wrapper { 
    padding: var(--space-lg) var(--space-md); 
  }
}

@media (max-width: 768px) {
  .thanks-card { 
    padding: var(--space-xl) var(--space-md); 
  }
  
  .thanks-actions { 
    flex-direction: column; 
    width: 100%; 
  }
  
  .thanks-actions .btn, 
  .thanks-actions .btn--whatsapp-outline { 
    width: 100%; 
  }
}