/* ============================================================================
   ESCOMAPE 2026 — ESPECIALIZACIONES DE MAQUINARIA PESADA (ESTILO ESTUDIO)
   ============================================================================ */
:root {
  --ambient-bg: #e9edf3;
  --card-bg-start: #f8f9fb;
  --card-bg-end: #f1f3f7;
  --blue-accent: #0b3a82;
  --orange-accent: #f5a623;
  --title-color: #1f2430;
  --text-color: #4b5563;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-cond: 'Barlow Condensed', Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body.machine-body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--title-color);
  background: var(--ambient-bg);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

.machine-container {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
}

/* Cabecera blanca */
.machine-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #dbe1ea;
}
.machine-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.machine-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.machine-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.machine-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}
.machine-brand span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.machine-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #171923;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}
.machine-back:hover {
  transform: translateY(-2px);
  background: var(--blue-accent);
}

/* Escenario Estudio Principal */
.studio-stage-section {
  position: relative;
  padding: 58px 0 70px;
  overflow: hidden;
}
.studio-bg-word {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-cond);
  font-size: clamp(78px, 11vw, 168px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(18, 21, 31, 0.08);
  white-space: nowrap;
  pointer-events: none;
  line-height: 0.85;
  z-index: 1;
  user-select: none;
}

/* Hoja estudio blanca/gris con cuadrícula */
.studio-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 21, 31, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 21, 31, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, var(--card-bg-start) 0%, var(--card-bg-end) 100%);
  background-size: 140px 140px, 140px 140px, 100% 100%;
  border-radius: 26px;
  padding: 32px 42px 48px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

/* Topbar interno */
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e6ee;
}
.studio-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #1f2430;
}
.pin-capsule-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pin-nav-pill {
  border: 1px solid #d7dee9;
  background: #ffffff;
  color: #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.pin-nav-pill:hover { border-color: var(--orange-accent); color: #111827; }
.pin-nav-pill.is-active {
  background: #171923;
  border-color: #171923;
  color: #ffffff;
}
.pin-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}

/* HERO DEL EQUIPO ACTIVO */
.studio-hero {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-columns: 310px 1fr 290px;
  align-items: center;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e6ee;
}
.studio-hero__big-titles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 1;
}
.studio-hero__big-titles h2 {
  margin: 0;
  font-family: var(--font-cond);
  font-size: clamp(38px, 4.3vw, 60px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: #2f333d;
  letter-spacing: 0.01em;
}
.studio-hero__big-right { text-align: right; }

.studio-col { position: relative; z-index: 3; }
.studio-col--left { padding-top: 76px; }
.studio-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pin-arrows { display: flex; gap: 6px; }
.pin-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.pin-arrow-btn:hover {
  background: var(--orange-accent);
  border-color: var(--orange-accent);
}
.pin-meta-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
}

.pin-title {
  margin: 0 0 10px;
  font-family: var(--font-cond);
  line-height: 0.96;
  text-transform: uppercase;
}
.pin-title-prefix {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
}
.pin-title-highlight {
  display: block;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 900;
  color: #1f2430;
}
.pin-description {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-color);
  line-height: 1.5;
}
.pin-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-accent);
  color: #151722;
  font-size: 13.5px;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(245, 166, 35, 0.34);
  transition: transform 0.2s;
}
.pin-pill-cta:hover { transform: translateY(-2px); }

