/* ===== FORMULARIOS Y CONTACTO ===== */

/* ===== VARIABLES Y ANIMACIONES ===== */
@keyframes contactGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

@keyframes inputScan {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

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

/* ===== SECCIÓN DE CONTACTO PRINCIPAL ===== */
.cyber-contact-section {
  position: relative;
  background: linear-gradient(135deg, #0A0A0F 0%, #1A1A2E 50%, #16213E 100%);
  padding: 6rem 0;
  overflow: hidden;
}

/* ===== FONDO Y EFECTOS DE LA SECCIÓN ===== */
.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cyber-grid-contact {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(250, 218, 37, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 218, 37, 0.1) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  animation: contactGrid 15s linear infinite;
}

.contact-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(250, 218, 37, 0.1) 0%, transparent 70%);
}

/* ===== ENCABEZADO DE CONTACTO ===== */
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.contact-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-align: center;
}

.contact-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}

/* ===== LAYOUT PRINCIPAL DE CONTACTO ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* ===== SECCIÓN "CONECTEMOS" (INFORMACIÓN DE CONTACTO) ===== */
.contact-info {
  position: relative;
  text-align: center;
}

.info-card {
  position: relative;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(250, 218, 37, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 218, 37, 0.4);
}

.info-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FADA25 0%, #E0A500 50%, #FFE55C 100%);
  -webkit-background-clip: text;
  
  background-clip: text;
  text-align: center;
}

.info-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  text-align: center;
}

/* ===== MÉTODOS DE CONTACTO ===== */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.method-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 218, 37, 0.1);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method:hover .method-glow {
  opacity: 1;
}

.contact-method:hover {
  transform: translateX(10px);
}

.method-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FADA25 0%, #E0A500 50%, #FFE55C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.method-icon i {
  font-size: 1.5rem;
  color: #0A0A0F;
  position: relative;
  z-index: 2;
}

.method-info {
  flex: 1;
  text-align: left;
}

.method-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.method-detail {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* ===== ESTADÍSTICAS DE SOPORTE ===== */
.support-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.support-stats .stat-item {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(250, 218, 37, 0.05);
  border: 1px solid rgba(250, 218, 37, 0.2);
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-stats .stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 218, 37, 0.4);
}

.support-stats .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FADA25;
  display: block;
  line-height: 1;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.support-stats .stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  color: #FFFFFF;
}

/* ===== SECCIÓN "ENVÍANOS UN MENSAJE" (FORMULARIO) ===== */
.contact-form-container {
  position: relative;
  text-align: center;
}

.form-card {
  position: relative;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(250, 218, 37, 0.2);
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-align: center;
}

.form-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(250, 218, 37, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
  opacity: 0.1;
  filter: blur(20px);
}

/* ===== ENCABEZADO DEL FORMULARIO ===== */
.form-header {
  background: rgba(250, 218, 37, 0.1);
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(250, 218, 37, 0.2);
}

.form-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-align: center;
}

/* ===== ESTRUCTURA DEL FORMULARIO ===== */
.cyber-form {
  position: relative;
  z-index: 2;
}

.form-fields-wrapper {
  padding: 2rem;
}

.form-fields-wrapper .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 0;
}

.form-fields-wrapper .col-md-6 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== GRUPOS DE CAMPOS ===== */
.cyber-form-group,
.modern-form-group {
  margin-bottom: 0;
  width: 100%;
}

/* ===== CONTENEDORES DE INPUT ===== */
.cyber-input-container,
.input-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.input-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(250, 218, 37, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
  opacity: 0;
  filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-input-container.focused .input-glow,
.input-wrapper.focused .input-glow {
  opacity: 0.3;
}

/* ===== CAMPOS DE INPUT Y TEXTAREA ===== */
.cyber-form-control,
.modern-input,
.modern-textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(250, 218, 37, 0.3);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cyber-form-control:focus,
.modern-input:focus,
.modern-textarea:focus {
  outline: none;
  border-color: #FADA25;
  box-shadow: 0 0 20px rgba(250, 218, 37, 0.5);
}

.cyber-form-control::placeholder,
.modern-input::placeholder,
.modern-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== ICONOS DE INPUT ===== */
.input-icon,
.input-icon.textarea-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #FADA25;
  font-size: 1.1rem;
  z-index: 3;
  pointer-events: none;
}

.textarea-wrapper .textarea-icon {
  top: 1.2rem;
  transform: none;
}

/* ===== EFECTOS DE HIGHLIGHT ===== */
.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #FADA25 0%, #E0A500 50%, #FFE55C 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cyber-form-control:focus + .input-highlight,
.modern-input:focus + .input-highlight,
.modern-textarea:focus + .input-highlight {
  transform: scaleX(1);
}

