/* ============================================
   GOOL — Taller Mecánico
   Classic & Elegant · Plum + Amber
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #C8953E;
  color: #2A1020;
}

/* --- Scroll Reveal --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }

/* --- Header Scroll State --- */
#header.scrolled {
  background: rgba(245, 240, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(74, 32, 64, 0.08);
}

/* --- Navigation Links --- */
.nav-link {
  position: relative;
}

/* --- Hero Animations --- */
.hero-ornament {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-title {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-subtitle {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-cta {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-trust {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-image-wrapper {
  animation: fadeRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Floating Card --- */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-cta, .btn-cta-outline {
  position: relative;
  overflow: hidden;
}

.btn-primary::after, .btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::after, .btn-cta:hover::after {
  opacity: 1;
}

/* --- Service Cards --- */
.service-card {
  perspective: 1000px;
}

.service-card > div {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover > div {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(74, 32, 64, 0.2);
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-link {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Back to Top --- */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:not(.visible) {
  transform: translateY(10px);
}

/* --- Image Hover --- */
.service-card img,
#galeria img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Input Focus --- */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(200, 149, 62, 0.15);
}

/* --- Subtle Pattern Background --- */
.bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(74, 32, 64, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

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

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

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

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