/* ============================================================
   IMPRESOS MX7 — Landing page
   ============================================================ */

:root {
  --bg: #0d0d0f;
  --bg-soft: #141418;
  --card: #1a1a20;
  --text: #f7f7f8;
  --muted: #a3a3ad;
  --accent: #ff6b00;
  --accent-light: #ff9a3c;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --max: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Montserrat", var(--font);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 16px; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 span, h2 span { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { padding: 11px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.28);
}
.btn-accent:hover { background: var(--accent-light); box-shadow: 0 14px 36px rgba(255, 107, 0, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(255, 107, 0, 0.1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(13, 13, 15, 0.9);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: 13px;
  padding: 6px;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; fill: #fff; }
.elephant-eye { fill: #0d0d0f !important; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: block;
}
.brand-text strong { color: var(--accent); font-weight: 900; display: block; }
.brand-text small {
  display: block;
  font-family: var(--font);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 4px;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #d4d4dc;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 11px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 107, 0, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(13, 13, 15, 0.72) 0%, rgba(13, 13, 15, 0.7) 45%, #0d0d0f 100%);
}
.hero-content { text-align: center; padding: calc(var(--header-h) + 40px) 0 90px; }
.hero-content h1 { max-width: 900px; margin-inline: auto; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.hero-lead {
  max-width: 700px;
  margin: 0 auto 34px;
  color: #e0e0e6;
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-scroll {
  margin-top: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll span {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Servicios ---------- */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 0, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--accent);
  margin-bottom: 22px;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-number {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.18);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Nosotros ---------- */
.about { background: var(--bg-soft); border-block: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}
.about-copy .lead { color: #d2d2da; font-size: 1.05rem; }
.about-copy .lead strong { color: var(--text); }
.feature-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; color: #d8d8e0; font-size: 0.95rem; }
.feature-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
}
.about-visual {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 107, 0, 0.18), transparent 60%),
    var(--card);
  min-height: 380px;
  align-content: center;
}
.stat {
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.stat strong {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.stat span { color: var(--muted); font-size: 0.9rem; }
.about-badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 92px;
  height: 92px;
  background: var(--accent);
  border-radius: 22px;
  padding: 14px;
  transform: rotate(-8deg);
  box-shadow: 0 14px 34px rgba(255, 107, 0, 0.35);
}
.about-badge svg { width: 100%; height: 100%; fill: #fff; }

/* ---------- Imagen antes del footer ---------- */
.showcase {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.showcase-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.78) 45%, rgba(13, 13, 15, 0.45) 100%);
}
.showcase-content { text-align: left; padding: 90px 0; }
.showcase-content p { color: #dedee5; font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #09090b; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: 44px;
  padding: 76px 0 56px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 340px; margin-top: 20px; }
.footer-col h3 {
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.footer-col address { color: var(--muted); font-style: normal; font-size: 0.92rem; line-height: 1.8; margin-bottom: 14px; }
.footer-link {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: #71717a; font-size: 0.8rem; margin: 0; }

/* ---------- Botones flotantes ---------- */
.floating-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-btn:hover { transform: scale(1.1) translateY(-2px); }
.float-btn svg { width: 27px; height: 27px; fill: currentColor; }
.float-wa { background: #25d366; }
.float-fb { background: #1877f2; }
.float-wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
.float-btn::before {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff;
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.float-btn:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Chip de audio ---------- */
.audio-chip {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 0, 0.5);
  background: rgba(13, 13, 15, 0.94);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}
.audio-chip.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.audio-chip:hover { background: var(--accent); }
.audio-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.audio-chip:hover svg { stroke: #fff; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.35s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 13, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 18px;
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: min(100% - 32px, var(--max)); }
  .brand-mark { width: 40px; height: 40px; padding: 5px; }
  .brand-text { font-size: 0.92rem; }
  .section { padding: 68px 0; }
  .hero-content { padding-top: calc(var(--header-h) + 30px); }
  .hero-scroll { margin-top: 44px; }
  .service-card { padding: 28px 24px; }
  .showcase { min-height: 460px; }
  .showcase-content { text-align: center; }
  .showcase-overlay { background: rgba(13, 13, 15, 0.78); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .floating-dock { right: 14px; bottom: 14px; gap: 10px; }
  .float-btn { width: 50px; height: 50px; }
  .float-btn svg { width: 24px; height: 24px; }
  .audio-chip { left: 14px; bottom: 14px; padding: 10px 14px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
