/* ==========================================================================
   CREATIVE DESIGN AGENCY · STUDIO & WORKSHOP INFRASTRUCTURE SHOWCASE
   Inspiración: High-End Industrial Design Studio · Apple × Nórtika Editorial
   ========================================================================== */

.studio-showcase-section {
  position: relative;
  background-color: #090B0E;
  background-image: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 113, 227, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(230, 0, 126, 0.05) 0%, transparent 70%),
    repeating-linear-gradient(90deg, transparent 0, transparent 38px, rgba(255, 255, 255, 0.012) 38px, rgba(255, 255, 255, 0.012) 40px);
  color: #FFFFFF;
  padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.studio-showcase-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   01. BARRA SUPERIOR EDITORIAL (05 · INFRAESTRUCTURA)
   -------------------------------------------------------------------------- */
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.studio-topbar-tag {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0071E3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-topbar-tag .tag-bracket {
  color: rgba(255, 255, 255, 0.3);
}

.studio-topbar-right {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   02. ENCABEZADO EDITORIAL DE SECCIÓN
   -------------------------------------------------------------------------- */
.studio-headline-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.studio-headline-left {
  display: flex;
  flex-direction: column;
}

.studio-brand-title {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: clamp(3.4rem, 6.5vw, 5.8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
}

.studio-dot-magenta {
  color: #E6007E;
  margin-left: 2px;
  display: inline-block;
  animation: magentaPulse 3s ease-in-out infinite;
}

@keyframes magentaPulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(230, 0, 126, 0));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(230, 0, 126, 0.75));
    transform: scale(1.08);
  }
}

.studio-lead-sub {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.studio-headline-right {
  max-width: 480px;
}

.studio-lead-copy {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   03. GRID EQUILIBRADO 2x2 DE MAQUINARIA (CERO ESPACIOS VACÍOS)
   -------------------------------------------------------------------------- */
.studio-machines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  width: 100%;
}

.studio-machine-card {
  position: relative;
  background: rgba(14, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: clamp(24px, 2.8vw, 34px);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: clamp(18px, 2.2vw, 28px);
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.studio-machine-card.card-spotlight {
  background: radial-gradient(circle at 80% 50%, rgba(0, 113, 227, 0.12) 0%, rgba(14, 17, 24, 0.85) 100%);
  border-color: rgba(0, 113, 227, 0.3);
}

.studio-machine-card:hover {
  background: rgba(18, 22, 30, 0.92);
  border-color: rgba(0, 113, 227, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 113, 227, 0.14);
}

.studio-machine-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 200px;
  position: relative;
  z-index: 2;
}

.machine-meta-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.machine-num-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0071E3;
}

.machine-num-dash {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #0071E3;
  opacity: 0.6;
}

.machine-category {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.machine-title {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: clamp(1.28rem, 1.7vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-top: 4px;
}

.machine-desc {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  margin: 10px 0 16px 0;
}

.machine-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.studio-machine-card:hover .machine-action-btn,
.machine-action-btn:hover {
  background: #0071E3;
  border-color: #0071E3;
  color: #FFFFFF;
  transform: scale(1.08) rotate(-15deg);
  box-shadow: 0 0 20px rgba(0, 113, 227, 0.5);
}

/* Machine Visual */
.studio-machine-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(30, 40, 56, 0.3) 0%, rgba(10, 13, 18, 0.7) 100%);
  aspect-ratio: 4 / 3;
}

.studio-machine-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.6s var(--ease-smooth), filter 0.6s var(--ease-smooth);
}

.studio-machine-card:hover .studio-machine-img {
  transform: scale(1.04);
}

/* Ambient glow orb behind machine */
.visual-ambient-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.glow-blue {
  background: rgba(0, 113, 227, 0.6);
}

.glow-warm {
  background: rgba(245, 166, 35, 0.35);
}

.glow-cyan {
  background: rgba(0, 212, 170, 0.45);
}

.glow-amber {
  background: rgba(245, 158, 11, 0.5);
}


/* --------------------------------------------------------------------------
   06. MODAL INSPECTOR DE ESPECIFICACIONES TÉCNICAS (INTERACTIVO)
   -------------------------------------------------------------------------- */
.studio-spec-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth);
  padding: 20px;
}

.studio-spec-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.studio-spec-modal-card {
  background: #0E1117;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 113, 227, 0.25);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s var(--ease-smooth);
  position: relative;
  padding: clamp(24px, 4vw, 40px);
}

.studio-spec-modal-backdrop.is-open .studio-spec-modal-card {
  transform: scale(1) translateY(0);
}

.studio-modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.studio-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.modal-visual-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-machine-img-box {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  aspect-ratio: 16 / 11;
  position: relative;
}

.modal-machine-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Galería de miniaturas */
.modal-gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.modal-thumb-btn {
  flex: 0 0 74px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #14171E;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  opacity: 0.65;
}

.modal-thumb-btn:hover,
.modal-thumb-btn.is-active {
  opacity: 1;
  border-color: #0071E3;
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.4);
  transform: translateY(-2px);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reproductor de Video de YouTube integrado */
.modal-video-box {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050608;
}

.modal-video-frame-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.modal-video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-badge {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0071E3;
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.15;
}

.modal-desc {
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.modal-specs-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.modal-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
  font-family: var(--font-primary, 'Neue Montreal', 'Inter', sans-serif);
  line-height: 1.4;
}

.spec-key {
  color: rgba(255, 255, 255, 0.5);
  flex: 0 0 38%;
}

.spec-val {
  color: #FFFFFF;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

/* --------------------------------------------------------------------------
   07. RESPONSIVE DESIGN (TABLETS & MÓVILES)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .studio-headline-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .studio-machines-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .studio-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .studio-machine-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .studio-machine-info {
    min-height: auto;
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .capabilities-items-row {
    width: 100%;
    justify-content: space-between;
  }
}
