/* =============================================
   ELITE MOTORS GROUP — Landing Page
   Centro Automotriz Premium, Quito, Ecuador
   ============================================= */

/* 1. RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 2. VARIABLES
   ============================================= */
:root {
  --bg-0:     #000000;
  --bg-1:     #080808;
  --bg-2:     #0F0F0F;
  --bg-3:     #141414;
  --bg-card:  #0C0C0C;

  --gray-700: #3A3A3A;
  --gray-600: #5B5B5B;
  --gray-500: #797979;
  --gray-400: #9E9E9E;
  --gray-300: #C2C2C2;
  --gray-200: #D4D4D4;
  --gray-100: #EFEFEF;
  --white:    #FFFFFF;

  --silver-gradient:   linear-gradient(135deg, #C2C2C2 0%, #FFFFFF 48%, #9E9E9E 100%);
  --silver-h:          linear-gradient(90deg,  #797979 0%, #DEDEDE 50%, #797979 100%);

  --border:        1px solid rgba(194, 194, 194, 0.09);
  --border-silver: 1px solid rgba(194, 194, 194, 0.28);

  --font: 'Raleway', sans-serif;

  --t:      all 0.3s ease;
  --t-slow: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card:   0 4px 32px rgba(0,0,0,0.55);
  --shadow-silver: 0 0 40px rgba(194,194,194,0.07);
  --shadow-silver-strong: 0 8px 40px rgba(194,194,194,0.14);

  --section-py: 104px;
  --container:  1180px;
  --pad:        24px;
}

/* 3. LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* 4. TYPOGRAPHY UTILITIES
   ============================================= */
.gradient-text {
  background: linear-gradient(90deg,
    #5B5B5B 0%, #C2C2C2 25%, #FFFFFF 48%, #C2C2C2 72%, #5B5B5B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 620px;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* Visually hidden — accesible por screen readers y crawlers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 5. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--silver-gradient);
  color: #000;
}
.btn-primary:hover {
  box-shadow: var(--shadow-silver-strong);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid rgba(194,194,194,0.35);
}
.btn-outline:hover {
  border-color: var(--gray-300);
  color: var(--white);
  background: rgba(194,194,194,0.05);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.32);
}

/* ─── SEPARATOR LINE ─── */
.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,194,194,0.12), transparent);
}

/* 6. NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled {
  padding: 15px 0;
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: block;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* slight brightness boost so the chrome reads clearly on both
     transparent and scrolled (dark) nav backgrounds            */
  filter: brightness(1.08) contrast(1.02);
  transition: opacity 0.3s ease;
}
.nav-logo-img:hover { opacity: 0.88; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: var(--t);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }

.nav-cta {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-300);
  background: transparent;
  border: 1px solid rgba(194,194,194,0.3);
  padding: 10px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--t);
}
.nav-cta:hover {
  background: var(--gray-300);
  color: #000;
  border-color: var(--gray-300);
}

/* ── NAV DROPDOWN ── */
.nav-item {
  position: relative;
  list-style: none;
}

.nav-link-drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link-drop .drop-chevron {
  font-size: 8px;
  color: var(--gray-600);
  transition: transform 0.25s ease, color 0.25s ease;
}
.nav-item:hover .drop-chevron,
.nav-item:focus-within .drop-chevron {
  transform: rotate(180deg);
  color: var(--gray-400);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 252px;
  background: rgba(6,6,6,0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: var(--border);
  border-radius: 6px;
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 998;
}
/* connector bridge — prevents gap-break on hover */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -20px; left: 0; right: 0;
  height: 20px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown-link:hover {
  color: var(--white);
  background: rgba(194,194,194,0.04);
}
.nav-dropdown-link i {
  width: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.nav-dropdown-link:hover i { color: var(--gray-400); }

/* Mobile nav services sub-list */
.mobile-nav-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  border-top: 1px solid rgba(194,194,194,0.07);
  border-bottom: 1px solid rgba(194,194,194,0.07);
  padding: 10px 0;
  margin: 4px 0;
}
.mobile-nav-services-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 700;
  margin-bottom: 4px;
}
.mobile-nav-service-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.2s ease;
}
.mobile-nav-service-link:hover { color: var(--gray-200); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gray-300);
  transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--gray-300);
}
.mobile-nav-close {
  position: absolute;
  top: 28px; right: 28px;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* 7. HERO
   ============================================= */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;    /* content anchored to bottom */
  position: relative;
  overflow: hidden;
  background: #000;
}

