/*
// ===================================
// Autor: Gabriel Daniel Manea
// Fecha: 05 de marzo de 2025
// Autor de la última modificación: Gabriel Daniel Manea
// Última fecha de modificación: 26 de Abril de 2025
// Descripción: Estilos para la página del formulario de contacto
// ===================================
*/

/* Hero Section */
.contact-hero {
  background: linear-gradient(135deg, #252729 0%, var(--color-darker-gray) 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 15px 15px;
  z-index: 0;
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact-hero .hero-lead {
  font-size: 1.25rem;
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Animación de ilustración */
.contact-illustration {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Formulario de contacto */
.contact-section {
  padding: 5rem 0;
  background-color: var(--color-light-gray);
}

.contact-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Elementos del formulario */
.form-label {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.input-group-text {
  background-color: #f1f3f5;
  border-right: none;
  color: var(--color-darker-gray);
}

.form-control {
  border-left: none;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--color-primary), 0.15);
}

textarea.form-control {
  min-height: 150px;
}

/* Botón de enviar */
.btn-submit {
  padding: 0.75rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  background: linear-gradient(135deg, #1a3a8f 0%, var(--color-primary) 100%);
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Sección visual con burbujas (completa) */
.contact-visual {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.message-bubble {
  position: absolute;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.main-bubble {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.bubble-tail {
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  z-index: 2;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

/* Burbujas secundarias */
.bubble-1 {
  width: 70px;
  height: 70px;
  top: 30%;
  left: 20%;
  z-index: 2;
  animation: float-1 4s infinite ease-in-out;
}

.bubble-2 {
  width: 60px;
  height: 60px;
  top: 70%;
  left: 25%;
  z-index: 1;
  animation: float-2 5s infinite ease-in-out;
}

.bubble-3 {
  width: 80px;
  height: 80px;
  top: 50%;
  left: 70%;
  z-index: 2;
  animation: float-3 6s infinite ease-in-out;
}

/* Líneas de conexión */
.connection-line {
  position: absolute;
  background: var(--color-primary);
  height: 2px;
  transform-origin: left center;
  z-index: 1;
  opacity: 0.3;
}

.line-1 { width: 80px; top: 45%; left: 30%; transform: rotate(15deg); animation: line-pulse 3s infinite; }
.line-2 { width: 100px; top: 60%; left: 35%; transform: rotate(-10deg); animation: line-pulse 4s infinite; }
.line-3 { width: 90px; top: 55%; left: 60%; transform: rotate(5deg); animation: line-pulse 5s infinite; }

/* Animaciones específicas */
@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-5deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

@keyframes line-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.1; }
}

/* Validaciones (completas) */
.is-valid {
  border-color: var(--color-success) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.is-invalid {
  border-color: #dc3545 !important;
  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 stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

.invalid-feedback {
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

/* Responsive (completo) */
@media (max-width: 992px) {
  .contact-visual {
    height: 250px;
    margin-top: 2rem;
  }
  
  .main-bubble {
    width: 100px;
    height: 100px;
  }
  
  .bubble-1, .bubble-2, .bubble-3 {
    width: 50px;
    height: 50px;
  }
  
  .connection-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .contact-card {
    padding: 1.5rem;
  }
}