/* ==========================================
   PETROGA - Gasolinera Galicia
   Custom Styles
   ========================================== */

/* Variables CSS */
:root {
  --petroga-primary: #1a5f2a;
  --petroga-dark: #0d3015;
  --petroga-yellow: #f4c430;
  --petroga-yellow-dark: #d4a620;
}

/* Typography */
body {
  font-family: 'Montserrat', sans-serif;
}

/* Petroga Colors */
.bg-petroga {
  background-color: var(--petroga-primary) !important;
}

.text-petroga {
  color: var(--petroga-primary) !important;
}

.bg-petroga-yellow {
  background-color: var(--petroga-yellow) !important;
}

.text-petroga-yellow {
  color: var(--petroga-yellow) !important;
}

/* Buttons */
.btn-petroga {
  background-color: var(--petroga-primary);
  border-color: var(--petroga-primary);
  color: white;
}

.btn-petroga:hover {
  background-color: var(--petroga-dark);
  border-color: var(--petroga-dark);
  color: white;
}

.btn-petroga:focus {
  background-color: var(--petroga-dark);
  border-color: var(--petroga-dark);
  box-shadow: 0 0 0 0.25rem rgba(26, 95, 42, 0.25);
}

/* Navbar */
.navbar-dark.bg-petroga {
  background: linear-gradient(
    135deg,
    var(--petroga-primary) 0%,
    var(--petroga-dark) 100%
  ) !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--petroga-yellow);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--petroga-dark) 0%,
    var(--petroga-primary) 50%,
    #2d7a3e 100%
  );
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.min-vh-75 {
  min-height: 75vh;
}

/* Service Cards */
.service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-sm {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-full {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-left: 4px solid transparent;
}

.service-card-full:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
  border-left-color: var(--petroga-primary);
}

/* Contact */
.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Auth */
.auth-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Values */
.value-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Team */
.team-avatar {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Admin */
.avatar-sm {
  width: 35px;
  height: 35px;
  min-width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e9ecef;
}

.timeline-item {
  position: relative;
  padding-bottom: 25px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -26px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e9ecef;
}

.timeline-content {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer a:hover {
  color: var(--petroga-yellow) !important;
}

/* Form Focus */
.form-control:focus,
.form-select:focus {
  border-color: var(--petroga-primary);
  box-shadow: 0 0 0 0.25rem rgba(26, 95, 42, 0.15);
}

.form-check-input:checked {
  background-color: var(--petroga-primary);
  border-color: var(--petroga-primary);
}

/* Cards */
.card {
  border-radius: 12px;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .min-vh-75 {
    min-height: auto;
    padding: 60px 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--petroga-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--petroga-dark);
}