/* ── AUTOMOTIVE BACKGROUND ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?auto=format&fit=crop&w=1920&q=85');
  background-size: cover;
  background-position: 68% center;
  animation: kbHero 16s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kbHero {
  from { transform: scale(1.0)  translate(0,      0);    }
  to   { transform: scale(1.06) translate(-0.8%, -0.4%); }
}

/* ── GRADIENT VIGNETTE (text legibility) ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.96) 0%,
      rgba(0,0,0,0.72) 28%,
      rgba(0,0,0,0.22) 62%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.44) 36%,
      transparent 64%
    );
}

/* ── GRID OVERLAY (anchored bottom-left) ── */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(194,194,194,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,194,194,0.026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 55% 65% at 12% 88%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 12% 88%, black 0%, transparent 100%);
}

/* ── HERO CONTENT (bottom-left anchored) ── */
.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;    /* pass-through: Spline gets mouse events */
  padding-top: 100px;
  padding-bottom: 72px;
}

/* Max-width wrapper for text block */
.hero-inner {
  max-width: 700px;
}

/* Re-enable pointer events only for interactive elements */
.hero-actions,
.hero-actions a,
.hero-actions .btn,
.hero-trust {
  pointer-events: auto;
}

/* ── HERO TEXT ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineReveal {
  from { transform: translateY(108%); }
  to   { transform: translateY(0); }
}

/* h1 line-reveal */
.hero-h1-line {
  display: block;
  overflow: hidden;
  line-height: 1.1;
}
.hero-h1-line > span {
  display: block;
  animation: lineReveal 0.95s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-h1-line:nth-child(1) > span { animation-delay: 0.3s; }
.hero-h1-line:nth-child(2) > span { animation-delay: 0.52s; }

.hero-p        { animation: fadeUp 0.85s cubic-bezier(0.16,1,0.3,1) 0.80s both; }
.hero-actions  { animation: fadeUp 0.85s cubic-bezier(0.16,1,0.3,1) 1.00s both; }
.hero-benefits { animation: fadeUp 0.85s cubic-bezier(0.16,1,0.3,1) 1.18s both; }
.hero-trust    { animation: fadeUp 0.85s cubic-bezier(0.16,1,0.3,1) 1.35s both; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: var(--border);
  background: rgba(194,194,194,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 20px;
  border-radius: 2px;
  margin-bottom: 36px;
  animation: fadeDown 0.75s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}
.hero-badge-dot {
  width: 5px; height: 5px;
  background: var(--gray-300);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
.hero-badge span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-400);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-h1 {
  font-size: clamp(36px, 6.8vw, 80px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 28px;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(90deg,
    #5B5B5B 0%, #C2C2C2 22%, #FFFFFF 45%, #C2C2C2 68%, #5B5B5B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
}

.hero-p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 32px;
  border-top: var(--border);
}
.hero-benefit {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.5px;
}
.hero-benefit i { color: var(--gray-300); font-size: 10px; }

/* ── TRUST BAR ── */
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(194,194,194,0.08);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-600);
}
.hero-trust-sep {
  color: rgba(194,194,194,0.22);
  font-weight: 400;
  letter-spacing: 0;
}

/* 8. TRUST / CONFIANZA
   ============================================= */
#confianza {
  padding: var(--section-py) 0;
  background: var(--bg-1);
  position: relative;
}
#confianza::before,
#confianza::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,194,194,0.1), transparent);
}
#confianza::before { top: 0; }
#confianza::after  { bottom: 0; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.trust-accent {
  width: 44px; height: 3px;
  background: var(--silver-gradient);
  border-radius: 2px;
  margin-bottom: 26px;
}

.trust-title {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.trust-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-500);
}

/* Wrapper for right column (photo + stats) */
.trust-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 6px;
  border: var(--border);
  filter: brightness(0.82) contrast(1.05);
  transition: var(--t);
}
.trust-photo:hover { filter: brightness(0.92) contrast(1.05); }

.trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.trust-stat {
  background: var(--bg-2);
  border: var(--border);
  padding: 30px 22px;
  border-radius: 4px;
  text-align: center;
  transition: var(--t);
}
.trust-stat:hover {
  border-color: rgba(194,194,194,0.22);
  transform: translateY(-4px);
}
.trust-stat-num {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 7px;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-stat-label {
  font-size: 11.5px;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* 9. SERVICIOS
   ============================================= */
#servicios {
  padding: var(--section-py) 0;
  background: var(--bg-0);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(194,194,194,0.07);
  border: 1px solid rgba(194,194,194,0.07);
  margin-top: 64px;
  border-radius: 6px;
  overflow: hidden;
}

.service-card {
  background: var(--bg-0);
  padding: 0;
  transition: var(--t-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--silver-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
  z-index: 2;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { background: var(--bg-2); }

/* Card image */
.service-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.08) saturate(0.75);
  transition: transform 0.65s cubic-bezier(0.16,1,0.3,1), filter 0.42s ease;
  display: block;
}
.service-card:hover .service-card-img img {
  transform: scale(1.07);
  filter: brightness(0.88) contrast(1.08) saturate(0.9);
}

/* Card body */
.service-card-body {
  padding: 30px 32px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(194,194,194,0.05);
  border: var(--border);
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 18px;
  color: var(--gray-300);
  transition: var(--t);
}
.service-card:hover .service-icon {
  background: rgba(194,194,194,0.1);
  border-color: rgba(194,194,194,0.28);
  color: var(--white);
}

.service-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--gray-500);
  flex: 1;
}

