/* ============================================================
   SHOWCASE v4.0 — Diseño Apple Premium
   automatizacion-ca.com
   ============================================================ */

/* ── BRANDS STRIP ────────────────────────────────────────── */
.brands-strip {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 40px clamp(16px,4vw,32px);
}
.brands-inner {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2px 1fr 2px 1fr;
  gap: 0; align-items: center;
}
.brand-divider { background: var(--rule2); align-self: stretch; }
.brand-unit { padding: 0 40px; display: flex; flex-direction: column; gap: 5px; }
.brand-unit:first-child { padding-left: 0; }
.brand-unit:last-child  { padding-right: 0; }
.brand-flag    { font-size: 20px; }
.brand-country { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.brand-name    { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--dark); line-height: 1.2; }
.brand-name-apex {
  background: linear-gradient(135deg,#31a8ff,#0057c2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-tagline { font-size: 12px; color: var(--mid); line-height: 1.4; }

/* ── SHOWCASE v4 CONTAINER ───────────────────────────────── */
.sc4 {
  background: #0a0a0a;
  padding: clamp(60px,8vw,100px) clamp(16px,4vw,32px);
  position: relative;
  overflow: hidden;
}
.sc4::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,119,237,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,237,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── HEADER ──────────────────────────────────────────────── */
.sc4-header {
  max-width: 980px; margin: 0 auto 52px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.sc4-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(36px,5vw,64px);
  line-height: 1.05; letter-spacing: -.03em;
  color: #fff; margin-top: 12px;
}
.sc4-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.35);
}
.sc4-header-desc {
  font-size: 15px; font-weight: 300; color: rgba(255,255,255,.4);
  max-width: 300px; line-height: 1.7;
}
.sc4-header .label { color: rgba(255,255,255,.35); }

/* ── MAIN WRAP ───────────────────────────────────────────── */
.sc4-wrap {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 20px; align-items: start;
  position: relative; z-index: 1;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sc4-sidebar {
  display: flex; flex-direction: column; gap: 3px;
  position: sticky; top: 80px;
}
.sc4-item {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 13px 14px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px;
  transition: background .2s;
  position: relative; overflow: hidden;
}
.sc4-item:hover { background: rgba(255,255,255,.05); }
.sc4-item.active { background: rgba(0,119,237,.1); }
.sc4-item-num {
  font-family: var(--f-display); font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.2); letter-spacing: .04em; flex-shrink: 0;
  transition: color .3s; width: 24px;
}
.sc4-item.active .sc4-item-num { color: #4db8ff; }
.sc4-item-info { flex: 1; min-width: 0; }
.sc4-item-industry {
  display: block; font-size: 9px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.25); margin-bottom: 2px;
  transition: color .3s;
}
.sc4-item.active .sc4-item-industry { color: #4db8ff; }
.sc4-item-title {
  display: block; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.45); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: color .3s;
}
.sc4-item.active .sc4-item-title { color: #fff; }
.sc4-item-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,.05);
}
.sc4-item-progress {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #4db8ff, #0077ed);
}

/* ── STAGE ───────────────────────────────────────────────── */
.sc4-stage {
  position: relative; border-radius: 14px;
  overflow: hidden; background: #111;
  aspect-ratio: 16/10;
  box-shadow: 0 24px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
}

/* ── SLIDES ──────────────────────────────────────────────── */
.sc4-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .5s cubic-bezier(.4,0,.2,1);
}
.sc4-slide.active { opacity: 1; pointer-events: all; }

.sc4-video-wrap { position: absolute; inset: 0; }
.sc4-video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.5) saturate(.8);
  transition: filter 1.2s ease;
}
.sc4-slide.active .sc4-video { filter: brightness(.62) saturate(1); }
.sc4-video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.15) 100%),
    linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
}
.sc4-slide-num {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--f-display); font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.25); letter-spacing: .08em; z-index: 2;
}
.sc4-slide-num span { font-weight: 300; }
.sc4-info {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(18px,3vw,32px);
  transform: translateY(10px);
  transition: transform .65s cubic-bezier(.16,1,.3,1);
}
.sc4-slide.active .sc4-info { transform: translateY(0); }
.sc4-slide-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(20px,2.5vw,32px); line-height: 1.1;
  letter-spacing: -.02em; color: #fff; margin-bottom: 8px;
}
.sc4-slide-desc {
  font-size: 13px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,.55); max-width: 400px; margin-bottom: 18px;
}
.sc4-stats { display: flex; gap: 0; margin-bottom: 20px; }
.sc4-stat {
  padding: 9px 16px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-right: none; text-align: center; min-width: 85px;
}
.sc4-stat:first-child { border-radius: 8px 0 0 8px; }
.sc4-stat:last-child  { border-right: 1px solid rgba(255,255,255,.1); border-radius: 0 8px 8px 0; }
.sc4-stat-n {
  display: block; font-family: var(--f-display);
  font-size: 18px; font-weight: 700; color: #4db8ff;
  line-height: 1; margin-bottom: 3px;
}
.sc4-stat-l { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.sc4-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 980px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 12px; font-weight: 400;
  transition: all .25s; width: fit-content;
}
.sc4-cta:hover {
  background: rgba(0,119,237,.65);
  border-color: rgba(0,119,237,.8);
  transform: translateY(-1px);
}
.sc4-cta svg { transition: transform .2s; }
.sc4-cta:hover svg { transform: translateX(3px); }

/* ── MOBILE NAV ──────────────────────────────────────────── */
.sc4-mobile-nav {
  display: none;
  position: absolute; bottom: 14px; left: 0; right: 0;
  justify-content: center; align-items: center; gap: 14px;
  z-index: 10;
}
.sc4-btn-prev, .sc4-btn-next {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.sc4-btn-prev:hover, .sc4-btn-next:hover { background: rgba(0,119,237,.6); }
.sc4-mobile-dots { display: flex; gap: 6px; align-items: center; }
.sc4-mdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.3); transition: all .3s; cursor: pointer;
}
.sc4-mdot.active { background: #4db8ff; transform: scale(1.4); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .brands-inner { grid-template-columns: 1fr; gap: 0; }
  .brand-divider { display: none; }
  .brand-unit { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .brand-unit:last-child { border-bottom: none; }
  .sc4-wrap { grid-template-columns: 1fr; }
  .sc4-sidebar { display: none; }
  .sc4-stage { aspect-ratio: 4/3; }
  .sc4-mobile-nav { display: flex; }
  .sc4-slide-desc { font-size: 12px; }
  .sc4-stats { flex-wrap: wrap; }
  .sc4-stat { flex: 1; min-width: 75px; }
  .sc4-header { flex-direction: column; align-items: flex-start; }
  .sc4-header-desc { max-width: 100%; }
}
@media (max-width: 480px) {
  .sc4-slide-title { font-size: 18px; }
  .sc4-slide-desc { display: none; }
  .sc4-stat { padding: 7px 10px; }
  .sc4-stat-n { font-size: 15px; }
}
