/* ═══════════════════════════════════════
   ESCAPES BROWN – style.css
   Dark · Industrial · Mobile-First
   ═══════════════════════════════════════ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

:root {
  --red:     #D42B2B;
  --red-dk:  #a82020;
  --bg:      #0d0d0d;
  --bg2:     #141414;
  --bg3:     #1a1a1a;
  --border:  rgba(255,255,255,0.07);
  --text:    #f0f0f0;
  --muted:   #888;
  --white:   #fff;
  --font-t:  'Bebas Neue', sans-serif;
  --font-b:  'Inter', sans-serif;
  --tr:      0.3s ease;
  --r:       10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ── UTILIDADES ── */
.container  { max-width: 1080px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section    { padding: 72px 0; }
.bg-dark    { background: var(--bg2); }
.red        { color: var(--red); }

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
.header.scrolled { background: rgba(13,13,13,0.97); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: 1080px; margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  height: 38px; width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-t); font-size: 1.1rem;
  letter-spacing: 0.06em; color: var(--white);
}

/* Burger */
.burger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 4px;
  position: relative; z-index: 200;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--tr);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile */
.nav {
  display: none; flex-direction: column;
  position: fixed; inset: 0; width: 100%; height: 100vh;
  padding: 80px 20px; gap: 10px;
  background: var(--bg);
  z-index: 150;
  align-items: center; justify-content: center;
  text-align: center;
}
.nav.open { display: flex; }
.nav-link {
  padding: 15px; width: 100%;
  font-size: 1.5rem; font-family: var(--font-t);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); transition: var(--tr);
}
.nav-link:hover { color: var(--red); }
.nav-cta {
  margin-top: 20px; background: var(--red); color: var(--white);
  padding: 16px 40px; border-radius: 50px;
  font-size: 1.2rem;
}
.nav-cta:hover { background: var(--red-dk); }

@media (min-width: 768px) {
  .burger { display: none; }
  .nav {
    display: flex !important; position: static;
    height: auto; width: auto; flex-direction: row;
    padding: 0; gap: 6px; background: transparent;
  }
  .nav-link { font-size: 0.88rem; padding: 8px 12px; font-family: var(--font-b); text-transform: none; letter-spacing: normal; color: var(--muted); }
  .nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
  .nav-cta { margin-top: 0; padding: 8px 16px; border-radius: 8px; font-size: 0.88rem; color: var(--white); }
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.25) saturate(0.6);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(13,13,13,0.3) 0%,
    rgba(13,13,13,0.5) 40%,
    rgba(13,13,13,0.96) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 100px 20px 80px;
  width: 100%; max-width: 680px;
}

.hero-logo {
  height: 115px; width: auto; max-width: 100%;
  object-fit: contain; margin: 0 auto 20px;
  filter: drop-shadow(0 0 20px rgba(212,43,43,0.2));
}

.hero-stripe {
  width: 48px; height: 3px;
  background: var(--red);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-t);
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1.1; color: var(--white);
  margin-bottom: 16px;
  word-break: break-word;
}

.hero-sub {
  font-size: clamp(0.82rem, 3vw, 0.98rem);
  color: var(--muted); margin-bottom: 36px;
  line-height: 1.6;
  word-break: break-word;
}

.hero-btns {
  display: flex; flex-wrap: wrap;
  gap: 12px; justify-content: center;
}

/* Buttons */
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 50px;
  background: #25d366; color: var(--white);
  font-weight: 600; font-size: 0.92rem;
  transition: var(--tr);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-wa:hover { background: #1fb858; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 24px; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white); font-weight: 500; font-size: 0.92rem;
  transition: var(--tr);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-red {
  display: inline-flex; align-items: center;
  padding: 14px 28px; border-radius: 8px;
  background: var(--red); color: var(--white);
  font-weight: 600; font-size: 0.92rem;
  transition: var(--tr);
  box-shadow: 0 4px 16px rgba(212,43,43,0.3);
}
.btn-red:hover { background: var(--red-dk); transform: translateY(-2px); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.scroll-line {
  width: 1px; height: 44px; margin: 0 auto;
  background: linear-gradient(to bottom, transparent, var(--red));
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ── STATS ── */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 20px;
}
.stats-inner {
  max-width: 600px; margin: 0 auto;
  display: flex; justify-content: space-around;
  gap: 16px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-family: var(--font-t);
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--red); line-height: 1;
}
.stat-l {
  display: block; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

/* ── SECTION HEADERS ── */
.sec-head { margin-bottom: 44px; text-align: center; }
.sec-tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red);
  font-weight: 600; margin-bottom: 10px;
}
.sec-title {
  font-family: var(--font-t);
  font-size: clamp(1.9rem, 6vw, 3rem);
  color: var(--white); line-height: 1.1;
  margin-bottom: 14px;
  word-break: break-word;
}
.sec-desc {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.7; max-width: 580px;
  margin: 0 auto;
  word-break: break-word;
}

