:root {
  --bg: #08090a;
  --bg-soft: #0e1011;
  --surface: #121516;
  --surface-2: #171a1b;
  --line: #303536;
  --text: #f5f5f3;
  --muted: #a5a9a7;
  --accent: #7b3279;
  --accent-light: #a94aa6;
  --accent-dark: #542052;
  --white: #ffffff;
  --radius: 2px;
  --container: 1380px;
      --purple-neon: #7b3279;
      --pink-neon: #7b3279;
      --cyan-neon: #06b6d4;
      --text-white: #ffffff;
      --text-muted: #94a3b8;
      --border-color: rgba(255, 255, 255, 0.08);
      --font-family: "Bebas Neue", sans-serif;
      --font-parrafo: "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  /*font-family: "Inter", Arial, sans-serif;*/
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
   --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.modal-open { overflow: hidden; }

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

button { font: inherit; }

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

/* HEADER (igual al de la página principal: logo + botón Regresar) */
.am-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(8,8,10,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  /*letter-spacing: -0.5px;*/
  color: var(--white);
}

.logo .subtext {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  /*letter-spacing: 2px;*/
  text-transform: uppercase;
  color: #94a3b8;
}

.btn-nav {
  padding: 10px 24px;
  border-radius: 30px;
  background: var(--accent);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(139,92,246,.3);
  transition: .3s ease;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,92,246,.6); }

/* BOTONES */
.btn {
  border: 1px solid var(--accent);
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: .25s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn span { margin-left: 10px; }

/* HERO */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(123,50,121,.20), transparent 65%);
  left: -180px; top: -220px;
}
.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: stretch;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 50px 70px 0;
}
.eyebrow {
  font-size: 17px;
  font-weight: 800;
  /*letter-spacing: 1px;*/
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow span { color: var(--accent-light); }
.hero h1 {
  font-size: clamp(50px, 6vw, 88px);
  line-height: .88;
  /*letter-spacing: -5px;*/
  font-weight: 900;
  margin-bottom: 22px;
}
.hero h1 strong, .section-heading strong, .cta-inner strong { color: var(--accent-light); }
.hero h2 { font-size: 2rem; max-width: 530px; margin-bottom: 14px; font-weight: 800; }
.hero p { color: var(--muted); font-size: 1rem; max-width: 560px; margin-bottom: 30px; font-family: var(--font-parrafo); line-height: 1.5;}
.btn { width: fit-content; display: inline-flex; align-items: center; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); }




