/* =========================================================
   JOYA IMPORT C.A. — Estilos principales
   Diseño profesional, moderno, con animaciones e interactividad
   ========================================================= */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --gold: #c9971f;
  --gold-light: #e3b64f;
  --gold-soft: #f6e6c4;
  --gray-bg: #f7f8fa;
  --gray-text: #4a5568;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, 0.18);
  --radius: 14px;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--gray-bg);
  overflow-x: hidden;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 .5em;
  line-height: 1.25;
}

p { margin: 0 0 1em; color: var(--gray-text); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

section { position: relative; padding: 90px 0; }

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: .78rem;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  padding-left: 34px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
}

.section-title span { color: var(--gold); }

.section-subtitle {
  max-width: 640px;
  color: var(--gray-text);
  margin-top: 12px;
  font-size: 1.05rem;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(201, 151, 31, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-4px);
}

.btn-dark-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-dark-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-4px);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 64px; height: 64px;
  border: 4px solid rgba(255,255,255,.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cbd5e0;
  font-size: .82rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar a { color: #cbd5e0; transition: color .25s; }
.topbar a:hover { color: var(--gold-light); }
.topbar-socials { display: flex; gap: 14px; }
.topbar-socials a { font-size: 1rem; }

/* ---------- Header / Nav ---------- */
header.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo-brand { display: flex; align-items: center; gap: 12px; }
.logo-brand img { height: 52px; width: auto; }
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 1.15rem; color: var(--navy); font-family: var(--font-head); }
.logo-text span { font-size: .72rem; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-warehouse.jpg') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.18); }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7,26,51,.92) 20%, rgba(7,26,51,.55) 60%, rgba(201,151,31,.35));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 60px 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .82rem;
  letter-spacing: 1px;
  margin-bottom: 26px;
  animation: fadeInUp 1s ease .1s both;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  max-width: 780px;
  animation: fadeInUp 1s ease .25s both;
}
.hero h1 span { color: var(--gold-light); }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 600px;
  color: #dbe3ee;
  animation: fadeInUp 1s ease .4s both;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease .55s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  animation: fadeInUp 1s ease .7s both;
}
.stat-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.stat-box:hover { background: rgba(255,255,255,.16); transform: translateY(-6px); }
.stat-box h3 { font-size: 1.9rem; color: var(--gold-light); margin-bottom: 2px; }
.stat-box span { font-size: .8rem; color: #dbe3ee; letter-spacing: .5px; }

.scroll-down {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: .78rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  opacity: .85;
}
.scroll-down .arrow {
  width: 12px; height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); }
  50% { transform: rotate(45deg) translate(6px,6px); }
}

/* ---------- Marquee de marcas / rutas ---------- */
.marquee-wrap {
  background: var(--navy);
  overflow: hidden;
  padding: 16px 0;
}
.marquee {
  display: flex;
  width: max-content;
  animation: scrollLeft 24s linear infinite;
  gap: 60px;
}
.marquee span {
  color: rgba(255,255,255,.75);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: .85rem;
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.marquee span::before { content: '✦'; color: var(--gold); }
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sobre nosotros ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  transition: transform .5s ease;
}
.about-media:hover img { transform: scale(1.02); }
.about-media .float-card {
  position: absolute;
  bottom: -30px; right: -30px;
  background: var(--navy);
  color: #fff;
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 230px;
  animation: floaty 4s ease-in-out infinite;
}
.about-media .float-card h4 { color: var(--gold-light); font-size: 1.6rem; margin-bottom: 2px; }
.about-media .float-card p { color: #cbd5e0; font-size: .82rem; margin: 0; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 16px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 500;
  color: var(--navy);
}
.about-list .ico {
  min-width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Servicios / Categorías ---------- */
.services { background: var(--gray-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-img { height: 220px; overflow: hidden; position: relative; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-img img { transform: scale(1.12); }
.service-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,37,69,.75), transparent 55%);
}
.service-num {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.9);
  color: var(--navy);
  font-weight: 700;
  font-size: .8rem;
  padding: 5px 12px;
  border-radius: 50px;
  z-index: 2;
}
.service-body { padding: 26px 24px 30px; }
.service-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-body p { font-size: .92rem; margin-bottom: 14px; }
.service-link { color: var(--gold); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.service-link svg { transition: transform .3s; }
.service-card:hover .service-link svg { transform: translateX(5px); }

/* ---------- Proceso ---------- */
.process { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.process::before {
  content: '';
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,151,31,.18), transparent 70%);
  top: -150px; right: -150px;
}
.process .section-subtitle { color: #cbd5e0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 55px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 34px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 10px 24px rgba(201,151,31,.4);
  transition: var(--transition);
}
.step:hover .step-circle { transform: scale(1.12) rotate(8deg); }
.step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: #b9c4d4; font-size: .88rem; }

