/* ═════════════════════════════════════════════════════════════
   OPC Customtpl — Ordenadores reacondicionados Intel Core i7
   ═════════════════════════════════════════════════════════════ */

.opc-i7-guide {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Shared section styles ── */
.opc-i7-section {
  padding: 80px 0;
}
.opc-i7-section--white { background: #ffffff; }
.opc-i7-section--subtle { background: #f8f9fa; }
.opc-i7-section--generations { padding-top: 0; }
.opc-i7-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.opc-i7-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1A1D24;
  line-height: 1.2;
  margin: 0 0 16px 0;
}
.opc-i7-section-title--center { text-align: center; }
.opc-i7-section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}
.opc-i7-section-subtitle--center { margin: 0 auto; text-align: center; }
.opc-i7-section-subtitle strong { color: #1A1D24; font-weight: 600; }

/* ── 1. Hero intro ── */
.opc-i7-hero {
  padding: 80px 0;
  background: #f8f9fa;
}
.opc-i7-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.opc-i7-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1A1D24;
  line-height: 1.15;
  margin: 0 0 32px 0;
}
.opc-i7-hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.opc-i7-hero-text p {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}
.opc-i7-hero-text strong { color: #1A1D24; font-weight: 600; }

/* ── 2. Cases (casos de uso) ── */
.opc-i7-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.opc-i7-case-card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px 0 rgba(15,23,42,0.06), inset 0 1px 0 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.opc-i7-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px 0 rgba(15,23,42,0.1);
}
.opc-i7-case-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opc-i7-case-icon--primary { color: #0224DE; background: rgba(2,36,222,0.1); }
.opc-i7-case-icon--secondary { color: #7c3aed; background: rgba(124,58,237,0.1); }
.opc-i7-case-icon--blue { color: #2563eb; background: rgba(37,99,235,0.1); }
.opc-i7-case-icon--softblue { color: #3b82f6; background: rgba(59,130,246,0.1); }

.opc-i7-case-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1A1D24;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}
.opc-i7-case-text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}
.opc-i7-case-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.opc-i7-pill {
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-block;
}
.opc-i7-pill--primary { background: #0224DE; color: #fff; }
.opc-i7-pill--secondary { background: #7c3aed; color: #fff; }
.opc-i7-pill--blue { background: #2563eb; color: #fff; }
.opc-i7-pill--softblue { background: #3b82f6; color: #fff; }

/* ── 3. Generaciones timeline ── */
.opc-i7-generations-header {
  max-width: 640px;
  margin-bottom: 48px;
}
.opc-i7-timeline {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.opc-i7-timeline::-webkit-scrollbar { display: none; }

.opc-i7-timeline-bar { position: relative; }
.opc-i7-timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #A899FE 0%, #0224DE 100%);
  transform: translateY(-50%);
}
.opc-i7-timeline-dots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 48px;
  align-items: center;
}
.opc-i7-timeline-dot {
  display: flex;
  justify-content: center;
}
.opc-i7-timeline-dot span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(26,29,36,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  display: block;
  transition: transform 0.2s;
  cursor: default;
}
.opc-i7-timeline-dot:hover span { transform: scale(1.1); }
.opc-i7-timeline-dot span::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A899FE 0%, #0224DE 100%);
}

.opc-i7-timeline-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.opc-i7-timeline-label {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1A1D24;
  padding-top: 8px;
  position: relative;
}
.opc-i7-timeline-label::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 1px;
  height: 24px;
  background: #e5e7eb;
}

.opc-i7-timeline-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.opc-i7-timeline-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 20px;
  transition: all 0.2s;
}
.opc-i7-timeline-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.opc-i7-timeline-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1A1D24;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}
.opc-i7-timeline-card-text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.opc-i7-timeline-line,
.opc-i7-timeline-dots,
.opc-i7-timeline-labels,
.opc-i7-timeline-cards {
  min-width: 640px;
}

/* ── 4. Config cards (RAM, SSD, GPU) ── */
.opc-i7-config-header { margin-bottom: 64px; }
.opc-i7-config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.opc-i7-config-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.2s;
}
.opc-i7-config-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.opc-i7-config-icon-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.opc-i7-config-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #A899FE 0%, #0224DE 100%);
  flex-shrink: 0;
}
.opc-i7-config-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1A1D24;
  letter-spacing: -0.02em;
  margin: 0;
}
.opc-i7-config-card-text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Bar chart */
.opc-i7-bars {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  height: 144px;
  padding: 0 4px;
}
.opc-i7-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.opc-i7-bar-track {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
.opc-i7-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  min-height: 8px;
  background: linear-gradient(180deg, #A899FE 0%, #0224DE 100%);
  transition: height 0.3s;
}
.opc-i7-bar-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1A1D24;
}

/* Concentric rings */
.opc-i7-rings {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
}

/* GPU cards */
.opc-i7-gpus {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  height: 128px;
  padding: 0 4px;
}
.opc-i7-gpu-group {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.opc-i7-gpu-svg {
  display: block;
}
.opc-i7-gpu-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1A1D24;
}

/* Spec lists */
.opc-i7-spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opc-i7-spec-list li {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.opc-i7-spec-list li strong { color: #1A1D24; font-weight: 600; white-space: nowrap; }
.opc-i7-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A899FE 0%, #0224DE 100%);
  margin-top: 6px;
}

/* ═════════════════════════════════════════════════════════════
   Responsive — Ordenadores i7
   ═════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .opc-i7-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .opc-i7-config-grid { grid-template-columns: repeat(2, 1fr); }
  .opc-i7-config-card:last-child { grid-column: span 2; justify-self: center; max-width: 400px; }
}

@media (max-width: 768px) {
  .opc-i7-section { padding: 56px 0; }
  .opc-i7-hero { padding: 56px 0; }
  .opc-i7-cases-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .opc-i7-config-grid { grid-template-columns: 1fr; }
  .opc-i7-config-card:last-child { grid-column: span 1; max-width: none; }
  .opc-i7-timeline-cards { gap: 12px; }
}

@media (max-width: 480px) {
  .opc-i7-section { padding: 40px 0; }
  .opc-i7-hero { padding: 40px 0; }
  .opc-i7-section-inner { padding: 0 16px; }
  .opc-i7-cases-grid { grid-template-columns: 1fr; }
  .opc-i7-case-card { padding: 20px; }
  .opc-i7-config-card { padding: 16px; }
  .opc-i7-hero-title { font-size: 1.5rem; }
  .opc-i7-gpus { gap: 8px; }
  .opc-i7-gpu-group { flex: 1 1 auto; min-width: 0; }
  .opc-i7-gpu-svg { width: 100%; height: auto; }
  .opc-i7-bars { gap: 8px; height: 120px; }
}

/* ── Scroll offset for TOC anchor navigation ── */
#i7-casos-uso,
#i7-generaciones,
#i7-config {
  scroll-margin-top: 127px;
}

@media (max-width: 991px) {
  #i7-casos-uso,
  #i7-generaciones,
  #i7-config {
    scroll-margin-top: 87px;
  }
}
