/* css/contacto.css
   Estilos para Contacto.php - Colores tomados de home-styles.css
*/

/* Variables de colores del sitio (basadas en home-styles.css) */
:root {
  --primary-color: #465A56;
  --secondary-color: #567c86;
  --accent-color: #6e807f;
  --dark-color: #000000;
  --light-bg: #f8f9fa;
  --text-muted: #666;
  --text-dark: #333;
}

body {
  background-color: var(--light-bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  padding: 2rem 0;
}

.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
}

/* Logo */
.contact-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-logo img {
  max-width: 180px;
  height: auto;
}

/* Botón volver */
.contact-wrap a.btn-link {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-wrap a.btn-link:hover {
  color: var(--primary-color);
}

.card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.card h1 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-label .text-danger {
  color: #dc3545;
}

.form-control {
  border-radius: 10px;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(70, 90, 86, 0.25);
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(86, 124, 134, 0.3);
}

.btn-outline-secondary {
  border-color: var(--accent-color);
  color: var(--accent-color);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.alert {
  border-radius: 10px;
  border: none;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrap {
    margin: 1rem auto;
    padding: 0.5rem;
  }
  
  .card {
    border-radius: 15px;
  }
  
  .contact-logo img {
    max-width: 150px;
  }
  
  .d-md-flex {
    flex-direction: column;
  }
  
  .d-md-flex .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}