/* 10. DIFERENCIADORES
   ============================================= */
#diferenciador {
  padding: var(--section-py) 0;
  background: var(--bg-1);
  position: relative;
}
#diferenciador::before,
#diferenciador::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,194,194,0.1), transparent);
}
#diferenciador::before { top: 0; }
#diferenciador::after  { bottom: 0; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.diff-card {
  padding: 36px;
  border: var(--border);
  border-radius: 6px;
  background: var(--bg-0);
  transition: var(--t-slow);
}
.diff-card:hover {
  border-color: rgba(194,194,194,0.28);
  box-shadow: var(--shadow-silver);
  transform: translateY(-6px);
}

.diff-icon {
  font-size: 20px;
  color: var(--gray-300);
  margin-bottom: 20px;
}
.diff-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.diff-desc {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.72;
}

/* 11. NOSOTROS / CORPORATIVO
   ============================================= */
#nosotros {
  padding: 120px 0;
  background-color: var(--bg-0);
  background-image:
    linear-gradient(rgba(0,0,0,0.88), rgba(0,0,0,0.88)),
    url('https://images.unsplash.com/photo-1767907571229-01cf4ba03590?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.corp-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(194,194,194,0.028) 0%, transparent 70%);
  pointer-events: none;
}
.corp-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}
.corp-title {
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.corp-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--gray-500);
}

/* 12. ESTADÍSTICAS
   ============================================= */
#estadisticas {
  background: var(--bg-2);
  position: relative;
}
#estadisticas::before,
#estadisticas::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,194,194,0.1), transparent);
}
#estadisticas::before { top: 0; }
#estadisticas::after  { bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(194,194,194,0.07);
}

.stat-item {
  background: var(--bg-2);
  padding: 72px 28px;
  text-align: center;
}

.stat-num {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -2px;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.5;
}

/* 13. TESTIMONIOS
   ============================================= */
#testimonios {
  padding: var(--section-py) 0;
  background: var(--bg-1);
  position: relative;
}
#testimonios::before,
#testimonios::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,194,194,0.1), transparent);
}
#testimonios::before { top: 0; }
#testimonios::after  { bottom: 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}

.testimonial-card {
  background: var(--bg-0);
  border: var(--border);
  border-radius: 8px;
  padding: 40px 34px;
  transition: var(--t-slow);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; left: 28px;
  font-size: 88px;
  line-height: 1;
  color: rgba(194,194,194,0.06);
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: rgba(194,194,194,0.24);
  transform: translateY(-6px);
  box-shadow: var(--shadow-silver);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--gray-300);
  font-size: 12px;
  margin-bottom: 20px;
}
.testimonial-text {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--gray-400);
  font-style: italic;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Testimonial author row */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(194,194,194,0.07);
  position: relative;
  z-index: 1;
}
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) brightness(0.9);
  border: 2px solid rgba(194,194,194,0.18);
  flex-shrink: 0;
  transition: var(--t);
}
.testimonial-card:hover .testimonial-avatar {
  filter: grayscale(0%) brightness(1);
  border-color: rgba(194,194,194,0.38);
}
.testimonial-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-200);
  letter-spacing: 0.5px;
}
.testimonial-role {
  font-size: 10.5px;
  color: var(--gray-600);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* 14. PROCESO
   ============================================= */
#proceso {
  padding: var(--section-py) 0;
  background: var(--bg-0);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin-top: 64px;
}

.process-line {
  position: absolute;
  top: 43px;
  left: calc(12.5% + 44px);
  right: calc(12.5% + 44px);
  height: 1px;
  background: linear-gradient(90deg, rgba(194,194,194,0.18), rgba(194,194,194,0.32), rgba(194,194,194,0.18));
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.16,1,0.3,1) 0.3s;
}
.process-line.drawn { transform: scaleX(1); }

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(194,194,194,0.18);
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  transition: var(--t);
}
.process-step:hover .step-circle {
  border-color: rgba(194,194,194,0.4);
  box-shadow: 0 0 28px rgba(194,194,194,0.08);
}

