/* =========================================================
   JR SOMBRAS DE LA BAJA — Tema "Acero Claro" (claro / luminoso)
   Blanco humo · Gris claro · Azul acero · Acento naranja quemado
   ========================================================= */

:root {
  --bg: #f5f6f8;
  --bg-2: #e7eaee;
  --surface: #ffffff;
  --ink: #1e242b;
  --ink-soft: #3a434e;
  --muted: #6b7480;
  --accent: #cc5b1f;      /* naranja quemado */
  --accent-bright: #e06a2a;
  --accent-2: #5a6b7a;    /* azul acero */
  --line: rgba(30, 36, 43, 0.10);
  --line-strong: rgba(30, 36, 43, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 18px 40px -24px rgba(30, 36, 43, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(30, 36, 43, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.08;
  text-transform: uppercase;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }
.accent { color: var(--accent); }
.accent-2 { color: var(--accent-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px;
  font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn-wa { background: #25d366; color: #06281a; }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.55); }
.btn-gold { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #fff; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(204, 91, 31, 0.5); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; transform: translateY(-3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent-2); transform: translateY(-3px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; background: transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s;
}
.nav.scrolled, .nav.solid {
  background: rgba(245, 246, 248, 0.97);
  padding: 10px 0;
  box-shadow: 0 10px 30px -18px rgba(30, 36, 43, 0.45);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 92%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-head); font-size: 1.15rem; color: #fff;
  letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s;
}
.brand-text span { font-size: 0.62rem; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.nav.scrolled .brand-text strong, .nav.solid .brand-text strong { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: #fff; font-family: var(--font-head); font-size: 0.92rem;
  letter-spacing: 1px; text-transform: uppercase; position: relative;
  padding: 4px 0; opacity: 0.9; transition: opacity 0.25s, color 0.3s;
}
.nav.scrolled .nav-links a, .nav.solid .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 6px; }
.nav-cta a { color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: 0.3s; }
.nav.scrolled .nav-toggle span, .nav.solid .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media .hero-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback {
  background: linear-gradient(135deg, #2b333c 0%, #4a5560 55%, #2b333c 100%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,24,29,0.82) 0%, rgba(20,24,29,0.5) 55%, rgba(20,24,29,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 120px 0 60px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 22px;
}
.hero-kicker::before { content: ''; width: 38px; height: 2px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #e3e6ea; max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: #fff; }
.hero-stats .stat span { font-size: 0.8rem; letter-spacing: 1px; color: #b8bfc7; text-transform: uppercase; }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-2); color: var(--ink); }
.section-steel { background: var(--surface); color: var(--ink); }
.section-light { background: var(--bg); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 0.78rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; color: var(--ink); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards de servicios ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-card); border-color: rgba(204,91,31,0.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(204,91,31,0.1); display: grid; place-items: center;
  margin-bottom: 22px; color: var(--accent);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { color: var(--ink); font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
}
.service-card .more svg { width: 16px; transition: transform 0.3s; }
.service-card:hover .more svg { transform: translateX(5px); }

/* ---------- Beneficios ---------- */
.benefits { background: var(--bg-2); color: var(--ink); }
.benefit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.benefit {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.benefit:hover { box-shadow: var(--shadow-soft); transform: translateX(6px); }
.benefit .check {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff;
}
.benefit .check svg { width: 16px; }
.benefit strong { display: block; color: var(--ink); font-size: 1.02rem; font-weight: 600; }
.benefit span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-head); font-size: 0.84rem; letter-spacing: 1px;
  text-transform: uppercase; padding: 10px 20px;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink-soft);
  border-radius: 50px; cursor: pointer; transition: 0.3s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer; box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.gallery-item .ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  font-family: var(--font-head); letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.85); font-size: 1rem;
  background-size: cover; background-position: center; background-color: #4a5560;
}
.gallery-item .gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 18px;
  background: linear-gradient(to top, rgba(20,24,29,0.92), transparent);
  transform: translateY(8px); opacity: 0; transition: 0.4s var(--ease);
}
.gallery-item:hover { transform: scale(1.015); box-shadow: var(--shadow-card); }
.gallery-item:hover .gallery-cap { transform: translateY(0); opacity: 1; }
.gallery-cap strong { display: block; color: #fff; font-family: var(--font-head); letter-spacing: 1px; }
.gallery-cap span { color: var(--accent-bright); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }
.gallery-item.hide { display: none; }

/* ---------- Slider ---------- */
.slider { position: relative; max-width: 980px; margin: 0 auto; }
.slider-track { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #4a5560; box-shadow: var(--shadow-card); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); display: grid; place-items: end start; }
.slide.active { opacity: 1; }
.slide .ph { position: absolute; inset: 0; }
.slide-caption { position: relative; z-index: 2; padding: 34px; background: linear-gradient(to top, rgba(20,24,29,0.9), transparent); width: 100%; }
.slide-caption h3 { color: #fff; font-size: 1.6rem; }
.slide-caption span { color: var(--accent-bright); letter-spacing: 1px; text-transform: uppercase; font-size: 0.82rem; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.85); color: var(--ink); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; z-index: 3; transition: 0.3s;
}
.slider-btn:hover { background: var(--accent); color: #fff; }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-dots { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #c3cad2; cursor: pointer; transition: 0.3s; border: none; }
.dot.active { background: var(--accent); width: 30px; border-radius: 6px; }

/* ---------- Franja CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-2) 0%, #46535f 100%);
  text-align: center; padding: 90px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: #dfe3e7; max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-media {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; min-height: 380px;
  background: #4a5560; display: grid; place-items: center;
  color: rgba(255,255,255,0.6); font-family: var(--font-head); letter-spacing: 2px;
  box-shadow: var(--shadow-card);
}
.about-text h2 { font-size: clamp(1.9rem,4vw,2.8rem); color: var(--ink); margin-bottom: 18px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 30px; }
.value { padding-left: 16px; border-left: 3px solid var(--accent); }
.value strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; letter-spacing: 1px; }
.value span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Formulario ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa1aa; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.form-msg { margin-top: 16px; padding: 14px; border-radius: 8px; font-size: 0.92rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(37,211,102,0.12); color: #1c8a4e; border: 1px solid rgba(37,211,102,0.35); }

.contact-info { color: var(--ink); }
.contact-info h2 { font-size: clamp(1.8rem,4vw,2.6rem); color: var(--ink); margin-bottom: 18px; }
.contact-info p.lead { color: var(--muted); margin-bottom: 30px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-item .ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(204,91,31,0.1); display: grid; place-items: center; color: var(--accent); flex: none; }
.info-item .ic svg { width: 22px; }
.info-item strong { display: block; color: var(--ink); font-family: var(--font-head); letter-spacing: 1px; }
.info-item span { color: var(--muted); font-size: 0.92rem; }
.zones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.zone-chip {
  font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 50px; background: var(--bg-2); color: var(--accent); border: 1px solid var(--line);
}

/* ---------- Page header ---------- */
.page-head {
  position: relative; padding: 170px 0 80px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  color: var(--ink); overflow: hidden; border-bottom: 1px solid var(--line);
}
.page-head::after {
  content:''; position:absolute; right:-60px; bottom:-60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,91,31,0.16), transparent 70%);
}
.page-head .eyebrow { color: var(--accent); }
.page-head h1 { font-size: clamp(2.2rem,5vw,3.6rem); margin-bottom: 12px; color: var(--ink); }
.page-head p { color: var(--muted); max-width: 600px; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-head); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); color: var(--ink-soft); padding: 70px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer .brand-text strong { color: var(--ink); }
.footer h4 { color: var(--ink); font-size: 1rem; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.92rem; transition: color 0.3s; color: var(--ink-soft); }
.footer ul a:hover { color: var(--accent); }
.footer-about p { font-size: 0.92rem; margin-top: 14px; max-width: 280px; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; z-index: 1200;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6); animation: waPulse 2.2s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- CTA fijo móvil ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  background: rgba(245,246,248,0.98); border-top: 1px solid var(--line);
  padding: 10px 14px; backdrop-filter: blur(8px); box-shadow: 0 -8px 24px -16px rgba(30,36,43,0.4);
}
.mobile-cta .btn { flex: 1; justify-content: center; padding: 13px; }
.mobile-cta-inner { display: flex; gap: 10px; }

/* ---------- Animaciones de scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px; background: rgba(245,246,248,0.99);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 50px -30px rgba(30,36,43,0.5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; color: var(--ink); }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-toggle.open span { background: var(--ink); }
  .nav-cta { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero-stats { gap: 26px; }
  .mobile-cta { display: block; }
  body { padding-bottom: 64px; }
  .wa-float { bottom: 76px; }
}