.input-scan {
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #FADA25 0%, #E0A500 50%, #FFE55C 100%);
  animation: inputScan 3s ease-in-out infinite;
}

/* ===== TEXTAREA ESPECÍFICO ===== */
.textarea-wrapper {
  min-height: 140px;
}

.modern-textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 1rem;
}

/* ===== VALIDACIÓN Y ESTADOS ===== */
.cyber-form-feedback,
.help-block {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ef4444;
  min-height: 1.2rem;
  text-align: left;
}

.cyber-form-group.has-error .cyber-form-control,
.cyber-form-group.has-error .modern-input,
.cyber-form-group.has-error .modern-textarea {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.cyber-form-group.has-success .cyber-form-control,
.cyber-form-group.has-success .modern-input,
.cyber-form-group.has-success .modern-textarea {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* ===== FOOTER DEL FORMULARIO ===== */
.form-footer {
  padding: 2rem;
  border-top: 1px solid rgba(250, 218, 37, 0.2);
}

.form-footer .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* ===== RECAPTCHA ===== */
.recaptcha-group {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.recaptcha-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
}

.g-recaptcha {
  transform: scale(0.9);
  transform-origin: center;
}

/* ===== BOTÓN DE ENVÍO ===== */
.submit-group {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.cyber-btn-submit,
.modern-submit-btn {
  width: 100%;
  max-width: 300px;
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
  margin-bottom: 0;
  background: linear-gradient(135deg, #FADA25 0%, #E0A500 50%, #FFE55C 100%);
  color: #0A0A0F;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.cyber-btn-submit:hover,
.modern-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(250, 218, 37, 0.5);
}

/* ===== NOTA DEL FORMULARIO ===== */
.form-note {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
}

.form-note i {
  color: #FADA25;
}

/* ===== MENSAJES DE ÉXITO/ERROR ===== */
.form-success-message {
  margin-bottom: 2rem;
}

.success-message-wrapper {
  display: none;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #10b981;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message-wrapper.show {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

/* ===== FAQ RÁPIDO ===== */
.quick-faq {
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.faq-container {
  position: relative;
  background: rgba(26, 26, 46, 0.4);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(250, 218, 37, 0.2);
  overflow: hidden;
  text-align: center;
}

.quick-faq .faq-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.quick-faq .faq-item {
  position: relative;
  background: rgba(10, 10, 15, 0.6);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(250, 218, 37, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-align: center;
}

.item-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(250, 218, 37, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
  opacity: 0;
  filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-faq .faq-item:hover .item-glow {
  opacity: 0.2;
}

.quick-faq .faq-item:hover {
  transform: translateY(-5px);
  border-color: #FADA25;
}

.quick-faq .faq-question {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1rem;
  text-align: center;
}

.quick-faq .faq-answer {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-fields-wrapper .row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-footer .row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .support-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .support-stats .stat-item {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 767px) {
  .contact-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .contact-title {
    font-size: clamp(2rem, 6vw, 3rem);
    text-align: center;
    margin: 0 auto 1rem;
    display: block;
  }
  
  .contact-subtitle {
    text-align: center;
    margin: 0 auto;
  }
  
  .contact-info,
  .contact-form-container {
    text-align: center;
  }
  
  .info-card {
    text-align: center;
    padding: 2rem 1.5rem;
  }
  
  .info-title {
    text-align: center;
    font-size: 1.8rem;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .method-info {
    text-align: center;
  }
  
  .form-header {
    text-align: center;
    padding: 1.5rem;
  }
  
  .form-title {
    text-align: center;
    font-size: 1.8rem;
  }
  
  .form-fields-wrapper {
    padding: 1.5rem;
  }
  
  .form-footer {
    padding: 1.5rem;
    text-align: center;
  }
  
  .recaptcha-group {
    justify-content: center;
    text-align: center;
  }
  
  .submit-group {
    justify-content: center;
    text-align: center;
  }
  
  .g-recaptcha {
    transform: scale(0.8);
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-item {
    text-align: center;
  }
}

@media (max-width: 479px) {
  .contact-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .info-card {
    padding: 1.5rem 1rem;
  }
  
  .form-header {
    padding: 1rem;
  }
  
  .form-fields-wrapper {
    padding: 1rem;
  }
  
  .form-footer {
    padding: 1rem;
  }
  
  .g-recaptcha {
    transform: scale(0.75);
  }
  
  .faq-container {
    padding: 2rem 1rem;
  }
}