.studio-metric {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio-metric strong {
  font-family: var(--font-cond);
  font-size: 38px;
  font-weight: 900;
  color: #1f2430;
  line-height: 1;
}
.studio-metric span {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.25;
  font-weight: 600;
}
.studio-chevrons {
  color: var(--orange-accent) !important;
  font-family: var(--font-cond) !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Centro: Máquina + Callout flotante */
.studio-col--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.pin-visual-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}
.pin-machine-img {
  max-height: 315px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 32px rgba(15, 23, 42, 0.22));
  transition: transform 0.35s ease;
}
.pin-machine-img.anim-slide-left { animation: machSlideLeft 0.38s ease; }
.pin-machine-img.anim-slide-right { animation: machSlideRight 0.38s ease; }
@keyframes machSlideLeft {
  from { opacity: 0; transform: translateX(28px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes machSlideRight {
  from { opacity: 0; transform: translateX(-28px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.studio-floating-callout {
  margin-top: -12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  padding: 10px 16px;
  max-width: 280px;
  text-align: center;
  font-size: 11.5px;
  color: #2f333d;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}
.studio-floating-callout strong {
  display: block;
  text-transform: uppercase;
  font-weight: 800;
}
.studio-floating-callout span {
  display: block;
  color: #64748b;
  font-weight: 600;
}

/* Columna derecha */
.studio-col--right {
  padding-top: 115px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 16px;
}
.studio-metric--right { margin-top: 0; justify-content: flex-end; }
.studio-spec-line {
  border-top: 1px solid #cbd5e1;
  padding-top: 10px;
  width: 230px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.pin-selector-box { width: 100%; }
.pin-selector-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
}
.pin-number-pills {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}
.pin-num-pill {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.pin-num-pill.is-active {
  background: var(--orange-accent);
  border-color: var(--orange-accent);
  color: #151722;
}
.pin-next-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.pin-next-preview:hover {
  border-color: var(--orange-accent);
  transform: translateY(-2px);
}
.pin-next-info small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
}
.pin-next-info strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #111827;
}
.pin-next-preview img {
  width: 48px;
  height: 36px;
  object-fit: contain;
}

/* GRID DE TODAS LAS MAQUINARIAS ESTILO ESTUDIO (3 columnas) */
.studio-grid-heading {
  text-align: center;
  margin: 38px 0 26px;
}
.studio-grid-heading h3 {
  margin: 0 0 6px;
  font-family: var(--font-cond);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  color: #262a34;
  line-height: 1;
}
.studio-grid-heading p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 13.5px;
  color: #64748b;
}

.studio-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.studio-mach-card {
  background: #ffffff;
  border: 1.5px solid #e6e9f0;
  border-radius: 16px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.studio-mach-card:hover,
.studio-mach-card.is-active {
  transform: translateY(-4px);
  border-color: var(--orange-accent);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}
.studio-mach-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: #262a34;
  line-height: 1.05;
}
.studio-mach-card__img {
  height: 148px;
  width: 100%;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.studio-mach-card__img img {
  max-height: 138px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.studio-mach-card:hover .studio-mach-card__img img {
  transform: scale(1.05);
}
.studio-mach-card p {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: #5b6475;
  line-height: 1.45;
  min-height: 36px;
}
.studio-mach-card__btn {
  margin-top: auto;
  width: 100%;
  border: 0;
  background: #d8dce3;
  color: #1f2430;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.studio-mach-card:hover .studio-mach-card__btn,
.studio-mach-card.is-active .studio-mach-card__btn {
  background: var(--orange-accent);
  color: #151722;
}

/* FICHA TÉCNICA INFERIOR */
.pin-details-section { margin-top: 32px; }
.pin-details-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dce2ec;
  border-radius: 22px;
  overflow: hidden;
  padding: 36px 40px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}
.pin-details-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-accent), var(--orange-accent));
}
.pin-details-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-accent);
  margin-bottom: 8px;
}
.pin-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-accent);
}
.pin-details-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-cond);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
}
.pin-details-header__sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: #64748b;
}
.pin-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pin-detail-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
}
.pin-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pin-box-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.pin-box-header-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.pin-box-header-text span {
  font-size: 12px;
  color: #64748b;
}
.pin-skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.pin-skills-list li {
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--orange-accent);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.pin-app-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #334155;
}
.pin-field-tags-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}
.pin-field-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pin-field-tags span {
  background: #ffffff;
  border: 1px solid #dbe2ec;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2430;
}

.pin-details-footer {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pin-footer-info {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 620px;
}
.pin-footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef4ff;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.pin-footer-copy strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.pin-footer-copy p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.pin-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  transition: transform 0.2s;
}
.pin-btn:hover { transform: translateY(-2px); }
.pin-btn--primary {
  background: #16a34a;
  color: #ffffff;
}
.pin-btn--outline {
  background: #ffffff;
  border: 1.5px solid #171923;
  color: #171923;
}

.machine-footer {
  background: #111827;
  color: #94a3b8;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .studio-sheet { padding: 24px 20px 32px; overflow: hidden; }
  .studio-hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .studio-col { min-width: 0; width: 100%; }
  .studio-hero__big-titles { position: static; flex-direction: column; align-items: center; margin-bottom: 14px; }
  .studio-hero__big-titles h2 { font-size: clamp(28px, 7.5vw, 44px); }
  .studio-hero__big-right { text-align: center; }
  .studio-col--left { padding-top: 0; }
  .studio-nav-row, .studio-metric { justify-content: center; }
  .studio-col--right { padding-top: 0; align-items: center; text-align: center; }
  .studio-spec-line { width: auto; max-width: 100%; }
  .pin-number-pills { justify-content: center; }
  .pin-visual-wrapper { width: 100%; min-height: 220px; overflow: hidden; }
  .pin-machine-img { max-height: 240px; max-width: 100%; margin: 0 auto; }
  .studio-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pin-details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .machine-container { width: calc(100% - 20px); }
  .machine-header__inner { min-height: 62px; padding: 8px 0; gap: 10px; }
  .machine-brand img { height: 36px; }
  .machine-brand strong { font-size: 14px; }
  .machine-brand span { font-size: 9.5px; }
  .machine-back { padding: 7px 12px; font-size: 11.5px; text-align: center; line-height: 1.25; }
  .studio-stage-section { padding: 20px 0 42px; }
  .studio-sheet { padding: 18px 14px 26px; border-radius: 18px; }
  .studio-hero__big-titles h2 { font-size: clamp(24px, 7vw, 34px); }
  .studio-cards-grid { grid-template-columns: 1fr; }
  .pin-details-card { padding: 24px 18px; }
}
