/* =============================================================
   DECK · estructura de slides
   ============================================================= */

.deck-app {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ----- Top bar fija ----- */
.deck-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 254, 254, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.deck-top-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.deck-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-700);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.deck-back:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

.deck-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
}

.deck-brand svg { width: 26px; height: 26px; }

.deck-brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.deck-brand-name .accent { color: var(--amber); }

.deck-audience-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--navy-700);
}

.deck-audience-tag.aseguradora { background: var(--violet); }
.deck-audience-tag.taller      { background: var(--amber-dark); }
.deck-audience-tag.repuestos   { background: var(--emerald); }
.deck-audience-tag.financiera  { background: #0284c7; }

.deck-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-counter {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate-700);
  padding: 6px 12px;
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.deck-counter .current {
  color: var(--navy-900);
  font-weight: 700;
}

.deck-fs-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  transition: all 0.2s;
}

.deck-fs-btn:hover {
  background: var(--navy-900);
  color: white;
}

/* ----- Progress bar ----- */
.deck-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Slide container ----- */
.deck-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 32px 100px;
  min-height: calc(100vh - 60px);
}

.slide {
  width: 100%;
  max-width: 1280px;
  display: none;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Slide variants ----- */

/* COVER */
.slide-cover {
  min-height: calc(100vh - 180px);
  display: none;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 80px;
  position: relative;
  overflow: hidden;
}

.slide-cover.active { display: flex; }

.slide-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.slide-cover-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
  position: relative;
}

.slide-cover-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  position: relative;
}

.slide-cover-title .accent { color: var(--amber); }

.slide-cover-lead {
  font-size: 22px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  margin-bottom: 60px;
  position: relative;
}

.slide-cover-meta {
  position: relative;
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cover-meta-item {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.cover-meta-item b {
  display: block;
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-top: 4px;
}

/* CONTENT slides */
.slide-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-200);
}

.slide-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.slide-title .accent { color: var(--amber); }

.slide-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--slate-700);
  max-width: 800px;
  margin-bottom: 40px;
}

/* Pain points grid (6 dolores) */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pain-card {
  padding: 24px;
  background: var(--slate-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
  transition: all 0.2s;
}

.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pain-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber-dark);
  margin-bottom: 8px;
}

.pain-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.25;
}

.pain-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-700);
}

/* Two column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split-narrow {
  grid-template-columns: 1.2fr 1fr;
}

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  position: relative;
}

.split-image img {
  width: 100%;
  display: block;
}

.split-image-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy-900);
  color: white;
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Benefit list */
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.deck-aseguradora .benefit-icon { background: var(--violet); color: white; }
.deck-repuestos .benefit-icon    { background: var(--emerald); color: white; }
.deck-financiera .benefit-icon   { background: #0284c7; color: white; }

.benefit-content h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.benefit-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-700);
}

/* Big stat block */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.stat-block {
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: white;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.stat-block::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Process flow (5-step) */
.flow-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  position: relative;
  margin: 32px 0;
}

.flow-step {
  padding: 24px 18px;
  background: var(--slate-50);
  border-radius: var(--radius);
  position: relative;
  text-align: left;
  border-top: 3px solid var(--amber);
}

.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 20px;
  font-weight: 700;
  z-index: 2;
  background: white;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber-dark);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.flow-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  line-height: 1.2;
}

.flow-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-700);
}

/* Quote / pullquote */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  border-left: 4px solid var(--amber);
  padding: 24px 0 24px 32px;
  margin: 32px 0;
  max-width: 900px;
}

.pullquote-attr {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table th, .pricing-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.pricing-table th {
  background: var(--slate-50);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-700);
  font-weight: 600;
}

.pricing-table td {
  font-size: 14.5px;
  color: var(--slate-900);
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table .price-cell {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--amber-dark);
  font-size: 16px;
}

/* CTA slide (final) */
.slide-cta {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.slide-cta .slide-eyebrow { color: var(--amber); }
.slide-cta .slide-title { color: white; }
.slide-cta .slide-lead { color: rgba(255, 255, 255, 0.7); margin-left: auto; margin-right: auto; }

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 540px;
  margin: 40px auto 0;
  text-align: left;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-row:last-child { border-bottom: none; }

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: block;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: white;
}

/* ----- Bottom navigation ----- */
.deck-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  padding: 8px;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  z-index: 99;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--navy-900);
  color: white;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-dots {
  display: flex;
  gap: 6px;
  padding: 0 12px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-300);
  transition: all 0.3s;
  cursor: pointer;
}

.nav-dot.active {
  background: var(--amber);
  width: 24px;
  border-radius: 4px;
}

/* ----- Print-friendly ----- */
@media print {
  .deck-top, .deck-nav { display: none !important; }
  .slide { display: block !important; page-break-after: always; }
  .deck-stage { padding: 20px; }
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .slide-content, .slide-cta { padding: 36px 28px; }
  .slide-cover { padding: 48px 28px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .flow-row { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after {
    content: '↓';
    right: 50%; top: auto; bottom: -18px;
    transform: translateX(50%);
  }
  .deck-top { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .deck-top-left { gap: 12px; }
  .deck-audience-tag { display: none; }
  .deck-stage { padding: 24px 16px 120px; }
  .slide-cover-meta { flex-wrap: wrap; gap: 20px; }
}
