/* =========================================================
   DM Promaster Eventos — estilos modernos
   Paleta basada en el logo original: negro, morado índigo, gris
   ========================================================= */

:root {
  --ink: #0d0d12;
  --ink-soft: #1a1726;
  --purple-900: #221a4d;
  --purple-800: #322866;
  --purple-700: #3d3184;
  --purple-600: #4f3f9e;
  --purple-400: #8f7fd6;
  --purple-200: #c9bff0;
  --mauve-500: #8a5089;
  --gray-600: #6b6976;
  --gray-400: #9997a3;
  --gray-200: #e6e4ee;
  --surface: #ffffff;
  --surface-alt: #f6f5fb;
  --shadow-color: 250 20% 15%;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 16px;
  --header-h: 78px;
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.2; color: var(--ink); }
p { margin: 0 0 1em; }
section { position: relative; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--purple-600);
  display: inline-block;
}
.section--dark .eyebrow,
.section--dark .eyebrow::before { color: var(--purple-200); background: var(--purple-200); }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 10px; font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--gray-600); font-size: 1.02rem; }
.section--dark .section-head p { color: var(--purple-200); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--mauve-500));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(79, 63, 158, 0.65);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(79, 63, 158, 0.75); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

.section--dark { background: linear-gradient(160deg, var(--purple-900) 0%, var(--purple-800) 55%, var(--ink) 100%); color: #f1eefb; }
.section--dark p { color: var(--purple-200); }
.section--alt { background: var(--surface-alt); }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -60px; left: 12px;
  z-index: 200;
  background: var(--purple-700);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top .25s ease;
}
.skip-link:focus {
  position: fixed;
  width: auto; height: auto;
  clip: auto;
  top: 12px;
  overflow: visible;
  white-space: normal;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-header.is-scrolled {
  height: 68px;
  background: rgba(13, 13, 18, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; border-radius: 6px; background: #fff; padding: 4px 8px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-menu a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  position: relative;
  padding: 6px 2px;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--purple-200);
  transition: right .3s ease;
}
.nav-menu a:hover::after,
.nav-menu a.is-active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .btn-primary { padding: 11px 22px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 34px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 6px; right: 6px;
  height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(165deg, rgba(15, 11, 38, 0.93) 0%, rgba(50, 40, 102, 0.82) 45%, rgba(138, 80, 137, 0.55) 100%),
    url("../img/cropped-dmpromaster-con-logo-y-microfono-1024x614.png");
  background-size: cover;
  background-position: center 30%;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at bottom, rgba(0,0,0,0.55), transparent 60%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  max-width: 760px;
}
.hero__content .eyebrow { color: var(--purple-200); }
.hero__content .eyebrow::before { background: var(--purple-200); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  margin: 18px 0 20px;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--purple-200); }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-head);
}
.hero__scroll .chevron {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Bienvenida ---------- */
.welcome { text-align: center; }
.welcome__lead {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--ink-soft);
  line-height: 1.5;
}
.welcome__lead strong { color: var(--purple-700); }
.divider {
  width: 70px; height: 3px;
  margin: 22px auto 30px;
  background: linear-gradient(90deg, var(--purple-600), var(--mauve-500));
  border-radius: 3px;
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: left;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--purple-600), var(--mauve-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 26px 44px -24px hsl(var(--shadow-color) / 0.35); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple-700), var(--mauve-500));
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.service-card h3 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.service-card p { color: var(--gray-600); font-size: 0.96rem; margin: 0; }

/* ---------- Split / experiencia ---------- */
.split {
  position: relative;
  overflow: hidden;
}
.split__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(120deg, rgba(24, 17, 56, 0.94) 30%, rgba(58, 32, 74, 0.7) 100%),
    url("../img/dmpromaster-imagen-dj-1024x683.jpeg");
  background-size: cover;
  background-position: center;
}
.split__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.split__panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 34px;
}
.split__panel h3 {
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.split__panel p { color: var(--purple-200); margin: 0; }

/* ---------- Galería / ambiente ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}
.gallery-grid a {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: block;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
}
.gallery-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,11,32,0.75) 100%);
  opacity: 0;
  transition: opacity .4s ease;
}
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid .g-tall { grid-row: span 2; }

/* ---------- Video ---------- */
.video-frame {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
}
.video-wrap { position: relative; padding-top: 56.25%; height: 0; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Clientes marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 90px;
  width: max-content;
  animation: scroll-left 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 68px;
  width: auto;
  filter: grayscale(1) opacity(0.55);
  transition: filter .35s ease, transform .35s ease;
}
.marquee__track img:hover { filter: grayscale(0) opacity(1); transform: translateY(-3px); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Contacto / Footer ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.contact-card h3 i { color: var(--purple-200); }
.contact-card p { color: var(--purple-200); margin: 0 0 6px; font-size: 0.95rem; }
.contact-card address { font-style: normal; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.social-row a:hover { background: linear-gradient(135deg, var(--purple-600), var(--mauve-500)); border-color: transparent; transform: translateY(-4px); }

.footer-bottom {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--purple-200);
}
.footer-bottom a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--mauve-500));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
  .split__content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-grid .g-wide { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-menu, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: block; }

  .nav-menu.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, var(--purple-900), var(--ink) 80%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 110;
  }
  .nav-menu.is-open a { font-size: 1.3rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 18px; }
  .hero { min-height: 92vh; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid .g-wide, .gallery-grid .g-tall { grid-column: span 1; grid-row: span 1; }
  .contact-grid { gap: 20px; }
  .marquee__track { gap: 56px; }
  .marquee__track img { height: 52px; }
}
