/* ════════ EMPIRE FIT — Medallas "¿Para quién es?" + carrusel de servicios (SOLO MÓVIL) ════════ */
/* El escritorio queda intacto: la sección de medallas se oculta y los servicios siguen en cuadrícula. */

#para-quien { display: none; }

.empire-fit-overflow { overflow-x: clip; padding: 24px 32px 88px; }
.empire-fit-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; max-width: 1560px; margin: 0 auto; }
.empire-fit-medallion { width: clamp(360px,23vw,460px); height: clamp(360px,23vw,460px); perspective: 1500px; cursor: pointer; flex-shrink: 0; }
.empire-fit-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.empire-fit-medallion.flipped .empire-fit-card-inner { transform: rotateY(180deg); }
.empire-fit-front, .empire-fit-back { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 48px; border: 1px solid rgba(255,255,255,.03); }
.empire-fit-front { background: radial-gradient(circle at 50% 35%, rgba(18,35,75,.55), rgba(5,8,18,.98) 68%); box-shadow: 0 45px 120px rgba(0,0,0,.72), 0 18px 45px rgba(8,32,90,.18), inset 0 1px 0 rgba(255,255,255,.035); }
.empire-fit-back { background: radial-gradient(ellipse 78% 52% at 50% 38%, rgba(42,48,62,.96) 0%, rgba(16,20,28,.98) 52%, rgba(5,7,12,1) 100%); transform: rotateY(180deg); box-shadow: 0 45px 120px rgba(0,0,0,.72), 0 18px 45px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.055), inset 0 -30px 70px rgba(0,0,0,.52); }
.empire-fit-back-wm { position: absolute; inset: 0; background-image: url('empire-icono-positivo.png'); background-size: 70%; background-position: center 50%; background-repeat: no-repeat; opacity: .08; filter: brightness(0); pointer-events: none; border-radius: 50%; z-index: 0; }
.empire-fit-grid .empire-fit-medallion:nth-child(1) .empire-fit-front { background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.65) 72%, rgba(0,0,0,.82) 100%), linear-gradient(rgba(4,8,18,.30), rgba(3,6,14,.38)), image-set(url('img/medal-influencers.webp') type('image/webp'),url('img/medal-influencers.jpg') type('image/jpeg')); background-size: auto,auto,cover; background-position: center; }
.empire-fit-grid .empire-fit-medallion:nth-child(2) .empire-fit-front { background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.65) 72%, rgba(0,0,0,.82) 100%), linear-gradient(rgba(4,8,18,.30), rgba(3,6,14,.38)), image-set(url('img/medal-celebridades.webp') type('image/webp'),url('img/medal-celebridades.jpg') type('image/jpeg')); background-size: auto,auto,cover; background-position: center; }
.empire-fit-grid .empire-fit-medallion:nth-child(3) .empire-fit-front { background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.65) 72%, rgba(0,0,0,.82) 100%), linear-gradient(rgba(4,8,18,.30), rgba(3,6,14,.38)), image-set(url('img/medal-emprendedores.webp') type('image/webp'),url('img/medal-emprendedores.jpg') type('image/jpeg')); background-size: auto,auto,cover; background-position: center; }
.empire-fit-grid .empire-fit-medallion:nth-child(4) .empire-fit-front { background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.65) 72%, rgba(0,0,0,.82) 100%), linear-gradient(rgba(4,8,18,.30), rgba(3,6,14,.38)), image-set(url('img/medal-talentos.webp') type('image/webp'),url('img/medal-talentos.jpg') type('image/jpeg')); background-size: auto,auto,cover; background-position: center; }
.empire-fit-grid .empire-fit-medallion:nth-child(5) .empire-fit-front { background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.65) 72%, rgba(0,0,0,.82) 100%), linear-gradient(rgba(4,8,18,.30), rgba(3,6,14,.38)), image-set(url('img/medal-restaurantes.webp') type('image/webp'),url('img/medal-restaurantes.jpg') type('image/jpeg')); background-size: auto,auto,cover; background-position: center; }
.empire-fit-grid .empire-fit-medallion:nth-child(6) .empire-fit-front { background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.65) 72%, rgba(0,0,0,.82) 100%), linear-gradient(rgba(4,8,18,.30), rgba(3,6,14,.38)), image-set(url('img/medal-empresas.webp') type('image/webp'),url('img/medal-empresas.jpg') type('image/jpeg')); background-size: auto,auto,cover; background-position: center; }
.empire-fit-grid .empire-fit-medallion:nth-child(7) .empire-fit-front { background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.65) 72%, rgba(0,0,0,.82) 100%), linear-gradient(rgba(4,8,18,.30), rgba(3,6,14,.38)), image-set(url('img/medal-marcas-personales.webp') type('image/webp'),url('img/medal-marcas-personales.jpg') type('image/jpeg')); background-size: auto,auto,cover; background-position: center; }
.empire-fit-number { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); font-family: 'Courier New',monospace; font-size: .52rem; letter-spacing: .36em; color: rgba(32,96,232,.55); white-space: nowrap; pointer-events: none; z-index: 1; }
.empire-fit-title { font-family: var(--font-display); font-size: clamp(1.9rem,2.6vw,3rem); font-weight: 900; color: rgba(255,255,255,.94); line-height: .93; letter-spacing: -.04em; text-align: center; margin: 0 auto; max-width: 80%; white-space: normal; position: relative; z-index: 1; }
.empire-fit-back-label { font-family: 'Courier New',monospace; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.4); display: block; margin-bottom: 18px; position: relative; z-index: 1; }
.empire-fit-desc { font-size: clamp(1.05rem,1.2vw,1.35rem); color: rgba(255,255,255,.78); line-height: 1.4; margin: 0; max-width: 78%; text-align: center; position: relative; z-index: 1; }

/* indicador "desliza" */
.fit-hint, .div-hint { display: none; }

@media (max-width: 860px) {
  /* La sección de medallas SOLO se ve en móvil */
  #para-quien { display: block; padding-top: 56px; padding-bottom: 24px; }
  .empire-fit-overflow { overflow: hidden; padding: 12px 0 40px; }
  .empire-fit-grid { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x; overscroll-behavior-x: contain; gap: 20px; padding: 12px 24px 20px; justify-content: flex-start; scrollbar-width: none; }
  .empire-fit-grid::-webkit-scrollbar { display: none; }
  .empire-fit-medallion { flex-shrink: 0; width: min(80vw,300px); height: min(80vw,300px); transform: scale(.92); transition: transform .35s ease; }
  .empire-fit-medallion.m-active { transform: scale(1.03); }
  .empire-fit-front { filter: brightness(1.35); }
  .empire-fit-title { font-size: clamp(1.55rem,7vw,2.3rem); max-width: 80%; }
  .empire-fit-desc { font-size: clamp(.95rem,3.8vw,1.12rem); max-width: 80%; }
  .empire-fit-front, .empire-fit-back { padding: 34px; }
  .fit-hint { display: block; text-align: center; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: 8px; }

  /* Servicios del HOME — carrusel horizontal swipeable (estilo Netflix), SOLO móvil */
  #divisiones .div-grid { display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x; overscroll-behavior-x: contain; gap: 14px; margin: 0 -24px; padding: 10px 24px 28px; scrollbar-width: none; }
  #divisiones .div-grid::-webkit-scrollbar { display: none; }
  #divisiones .div-item { flex-shrink: 0; width: 76vw; max-width: 282px; min-height: 360px; }
}