/* ---------- Galería productos ---------- */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
  margin-top: 50px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.15); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,37,69,.88), transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: #fff; margin-bottom: 4px; font-size: 1.05rem; }
.gallery-overlay span { color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: 1px; }

/* ---------- Testimonios ---------- */
.testimonials { background: var(--gray-bg); }
.testi-track-wrap { margin-top: 50px; overflow: hidden; }
.testi-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: testiScroll 30s linear infinite;
}
.testi-track:hover { animation-play-state: paused; }
@keyframes testiScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  width: 340px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.testi-stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 3px; }
.testi-card p { font-size: .93rem; font-style: italic; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testi-person strong { display: block; font-size: .92rem; }
.testi-person span { font-size: .78rem; color: var(--gray-text); }

/* ---------- Ubicación / Mapa ---------- */
.location { background: var(--white); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
  align-items: stretch;
}
.location-info {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.loc-item { display: flex; gap: 16px; align-items: flex-start; }
.loc-item .ico {
  min-width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 1.1rem;
}
.loc-item h4 { font-size: 1rem; margin-bottom: 4px; }
.loc-item p { color: #cbd5e0; font-size: .9rem; margin: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,31,.25), transparent 70%);
}
.cta::before { width: 400px; height: 400px; top: -200px; left: -100px; }
.cta::after { width: 400px; height: 400px; bottom: -200px; right: -100px; }
.cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); position: relative; z-index: 1; }
.cta p { color: #cbd5e0; max-width: 560px; margin: 0 auto 26px; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Contacto ---------- */
.contact { background: var(--gray-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: var(--transition);
  background: #fbfcfe;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,151,31,.12);
}
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-msg { margin-top: 14px; font-size: .88rem; font-weight: 600; display: none; }
.form-msg.show { display: block; }

.contact-side { display: flex; flex-direction: column; gap: 22px; }
.contact-card {
  background: var(--white);
  padding: 26px;
  border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.contact-card .ico {
  min-width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .9rem; }
.contact-whatsapp {
  background: linear-gradient(135deg, #25D366, #1ebc59);
  color: #fff;
  padding: 26px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 12px 30px rgba(37,211,102,.35);
}
.contact-whatsapp .ico { background: rgba(255,255,255,.2); color: #fff; }
.contact-whatsapp p, .contact-whatsapp h4 { color: #fff; margin: 0; }
.contact-whatsapp a.btn { background: #fff; color: #128C4A; margin-top: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: #a9b8cf;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { color: #8fa1bd; font-size: .9rem; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-4px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #a9b8cf; font-size: .9rem; transition: color .25s; }
.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem; color: #7d8fac;
}
.footer-bottom a { color: #7d8fac; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Botón WhatsApp flotante ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 62px; height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.7rem;
  box-shadow: 0 10px 26px rgba(37,211,102,.55);
  z-index: 500;
  animation: pulse 2.4s infinite;
  transition: var(--transition);
}
.float-whatsapp:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  bottom: 26px; left: 26px;
  width: 46px; height: 46px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 500;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1.active { transition-delay: .1s; }
.reveal-delay-2.active { transition-delay: .2s; }
.reveal-delay-3.active { transition-delay: .3s; }
.reveal-delay-4.active { transition-delay: .4s; }

/* ---------- Modal Producto ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7,26,51,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 1200;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 560px; width: 100%;
  overflow: hidden;
  transform: translateY(30px) scale(.95);
  transition: transform .35s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-box img { width: 100%; height: 260px; object-fit: cover; }
.modal-body { padding: 30px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-weight: 700;
  z-index: 2;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 78%; height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transition: right .4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
  }
  .nav-links.active { right: 0; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .topbar-item.hide-mobile { display: none; }
  section { padding: 60px 0; }
}