.hero-media { position: relative; min-height: 620px; }
.hero-image-placeholder {
  position: absolute;
  inset: 0 -80px 0 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8,9,10,.12) 18%, rgba(8,9,10,.08) 100%),
    radial-gradient(circle at 65% 42%, rgba(123,50,121,.65), transparent 25%),
    linear-gradient(135deg, #242627, #101213 60%, #351e34);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #8e9290;
}
.placeholder-icon { font-size: 70px; font-weight: 900; color: rgba(255,255,255,.15); /* letter-spacing: -6px; */}
.hero-image-placeholder p { font-weight: 700; color: #b9bdbb; margin-top: 12px; }
.hero-image-placeholder small { color: #707573; }
.hero-corner {
  position: absolute; width: 110px; height: 110px; right: 0; top: 0;
  border-top: 1px solid var(--accent); border-right: 1px solid var(--accent);
}

/* CASES */
.section { padding: 90px 0; }
.cases { background: #0a0c0d; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 40px;
}
.section-heading h2 { font-size: clamp(35px, 4vw, 58px); line-height: 1; /*letter-spacing: -3px;*/ }
.section-heading > p { max-width: 430px; color: var(--muted); font-size: 1rem; font-family: var(--font-parrafo); line-height: 1.5; }
.centered { display: block; text-align: center; }
.centered .eyebrow { margin-bottom: 10px; }

.cases-layout { display: grid; grid-template-columns: 1fr 430px; gap: 24px; align-items: start; }
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.client-card {
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 260px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.client-card:hover, .client-card.active {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.client-card.active::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--accent);
  pointer-events: none;
}
.client-image {
  height: 175px;
  background:
    linear-gradient(135deg, rgba(123,50,121,.6), rgba(20,20,21,.4)),
    linear-gradient(45deg, #252728, #111314);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.22); font-weight: 900; font-size: 30px;
}
.client-info { padding: 15px; }
.client-info h3 { font-size: 1rem; margin-bottom: 2px; letter-spacing: 1px; }
.client-info p { color: #888e8c; font-size: 11px; font-family: var(--font-parrafo); }
.client-info a { display: block; color: var(--accent-light); font-size: 1rem; letter-spacing: 1px; font-family: var(--font-family); font-weight: 800; margin-top: 10px; }

.featured-case {
  background: var(--surface);
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}
.featured-media {
  height: 260px;
  background:
    linear-gradient(135deg, rgba(123,50,121,.55), rgba(12,13,14,.25)),
    linear-gradient(45deg, #292a2b, #101112);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.22); font-size: 40px; font-weight: 900;
}

.client-image img,
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* el logo se ve completo, sin recortar */
  /*object-fit: cover;*/
  padding: 14px; 
  background: #fff;      /* fondo blanco, útil si el .jpg tiene fondo blanco */
}

.featured-body { padding: 22px; }
.featured-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.tag { font-size: 1rem; letter-spacing: 1px;  color: var(--accent-light); font-weight: 800; }
.featured-body h3 { font-size: 30px; margin-top: 2px; /*letter-spacing: -1px; */}
.round-btn {
  width: 42px; height: 42px; border: 1px solid var(--accent);
  background: transparent; color: white; border-radius: 50%; cursor: pointer;
  transition: .25s;
}
.round-btn:hover { background: var(--accent); }
.featured-body > p { color: var(--muted); font-size: .9rem; letter-spacing: 1px; margin: 16px 0; line-height: 1; }
.stats { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; gap: 35px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { color: var(--accent-light); font-size: 24px; line-height: 1; }
.stats span { font-size: 1rem; color: #8d9290; margin-top: 4px; font-family: var(--font-parrafo); letter-spacing: -1px;}
.video-featured {
  margin-top: 15px; border: 1px solid var(--line); min-height: 58px;
  display: flex; align-items: center; gap: 12px; padding: 10px; cursor: pointer;
}
.video-featured .play {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; font-size: 11px;
}
.video-featured div { display: flex; flex-direction: column; }
.video-featured div span { font-size: 1rem; color: #777; }
.video-featured div strong { font-size: 1rem; }
.video-featured small { margin-left: auto; color: #777; }
.video-featured:hover, .video-featured.active { border-color: var(--accent); background: rgba(123,50,121,.10); }
.video-featured div em { font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; font-family: var(--font-parrafo); letter-spacing: -.7px;}

/* Lista de proyectos del cliente seleccionado */
.project-list { display: flex; flex-direction: column; }

/* PROCESS */
.process { background: var(--bg); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 45px; }
.process-grid article { background: var(--bg); padding: 30px; min-height: 190px; }
.process-grid span { color: var(--accent-light); font-weight: 900; font-size: 12px; }
.process-grid h3 { margin: 18px 0 8px; font-size: 18px; }
.process-grid p { color: var(--muted); font-size: 12px; }

/* CTA + FOOTER */
.cta-section { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.cta-inner { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { font-size: clamp(32px, 4vw, 52px); /*letter-spacing: -3px;*/ }
.cta-decoration {
  position: absolute; width: 500px; height: 500px; right: -100px; top: -200px;
  background: radial-gradient(circle, rgba(123,50,121,.35), transparent 65%);
}
.site-footer { background: #070809; }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-copy { color: #666b69; font-size: 10px; }
.socials { display: flex; gap: 12px; }
.socials a { border: 1px solid #303333; width: 32px; height: 32px; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.socials a:hover { border-color: var(--accent); color: var(--accent-light); }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); backdrop-filter: blur(10px); }
.modal-dialog {
  position: relative; z-index: 1;
  width: min(1100px, calc(100% - 40px)); max-height: 92vh;
  margin: 4vh auto; overflow: auto; background: #0d0f10; border: 1px solid var(--line);
}
.modal-close {
  position: absolute; right: 15px; top: 12px; z-index: 3;
  width: 40px; height: 40px; border: 1px solid #555; background: rgba(0,0,0,.45);
  color: white; font-size: 28px; cursor: pointer;
}

.modal-gallery {
  height: min(62vh, 620px);
  position: relative;
  background: #070809;
  overflow: hidden;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(123,50,121,.55), transparent),
    linear-gradient(45deg, #282a2b, #101112);
  color: rgba(255,255,255,.22);
  font-size: 60px;
  font-weight: 900;
}

.gallery-main img,
.gallery-main video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}




.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 45px; height: 45px; border-radius: 50%;
  border: 1px solid #666; background: rgba(0,0,0,.6); color: white; cursor: pointer;
  font-size: 30px; line-height: 1;
}
.gallery-arrow:hover { background: var(--accent); border-color: var(--accent); }
.gallery-arrow.prev { left: 18px; }
.gallery-arrow.next { right: 18px; }
.modal-info { display: flex; justify-content: space-between; gap: 30px; padding: 25px; }
.modal-info h2 { font-size: 34px; margin: 3px 0 8px; }
.modal-info p { max-width: 700px; color: var(--muted); font-size: 13px; }
.modal-counter { color: var(--accent-light); font-size: 12px; font-weight: 800; }
.modal-thumbs { display: flex; gap: 8px; padding: 0 25px 25px; overflow-x: auto; }
.modal-thumb {
  flex: 0 0 95px; height: 65px; border: 1px solid var(--line); background: #202223;
  color: #777; display: grid; place-items: center; cursor: pointer; font-size: 9px;
}
.modal-thumb.active { border-color: var(--accent); }
.modal-thumb { overflow: hidden; padding: 0; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* RESPONSIVE */
@media (max-width: 1050px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .cases-layout { grid-template-columns: 1fr; }
  .featured-case { position: relative; top: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 80px 0 45px; }
  .hero-media { min-height: 400px; }
  .hero-image-placeholder { inset: 0; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: 52px; /*letter-spacing: -3px;*/ }
  .section { padding: 65px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .client-grid { grid-template-columns: 1fr; }
  .client-card { min-height: 240px; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-inner { padding-block: 50px; flex-direction: column; align-items: flex-start; }
  .footer-inner { padding-block: 25px; flex-wrap: wrap; }
  .footer-copy { order: 3; width: 100%; }
  .modal-dialog { width: calc(100% - 20px); margin: 2vh auto; }
  .modal-gallery { height: 45vh; }
  .modal-info { flex-direction: column; }
}