.step-num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-title {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* 15. CTA PREMIUM
   ============================================= */
#cta {
  padding: 128px 0;
  background-color: var(--bg-2);
  background-image:
    linear-gradient(rgba(8,8,8,0.91), rgba(8,8,8,0.91)),
    url('https://images.unsplash.com/photo-1580679568899-be51739ba2df?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 50% 50%, rgba(194,194,194,0.035) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.cta-sub {
  font-size: 15.5px;
  color: var(--gray-500);
  margin-bottom: 40px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* 16. MARCAS
   ============================================= */
#marcas {
  padding: 96px 0;
  background: var(--bg-0);
  position: relative;
}
#marcas::before,
#marcas::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,194,194,0.08), transparent);
}
#marcas::before { top: 0; }
#marcas::after  { bottom: 0; }

.brands-label {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 44px;
}

/* ── MARQUEE ── */
.brands-overflow {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.brands-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marquee 40s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-pill {
  flex-shrink: 0;
  padding: 20px 44px;
  border: 1px solid rgba(194,194,194,0.13);
  border-radius: 4px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: var(--t);
  white-space: nowrap;
}
.brand-pill:hover {
  color: var(--gray-200);
  border-color: rgba(194,194,194,0.32);
  background: rgba(194,194,194,0.04);
}

/* 17. CONTACTO
   ============================================= */
#contacto {
  padding: var(--section-py) 0;
  background: var(--bg-1);
  position: relative;
}
#contacto::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,194,194,0.1), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 64px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(194,194,194,0.05);
  border: var(--border);
  border-radius: 4px;
  font-size: 15px;
  color: var(--gray-300);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.contact-val {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-200);
  line-height: 1.55;
}
.contact-val a {
  color: var(--gray-200);
  transition: var(--t);
}
.contact-val a:hover { color: var(--white); }

.contact-map-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: var(--border);
}
.contact-map-wrap iframe {
  width: 100%;
  height: 320px;
  display: block;
  filter: grayscale(100%) invert(92%) contrast(88%) brightness(55%) sepia(10%);
}
.map-cta {
  margin-top: 18px;
}

/* 18. FOOTER
   ============================================= */
footer {
  padding: 52px 0;
  background: #000;
  border-top: 1px solid rgba(194,194,194,0.1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
}

/* Brand column (left) */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 10px;
  filter: brightness(1.06) contrast(1.02);
}
.footer-brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gray-600);
  text-transform: uppercase;
}

/* Social column (center) */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-social-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-500);
}
.footer-social-links {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194,194,194,0.12);
  border-radius: 5px;
  color: var(--gray-500);
  font-size: 16px;
  transition: var(--t);
}
.footer-social-link:hover {
  border-color: rgba(194,194,194,0.35);
  color: var(--gray-200);
  background: rgba(194,194,194,0.05);
  transform: translateY(-2px);
}

/* Legal column (right) */
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.footer-copy {
  font-size: 11.5px;
  color: var(--gray-500);
  letter-spacing: 0.3px;
  line-height: 1.6;
}
.footer-powered {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-700);
  transition: color 0.25s ease;
}
.footer-powered:hover { color: var(--gray-400); }

/* 19. FLOATING WHATSAPP
   ============================================= */
/* ── FLOAT WA ENTRANCE ── */
@keyframes floatIn {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);    opacity: 1; }
}
.float-wa {
  animation: floatIn 0.7s cubic-bezier(0.34,1.56,0.64,1) 2.2s both;
  position: fixed;
  bottom: 30px; right: 30px;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: #fff;
  z-index: 900;
  box-shadow: 0 4px 22px rgba(37,211,102,0.42);
  transition: var(--t);
}
.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37,211,102,0.55);
}

/* 20. SCROLL REVEAL
   ============================================= */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity  0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal       { transform: translateY(38px); }
.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-scale { transform: scale(0.88); }

