/* ═══════════════════════════════════════════════
   MIL CARTELES SRL — Custom Styles
   (Complementa Tailwind con animaciones y componentes especiales)
═══════════════════════════════════════════════ */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ---------- Header ---------- */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,.08);
}

#site-header.scrolled .nav-link {
  color: #374151;
}

#site-header:not(.scrolled) .nav-link {
  color: rgba(255,255,255,.9);
}

.social-icon {
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
.social-icon:hover { color: #1a9a3c; }

#site-header.scrolled .social-icon {
  color: #6b7280;
}
#site-header.scrolled .social-icon:hover {
  color: #1a9a3c;
}

/* Logo text always visible */
.logo-container { display: flex; gap: 2px; }

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

.animate-fade-in  { animation: fadeIn  .8s ease both; }
.animate-slide-up { animation: slideUp .8s ease both; }
.animate-slide-up.delay-100 { animation-delay: .1s; }
.animate-slide-up.delay-200 { animation-delay: .2s; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Slider ---------- */
.slider-wrapper {
  overflow: hidden;
  border-radius: 1.25rem;
  cursor: grab;
  user-select: none;
}
.slider-wrapper:active { cursor: grabbing; }

.slider-track {
  display: flex;
  gap: 16px;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.slider-item {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 280px;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

@media (max-width: 768px) {
  .slider-item {
    flex: 0 0 calc(80% - 8px);
    min-width: 260px;
  }
}

.slider-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.slider-item:hover img { transform: scale(1.04); }

.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 1.5rem .75rem .6rem;
  letter-spacing: .03em;
}

/* ---------- Slider Buttons ---------- */
.btn-slider {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.btn-slider:hover {
  background: #1a9a3c;
  border-color: #1a9a3c;
  color: #fff;
}

/* ---------- Slider Dots ---------- */
.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: background .2s, width .2s;
}
.slider-dots .dot.active {
  background: #1a9a3c;
  width: 24px;
  border-radius: 4px;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: #1f2937;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: #1a9a3c;
  box-shadow: 0 20px 40px rgba(26,154,60,.15);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(26,154,60,.12);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #1a9a3c;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Stats counters ---------- */
.stat-item .counter { font-size: 2.5rem; font-weight: 700; }

/* ---------- Logo Scrolling Track ---------- */
.logos-track-wrapper { position: relative; }

.logos-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 25s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-badge {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .04em;
  padding: .5rem 1.5rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.logo-badge:hover {
  color: #1a9a3c;
  border-color: #1a9a3c;
}

/* ---------- Form Inputs ---------- */
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .375rem;
}

.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: .75rem;
  font-size: .95rem;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.form-input:focus {
  border-color: #1a9a3c;
  box-shadow: 0 0 0 3px rgba(26,154,60,.15);
  background: #fff;
}
.form-input::placeholder { color: #9ca3af; }

/* ---------- Parallax Hero fallback bg ---------- */
#hero {
  background-color: #0f1a12;
}

/* ---------- Smooth section transitions ---------- */
section { position: relative; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #1a9a3c; border-radius: 3px; }

/* ---------- Selection color ---------- */
::selection { background: #1a9a3c; color: #fff; }
