/**
 * Main stylesheet for Proyecto4
 */

/* Core variables */
:root {
  --primary-color: #2b6cb0;
  --secondary-color: #38c172;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --danger-color: #e3342f;
  --success-color: #38c172;
  --warning-color: #ffed4a;
  --info-color: #6cb2eb;
  --body-bg: #ffffff;
  --body-color: #212529;
  --border-radius: 0.25rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Base styles */
body {
  font-family: var(--font-main);
  background-color: var(--body-bg);
  color: var(--body-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header styles */
header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
}

/* Footer styles */
footer {
  margin-top: auto;
}

/* Card styles */
.card {
  transition: var(--transition);
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card:hover {
  box-shadow: var(--box-shadow);
}

.card-header {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 500;
}

/* Form styles */
.form-control {
  height: 45px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.15);
}

.input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
}

.input-group > .form-control {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.input-group > .input-group-text {
  border-start-end-radius: var(--border-radius);
  border-end-end-radius: var(--border-radius);
}

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

.btn-primary {
  background-color: #2b6cb0;
  border-color: #2b6cb0;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(43, 108, 176, 0.3);
}

.btn-primary:hover {
  background-color: #2c5282;
  border-color: #2c5282;
  box-shadow: 0 4px 6px rgba(44, 82, 130, 0.4);
}

.form-floating > label {
  color: #6c757d;
}

/* Auth forms */
.auth-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: white;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Home page */
.hero-section {
  padding: 5rem 0;
  background-color: var(--light-color);
  margin-bottom: 3rem;
}

.hero-heading {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.features-section {
  padding: 4rem 0;
}

.feature-card {
  height: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Contact page */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Location page */
.location-map {
  height: 500px;
  width: 100%;
  border-radius: var(--border-radius);
}

.location-info {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
}

/* Dashboard cards */
.dashboard-card {
  height: 100%;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-card-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.dashboard-card-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-card-value {
  font-size: 1.75rem;
  font-weight: 600;
}

/* Profile page */
.profile-header {
  background-color: var(--light-color);
  padding: 2rem 0;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: var(--box-shadow);
  object-fit: cover;
}

.profile-nav {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-nav .nav-link {
  color: var(--body-color);
  font-weight: 500;
  padding: 1rem 1.5rem;
}

.profile-nav .nav-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Utilities */
.cursor-pointer {
  cursor: pointer;
}

.bg-gradient-primary {
  background: linear-gradient(45deg, #2b6cb0, #4c51bf);
}

.transition {
  transition: var(--transition);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero-heading {
    font-size: 2rem;
  }
  
  .profile-nav .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* Animation */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