.reveal.d1, .reveal-left.d1,
.reveal-right.d1, .reveal-scale.d1 { transition-delay: 0.08s; }
.reveal.d2, .reveal-left.d2,
.reveal-right.d2, .reveal-scale.d2 { transition-delay: 0.18s; }
.reveal.d3, .reveal-left.d3,
.reveal-right.d3, .reveal-scale.d3 { transition-delay: 0.28s; }
.reveal.d4, .reveal-left.d4,
.reveal-right.d4, .reveal-scale.d4 { transition-delay: 0.38s; }
.reveal.d5, .reveal-left.d5,
.reveal-right.d5, .reveal-scale.d5 { transition-delay: 0.48s; }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ── 3D TILT (aplicado vía JS) ── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* 21. RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-py: 88px; }

  .trust-grid { grid-template-columns: 1fr; gap: 56px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .diff-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials-grid { grid-template-columns: 1fr 1fr; }

  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process-line { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 72px; }

  .nav-links,
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-h1 { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .services-grid { grid-template-columns: 1fr; }

  .diff-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials-grid { grid-template-columns: 1fr; }

  .process-steps { grid-template-columns: 1fr; gap: 40px; }

  .trust-photo { aspect-ratio: 16 / 7; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 32px; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-legal { align-items: center; text-align: center; }

  .float-wa { bottom: 22px; right: 22px; }

  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  :root { --pad: 18px; }
  .nav-logo-img  { height: 30px; }
  .footer-logo-img { height: 38px; }
  .brands-row { gap: 6px; }
  .brand-pill { padding: 10px 18px; font-size: 10px; }
}

/* =============================================
   PÁGINAS DE SERVICIO
   ============================================= */

/* Page header */
.page-header {
  padding: 170px 0 90px;
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(194,194,194,0.07);
}

/* Background image layer (added per-page via inline style) */
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.52) saturate(0.78) contrast(1.06);
}

/* Gradient overlay — protects text on left, fades right */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.46) 45%, rgba(0,0,0,0.12) 100%),
    linear-gradient(to top,   rgba(0,0,0,0.55) 0%, transparent 40%);
}
.page-header > .container { position: relative; z-index: 2; }

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: var(--t);
  margin-bottom: 32px;
}
.page-back:hover { color: var(--gray-300); }

.page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.page-label i { font-size: 12px; color: var(--gray-400); }

.page-title {
  font-size: clamp(30px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 580px;
}

/* Content grid */
.service-page-section {
  padding: var(--section-py) 0;
  background: var(--bg-0);
}
.service-page-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Body copy */
.service-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-200);
  margin: 38px 0 14px;
  letter-spacing: -0.3px;
}
.service-body h3:first-child { margin-top: 0; }
.service-body p {
  font-size: 16px;
  line-height: 1.88;
  color: var(--gray-500);
  margin-bottom: 18px;
}
.service-body ul {
  list-style: none;
  margin-bottom: 22px;
}
.service-body li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 10px;
  line-height: 1.65;
}
.service-body li i {
  color: var(--gray-300);
  font-size: 9px;
  margin-top: 5px;
  flex-shrink: 0;
}

/* Sidebar */
.service-sidebar {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-cta {
  background: var(--bg-card);
  border: var(--border);
  border-radius: 6px;
  padding: 30px;
}
.sidebar-cta-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--white);
}
.sidebar-cta p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 22px;
}
.sidebar-cta .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.sidebar-cta .btn:last-of-type { margin-bottom: 0; }

.sidebar-services {
  background: var(--bg-card);
  border: var(--border);
  border-radius: 6px;
  padding: 22px 26px;
}
.sidebar-services .label { margin-bottom: 14px; }

.sidebar-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(194,194,194,0.055);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.3px;
  transition: var(--t);
}
.sidebar-service-link:last-child { border-bottom: none; }
.sidebar-service-link:hover { color: var(--white); }
.sidebar-service-link i { font-size: 9px; color: var(--gray-600); }
.sidebar-service-link.active { color: var(--gray-200); }
.sidebar-service-link.active i { color: var(--gray-400); }

/* FAQ */
.service-faq-section {
  padding: var(--section-py) 0;
  background: var(--bg-1);
  border-top: 1px solid rgba(194,194,194,0.06);
}
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 56px;
  margin-top: 48px;
}
.faq-item {
  border-top: 1px solid rgba(194,194,194,0.08);
  padding-top: 20px;
}
.faq-q {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gray-200);
  margin-bottom: 10px;
  line-height: 1.45;
}
.faq-a {
  font-size: 14px;
  line-height: 1.82;
  color: var(--gray-500);
}

/* Service cards in index — "Ver servicio" link */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: var(--t);
}
.service-link i { font-size: 9px; transition: transform 0.25s ease; }
.service-link:hover { color: var(--gray-200); }
.service-link:hover i { transform: translateX(3px); }

/* Responsive */
@media (max-width: 1024px) {
  .service-page-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-sidebar   { position: static; }
  .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-header { padding: 130px 0 60px; }
  .page-title  { letter-spacing: -1px; }
  .service-card-img { aspect-ratio: 16 / 7; }
  .service-card-body { padding: 24px 24px 30px; }
}