/* ── SERVICIOS ── */
.svc-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .svc-grid { grid-template-columns: 1fr 1fr; } }

.svc-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 22px;
  transition: var(--tr); position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; width: 3px; height: 0;
  background: var(--red); border-radius: 2px;
  transition: height 0.4s ease;
}
.svc-card:hover { border-color: rgba(212,43,43,0.3); transform: translateY(-3px); }
.svc-card:hover::after { height: 100%; }

.svc-icon {
  width: 44px; height: 44px;
  color: var(--red); margin-bottom: 16px;
}
.svc-icon svg { width: 100%; height: 100%; }

.svc-title {
  font-family: var(--font-t); font-size: 1.1rem;
  letter-spacing: 0.04em; color: var(--white);
  margin-bottom: 10px;
}
.svc-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }

/* ── MAQUINARIA ── */
.maq-section {
  padding: 72px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.maq-grid {
  display: flex; flex-direction: column; gap: 44px;
}
@media (min-width: 768px) {
  .maq-grid { flex-direction: row; align-items: center; gap: 60px; }
  .maq-img-wrap { flex: 1; }
  .maq-content { flex: 1; }
}

.maq-img-wrap { position: relative; }
.maq-img {
  width: 100%; border-radius: var(--r);
  aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--border);
}
.maq-badge {
  position: absolute; bottom: 14px; right: 14px;
  background: var(--red); border-radius: 8px;
  padding: 10px 14px; text-align: center;
}
.badge-n {
  display: block; font-family: var(--font-t);
  font-size: 1.5rem; color: var(--white); line-height: 1;
}
.badge-t {
  display: block; font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.maq-text {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.75; margin: 14px 0 22px;
  word-break: break-word;
}
.maq-list {
  list-style: none; display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 28px;
}
.maq-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--text);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
}

/* ── GALERÍA ── */
.gallery-grid {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 560px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gal-item {
  position: relative; border-radius: var(--r);
  overflow: hidden; cursor: pointer;
  aspect-ratio: 1;
}

.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.gal-item:hover img { transform: scale(1.06); }

.gal-hover {
  position: absolute; inset: 0;
  background: rgba(212,43,43,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--tr);
  font-family: var(--font-t); font-size: 1.2rem;
  letter-spacing: 0.1em; color: var(--white);
}
.gal-item:hover .gal-hover { opacity: 1; }

/* ── MARCAS ── */
.marcas-section { padding: 60px 0; }
.marquee-wrap {
  overflow: hidden; margin-top: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 60px; align-items: center;
  width: max-content;
  animation: marquee 16s linear infinite;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-33.33%)} }

.brand-item { flex-shrink: 0; }
.brand-item img {
  height: 62px; width: auto; max-width: 182px;
  object-fit: contain;
  opacity: 0.9; transition: var(--tr);
}
.brand-item img:hover { opacity: 1; transform: scale(1.05); }

/* ── CONTACTO ── */
.contact-btns {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 560px;
}
@media (min-width: 560px) {
  .contact-btns { max-width: 100%; }
}

.c-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-radius: var(--r);
  font-weight: 600; font-size: 0.9rem;
  transition: var(--tr); border: 1px solid var(--border);
  word-break: break-word;
}
.c-btn:hover { transform: translateX(4px); border-color: transparent; }

.c-wa   { background: rgba(37,211,102,0.12); color: #25d366; }
.c-wa:hover   { background: #25d366; color: #fff; }
.c-ig   { background: rgba(228,64,95,0.1);  color: #e4405f; }
.c-ig:hover   { background: #e4405f; color: #fff; }
.c-fb   { background: rgba(66,103,178,0.1); color: #4267b2; }
.c-fb:hover   { background: #4267b2; color: #fff; }
.c-mail { background: rgba(212,43,43,0.1);  color: var(--red); }
.c-mail:hover { background: var(--red); color: #fff; }

.map-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--muted);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px; transition: var(--tr);
}
.map-link:hover { color: var(--red); border-color: var(--red); }

/* ── FOOTER ── */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 36px 20px;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center;
}
.footer-logo {
  height: 52px; width: auto;
  object-fit: contain;
}
.footer-txt { font-size: 0.8rem; color: var(--muted); }
.footer-credit { font-size: 0.75rem; color: #555; }
.footer-credit a { color: var(--red); }

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed; bottom: 22px; right: 18px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  transition: var(--tr);
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { color: #fff; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 28px rgba(37,211,102,0.65); }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.93);
  align-items: center; justify-content: center;
  padding: 16px;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 100%; max-height: 90vh;
  border-radius: var(--r); object-fit: contain;
}
.lb-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer; opacity: 0.7;
  transition: var(--tr); padding: 8px;
}
.lb-close:hover { opacity: 1; color: var(--red); }

/* ── ANIMACIONES SCROLL ── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
