/* Custom styles for Autoescuela Morón */

:root {
  --color-navy: #1e3a5f;
  --color-navy-dark: #162d4a;
  --color-gold: #c9a84c;
  --color-gold-light: #d4af5a;
  --color-cream: #faf8f4;
  --color-cream-dark: #f5f0e8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: rgba(201, 168, 76, 0.3);
  color: var(--color-navy-dark);
}

/* Navbar transition */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(30, 58, 95, 0.08);
}

#navbar.scrolled .nav-link {
  color: var(--color-navy-dark);
}

#navbar.scrolled .bar {
  background: var(--color-navy-dark);
}

/* Mobile menu */
#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.active .mobile-link {
  animation: fadeUp 0.4s ease forwards;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

/* Hamburger animation */
#menu-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Process steps */
.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -1.5rem;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
  display: none;
}

@media (min-width: 1024px) {
  .process-step:not(:last-child)::after {
    display: block;
  }
}

/* Testimonial cards */
.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--font-display), Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.1);
  pointer-events: none;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to top */
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231e3a5f' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Subtle gradient for hero overlay */
#inicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(30, 58, 95, 0.3) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Active nav link */
.nav-link.active {
  color: var(--color-gold) !important;
}

/* Page load animation */
body {
  animation: pageLoad 0.6s ease;
}

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