/* Estilos específicos para la página de contacto */

.contact-section {
  padding: 5rem 0;
  background: #1e293b;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact Form */
.contact-form-container {
  background: #334155;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid #475569;
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

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

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  color: #cbd5e1;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #475569;
  border: 1px solid #64748b;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  margin-top: 0.125rem;
}

.checkbox-label a {
  color: #0ea5e9;
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: #0284c7;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  background: #1e40af;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #60a5fa;
}

.contact-info-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.contact-info-content span,
.contact-info-content a {
  color: #cbd5e1;
  line-height: 1.5;
}

.contact-info-content a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-content a:hover {
  color: #0ea5e9;
}

/* Map Section */
.map-section {
  padding: 5rem 0;
  background: #0f172a;
}

.map-title {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  max-width: 4xl;
  margin: 0 auto;
  background: #334155;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #475569;
}

.map-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  overflow: hidden;
}

.map-address {
  text-align: center;
  color: #cbd5e1;
  margin-top: 1rem;
  font-size: 1.125rem;
}

/* Form Response Messages */
.form-response {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-success {
  background-color: #065f46;
  border: 1px solid #059669;
  color: #d1fae5;
}

.form-error {
  background-color: #7f1d1d;
  border: 1px solid #dc2626;
  color: #fecaca;
}

/* Button Loading State */
.btn-loading {
  display: none;
}

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

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-loading::after {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-info-icon {
    margin: 0 auto;
  }
}
