/* ESTILOS ESPECÍFICOS PARA CONTACTO */

/* Hero de contacto */
.contact-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 50%, #06b6d4 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="120" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="300" r="180" fill="rgba(255,255,255,0.05)"/><circle cx="300" cy="800" r="150" fill="rgba(255,255,255,0.08)"/></svg>');
  animation: float 20s infinite linear;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  animation: slideInLeft 1s ease-out;
}

.location-badge i {
  color: #ff6b6b;
  font-size: 16px;
}

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

.contact-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-hero p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.6s both;
}

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

.contact-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.stat-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item i {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.9;
  color: #fbbf24;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Sección principal */
.contact-main {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Formulario */
.contact-form-section {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
}

.contact-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #0ea5e9, #06b6d4);
}

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

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  color: #1e3a8a;
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-header p {
  color: #64748b;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fafafa;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  background: white;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
  border-color: #10b981;
}

.form-icon {
  position: absolute;
  left: 15px;
  top: 38px;
  color: #9ca3af;
  pointer-events: none;
  transition: color 0.3s ease;
}

.form-group:focus-within .form-icon {
  color: #0ea5e9;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f9ff;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #0ea5e9;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  transform: scale(1.2);
}

.checkbox-group label {
  margin: 0;
  font-size: 14px;
  color: #0369a1;
  font-weight: 600;
}

.submit-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-footer {
  text-align: center;
  margin-top: 1rem;
}

.form-footer p {
  color: #64748b;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-footer i {
  color: #10b981;
}

/* Sección de información */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: slideInRight 0.8s ease-out;
}

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

.contact-mascot {
  text-align: center;
  position: relative;
}

.mascot-image {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  animation: gentle-float 3s ease-in-out infinite;
}

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

.mascot-bubble {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: white;
  padding: 1rem;
  border-radius: 15px;
  margin-top: 1rem;
  position: relative;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.mascot-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #0ea5e9;
}

.mascot-bubble p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.mascot-bubble p:last-child {
  margin-bottom: 0;
}

.contact-methods h3 {
  color: #1e3a8a;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.contact-item:hover {
  transform: translateY(-3px) translateX(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left-color: #0ea5e9;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-icon.whatsapp { 
  background: linear-gradient(135deg, #25d366, #128c7e); 
}

.contact-icon.email { 
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
}

.contact-icon.location { 
  background: linear-gradient(135deg, #ef4444, #dc2626); 
}

.contact-details {
  flex: 1;
}

.contact-details strong {
  display: block;
  color: #1e3a8a;
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-details p {
  color: #64748b;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.contact-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.trust-badges {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.trust-badges h4 {
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge-item:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  transform: scale(1.02);
}

.badge-item i {
  color: #0ea5e9;
  font-size: 14px;
}

/* Sección de ubicaciones */
.location-section {
  padding: 80px 0;
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: #1e3a8a;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title p {
  color: #64748b;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.location-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid #0ea5e9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(14, 165, 233, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-card.primary {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-left-color: #1e3a8a;
}

.location-card.primary::before {
  background: linear-gradient(135deg, transparent 0%, rgba(30, 58, 138, 0.05) 100%);
}

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

.location-card:hover::before {
  opacity: 1;
}

.location-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.location-header i {
  color: #0ea5e9;
  font-size: 1.2rem;
}

.location-card.primary .location-header i {
  color: #1e3a8a;
}

.location-header h3 {
  color: #1e3a8a;
  font-size: 1.1rem;
  font-weight: 600;
}

.location-card p {
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.location-features {
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.feature {
  display: inline-block;
  background: #0ea5e9;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 4px;
}

.location-card.primary .feature {
  background: #1e3a8a;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Mensajes de formulario */
.form-message {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message.success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 2px solid #34d399;
}

.form-message.error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 2px solid #f87171;
}

.form-message.info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 2px solid #3b82f6;
}

/* Animación de carga del botón */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  text-align: center;
  padding: 40px 0;
}

.footer p {
  margin-bottom: 8px;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 0 60px;
  }
  
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-stats {
    gap: 1.5rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form-section {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .locations-grid {
    grid-template-columns: 1fr;
  }
  
  .badges-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .mascot-image {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 90px 0 50px;
  }
  
  .contact-form-section {
    padding: 1.5rem;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
  }
  
  .submit-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .contact-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .map-container iframe {
    height: 250px;
  }
}