/* Hero Section Styles */
.contact-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-background {
  background-attachment: fixed;
}

/* Partículas animadas */
.particles-container {
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 20px;
  height: 20px;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 15px;
  height: 15px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 25px;
  height: 25px;
  top: 80%;
  left: 10%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 12px;
  height: 12px;
  top: 30%;
  left: 70%;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  width: 18px;
  height: 18px;
  top: 70%;
  left: 50%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Glassmorphism effects */
.backdrop-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Barra de progreso del formulario */
.form-progress-bar {
  height: 6px;
  background: #f8f9fa;
}

.progress-fill {
  transition: width 0.5s ease;
}

/* Efectos de transición generales */
.transition-all {
  transition: all 0.3s ease !important;
}

.hover-lift:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Cards de contacto */
.contact-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.contact-card h5 {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.contact-card p {
  color: #495057;
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: #495057;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #667eea;
}

/* Secciones del formulario */
.form-section {
  animation: fadeInUp 0.6s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

.form-section:nth-child(1) { animation-delay: 0.2s; }
.form-section:nth-child(2) { animation-delay: 0.4s; }

/* Iconos de sección */
.section-icon {
  transition: all 0.3s ease;
}

.form-section:hover .section-icon {
  transform: scale(1.1);
}

/* Campos de formulario mejorados */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not([value=""]) ~ label {
  color: #667eea;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Cards de información */
.info-card {
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
  transition: all 0.3s ease;
}

.info-card:hover .card-icon {
  transform: scale(1.1);
}

/* Enlaces sociales */
.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Elementos de ubicación */
.location-item {
  transition: all 0.3s ease;
}

.location-item:hover {
  transform: translateX(5px);
}

.location-icon {
  transition: all 0.3s ease;
}

.location-item:hover .location-icon {
  transform: scale(1.1);
}

/* Placeholder del mapa */
.map-placeholder {
  transition: all 0.3s ease;
  border: 2px dashed #dee2e6;
}

.map-placeholder:hover {
  border-color: #667eea;
  background-color: #f8f9ff !important;
}

/* Botones mejorados */
.btn {
  transition: all 0.3s ease;
  border-width: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Animaciones de entrada */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Estados de validación mejorados */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.44 1.44L7.4 4.5l.94.94L4.6 9.18z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
}

/* Responsive */
@media (max-width: 768px) {
  .contact-hero {
    min-height: 40vh;
  }
  
  .hero-title h1 {
    font-size: 2.5rem !important;
  }
  
  .section-content,
  .form-content,
  .card-content {
    padding: 2rem !important;
  }
  
  .contact-card {
    padding: 1.5rem 1rem;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .contact-hero {
    min-height: 35vh;
  }
  
  .hero-title h1 {
    font-size: 2rem !important;
  }
  
  .section-content,
  .form-content,
  .card-content {
    padding: 1.5rem !important;
  }
}

/* Contador de caracteres */
.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}
